"use strict";(self.webpackChunkalvanon_analytics_platform_frontend=self.webpackChunkalvanon_analytics_platform_frontend||[]).push([[5052],{69733(e,t,n){n.r(t),n.d(t,{Provider:()=>L,ReactReduxContext:()=>f,batch:()=>u.unstable_batchedUpdates,connect:()=>H,createDispatchHook:()=>V,createSelectorHook:()=>y,createStoreHook:()=>z,shallowEqual:()=>j,useDispatch:()=>G,useSelector:()=>g,useStore:()=>I});var r=n(19888),o=n(69242),u=n(40961);let s=function(e){e()};const c=()=>s;var a=n(96540);const i=Symbol.for("react-redux-context"),p="undefined"!=typeof globalThis?globalThis:{};function l(){var e;if(!a.createContext)return{};const t=null!=(e=p[i])?e:p[i]=new Map;let n=t.get(a.createContext);return n||(n=a.createContext(null),t.set(a.createContext,n)),n}const f=l();function d(e=f){return function(){return(0,a.useContext)(e)}}const b=d(),m=()=>{throw new Error("uSES not initialized!")};let h=m;const S=(e,t)=>e===t;function y(e=f){const t=e===f?b:d(e);return function(e,n={}){const{equalityFn:r=S,stabilityCheck:o,noopCheck:u}="function"==typeof n?{equalityFn:n}:n,{store:s,subscription:c,getServerState:i,stabilityCheck:p,noopCheck:l}=t(),f=((0,a.useRef)(!0),(0,a.useCallback)({[e.name]:t=>e(t)}[e.name],[e,p,o])),d=h(c.addNestedSub,s.getState,i||s.getState,f,r);return(0,a.useDebugValue)(d),d}}const g=y();var P=n(58168),w=n(98587),v=n(4146),C=n.n(v),x=n(44363);const O=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function E(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:u,areStatePropsEqual:s}){let c,a,i,p,l,f=!1;return function(d,b){return f?function(f,d){const b=!u(d,a),m=!o(f,c,d,a);return c=f,a=d,b&&m?(i=e(c,a),t.dependsOnOwnProps&&(p=t(r,a)),l=n(i,p,a),l):b?(e.dependsOnOwnProps&&(i=e(c,a)),t.dependsOnOwnProps&&(p=t(r,a)),l=n(i,p,a),l):m?function(){const t=e(c,a),r=!s(t,i);return i=t,r&&(l=n(i,p,a)),l}():l}(d,b):(c=d,a=b,i=e(c,a),p=t(r,a),l=n(i,p,a),f=!0,l)}}function M(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function k(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function R(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=k(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=k(o),o=r(t,n)),o},r}}function N(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function T(e,t,n){return(0,P.A)({},n,e,t)}const q={notify(){},get:()=>[]};function _(e,t){let n,r=q,o=0,u=!1;function s(){p.onStateChange&&p.onStateChange()}function a(){o++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=function(){const e=c();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function i(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=q)}const p={addNestedSub:function(e){a();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),i())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:s,isSubscribed:function(){return u},trySubscribe:function(){u||(u=!0,a())},tryUnsubscribe:function(){u&&(u=!1,i())},getListeners:()=>r};return p}const B="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function D(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function j(e,t){if(D(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r({}))}(e),b=function(e){return e&&"object"==typeof e?M(t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t)):e?"function"==typeof e?R(e):N(e,"mapDispatchToProps"):M(e=>({dispatch:e}))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,u=!1;return function(t,n,s){const c=e(t,n,s);return u?r(c,o)||(o=c):(u=!0,o=c),o}}}(e):N(e,"mergeProps"):()=>T}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:b,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:u,areMergedPropsEqual:c};function p(t){const[n,o,u]=a.useMemo(()=>{const{reactReduxForwardedRef:e}=t,n=(0,w.A)(t,A);return[t.context,e,n]},[t]),s=a.useMemo(()=>n&&n.Consumer&&(0,x.isContextConsumer)(a.createElement(n.Consumer,null))?n:l,[n,l]),c=a.useContext(s),i=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),p=Boolean(c)&&Boolean(c.store),f=i?t.store:c.store,d=p?c.getServerState:f.getState,b=a.useMemo(()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,u=(0,w.A)(t,O);return E(n(e,u),r(e,u),o(e,u),e,u)}(f.dispatch,r),[f]),[m,S]=a.useMemo(()=>{if(!h)return U;const e=_(f,i?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,i,c]),y=a.useMemo(()=>i?c:(0,P.A)({},c,{subscription:m}),[i,c,m]),g=a.useRef(),v=a.useRef(u),C=a.useRef(),M=a.useRef(!1),k=(a.useRef(!1),a.useRef(!1)),R=a.useRef();B(()=>(k.current=!0,()=>{k.current=!1}),[]);const N=a.useMemo(()=>()=>C.current&&u===v.current?C.current:b(f.getState(),u),[f,u]),T=a.useMemo(()=>e=>m?function(e,t,n,r,o,u,s,c,a,i,p){if(!e)return()=>{};let l=!1,f=null;const d=()=>{if(l||!c.current)return;const e=t.getState();let n,d;try{n=r(e,o.current)}catch(e){d=e,f=e}d||(f=null),n===u.current?s.current||i():(u.current=n,a.current=n,s.current=!0,p())};return n.onStateChange=d,n.trySubscribe(),d(),()=>{if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,f,m,b,v,g,M,k,C,S,e):()=>{},[m]);var q,D;let j;q=W,D=[v,g,M,u,C,S],B(()=>q(...D),undefined);try{j=F(T,N,d?()=>b(d(),u):N)}catch(e){throw R.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${R.current.stack}\n\n`),e}B(()=>{R.current=void 0,C.current=void 0,g.current=j});const $=a.useMemo(()=>a.createElement(e,(0,P.A)({},j,{ref:o})),[o,e,j]);return a.useMemo(()=>h?a.createElement(s.Provider,{value:y},$):$,[s,$,y])}const f=a.memo(p);if(f.WrappedComponent=e,f.displayName=p.displayName=n,i){const t=a.forwardRef(function(e,t){return a.createElement(f,(0,P.A)({},e,{reactReduxForwardedRef:t}))});return t.displayName=n,t.WrappedComponent=e,C()(t,e)}return C()(f,e)}},L=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:u="once"}){const s=a.useMemo(()=>{const t=_(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:u}},[e,r,o,u]),c=a.useMemo(()=>e.getState(),[e]);B(()=>{const{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[s,c]);const i=t||f;return a.createElement(i.Provider,{value:s},n)};function z(e=f){const t=e===f?b:d(e);return function(){const{store:e}=t();return e}}const I=z();function V(e=f){const t=e===f?I:z(e);return function(){return t().dispatch}}const G=V();var J,K;J=o.useSyncExternalStoreWithSelector,h=J,(e=>{F=e})(r.useSyncExternalStore),K=u.unstable_batchedUpdates,s=K}}]);