Files
SimfonyBasics/spa/public/app.js
2024-07-05 13:46:23 +02:00

1 line
21 KiB
JavaScript

"use strict";(self.webpackChunkspa=self.webpackChunkspa||[]).push([[524],{563:()=>{var t,n,e,r,o,_,i,u,l,c,a,f={},s=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function d(t,n){for(var e in n)t[e]=n[e];return t}function v(t){var n=t.parentNode;n&&n.removeChild(t)}function m(n,e,r){var o,_,i,u={};for(i in e)"key"==i?o=e[i]:"ref"==i?_=e[i]:u[i]=e[i];if(arguments.length>2&&(u.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===u[i]&&(u[i]=n.defaultProps[i]);return y(n,u,o,_,null)}function y(t,r,o,_,i){var u={type:t,props:r,key:o,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++e:i,__i:-1,__u:0};return null==i&&null!=n.vnode&&n.vnode(u),u}function g(t){return t.children}function b(t,n){this.props=t,this.context=n}function k(t,n){if(null==n)return t.__?k(t.__,t.__i+1):null;for(var e;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof t.type?k(t):null}function w(t){var n,e;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e){t.__e=t.__c.base=e.__e;break}return w(t)}}function N(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!x.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||_)(x)}function x(){var t,e,o,_,u,l,c,a;for(r.sort(i);t=r.shift();)t.__d&&(e=r.length,_=void 0,l=(u=(o=t).__v).__e,c=[],a=[],o.__P&&((_=d({},u)).__v=u.__v+1,n.vnode&&n.vnode(_),I(o.__P,_,u,o.__n,o.__P.namespaceURI,32&u.__u?[l]:null,c,null==l?k(u):l,!!(32&u.__u),a),_.__v=u.__v,_.__.__k[_.__i]=_,M(c,_,a),_.__e!=l&&w(_)),r.length>e&&r.sort(i));x.__r=0}function C(t,n,e,r,o,_,i,u,l,c,a){var p,h,d,v,m,y=r&&r.__k||s,g=n.length;for(e.__d=l,S(e,n,y),l=e.__d,p=0;p<g;p++)null!=(d=e.__k[p])&&"boolean"!=typeof d&&"function"!=typeof d&&(h=-1===d.__i?f:y[d.__i]||f,d.__i=p,I(t,d,h,o,_,i,u,l,c,a),v=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&L(h.ref,null,d),a.push(d.ref,d.__c||v,d)),null==m&&null!=v&&(m=v),65536&d.__u||h.__k===d.__k?(l&&"string"==typeof d.type&&!t.contains(l)&&(l=k(h)),l=U(d,l,t)):"function"==typeof d.type&&void 0!==d.__d?l=d.__d:v&&(l=v.nextSibling),d.__d=void 0,d.__u&=-196609);e.__d=l,e.__e=m}function S(t,n,e){var r,o,_,i,u,l=n.length,c=e.length,a=c,f=0;for(t.__k=[],r=0;r<l;r++)i=r+f,null!=(o=t.__k[r]=null==(o=n[r])||"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.__=t,o.__b=t.__b+1,u=P(o,e,i,a),o.__i=u,_=null,-1!==u&&(a--,(_=e[u])&&(_.__u|=131072)),null==_||null===_.__v?(-1==u&&f--,"function"!=typeof o.type&&(o.__u|=65536)):u!==i&&(u==i-1?f=u-i:u==i+1?f++:u>i?a>l-i?f+=u-i:f--:u<i&&f++,u!==r+f&&(o.__u|=65536))):(_=e[i])&&null==_.key&&_.__e&&!(131072&_.__u)&&(_.__e==t.__d&&(t.__d=k(_)),W(_,_,!1),e[i]=null,a--);if(a)for(r=0;r<c;r++)null!=(_=e[r])&&!(131072&_.__u)&&(_.__e==t.__d&&(t.__d=k(_)),W(_,_))}function U(t,n,e){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,n=U(r[o],n,e));return n}t.__e!=n&&(e.insertBefore(t.__e,n||null),n=t.__e);do{n=n&&n.nextSibling}while(null!=n&&8===n.nodeType);return n}function A(t,n){return n=n||[],null==t||"boolean"==typeof t||(h(t)?t.some((function(t){A(t,n)})):n.push(t)),n}function P(t,n,e,r){var o=t.key,_=t.type,i=e-1,u=e+1,l=n[e];if(null===l||l&&o==l.key&&_===l.type&&!(131072&l.__u))return e;if(r>(null==l||131072&l.__u?0:1))for(;i>=0||u<n.length;){if(i>=0){if((l=n[i])&&!(131072&l.__u)&&o==l.key&&_===l.type)return i;i--}if(u<n.length){if((l=n[u])&&!(131072&l.__u)&&o==l.key&&_===l.type)return u;u++}}return-1}function H(t,n,e){"-"===n[0]?t.setProperty(n,null==e?"":e):t[n]=null==e?"":"number"!=typeof e||p.test(n)?e:e+"px"}function E(t,n,e,r,o){var _;t:if("style"===n)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(n in r)e&&n in e||H(t.style,n,"");if(e)for(n in e)r&&e[n]===r[n]||H(t.style,n,e[n])}else if("o"===n[0]&&"n"===n[1])_=n!==(n=n.replace(/(PointerCapture)$|Capture$/i,"$1")),n=n.toLowerCase()in t||"onFocusOut"===n||"onFocusIn"===n?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+_]=e,e?r?e.u=r.u:(e.u=u,t.addEventListener(n,_?c:l,_)):t.removeEventListener(n,_?c:l,_);else{if("http://www.w3.org/2000/svg"==o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in t)try{t[n]=null==e?"":e;break t}catch(t){}"function"==typeof e||(null==e||!1===e&&"-"!==n[4]?t.removeAttribute(n):t.setAttribute(n,"popover"==n&&1==e?"":e))}}function T(t){return function(e){if(this.l){var r=this.l[e.type+t];if(null==e.t)e.t=u++;else if(e.t<r.u)return;return r(n.event?n.event(e):e)}}}function I(t,e,r,o,_,i,u,l,c,a){var f,s,p,v,m,y,k,w,N,x,S,U,A,P,H,E,T=e.type;if(void 0!==e.constructor)return null;128&r.__u&&(c=!!(32&r.__u),i=[l=e.__e=r.__e]),(f=n.__b)&&f(e);t:if("function"==typeof T)try{if(w=e.props,N="prototype"in T&&T.prototype.render,x=(f=T.contextType)&&o[f.__c],S=f?x?x.props.value:f.__:o,r.__c?k=(s=e.__c=r.__c).__=s.__E:(N?e.__c=s=new T(w,S):(e.__c=s=new b(w,S),s.constructor=T,s.render=D),x&&x.sub(s),s.props=w,s.state||(s.state={}),s.context=S,s.__n=o,p=s.__d=!0,s.__h=[],s._sb=[]),N&&null==s.__s&&(s.__s=s.state),N&&null!=T.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=d({},s.__s)),d(s.__s,T.getDerivedStateFromProps(w,s.__s))),v=s.props,m=s.state,s.__v=e,p)N&&null==T.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),N&&null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(N&&null==T.getDerivedStateFromProps&&w!==v&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(w,S),!s.__e&&(null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(w,s.__s,S)||e.__v===r.__v)){for(e.__v!==r.__v&&(s.props=w,s.state=s.__s,s.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),U=0;U<s._sb.length;U++)s.__h.push(s._sb[U]);s._sb=[],s.__h.length&&u.push(s);break t}null!=s.componentWillUpdate&&s.componentWillUpdate(w,s.__s,S),N&&null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(v,m,y)}))}if(s.context=S,s.props=w,s.__P=t,s.__e=!1,A=n.__r,P=0,N){for(s.state=s.__s,s.__d=!1,A&&A(e),f=s.render(s.props,s.state,s.context),H=0;H<s._sb.length;H++)s.__h.push(s._sb[H]);s._sb=[]}else do{s.__d=!1,A&&A(e),f=s.render(s.props,s.state,s.context),s.state=s.__s}while(s.__d&&++P<25);s.state=s.__s,null!=s.getChildContext&&(o=d(d({},o),s.getChildContext())),N&&!p&&null!=s.getSnapshotBeforeUpdate&&(y=s.getSnapshotBeforeUpdate(v,m)),C(t,h(E=null!=f&&f.type===g&&null==f.key?f.props.children:f)?E:[E],e,r,o,_,i,u,l,c,a),s.base=e.__e,e.__u&=-161,s.__h.length&&u.push(s),k&&(s.__E=s.__=null)}catch(t){e.__v=null,c||null!=i?(e.__e=l,e.__u|=c?160:32,i[i.indexOf(l)]=null):(e.__e=r.__e,e.__k=r.__k),n.__e(t,e,r)}else null==i&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=F(r.__e,e,r,o,_,i,u,c,a);(f=n.diffed)&&f(e)}function M(t,e,r){e.__d=void 0;for(var o=0;o<r.length;o++)L(r[o],r[++o],r[++o]);n.__c&&n.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){n.__e(t,e.__v)}}))}function F(n,e,r,o,_,i,u,l,c){var a,s,p,d,m,y,g,b=r.props,w=e.props,N=e.type;if("svg"===N?_="http://www.w3.org/2000/svg":"math"===N?_="http://www.w3.org/1998/Math/MathML":_||(_="http://www.w3.org/1999/xhtml"),null!=i)for(a=0;a<i.length;a++)if((m=i[a])&&"setAttribute"in m==!!N&&(N?m.localName===N:3===m.nodeType)){n=m,i[a]=null;break}if(null==n){if(null===N)return document.createTextNode(w);n=document.createElementNS(_,N,w.is&&w),i=null,l=!1}if(null===N)b===w||l&&n.data===w||(n.data=w);else{if(i=i&&t.call(n.childNodes),b=r.props||f,!l&&null!=i)for(b={},a=0;a<n.attributes.length;a++)b[(m=n.attributes[a]).name]=m.value;for(a in b)if(m=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=m;else if("key"!==a&&!(a in w)){if("value"==a&&"defaultValue"in w||"checked"==a&&"defaultChecked"in w)continue;E(n,a,null,m,_)}for(a in w)m=w[a],"children"==a?d=m:"dangerouslySetInnerHTML"==a?s=m:"value"==a?y=m:"checked"==a?g=m:"key"===a||l&&"function"!=typeof m||b[a]===m||E(n,a,m,b[a],_);if(s)l||p&&(s.__html===p.__html||s.__html===n.innerHTML)||(n.innerHTML=s.__html),e.__k=[];else if(p&&(n.innerHTML=""),C(n,h(d)?d:[d],e,r,o,"foreignObject"===N?"http://www.w3.org/1999/xhtml":_,i,u,i?i[0]:r.__k&&k(r,0),l,c),null!=i)for(a=i.length;a--;)null!=i[a]&&v(i[a]);l||(a="value",void 0!==y&&(y!==n[a]||"progress"===N&&!y||"option"===N&&y!==b[a])&&E(n,a,y,b[a],_),a="checked",void 0!==g&&g!==n[a]&&E(n,a,g,b[a],_))}return n}function L(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(t){n.__e(t,r)}}function W(t,e,r){var o,_;if(n.unmount&&n.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||L(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){n.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(_=0;_<o.length;_++)o[_]&&W(o[_],e,r||"function"!=typeof t.type);r||null==t.__e||v(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function D(t,n,e){return this.constructor(t,e)}function O(e,r,o){var _,i,u,l;n.__&&n.__(e,r),i=(_="function"==typeof o)?null:o&&o.__k||r.__k,u=[],l=[],I(r,e=(!_&&o||r).__k=m(g,null,[e]),i||f,f,r.namespaceURI,!_&&o?[o]:i?null:r.firstChild?t.call(r.childNodes):null,u,!_&&o?o:i?i.__e:r.firstChild,_,l),M(u,e,l)}function j(n,e,r){var o,_,i,u,l=d({},n.props);for(i in n.type&&n.type.defaultProps&&(u=n.type.defaultProps),e)"key"==i?o=e[i]:"ref"==i?_=e[i]:l[i]=void 0===e[i]&&void 0!==u?u[i]:e[i];return arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):r),y(n.type,l,o||n.key,_||n.ref,null)}t=s.slice,n={__e:function(t,n,e,r){for(var o,_,i;n=n.__;)if((o=n.__c)&&!o.__)try{if((_=o.constructor)&&null!=_.getDerivedStateFromError&&(o.setState(_.getDerivedStateFromError(t)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),i=o.__d),i)return o.__E=o}catch(n){t=n}throw t}},e=0,b.prototype.setState=function(t,n){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},e),this.props)),t&&d(e,t),null!=t&&this.__v&&(n&&this._sb.push(n),N(this))},b.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N(this))},b.prototype.render=g,r=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,i=function(t,n){return t.__v.__b-n.__v.__b},x.__r=0,u=0,l=T(!1),c=T(!0),a=0;var R,$,q,B,K=0,V=[],z=n,G=z.__b,J=z.__r,Q=z.diffed,X=z.__c,Y=z.unmount,Z=z.__;function tt(t,n){z.__h&&z.__h($,t,K||n),K=0;var e=$.__H||($.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function nt(t){return K=1,function(t,n,e){var r=tt(R++,2);if(r.t=t,!r.__c&&(r.__=[e?e(n):ct(void 0,n),function(t){var n=r.__N?r.__N[0]:r.__[0],e=r.t(n,t);n!==e&&(r.__N=[e,r.__[1]],r.__c.setState({}))}],r.__c=$,!$.u)){var o=function(t,n,e){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!_||_.call(this,t,n,e);var i=!1;return o.forEach((function(t){if(t.__N){var n=t.__[0];t.__=t.__N,t.__N=void 0,n!==t.__[0]&&(i=!0)}})),!(!i&&r.__c.props===t)&&(!_||_.call(this,t,n,e))};$.u=!0;var _=$.shouldComponentUpdate,i=$.componentWillUpdate;$.componentWillUpdate=function(t,n,e){if(this.__e){var r=_;_=void 0,o(t,n,e),_=r}i&&i.call(this,t,n,e)},$.shouldComponentUpdate=o}return r.__N||r.__}(ct,t)}function et(t,n){var e=tt(R++,3);!z.__s&&lt(e.__H,n)&&(e.__=t,e.i=n,$.__H.__h.push(e))}function rt(){for(var t;t=V.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(it),t.__H.__h.forEach(ut),t.__H.__h=[]}catch(n){t.__H.__h=[],z.__e(n,t.__v)}}z.__b=function(t){$=null,G&&G(t)},z.__=function(t,n){t&&n.__k&&n.__k.__m&&(t.__m=n.__k.__m),Z&&Z(t,n)},z.__r=function(t){J&&J(t),R=0;var n=($=t.__c).__H;n&&(q===$?(n.__h=[],$.__h=[],n.__.forEach((function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0}))):(n.__h.forEach(it),n.__h.forEach(ut),n.__h=[],R=0)),q=$},z.diffed=function(t){Q&&Q(t);var n=t.__c;n&&n.__H&&(n.__H.__h.length&&(1!==V.push(n)&&B===z.requestAnimationFrame||((B=z.requestAnimationFrame)||_t)(rt)),n.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.i=void 0}))),q=$=null},z.__c=function(t,n){n.some((function(t){try{t.__h.forEach(it),t.__h=t.__h.filter((function(t){return!t.__||ut(t)}))}catch(e){n.some((function(t){t.__h&&(t.__h=[])})),n=[],z.__e(e,t.__v)}})),X&&X(t,n)},z.unmount=function(t){Y&&Y(t);var n,e=t.__c;e&&e.__H&&(e.__H.__.forEach((function(t){try{it(t)}catch(t){n=t}})),e.__H=void 0,n&&z.__e(n,e.__v))};var ot="function"==typeof requestAnimationFrame;function _t(t){var n,e=function(){clearTimeout(r),ot&&cancelAnimationFrame(n),setTimeout(t)},r=setTimeout(e,100);ot&&(n=requestAnimationFrame(e))}function it(t){var n=$,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),$=n}function ut(t){var n=$;t.__c=t.__(),$=n}function lt(t,n){return!t||t.length!==n.length||n.some((function(n,e){return n!==t[e]}))}function ct(t,n){return"function"==typeof n?n(t):n}var at={};function ft(t,n){for(var e in n)t[e]=n[e];return t}function st(t,n,e){var r,o=/(?:\?([^#]*))?(#.*)?$/,_=t.match(o),i={};if(_&&_[1])for(var u=_[1].split("&"),l=0;l<u.length;l++){var c=u[l].split("=");i[decodeURIComponent(c[0])]=decodeURIComponent(c.slice(1).join("="))}t=dt(t.replace(o,"")),n=dt(n||"");for(var a=Math.max(t.length,n.length),f=0;f<a;f++)if(n[f]&&":"===n[f].charAt(0)){var s=n[f].replace(/(^:|[+*?]+$)/g,""),p=(n[f].match(/[+*?]+$/)||at)[0]||"",h=~p.indexOf("+"),d=~p.indexOf("*"),v=t[f]||"";if(!v&&!d&&(p.indexOf("?")<0||h)){r=!1;break}if(i[s]=decodeURIComponent(v),h||d){i[s]=t.slice(f).map(decodeURIComponent).join("/");break}}else if(n[f]!==t[f]){r=!1;break}return(!0===e.default||!1!==r)&&i}function pt(t,n){return t.rank<n.rank?1:t.rank>n.rank?-1:t.index-n.index}function ht(t,n){return t.index=n,t.rank=function(t){return t.props.default?0:dt(t.props.path).map(vt).join("")}(t),t.props}function dt(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function vt(t){return":"==t.charAt(0)?1+"*+?".indexOf(t.charAt(t.length-1))||4:5}var mt={},yt=[],gt=[],bt=null,kt={url:Nt()},wt=function(t,n){var e={__c:n="__cC"+a++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var e,r;return this.getChildContext||(e=[],(r={})[n]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){e=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&e.some((function(t){t.__e=!0,N(t)}))},this.sub=function(t){e.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){e&&e.splice(e.indexOf(t),1),n&&n.call(t)}}),t.children}};return e.Provider.__=e.Consumer.contextType=e}(kt);function Nt(){var t;return""+((t=bt&&bt.location?bt.location:bt&&bt.getCurrentLocation?bt.getCurrentLocation():"undefined"!=typeof location?location:mt).pathname||"")+(t.search||"")}function xt(t,n){return void 0===n&&(n=!1),"string"!=typeof t&&t.url&&(n=t.replace,t=t.url),function(t){for(var n=yt.length;n--;)if(yt[n].canRoute(t))return!0;return!1}(t)&&function(t,n){void 0===n&&(n="push"),bt&&bt[n]?bt[n](t):"undefined"!=typeof history&&history[n+"State"]&&history[n+"State"](null,null,t)}(t,n?"replace":"push"),Ct(t)}function Ct(t){for(var n=!1,e=0;e<yt.length;e++)yt[e].routeTo(t)&&(n=!0);return n}function St(t){if(t&&t.getAttribute){var n=t.getAttribute("href"),e=t.getAttribute("target");if(n&&n.match(/^\//g)&&(!e||e.match(/^_?self$/i)))return xt(n)}}function Ut(t){return t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.stopPropagation&&t.stopPropagation(),t.preventDefault(),!1}function At(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button)){var n=t.target;do{if("a"===n.localName&&n.getAttribute("href")){if(n.hasAttribute("data-native")||n.hasAttribute("native"))return;if(St(n))return Ut(t)}}while(n=n.parentNode)}}var Pt=!1;function Ht(t){t.history&&(bt=t.history),this.state={url:t.url||Nt()}}ft(Ht.prototype=new b,{shouldComponentUpdate:function(t){return!0!==t.static||t.url!==this.props.url||t.onChange!==this.props.onChange},canRoute:function(t){var n=A(this.props.children);return void 0!==this.g(n,t)},routeTo:function(t){this.setState({url:t});var n=this.canRoute(t);return this.p||this.forceUpdate(),n},componentWillMount:function(){this.p=!0},componentDidMount:function(){var t=this;Pt||(Pt=!0,bt||addEventListener("popstate",(function(){Ct(Nt())})),addEventListener("click",At)),yt.push(this),bt&&(this.u=bt.listen((function(n){var e=n.location||n;t.routeTo(""+(e.pathname||"")+(e.search||""))}))),this.p=!1},componentWillUnmount:function(){"function"==typeof this.u&&this.u(),yt.splice(yt.indexOf(this),1)},componentWillUpdate:function(){this.p=!0},componentDidUpdate:function(){this.p=!1},g:function(t,n){t=t.filter(ht).sort(pt);for(var e=0;e<t.length;e++){var r=t[e],o=st(n,r.props.path,r.props);if(o)return[r,o]}},render:function(t,n){var e,r,o=t.onChange,_=n.url,i=this.c,u=this.g(A(t.children),_);if(u&&(r=j(u[0],ft(ft({url:_,matches:e=u[1]},e),{key:void 0,ref:void 0}))),_!==(i&&i.url)){ft(kt,i=this.c={url:_,previous:i&&i.url,current:r,path:r?r.props.path:null,matches:e}),i.router=this,i.active=r?[r]:[];for(var l=gt.length;l--;)gt[l]({});"function"==typeof o&&o(i)}return m(wt.Provider,{value:i},r)}});var Et=function(t){return m("a",ft({onClick:At},t))};function Tt(t){return fetch("https://127.0.0.1:8001/"+t).then((function(t){return t.json()})).then((function(t){return t["hydra:member"]}))}function It(t){var n=t.conferences;return n?m("div",{className:"p-3"},n.map((function(t){return m("div",{className:"card border shadow-sm lift mb-3"},m("div",{className:"card-body"},m("div",{className:"card-title"},m("h4",{className:"font-weight-light"},t.city," ",t.year)),m(Et,{className:"btn btn-sm btn-primary stretched-link",href:"/conference/"+t.slug},"View")))}))):m("div",{className:"p-3 text-center"},"No conferences yet")}function Mt(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,_,i,u=[],l=!0,c=!1;try{if(_=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=_.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return Ft(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ft(t,n):void 0}}(t,n)||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 Ft(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function Lt(t){var n=t.comments;return null!==n&&0===n.length?m("div",{className:"text-center pt-4"},"No comments yet"):n?m("div",{className:"pt-4"},n.map((function(t){return m("div",{className:"shadow border rounded-3 p-3 mb-4"},m("div",{className:"comment-img mr-3"},t.photoFilename?m("a",{href:"https://127.0.0.1:8001/uploads/photos/"+t.photoFilename,target:"_blank"},m("img",{src:"https://127.0.0.1:8001/uploads/photos/"+t.photoFilename})):""),m("h5",{className:"font-weight-light mt-3 mb-0"},t.author),m("div",{className:"comment-text"},t.text))}))):m("div",{className:"text-center pt-4"},"Loading...")}function Wt(t){var n=t.conferences,e=t.slug,r=n.find((function(t){return t.slug===e})),o=Mt(nt(null),2),_=o[0],i=o[1];return et((function(){(function(t){return Tt("api/comments?conference="+t.id)})(r).then((function(t){return i(t)}))}),[e]),m("div",{className:"p-3"},m("h4",null,r.city," ",r.year),m(Lt,{comments:_}))}function Dt(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,_,i,u=[],l=!0,c=!1;try{if(_=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=_.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return Ot(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ot(t,n):void 0}}(t,n)||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 Ot(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}O(m((function(){var t=Dt(nt(null),2),n=t[0],e=t[1];return et((function(){Tt("api/conferences").then((function(t){return e(t)}))}),[]),null===n?m("div",{className:"text-center pt-5"},"Loading..."):m("div",null,m("header",{className:"header"},m("nav",{className:"navbar navbar-light bg-light"},m("div",{className:"container"},m(Et,{className:"navbar-brand mr-4 pr-2",href:"/"},"📙 Guestbook"))),m("nav",{className:"bg-light border-bottom text-center"},n.map((function(t){return m(Et,{className:"nav-conference",href:"/conference/"+t.slug},t.city," ",t.year)})))),m(Ht,null,m(It,{path:"/",conferences:n}),m(Wt,{path:"/conference/:slug",conferences:n})))}),null),document.getElementById("app"))}},t=>{var n;n=563,t(t.s=n)}]);