Your IP : 216.73.217.143


Current Path : /home/ereika83/www/wp-content/plugins/bb-plugin/js/build/
Upload File :
Current File : /home/ereika83/www/wp-content/plugins/bb-plugin/js/build/vendor-bb-app-core.bundle.min.js

/*! For license information please see vendor-bb-app-core.bundle.min.js.LICENSE.txt */
(()=>{var t={2694:(t,e,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2799:(t,e)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,l=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case v:case y:case u:return t;default:return e}}case o:return e}}}function P(t){return w(t)===l}e.AsyncMode=f,e.ConcurrentMode=l,e.ContextConsumer=s,e.ContextProvider=u,e.Element=r,e.ForwardRef=p,e.Fragment=i,e.Lazy=v,e.Memo=y,e.Portal=o,e.Profiler=c,e.StrictMode=a,e.Suspense=h,e.isAsyncMode=function(t){return P(t)||w(t)===f},e.isConcurrentMode=P,e.isContextConsumer=function(t){return w(t)===s},e.isContextProvider=function(t){return w(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===p},e.isFragment=function(t){return w(t)===i},e.isLazy=function(t){return w(t)===v},e.isMemo=function(t){return w(t)===y},e.isPortal=function(t){return w(t)===o},e.isProfiler=function(t){return w(t)===c},e.isStrictMode=function(t){return w(t)===a},e.isSuspense=function(t){return w(t)===h},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===y||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===b||t.$$typeof===O||t.$$typeof===m)},e.typeOf=w},4146:(t,e,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return r.isMemo(t)?a:c[t.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var o=h(n);o&&o!==d&&t(e,o,r)}var a=f(n);l&&(a=a.concat(l(n)));for(var c=u(e),y=u(n),v=0;v<a.length;++v){var m=a[v];if(!(i[m]||r&&r[m]||y&&y[m]||c&&c[m])){var g=p(n,m);try{s(e,m,g)}catch(t){}}}}return e}},4363:(t,e,n)=>{"use strict";t.exports=n(2799)},4634:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},5302:(t,e,n)=>{var r=n(4634);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return c(i(t,e),e)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,c="",f=e&&e.delimiter||"/";null!=(n=o.exec(t));){var l=n[0],p=n[1],h=n.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],y=n[2],v=n[3],m=n[4],g=n[5],b=n[6],O=n[7];c&&(r.push(c),c="");var w=null!=y&&null!=d&&d!==y,P="+"===b||"*"===b,E="?"===b||"*"===b,x=n[2]||f,j=m||g;r.push({name:v||i++,prefix:y||"",delimiter:x,optional:E,repeat:P,partial:w,asterisk:!!O,pattern:j?s(j):O?".*":"[^"+u(x)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,e){for(var n=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(n[o]=new RegExp("^(?:"+t[o].pattern+")$",l(e)));return function(e,o){for(var i="",c=e||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!n[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!n[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";e.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(n.delimiter||"/"),y=a.slice(-d.length)===d;return o||(a=(y?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&y?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(h(t[o],e,n).source);return f(new RegExp("(?:"+r.join("|")+")",l(n)),e)}(t,e,n):function(t,e,n){return p(i(t,n),e,n)}(t,e,n)}},5556:(t,e,n)=>{t.exports=n(2694)()},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{App:()=>ve,Error:()=>te,Root:()=>re,createAppState:()=>St,createStoreRegistry:()=>Vt});const e=React;var r=n.n(e);const o=Redux;function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}var c=n(5556),u=n.n(c);function s(){return s=Object.assign?Object.assign.bind():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},s.apply(this,arguments)}function f(t){return"/"===t.charAt(0)}function l(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const p=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&f(t),a=e&&f(e),c=i||a;if(t&&f(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var s=0,p=o.length;p>=0;p--){var h=o[p];"."===h?l(o,p):".."===h?(l(o,p),s++):s&&(l(o,p),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&f(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function h(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const d=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=h(e),o=h(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};var y=!0,v="Invariant failed";function m(t,e){if(!t){if(y)throw new Error(v);var n="function"==typeof e?e():e,r=n?"".concat(v,": ").concat(n):v;throw new Error(r)}}function g(t){return"/"===t.charAt(0)?t:"/"+t}function b(t){return"/"===t.charAt(0)?t.substr(1):t}function O(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function w(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function P(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function E(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=s({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function x(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var j=!("undefined"==typeof window||!window.document||!window.document.createElement);function S(t,e){e(window.confirm(t))}var C="popstate",A="hashchange";function T(){try{return window.history.state||{}}catch(t){return{}}}function _(t){void 0===t&&{},j||m(!1);var e,n=window.history,r=(-1===window.navigator.userAgent.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,a=i.forceRefresh,c=void 0!==a&&a,u=i.getUserConfirmation,f=void 0===u?S:u,l=i.keyLength,p=void 0===l?6:l,h=t.basename?w(g(t.basename)):"";function d(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return h&&O(i,h),E(i,r,n)}function y(){return Math.random().toString(36).substr(2,p)}var v=x();function b(t){s(B,t),B.length=n.length,v.notifyListeners(B.location,B.action)}function _(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(d(t.state))}function R(){L(d(T()))}var k=!1;function L(t){if(k)!1,b();else{v.confirmTransitionTo(t,"POP",f,(function(e){e?b({action:"POP",location:t}):function(t){var e=B.location,n=$.indexOf(e.key);-1===n&&0;var r=$.indexOf(t.key);-1===r&&0;var o=n-r;o&&(!0,D(o))}(t)}))}}var U=d(T()),$=[U.key];function M(t){return h+P(t)}function D(t){n.go(t)}var I=0;function N(t){1===(I+=t)&&1===t?(window.addEventListener(C,_),o&&window.addEventListener(A,R)):0===I&&(window.removeEventListener(C,_),o&&window.removeEventListener(A,R))}var F=!1;var B={length:n.length,action:"POP",location:U,createHref:M,push:function(t,e){var o="PUSH",i=E(t,e,y(),B.location);v.confirmTransitionTo(i,o,f,(function(t){if(t){var e=M(i),a=i.key,u=i.state;if(r)if(n.pushState({key:a,state:u},null,e),c)window.location.href=e;else{var s=$.indexOf(B.location.key),f=$.slice(0,s+1);f.push(i.key),f,b({action:o,location:i})}else window.location.href=e}}))},replace:function(t,e){var o="REPLACE",i=E(t,e,y(),B.location);v.confirmTransitionTo(i,o,f,(function(t){if(t){var e=M(i),a=i.key,u=i.state;if(r)if(n.replaceState({key:a,state:u},null,e),c)window.location.replace(e);else{var s=$.indexOf(B.location.key);-1!==s&&($[s]=i.key),b({action:o,location:i})}else window.location.replace(e)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(t){void 0===t&&!1;var e=v.setPrompt(t);return F||(N(1),!0),function(){return F&&(!1,N(-1)),e()}},listen:function(t){var e=v.appendListener(t);return N(1),function(){N(-1),e()}}};return B}var R="hashchange",k={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+b(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:b,decodePath:g},slash:{encodePath:g,decodePath:g}};function L(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function U(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function $(t){window.location.replace(L(window.location.href)+"#"+t)}function M(t){void 0===t&&{},j||m(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,o=void 0===r?S:r,i=n.hashType,a=void 0===i?"slash":i,c=t.basename?w(g(t.basename)):"",u=k[a],f=u.encodePath,l=u.decodePath;function p(){var t=l(U());return c&&O(t,c),E(t)}var h=x();function d(t){s(F,t),F.length=e.length,h.notifyListeners(F.location,F.action)}var y=!1,v=null;function b(){var t,e,n=U(),r=f(n);if(n!==r)$(r);else{var i=p(),a=F.location;if(!y&&(i,a.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(v===P(i))return;null,function(t){if(y)!1,d();else{var e="POP";h.confirmTransitionTo(t,e,o,(function(n){n?d({action:e,location:t}):function(t){var e=F.location,n=_.lastIndexOf(P(e));-1===n&&0;var r=_.lastIndexOf(P(t));-1===r&&0;var o=n-r;o&&(!0,M(o))}(t)}))}}(i)}}var C=U(),A=f(C);C!==A&&$(A);var T=p(),_=[P(T)];function M(t){e.go(t)}var D=0;function I(t){1===(D+=t)&&1===t?window.addEventListener(R,b):0===D&&window.removeEventListener(R,b)}var N=!1;var F={length:e.length,action:"POP",location:T,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&L(window.location.href),n+"#"+f(c+P(t))},push:function(t,e){var n="PUSH",r=E(t,void 0,void 0,F.location);h.confirmTransitionTo(r,n,o,(function(t){if(t){var e=P(r),o=f(c+e);if(U()!==o){e,function(t){window.location.hash=t}(o);var i=_.lastIndexOf(P(F.location)),a=_.slice(0,i+1);a.push(e),a,d({action:n,location:r})}else d()}}))},replace:function(t,e){var n="REPLACE",r=E(t,void 0,void 0,F.location);h.confirmTransitionTo(r,n,o,(function(t){if(t){var e=P(r),o=f(c+e);U()!==o&&(e,$(o));var i=_.indexOf(P(F.location));-1!==i&&(_[i]=e),d({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(t){void 0===t&&!1;var e=h.setPrompt(t);return N||(I(1),!0),function(){return N&&(!1,I(-1)),e()}},listen:function(t){var e=h.appendListener(t);return I(1),function(){I(-1),e()}}};return F}function D(t,e,n){return Math.min(Math.max(t,e),n)}var I=n(5302),N=n.n(I);n(4363);function F(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n(4146);var B=1073741823,H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var W=r().createContext||function(t,e){var n,o,i="__create-react-context-"+function(){var t="__global_unique_id__";return H[t]=(H[t]||0)+1}()+"__",c=function(t){function n(){for(var e,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))||this).emitter=(n=e.props.value,r=[],{on:function(t){r.push(t)},off:function(t){r=r.filter((function(e){return e!==t}))},get:function(){return n},set:function(t,e){n=t,r.forEach((function(t){return t(n,e)}))}}),e}a(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[i]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;!function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}(r,o)?(n="function"==typeof e?e(r,o):B,0!==(n|=0)&&this.emitter.set(t.value,n)):n=0}},r.render=function(){return this.props.children},n}(r().Component);c.childContextTypes=((n={})[i]=u().object.isRequired,n);var s=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).observedBits=void 0,t.state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}a(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?B:e},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?B:t},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(r().Component);return s.contextTypes=((o={})[i]=u().object,o),{Provider:c,Consumer:s}},V=function(t){var e=W();return e.displayName=t,e},z=V("Router-History"),J=V("Router"),q=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._pendingLocation=t}))),n}a(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){var t=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(e){t._isMounted&&t.setState({location:e})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return r().createElement(J.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r().createElement(z.Provider,{children:this.props.children||null,value:this.props.history}))},e}(r().Component);var G=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).history=function(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,o=void 0===r?["/"]:r,i=e.initialIndex,a=void 0===i?0:i,c=e.keyLength,u=void 0===c?6:c,f=x();function l(t){s(m,t),m.length=m.entries.length,f.notifyListeners(m.location,m.action)}function p(){return Math.random().toString(36).substr(2,u)}var h=D(a,0,o.length-1),d=o.map((function(t){return E(t,void 0,"string"==typeof t?p():t.key||p())})),y=P;function v(t){var e=D(m.index+t,0,m.entries.length-1),r=m.entries[e];f.confirmTransitionTo(r,"POP",n,(function(t){t?l({action:"POP",location:r,index:e}):l()}))}var m={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:y,push:function(t,e){var r="PUSH",o=E(t,e,p(),m.location);f.confirmTransitionTo(o,r,n,(function(t){if(t){var e=m.index+1,n=m.entries.slice(0);n.length>e?n.splice(e,n.length-e,o):n.push(o),l({action:r,location:o,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",o=E(t,e,p(),m.location);f.confirmTransitionTo(o,r,n,(function(t){t&&(m.entries[m.index]=o,l({action:r,location:o}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(t){var e=m.index+t;return e>=0&&e<m.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return m}(e.props),e}return a(e,t),e.prototype.render=function(){return r().createElement(q,{history:this.history,children:this.props.children})},e}(r().Component);var K=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(r().Component);var X={},Y=1e4,Z=0;function Q(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(X[t])return X[t];var e=N().compile(t);return Z<Y&&(X[t]=e,Z++),e}(t)(e,{pretty:!0})}function tt(t){var e=t.computedMatch,n=t.to,o=t.push,i=void 0!==o&&o;return r().createElement(J.Consumer,null,(function(t){t||m(!1);var o=t.history,a=t.staticContext,c=i?o.push:o.replace,u=E(e?"string"==typeof n?Q(n,e.params):s({},n,{pathname:Q(n.pathname,e.params)}):n);return a?(c(u),null):r().createElement(K,{onMount:function(){c(u)},onUpdate:function(t,e){var n,r,o=E(e.to);n=o,r=s({},u,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&d(n.state,r.state)||c(u)},to:n})}))}var et={},nt=1e4,rt=0;function ot(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=et[n]||(et[n]={});if(r[t])return r[t];var o=[],i={regexp:N()(t,o,e),keys:o};return rt<nt&&(r[t]=i,rt++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=l[n],t}),{})}}),null)}var it=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t=this;return r().createElement(J.Consumer,null,(function(e){e||m(!1);var n=t.props.location||e.location,o=s({},e,{location:n,match:t.props.computedMatch?t.props.computedMatch:t.props.path?ot(n.pathname,t.props):e.match}),i=t.props,a=i.children,c=i.component,u=i.render;return Array.isArray(a)&&function(t){return 0===r().Children.count(t)}(a)&&(a=null),r().createElement(J.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:c?r().createElement(c,o):u?u(o):null:"function"==typeof a?a(o):null)}))},e}(r().Component);function at(t){return"/"===t.charAt(0)?t:"/"+t}function ct(t,e){if(!t)return e;var n=at(t);return 0!==e.pathname.indexOf(n)?e:s({},e,{pathname:e.pathname.substr(n.length)})}function ut(t){return"string"==typeof t?t:P(t)}function st(t){return function(){m(!1)}}function ft(){}r().Component;var lt=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t=this;return r().createElement(J.Consumer,null,(function(e){e||m(!1);var n,o,i=t.props.location||e.location;return r().Children.forEach(t.props.children,(function(t){if(null==o&&r().isValidElement(t)){n=t;var a=t.props.path||t.props.from;o=a?ot(i.pathname,s({},t.props,{path:a})):e.match}})),o?r().cloneElement(n,{location:i,computedMatch:o}):null}))},e}(r().Component);var pt=r().useContext;function ht(){return pt(J).location}r().Component;r().Component;var dt=function(t,e){return"function"==typeof t?t(e):t},yt=function(t,e){return"string"==typeof t?E(t,null,null,e):t},vt=function(t){return t},mt=r().forwardRef;void 0===mt&&(mt=vt);var gt=mt((function(t,e){var n=t.innerRef,o=t.navigate,i=t.onClick,a=F(t,["innerRef","navigate","onClick"]),c=a.target,u=s({},a,{onClick:function(t){try{i&&i(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||c&&"_self"!==c||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),o())}});return u.ref=vt!==mt&&e||n,r().createElement("a",u)}));var bt=mt((function(t,e){var n=t.component,o=void 0===n?gt:n,i=t.replace,a=t.to,c=t.innerRef,u=F(t,["component","replace","to","innerRef"]);return r().createElement(J.Consumer,null,(function(t){t||m(!1);var n=t.history,f=yt(dt(a,t.location),t.location),l=f?n.createHref(f):"",p=s({},u,{href:l,navigate:function(){var e=dt(a,t.location),r=P(t.location)===P(yt(e));(i||r?n.replace:n.push)(e)}});return vt!==mt?p.ref=e||c:p.innerRef=c,r().createElement(o,p)}))})),Ot=function(t){return t},wt=r().forwardRef;void 0===wt&&(wt=Ot);wt((function(t,e){var n=t["aria-current"],o=void 0===n?"page":n,i=t.activeClassName,a=void 0===i?"active":i,c=t.activeStyle,u=t.className,f=t.exact,l=t.isActive,p=t.location,h=t.sensitive,d=t.strict,y=t.style,v=t.to,g=t.innerRef,b=F(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r().createElement(J.Consumer,null,(function(t){t||m(!1);var n=p||t.location,i=yt(dt(v,n),n),O=i.pathname,w=O&&O.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=w?ot(n.pathname,{path:w,exact:f,sensitive:h,strict:d}):null,E=!!(l?l(P,n):P),x="function"==typeof u?u(E):u,j="function"==typeof y?y(E):y;E&&(x=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(x,a),j=s({},j,c));var S=s({"aria-current":E&&o||null,className:x,style:j,to:i},b);return Ot!==wt?S.ref=e||g:S.innerRef=g,r().createElement(bt,S)}))}));function Pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Et(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 xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Et(Object(n),!0).forEach((function(e){Pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var jt={handle:"",label:"",render:function(){return null},icon:function(){return null},isEnabled:!0},St=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jt;return{reducers:{apps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"REGISTER_APP":return xt(Pt({},n.handle,xt(xt({},t),{},{handle:n.handle},n.config)),e);case"UNREGISTER_APP":return delete e[n.handle],xt({},e);default:return e}}},actions:{registerApp:function(){return{type:"REGISTER_APP",handle:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",config:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}},unregisterApp:function(){return{type:"UNREGISTER_APP",handle:arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}}}}};function Ct(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 At(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){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ct(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(t,e):void 0}}(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 Tt(t){return Tt="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},Tt(t)}var _t=function(t,e){return Tt(t)===Tt(e)&&("string"==typeof t||"number"==typeof t?t===e:JSON.stringify(t)===JSON.stringify(e))},Rt=function(t,e,n){return"boolean"==typeof t?t:"function"==typeof t?t(e,n):"string"==typeof t?!_t(e[t],n[t]):!!Array.isArray(t)&&t.some((function(t){return!_t(e[t],n[t])}))};function kt(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 Lt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach((function(e){Pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ut={exports:{}};const $t=(t,e)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");return e=Object.assign({pascalCase:!1},e),0===(t=Array.isArray(t)?t.map((t=>t.trim())).filter((t=>t.length)).join("-"):t.trim()).length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=(t=>{let e=!1,n=!1,r=!1;for(let o=0;o<t.length;o++){const i=t[o];e&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(t=t.slice(0,o-1)+"-"+t.slice(o-1),r=n,n=!1,e=!0):(e=i.toLowerCase()===i&&i.toUpperCase()!==i,r=n,n=i.toUpperCase()===i&&i.toLowerCase()!==i)}return t})(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((t,e)=>e.toUpperCase())).replace(/\d+(\w|$)/g,(t=>t.toUpperCase())),n=t,e.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n);var n};Ut.exports=$t,Ut.exports.default=$t;var Mt=Ut.exports,Dt=function(t,e,n){return Object.entries(n).map((function(n){var r=At(n,1)[0];if(!e[r]){var o="SET_".concat(r.toUpperCase()),i=Mt("set_".concat(r));t[i]=function(t){return{type:o,value:t}}}})),t},It=function(t,e){return Object.keys(t).length||Object.keys(e).length?(Object.entries(e).map((function(e){var n=At(e,2),r=n[0],o=n[1];t[r]||(t[r]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,e=arguments.length>1?arguments[1]:void 0;return e.type==="SET_".concat(r.toUpperCase())?e.value:t})})),(0,o.combineReducers)(t)):function(t){return t}},Nt=function(t,e){var n="undefined"==typeof window?null:window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;return(n?n({name:t}):o.compose)((0,o.applyMiddleware)(Ft(e)))},Ft=function(t){var e=t.before,n=t.after;return function(t){return function(r){return function(o){e&&e[o.type]&&e[o.type](o,t);var i=r(o);return n&&n[o.type]&&n[o.type](o,t),i}}}},Bt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};function Ht(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 Wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(n),!0).forEach((function(e){Pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Vt=function(){var t={};return{registerStore:function(e,n){var r=n.state,i=void 0===r?{}:r,a=n.cache,c=void 0===a?[]:a,u=n.actions,s=void 0===u?{}:u,f=n.reducers,l=void 0===f?{}:f,p=n.selectors,h=void 0===p?{}:p,d=n.effects,y=void 0===d?{}:d;if(!e)throw new Error("Missing key required for registerStore.");if(t[e])throw new Error("A store with the key '".concat(e,"' already exists."));var v,m,g,b=function(t,e,n){if(n.length&&"undefined"!=typeof localStorage){var r=localStorage.getItem(t);if(r){var o=JSON.parse(r),i={};return n.map((function(t){o[t]&&(i[t]=o[t])})),Lt(Lt({},e),i)}}return e}(e,i,c);t[e]={actions:Dt(Wt({},s),l,b),store:(0,o.createStore)(It(Wt({},l),b),b,Nt(e,y))},t[e].selectors=function(t,e){var n={},r=e.getState();return Object.entries(r).map((function(e){var n=At(e,1)[0],r=Mt("get_".concat(n));t[r]||(t[r]=function(t){return t[n]})})),Object.entries(t).map((function(t){var r=At(t,2),o=r[0],i=r[1];n[o]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i.apply(void 0,[e.getState()].concat(n))}})),n}(Wt({},h),t[e].store),v=e,m=t[e].store,(g=c).length&&"undefined"!=typeof localStorage&&m.subscribe((function(){var t=m.getState(),e={};g.map((function(n){e[n]=t[n]})),localStorage.setItem(v,JSON.stringify(e))}))},useStore:function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t[n].store,i=o.getState(),a=(0,e.useRef)(i),c=At((0,e.useState)(i),2),u=c[0],s=c[1];return(0,e.useEffect)((function(){return s(o.getState()),o.subscribe((function(){var t=o.getState();Rt(r,a.current,t)&&s(Wt({},t)),a.current=t}))}),[]),u},getStore:function(e){return t[e].store},getDispatch:function(e){var n=t[e],r=n.actions,o=n.store,i={};return Object.entries(r).map((function(t){var e=At(t,2),n=e[0],r=e[1];i[n]=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new Promise((function(t){t(o.dispatch(r.apply(void 0,e)))}))}})),i},getSelectors:function(e){return t[e].selectors},getHooks:function(n){var r=t[n],i=r.actions,a=r.store;return function(t,n){var r=t.getState(),o={};return Object.keys(r).map((function(r){var i="use".concat(Bt(r));o[i]=function(){var o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=At((0,e.useState)(t.getState()[r]),2),a=i[0],c=i[1],u=(0,e.useRef)(t.getState()[r]);(0,e.useLayoutEffect)((function(){return c(t.getState()[r]),u.current=t.getState()[r],t.subscribe((function(){var e=t.getState();Rt(o,a,u.current)&&c(e[r]),u.current=e[r]}))}),[]);var s="set".concat(Bt(r)),f=n[s];return[a,f]}})),o}(a,(0,o.bindActionCreators)(i,a.dispatch))}}};function zt(){return zt=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},zt.apply(this,arguments)}function Jt(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function qt(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 Gt(t,e){return Gt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Gt(t,e)}function Kt(t){return Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Kt(t)}var Xt=["error","title","children","style"];function Yt(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 Zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(n),!0).forEach((function(e){Pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qt(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=Kt(t);if(e){var o=Kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Tt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}var te={},ee=function(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&&Gt(t,e)}(a,e.Component);var n,r,o,i=Qt(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).state={hasError:!1,error:null},e}return n=a,o=[{key:"getDerivedStateFromError",value:function(t){return{hasError:!0,error:t}}}],(r=[{key:"render",value:function(){var t=this.props,n=t.alternate,r=void 0===n?ne:n,o=t.children,i=this.state,a=i.hasError,c=i.error;return a?(0,e.createElement)(r,{error:c}):o}}])&&qt(n.prototype,r),o&&qt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}(),ne=function(t){var e=t.error,n=t.title,o=void 0===n?"There seems to be an error":n,i=t.children,a=t.style,c=void 0===a?{}:a,u=Jt(t,Xt),s=Zt(Zt({},c),{},{display:"flex",flexDirection:"column",flex:"1 1 auto",justifyContent:"center",alignItems:"center",padding:40,textAlign:"center",minHeight:0,maxHeight:"100%"});return r().createElement("div",zt({style:s},u),r().createElement("h1",{style:{marginBottom:20}},o),r().createElement("code",{style:{padding:10}},e.message),i)};te.Boundary=ee,te.Page=ne;var re=function(t){var e=t.children,n=t.error,o=t.errorBoundaryProps,i=void 0===o?{}:o,a=t.router,c=void 0===a?G:a,u=t.routerProps,s=void 0===u?{}:u;return r().createElement(te.Boundary,zt({alternate:n},i),r().createElement(c,s,e))},oe={handle:null,label:null,isAppRoot:!1},ie=(0,e.createContext)(oe),ae=function(){return(0,e.useContext)(ie)},ce=["root"];function ue(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 se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ue(Object(n),!0).forEach((function(e){Pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var fe=function(){return r().createElement("h1",{style:{margin:"auto"}},"Loading...")},le=function(t){var n,o=t.loading,i=t.error,a=void 0===i?de:i,c=t.apps,u=pt(z),s=ht(),f=(n=pt(J).match,n?n.params:{}).app;if((0,e.useEffect)((function(){if(c[f]&&"function"==typeof c[f].onMount)return c[f].onMount()}),[f]),!c[f])return u.go(-u.length),u.replace("/",{}),null;var l=c[f],p=l.label,h=void 0===p?"":p,d=l.root,y=l.lazyLoad,v=2>=s.pathname.split("/").length,m=se(se({},oe),{},{handle:f,baseURL:"/".concat(f),label:h,isAppRoot:v}),g=function(){return void 0===y||y};return r().createElement(ie.Provider,{value:m},r().createElement(te.Boundary,{alternate:a,key:f},g()&&r().createElement(e.Suspense,{fallback:r().createElement(o,null)},r().createElement(he,zt({root:d},m))),!g()&&r().createElement(he,zt({root:d},m))))},pe=function(){return r().createElement(ye,null,r().createElement("h1",null,"App Not Found"))},he=(0,e.memo)((function(t){var e=t.root,n=Jt(t,ce);return e?r().createElement(e,n):r().createElement(pe,null)})),de=function(t){var e=ae().label;return r().createElement(te.Page,zt({title:"There seems to be an issue with the ".concat(e," app.")},t))},ye=function(t){var e=t.children;return r().createElement("div",{style:{flex:"1 1 auto",minHeight:0,maxHeight:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},e)},ve={};ve.use=ae,ve.Content=function(t){var e=t.apps,n=void 0===e?{}:e,o=t.defaultApp,i=void 0===o?"home":o,a=t.loading,c=void 0===a?fe:a,u=ht().search;return Object.keys(n).length?r().createElement(lt,null,i&&r().createElement(it,{exact:!0,path:"/"},r().createElement(tt,{to:"/".concat(i).concat(u)})),r().createElement(it,{path:"/:app",render:function(){return r().createElement(le,{loading:c,apps:n})}})):(console.warn("App Core: You have no apps."),null)},window.FL=window.FL||{},FL.vendors=FL.vendors||{},FL.vendors.BBAppCore=t})()})();