From 6424d7842d274104e23dfd11248b2d24b0891f85 Mon Sep 17 00:00:00 2001 From: wracce Date: Sun, 25 Feb 2024 10:34:59 +0000 Subject: [PATCH] deploy: d865534d1a2b57495d62eab0b372d9752d4bc6eb --- .../{index-DLA1dw8M.js => index-d55TJhxE.js} | 34 +++++++++---------- index.html | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) rename assets/{index-DLA1dw8M.js => index-d55TJhxE.js} (75%) diff --git a/assets/index-DLA1dw8M.js b/assets/index-d55TJhxE.js similarity index 75% rename from assets/index-DLA1dw8M.js rename to assets/index-d55TJhxE.js index 1635483..be64ba9 100644 --- a/assets/index-DLA1dw8M.js +++ b/assets/index-d55TJhxE.js @@ -1,4 +1,4 @@ -var uy=Object.defineProperty;var sy=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ka=(e,t,n)=>(sy(e,typeof t!="symbol"?t+"":t,n),n);function gp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Yl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var wp={exports:{}},Gl={},Sp={exports:{}},ne={};/** +var uy=Object.defineProperty;var sy=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ka=(e,t,n)=>(sy(e,typeof t!="symbol"?t+"":t,n),n);function gp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Yl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Sp={exports:{}},Gl={},wp={exports:{}},ne={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var uy=Object.defineProperty;var sy=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ci=Symbol.for("react.element"),fy=Symbol.for("react.portal"),dy=Symbol.for("react.fragment"),py=Symbol.for("react.strict_mode"),hy=Symbol.for("react.profiler"),my=Symbol.for("react.provider"),vy=Symbol.for("react.context"),yy=Symbol.for("react.forward_ref"),gy=Symbol.for("react.suspense"),wy=Symbol.for("react.memo"),Sy=Symbol.for("react.lazy"),nf=Symbol.iterator;function _y(e){return e===null||typeof e!="object"?null:(e=nf&&e[nf]||e["@@iterator"],typeof e=="function"?e:null)}var _p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ep=Object.assign,Cp={};function qr(e,t,n){this.props=e,this.context=t,this.refs=Cp,this.updater=n||_p}qr.prototype.isReactComponent={};qr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xp(){}xp.prototype=qr.prototype;function Os(e,t,n){this.props=e,this.context=t,this.refs=Cp,this.updater=n||_p}var Ps=Os.prototype=new xp;Ps.constructor=Os;Ep(Ps,qr.prototype);Ps.isPureReactComponent=!0;var rf=Array.isArray,Rp=Object.prototype.hasOwnProperty,Ts={current:null},kp={key:!0,ref:!0,__self:!0,__source:!0};function Op(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Rp.call(t,r)&&!kp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1t in e?uy(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ky=N,Oy=Symbol.for("react.element"),Py=Symbol.for("react.fragment"),Ty=Object.prototype.hasOwnProperty,My=ky.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ny={key:!0,ref:!0,__self:!0,__source:!0};function Pp(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Ty.call(t,r)&&!Ny.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Oy,type:e,key:i,ref:l,props:o,_owner:My.current}}Gl.Fragment=Py;Gl.jsx=Pp;Gl.jsxs=Pp;wp.exports=Gl;var j=wp.exports,Tp={exports:{}},Mp={};/** + */var ky=N,Oy=Symbol.for("react.element"),Py=Symbol.for("react.fragment"),Ty=Object.prototype.hasOwnProperty,My=ky.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ny={key:!0,ref:!0,__self:!0,__source:!0};function Pp(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Ty.call(t,r)&&!Ny.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Oy,type:e,key:i,ref:l,props:o,_owner:My.current}}Gl.Fragment=Py;Gl.jsx=Pp;Gl.jsxs=Pp;Sp.exports=Gl;var j=Sp.exports,Tp={exports:{}},Mp={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -22,7 +22,7 @@ var uy=Object.defineProperty;var sy=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fi=N;function Ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dy=typeof Object.is=="function"?Object.is:Ay,Ly=fi.useSyncExternalStore,jy=fi.useRef,Iy=fi.useEffect,by=fi.useMemo,Fy=fi.useDebugValue;Mp.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=jy(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=by(function(){function u(v){if(!s){if(s=!0,c=v,v=r(v),o!==void 0&&l.hasValue){var g=l.value;if(o(g,v))return h=g}return h=v}if(g=h,Dy(c,v))return g;var S=r(v);return o!==void 0&&o(g,S)?g:(c=v,h=S)}var s=!1,c,h,d=n===void 0?null:n;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,n,r,o]);var a=Ly(e,i[0],i[1]);return Iy(function(){l.hasValue=!0,l.value=a},[a]),Fy(a),a};Tp.exports=Mp;var zy=Tp.exports,nt="default"in pu?Ns:pu,lf=Symbol.for("react-redux-context"),af=typeof globalThis<"u"?globalThis:{};function Uy(){if(!nt.createContext)return{};const e=af[lf]??(af[lf]=new Map);let t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var Cn=Uy(),$y=()=>{throw new Error("uSES not initialized!")};function As(e=Cn){return function(){return nt.useContext(e)}}var Np=As(),Ap=$y,By=e=>{Ap=e},Wy=(e,t)=>e===t;function Hy(e=Cn){const t=e===Cn?Np:As(e),n=(r,o={})=>{const{equalityFn:i=Wy,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:u,getServerState:s,stabilityCheck:c,identityFunctionCheck:h}=t();nt.useRef(!0);const d=nt.useCallback({[r.name](g){return r(g)}}[r.name],[r,c,l.stabilityCheck]),v=Ap(u.addNestedSub,a.getState,s||a.getState,d,i);return nt.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var Dp=Hy();function Lp(e){e()}function Qy(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Lp(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var uf={notify(){},get:()=>[]};function Vy(e,t){let n,r=uf,o=0,i=!1;function l(S){c();const _=r.subscribe(S);let m=!1;return()=>{m||(m=!0,_(),h())}}function a(){r.notify()}function u(){g.onStateChange&&g.onStateChange()}function s(){return i}function c(){o++,n||(n=t?t.addNestedSub(u):e.subscribe(u),r=Qy())}function h(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=uf)}function d(){i||(i=!0,c())}function v(){i&&(i=!1,h())}const g={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:s,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>r};return g}var qy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ky=qy?nt.useLayoutEffect:nt.useEffect;function sf(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Eo(e,t){if(sf(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o{const s=Vy(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),a=nt.useMemo(()=>e.getState(),[e]);Ky(()=>{const{subscription:s}=l;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),a!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[l,a]);const u=t||Cn;return nt.createElement(u.Provider,{value:l},n)}var Gy=Yy;function jp(e=Cn){const t=e===Cn?Np:As(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Ip=jp();function Xy(e=Cn){const t=e===Cn?Ip:jp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var bp=Xy(),Jy=Lp;By(zy.useSyncExternalStoreWithSelector);var Fp={exports:{}},at={},zp={exports:{}},Up={};/** + */var fi=N;function Ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dy=typeof Object.is=="function"?Object.is:Ay,Ly=fi.useSyncExternalStore,jy=fi.useRef,Iy=fi.useEffect,by=fi.useMemo,Fy=fi.useDebugValue;Mp.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=jy(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=by(function(){function u(v){if(!s){if(s=!0,c=v,v=r(v),o!==void 0&&l.hasValue){var g=l.value;if(o(g,v))return h=g}return h=v}if(g=h,Dy(c,v))return g;var w=r(v);return o!==void 0&&o(g,w)?g:(c=v,h=w)}var s=!1,c,h,d=n===void 0?null:n;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,n,r,o]);var a=Ly(e,i[0],i[1]);return Iy(function(){l.hasValue=!0,l.value=a},[a]),Fy(a),a};Tp.exports=Mp;var zy=Tp.exports,nt="default"in pu?Ns:pu,lf=Symbol.for("react-redux-context"),af=typeof globalThis<"u"?globalThis:{};function Uy(){if(!nt.createContext)return{};const e=af[lf]??(af[lf]=new Map);let t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var Cn=Uy(),$y=()=>{throw new Error("uSES not initialized!")};function As(e=Cn){return function(){return nt.useContext(e)}}var Np=As(),Ap=$y,By=e=>{Ap=e},Wy=(e,t)=>e===t;function Hy(e=Cn){const t=e===Cn?Np:As(e),n=(r,o={})=>{const{equalityFn:i=Wy,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:u,getServerState:s,stabilityCheck:c,identityFunctionCheck:h}=t();nt.useRef(!0);const d=nt.useCallback({[r.name](g){return r(g)}}[r.name],[r,c,l.stabilityCheck]),v=Ap(u.addNestedSub,a.getState,s||a.getState,d,i);return nt.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var Dp=Hy();function Lp(e){e()}function Qy(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Lp(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var uf={notify(){},get:()=>[]};function Vy(e,t){let n,r=uf,o=0,i=!1;function l(w){c();const _=r.subscribe(w);let m=!1;return()=>{m||(m=!0,_(),h())}}function a(){r.notify()}function u(){g.onStateChange&&g.onStateChange()}function s(){return i}function c(){o++,n||(n=t?t.addNestedSub(u):e.subscribe(u),r=Qy())}function h(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=uf)}function d(){i||(i=!0,c())}function v(){i&&(i=!1,h())}const g={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:s,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>r};return g}var qy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ky=qy?nt.useLayoutEffect:nt.useEffect;function sf(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Eo(e,t){if(sf(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o{const s=Vy(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),a=nt.useMemo(()=>e.getState(),[e]);Ky(()=>{const{subscription:s}=l;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),a!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[l,a]);const u=t||Cn;return nt.createElement(u.Provider,{value:l},n)}var Gy=Yy;function jp(e=Cn){const t=e===Cn?Np:As(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Ip=jp();function Xy(e=Cn){const t=e===Cn?Ip:jp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var bp=Xy(),Jy=Lp;By(zy.useSyncExternalStoreWithSelector);var Fp={exports:{}},at={},zp={exports:{}},Up={};/** * @license React * scheduler.production.min.js * @@ -30,7 +30,7 @@ var uy=Object.defineProperty;var sy=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(T,z){var I=T.length;T.push(z);e:for(;0>>1,V=T[W];if(0>>1;Wo(Ze,I))Teo(At,Ze)?(T[W]=At,T[Te]=I,W=Te):(T[W]=Ze,T[ve]=I,W=ve);else if(Teo(At,I))T[W]=At,T[Te]=I,W=Te;else break e}}return z}function o(T,z){var I=T.sortIndex-z.sortIndex;return I!==0?I:T.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,h=null,d=3,v=!1,g=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(T){for(var z=n(s);z!==null;){if(z.callback===null)r(s);else if(z.startTime<=T)r(s),z.sortIndex=z.expirationTime,t(u,z);else break;z=n(s)}}function y(T){if(S=!1,f(T),!g)if(n(u)!==null)g=!0,q(E);else{var z=n(s);z!==null&&k(y,z.startTime-T)}}function E(T,z){g=!1,S&&(S=!1,m(x),x=-1),v=!0;var I=d;try{for(f(z),h=n(u);h!==null&&(!(h.expirationTime>z)||T&&!D());){var W=h.callback;if(typeof W=="function"){h.callback=null,d=h.priorityLevel;var V=W(h.expirationTime<=z);z=e.unstable_now(),typeof V=="function"?h.callback=V:h===n(u)&&r(u),f(z)}else r(u);h=n(u)}if(h!==null)var J=!0;else{var ve=n(s);ve!==null&&k(y,ve.startTime-z),J=!1}return J}finally{h=null,d=I,v=!1}}var w=!1,C=null,x=-1,O=5,M=-1;function D(){return!(e.unstable_now()-MT||125W?(T.sortIndex=I,t(s,T),n(u)===null&&T===n(s)&&(S?(m(x),x=-1):S=!0,k(y,I-W))):(T.sortIndex=V,t(u,T),g||v||(g=!0,q(E))),T},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(T){var z=d;return function(){var I=d;d=z;try{return T.apply(this,arguments)}finally{d=I}}}})(Up);zp.exports=Up;var Zy=zp.exports;/** + */(function(e){function t(T,z){var I=T.length;T.push(z);e:for(;0>>1,V=T[W];if(0>>1;Wo(Ze,I))Teo(At,Ze)?(T[W]=At,T[Te]=I,W=Te):(T[W]=Ze,T[ve]=I,W=ve);else if(Teo(At,I))T[W]=At,T[Te]=I,W=Te;else break e}}return z}function o(T,z){var I=T.sortIndex-z.sortIndex;return I!==0?I:T.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,h=null,d=3,v=!1,g=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(T){for(var z=n(s);z!==null;){if(z.callback===null)r(s);else if(z.startTime<=T)r(s),z.sortIndex=z.expirationTime,t(u,z);else break;z=n(s)}}function y(T){if(w=!1,f(T),!g)if(n(u)!==null)g=!0,q(E);else{var z=n(s);z!==null&&k(y,z.startTime-T)}}function E(T,z){g=!1,w&&(w=!1,m(x),x=-1),v=!0;var I=d;try{for(f(z),h=n(u);h!==null&&(!(h.expirationTime>z)||T&&!D());){var W=h.callback;if(typeof W=="function"){h.callback=null,d=h.priorityLevel;var V=W(h.expirationTime<=z);z=e.unstable_now(),typeof V=="function"?h.callback=V:h===n(u)&&r(u),f(z)}else r(u);h=n(u)}if(h!==null)var J=!0;else{var ve=n(s);ve!==null&&k(y,ve.startTime-z),J=!1}return J}finally{h=null,d=I,v=!1}}var S=!1,C=null,x=-1,O=5,M=-1;function D(){return!(e.unstable_now()-MT||125W?(T.sortIndex=I,t(s,T),n(u)===null&&T===n(s)&&(w?(m(x),x=-1):w=!0,k(y,I-W))):(T.sortIndex=V,t(u,T),g||v||(g=!0,q(E))),T},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(T){var z=d;return function(){var I=d;d=z;try{return T.apply(this,arguments)}finally{d=I}}}})(Up);zp.exports=Up;var Zy=zp.exports;/** * @license React * react-dom.production.min.js * @@ -38,14 +38,14 @@ var uy=Object.defineProperty;var sy=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $p=N,it=Zy;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hu=Object.prototype.hasOwnProperty,eg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cf={},ff={};function tg(e){return hu.call(ff,e)?!0:hu.call(cf,e)?!1:eg.test(e)?ff[e]=!0:(cf[e]=!0,!1)}function ng(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rg(e,t,n,r){if(t===null||typeof t>"u"||ng(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){je[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ds=/[\-:]([a-z])/g;function Ls(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ds,Ls);je[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ds,Ls);je[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ds,Ls);je[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function js(e,t,n,r){var o=je.hasOwnProperty(t)?je[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hu=Object.prototype.hasOwnProperty,eg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cf={},ff={};function tg(e){return hu.call(ff,e)?!0:hu.call(cf,e)?!1:eg.test(e)?ff[e]=!0:(cf[e]=!0,!1)}function ng(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rg(e,t,n,r){if(t===null||typeof t>"u"||ng(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){je[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ds=/[\-:]([a-z])/g;function Ls(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ds,Ls);je[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ds,Ls);je[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ds,Ls);je[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function js(e,t,n,r){var o=je.hasOwnProperty(t)?je[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var u=` -`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Ta=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yo(e):""}function og(e){switch(e.tag){case 5:return yo(e.type);case 16:return yo("Lazy");case 13:return yo("Suspense");case 19:return yo("SuspenseList");case 0:case 2:case 15:return e=Ma(e.type,!1),e;case 11:return e=Ma(e.type.render,!1),e;case 1:return e=Ma(e.type,!0),e;default:return""}}function gu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hr:return"Fragment";case pr:return"Portal";case mu:return"Profiler";case Is:return"StrictMode";case vu:return"Suspense";case yu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hp:return(e.displayName||"Context")+".Consumer";case Wp:return(e._context.displayName||"Context")+".Provider";case bs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fs:return t=e.displayName||null,t!==null?t:gu(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return gu(e(t))}catch{}}return null}function ig(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gu(t);case 8:return t===Is?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lg(e){var t=Vp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Li(e){e._valueTracker||(e._valueTracker=lg(e))}function qp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function wu(e,t){var n=t.checked;return me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Kp(e,t){t=t.checked,t!=null&&js(e,"checked",t,!1)}function Su(e,t){Kp(e,t);var n=xn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_u(e,t.type,n):t.hasOwnProperty("defaultValue")&&_u(e,t.type,xn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _u(e,t,n){(t!=="number"||ml(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var go=Array.isArray;function Tr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ag=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(e){ag.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function Jp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Co.hasOwnProperty(e)&&Co[e]?(""+t).trim():t+"px"}function Zp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ug=me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xu(e,t){if(t){if(ug[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Ru(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ku=null;function zs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ou=null,Mr=null,Nr=null;function yf(e){if(e=hi(e)){if(typeof Ou!="function")throw Error(b(280));var t=e.stateNode;t&&(t=ta(t),Ou(e.stateNode,e.type,t))}}function eh(e){Mr?Nr?Nr.push(e):Nr=[e]:Mr=e}function th(){if(Mr){var e=Mr,t=Nr;if(Nr=Mr=null,yf(e),t)for(e=0;e>>=0,e===0?32:31-(wg(e)/Sg|0)|0}var Ii=64,bi=4194304;function wo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function wl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=wo(a):(i&=l,i!==0&&(r=wo(i)))}else l=n&~o,l!==0?r=wo(l):i!==0&&(r=wo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function xg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ro),kf=" ",Of=!1;function _h(e,t){switch(e){case"keyup":return Jg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mr=!1;function e0(e,t){switch(e){case"compositionend":return Eh(t);case"keypress":return t.which!==32?null:(Of=!0,kf);case"textInput":return e=t.data,e===kf&&Of?null:e;default:return null}}function t0(e,t){if(mr)return e==="compositionend"||!qs&&_h(e,t)?(e=wh(),il=Hs=fn=null,mr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nf(n)}}function kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oh(){for(var e=window,t=ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ml(e.document)}return t}function Ks(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function c0(e){var t=Oh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kh(n.ownerDocument.documentElement,n)){if(r!==null&&Ks(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Af(n,i);var l=Af(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,vr=null,Du=null,Oo=null,Lu=!1;function Df(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lu||vr==null||vr!==ml(r)||(r=vr,"selectionStart"in r&&Ks(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Oo&&Ho(Oo,r)||(Oo=r,r=El(Du,"onSelect"),0wr||(e.current=Uu[wr],Uu[wr]=null,wr--)}function ue(e,t){wr++,Uu[wr]=e.current,e.current=t}var Rn={},$e=Tn(Rn),Ye=Tn(!1),qn=Rn;function Fr(e,t){var n=e.type.contextTypes;if(!n)return Rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function xl(){ce(Ye),ce($e)}function Uf(e,t,n){if($e.current!==Rn)throw Error(b(168));ue($e,t),ue(Ye,n)}function Ih(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,ig(e)||"Unknown",o));return me({},n,r)}function Rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rn,qn=$e.current,ue($e,e),ue(Ye,Ye.current),!0}function $f(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Ih(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,ce(Ye),ce($e),ue($e,e)):ce(Ye),ue(Ye,n)}var $t=null,na=!1,Ha=!1;function bh(e){$t===null?$t=[e]:$t.push(e)}function E0(e){na=!0,bh(e)}function Mn(){if(!Ha&&$t!==null){Ha=!0;var e=0,t=ie;try{var n=$t;for(ie=1;e>=l,o-=l,Bt=1<<32-xt(t)+o|n<x?(O=C,C=null):O=C.sibling;var M=d(m,C,f[x],y);if(M===null){C===null&&(C=O);break}e&&C&&M.alternate===null&&t(m,C),p=i(M,p,x),w===null?E=M:w.sibling=M,w=M,C=O}if(x===f.length)return n(m,C),de&&Ln(m,x),E;if(C===null){for(;xx?(O=C,C=null):O=C.sibling;var D=d(m,C,M.value,y);if(D===null){C===null&&(C=O);break}e&&C&&D.alternate===null&&t(m,C),p=i(D,p,x),w===null?E=D:w.sibling=D,w=D,C=O}if(M.done)return n(m,C),de&&Ln(m,x),E;if(C===null){for(;!M.done;x++,M=f.next())M=h(m,M.value,y),M!==null&&(p=i(M,p,x),w===null?E=M:w.sibling=M,w=M);return de&&Ln(m,x),E}for(C=r(m,C);!M.done;x++,M=f.next())M=v(C,m,x,M.value,y),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?x:M.key),p=i(M,p,x),w===null?E=M:w.sibling=M,w=M);return e&&C.forEach(function(F){return t(m,F)}),de&&Ln(m,x),E}function _(m,p,f,y){if(typeof f=="object"&&f!==null&&f.type===hr&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Di:e:{for(var E=f.key,w=p;w!==null;){if(w.key===E){if(E=f.type,E===hr){if(w.tag===7){n(m,w.sibling),p=o(w,f.props.children),p.return=m,m=p;break e}}else if(w.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ln&&Kf(E)===w.type){n(m,w.sibling),p=o(w,f.props),p.ref=lo(m,w,f),p.return=m,m=p;break e}n(m,w);break}else t(m,w);w=w.sibling}f.type===hr?(p=Qn(f.props.children,m.mode,y,f.key),p.return=m,m=p):(y=pl(f.type,f.key,f.props,null,m.mode,y),y.ref=lo(m,p,f),y.return=m,m=y)}return l(m);case pr:e:{for(w=f.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===f.containerInfo&&p.stateNode.implementation===f.implementation){n(m,p.sibling),p=o(p,f.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Ja(f,m.mode,y),p.return=m,m=p}return l(m);case ln:return w=f._init,_(m,p,w(f._payload),y)}if(go(f))return g(m,p,f,y);if(to(f))return S(m,p,f,y);Hi(m,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,f),p.return=m,m=p):(n(m,p),p=Xa(f,m.mode,y),p.return=m,m=p),l(m)):n(m,p)}return _}var Ur=Qh(!0),Vh=Qh(!1),mi={},Ft=Tn(mi),Ko=Tn(mi),Yo=Tn(mi);function Un(e){if(e===mi)throw Error(b(174));return e}function rc(e,t){switch(ue(Yo,t),ue(Ko,e),ue(Ft,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cu(t,e)}ce(Ft),ue(Ft,t)}function $r(){ce(Ft),ce(Ko),ce(Yo)}function qh(e){Un(Yo.current);var t=Un(Ft.current),n=Cu(t,e.type);t!==n&&(ue(Ko,e),ue(Ft,n))}function oc(e){Ko.current===e&&(ce(Ft),ce(Ko))}var pe=Tn(0);function Nl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qa=[];function ic(){for(var e=0;en?n:4,e(!0);var r=Va.transition;Va.transition={};try{e(!1),t()}finally{ie=n,Va.transition=r}}function sm(){return yt().memoizedState}function k0(e,t,n){var r=Sn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cm(e))fm(t,n);else if(n=$h(e,t,n,r),n!==null){var o=We();Rt(n,e,r,o),dm(n,t,r)}}function O0(e,t,n){var r=Sn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cm(e))fm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Ot(a,l)){var u=t.interleaved;u===null?(o.next=o,tc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=$h(e,t,o,r),n!==null&&(o=We(),Rt(n,e,r,o),dm(n,t,r))}}function cm(e){var t=e.alternate;return e===he||t!==null&&t===he}function fm(e,t){Po=Al=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$s(e,n)}}var Dl={readContext:vt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},P0={readContext:vt,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Gf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,om.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=k0.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:Yf,useDebugValue:cc,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=Yf(!1),t=e[0];return e=R0.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=he,o=jt();if(de){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),Pe===null)throw Error(b(349));Yn&30||Gh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Gf(Jh.bind(null,r,i,e),[e]),r.flags|=2048,Jo(9,Xh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jt(),t=Pe.identifierPrefix;if(de){var n=Wt,r=Bt;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Go++,0")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Ta=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yo(e):""}function og(e){switch(e.tag){case 5:return yo(e.type);case 16:return yo("Lazy");case 13:return yo("Suspense");case 19:return yo("SuspenseList");case 0:case 2:case 15:return e=Ma(e.type,!1),e;case 11:return e=Ma(e.type.render,!1),e;case 1:return e=Ma(e.type,!0),e;default:return""}}function gu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hr:return"Fragment";case pr:return"Portal";case mu:return"Profiler";case Is:return"StrictMode";case vu:return"Suspense";case yu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hp:return(e.displayName||"Context")+".Consumer";case Wp:return(e._context.displayName||"Context")+".Provider";case bs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fs:return t=e.displayName||null,t!==null?t:gu(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return gu(e(t))}catch{}}return null}function ig(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gu(t);case 8:return t===Is?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lg(e){var t=Vp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Li(e){e._valueTracker||(e._valueTracker=lg(e))}function qp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Su(e,t){var n=t.checked;return me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Kp(e,t){t=t.checked,t!=null&&js(e,"checked",t,!1)}function wu(e,t){Kp(e,t);var n=xn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_u(e,t.type,n):t.hasOwnProperty("defaultValue")&&_u(e,t.type,xn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _u(e,t,n){(t!=="number"||ml(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var go=Array.isArray;function Tr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ag=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(e){ag.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function Jp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Co.hasOwnProperty(e)&&Co[e]?(""+t).trim():t+"px"}function Zp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ug=me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xu(e,t){if(t){if(ug[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Ru(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ku=null;function zs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ou=null,Mr=null,Nr=null;function yf(e){if(e=hi(e)){if(typeof Ou!="function")throw Error(b(280));var t=e.stateNode;t&&(t=ta(t),Ou(e.stateNode,e.type,t))}}function eh(e){Mr?Nr?Nr.push(e):Nr=[e]:Mr=e}function th(){if(Mr){var e=Mr,t=Nr;if(Nr=Mr=null,yf(e),t)for(e=0;e>>=0,e===0?32:31-(Sg(e)/wg|0)|0}var Ii=64,bi=4194304;function So(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=So(a):(i&=l,i!==0&&(r=So(i)))}else l=n&~o,l!==0?r=So(l):i!==0&&(r=So(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function xg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ro),kf=" ",Of=!1;function _h(e,t){switch(e){case"keyup":return Jg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mr=!1;function e0(e,t){switch(e){case"compositionend":return Eh(t);case"keypress":return t.which!==32?null:(Of=!0,kf);case"textInput":return e=t.data,e===kf&&Of?null:e;default:return null}}function t0(e,t){if(mr)return e==="compositionend"||!qs&&_h(e,t)?(e=Sh(),il=Hs=fn=null,mr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nf(n)}}function kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oh(){for(var e=window,t=ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ml(e.document)}return t}function Ks(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function c0(e){var t=Oh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kh(n.ownerDocument.documentElement,n)){if(r!==null&&Ks(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Af(n,i);var l=Af(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,vr=null,Du=null,Oo=null,Lu=!1;function Df(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lu||vr==null||vr!==ml(r)||(r=vr,"selectionStart"in r&&Ks(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Oo&&Ho(Oo,r)||(Oo=r,r=El(Du,"onSelect"),0Sr||(e.current=Uu[Sr],Uu[Sr]=null,Sr--)}function ue(e,t){Sr++,Uu[Sr]=e.current,e.current=t}var Rn={},$e=Mn(Rn),Ye=Mn(!1),Kn=Rn;function Fr(e,t){var n=e.type.contextTypes;if(!n)return Rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function xl(){ce(Ye),ce($e)}function Uf(e,t,n){if($e.current!==Rn)throw Error(b(168));ue($e,t),ue(Ye,n)}function Ih(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,ig(e)||"Unknown",o));return me({},n,r)}function Rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rn,Kn=$e.current,ue($e,e),ue(Ye,Ye.current),!0}function $f(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Ih(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,ce(Ye),ce($e),ue($e,e)):ce(Ye),ue(Ye,n)}var Bt=null,na=!1,Ha=!1;function bh(e){Bt===null?Bt=[e]:Bt.push(e)}function E0(e){na=!0,bh(e)}function Nn(){if(!Ha&&Bt!==null){Ha=!0;var e=0,t=ie;try{var n=Bt;for(ie=1;e>=l,o-=l,Wt=1<<32-xt(t)+o|n<x?(O=C,C=null):O=C.sibling;var M=d(m,C,f[x],y);if(M===null){C===null&&(C=O);break}e&&C&&M.alternate===null&&t(m,C),p=i(M,p,x),S===null?E=M:S.sibling=M,S=M,C=O}if(x===f.length)return n(m,C),de&&jn(m,x),E;if(C===null){for(;xx?(O=C,C=null):O=C.sibling;var D=d(m,C,M.value,y);if(D===null){C===null&&(C=O);break}e&&C&&D.alternate===null&&t(m,C),p=i(D,p,x),S===null?E=D:S.sibling=D,S=D,C=O}if(M.done)return n(m,C),de&&jn(m,x),E;if(C===null){for(;!M.done;x++,M=f.next())M=h(m,M.value,y),M!==null&&(p=i(M,p,x),S===null?E=M:S.sibling=M,S=M);return de&&jn(m,x),E}for(C=r(m,C);!M.done;x++,M=f.next())M=v(C,m,x,M.value,y),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?x:M.key),p=i(M,p,x),S===null?E=M:S.sibling=M,S=M);return e&&C.forEach(function(F){return t(m,F)}),de&&jn(m,x),E}function _(m,p,f,y){if(typeof f=="object"&&f!==null&&f.type===hr&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Di:e:{for(var E=f.key,S=p;S!==null;){if(S.key===E){if(E=f.type,E===hr){if(S.tag===7){n(m,S.sibling),p=o(S,f.props.children),p.return=m,m=p;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ln&&Kf(E)===S.type){n(m,S.sibling),p=o(S,f.props),p.ref=lo(m,S,f),p.return=m,m=p;break e}n(m,S);break}else t(m,S);S=S.sibling}f.type===hr?(p=Vn(f.props.children,m.mode,y,f.key),p.return=m,m=p):(y=pl(f.type,f.key,f.props,null,m.mode,y),y.ref=lo(m,p,f),y.return=m,m=y)}return l(m);case pr:e:{for(S=f.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===f.containerInfo&&p.stateNode.implementation===f.implementation){n(m,p.sibling),p=o(p,f.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Ja(f,m.mode,y),p.return=m,m=p}return l(m);case ln:return S=f._init,_(m,p,S(f._payload),y)}if(go(f))return g(m,p,f,y);if(to(f))return w(m,p,f,y);Hi(m,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,f),p.return=m,m=p):(n(m,p),p=Xa(f,m.mode,y),p.return=m,m=p),l(m)):n(m,p)}return _}var Ur=Qh(!0),Vh=Qh(!1),mi={},Ft=Mn(mi),Ko=Mn(mi),Yo=Mn(mi);function $n(e){if(e===mi)throw Error(b(174));return e}function rc(e,t){switch(ue(Yo,t),ue(Ko,e),ue(Ft,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cu(t,e)}ce(Ft),ue(Ft,t)}function $r(){ce(Ft),ce(Ko),ce(Yo)}function qh(e){$n(Yo.current);var t=$n(Ft.current),n=Cu(t,e.type);t!==n&&(ue(Ko,e),ue(Ft,n))}function oc(e){Ko.current===e&&(ce(Ft),ce(Ko))}var pe=Mn(0);function Nl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qa=[];function ic(){for(var e=0;en?n:4,e(!0);var r=Va.transition;Va.transition={};try{e(!1),t()}finally{ie=n,Va.transition=r}}function sm(){return yt().memoizedState}function k0(e,t,n){var r=wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cm(e))fm(t,n);else if(n=$h(e,t,n,r),n!==null){var o=We();Rt(n,e,r,o),dm(n,t,r)}}function O0(e,t,n){var r=wn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cm(e))fm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Ot(a,l)){var u=t.interleaved;u===null?(o.next=o,tc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=$h(e,t,o,r),n!==null&&(o=We(),Rt(n,e,r,o),dm(n,t,r))}}function cm(e){var t=e.alternate;return e===he||t!==null&&t===he}function fm(e,t){Po=Al=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$s(e,n)}}var Dl={readContext:vt,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},P0={readContext:vt,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Gf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,om.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=k0.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:Yf,useDebugValue:cc,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=Yf(!1),t=e[0];return e=R0.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=he,o=jt();if(de){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),Pe===null)throw Error(b(349));Gn&30||Gh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Gf(Jh.bind(null,r,i,e),[e]),r.flags|=2048,Jo(9,Xh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jt(),t=Pe.identifierPrefix;if(de){var n=Ht,r=Wt;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[It]=t,e[qo]=r,_m(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ru(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oWr&&(t.flags|=128,r=!0,ao(i,!1),t.lanes=4194304)}else{if(!r)if(e=Nl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ao(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!de)return be(t),null}else 2*_e()-i.renderingStartTime>Wr&&n!==1073741824&&(t.flags|=128,r=!0,ao(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=pe.current,ue(pe,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return vc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function I0(e,t){switch(Gs(t),t.tag){case 1:return Ge(t.type)&&xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),ce(Ye),ce($e),ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(ce(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(pe),null;case 4:return $r(),null;case 10:return ec(t.type._context),null;case 22:case 23:return vc(),null;case 24:return null;default:return null}}var Vi=!1,ze=!1,b0=typeof WeakSet=="function"?WeakSet:Set,H=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function Ju(e,t,n){try{n()}catch(r){ge(e,t,r)}}var id=!1;function F0(e,t){if(ju=Sl,e=Oh(),Ks(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,h=e,d=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(a=l+o),h!==i||r!==0&&h.nodeType!==3||(u=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(v=h.firstChild)!==null;)d=h,h=v;for(;;){if(h===e)break t;if(d===n&&++s===o&&(a=l),d===i&&++c===r&&(u=l),(v=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=v}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iu={focusedElem:e,selectionRange:n},Sl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,_=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:wt(t.type,S),_);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(y){ge(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return g=id,id=!1,g}function To(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ju(t,n,i)}o=o.next}while(o!==r)}}function ia(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Zu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xm(e){var t=e.alternate;t!==null&&(e.alternate=null,xm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[qo],delete t[zu],delete t[S0],delete t[_0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rm(e){return e.tag===5||e.tag===3||e.tag===4}function ld(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function es(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cl));else if(r!==4&&(e=e.child,e!==null))for(es(e,t,n),e=e.sibling;e!==null;)es(e,t,n),e=e.sibling}function ts(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ts(e,t,n),e=e.sibling;e!==null;)ts(e,t,n),e=e.sibling}var Ae=null,_t=!1;function tn(e,t,n){for(n=n.child;n!==null;)km(e,t,n),n=n.sibling}function km(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 5:ze||Cr(n,t);case 6:var r=Ae,o=_t;Ae=null,tn(e,t,n),Ae=r,_t=o,Ae!==null&&(_t?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(_t?(e=Ae,n=n.stateNode,e.nodeType===8?Wa(e.parentNode,n):e.nodeType===1&&Wa(e,n),Bo(e)):Wa(Ae,n.stateNode));break;case 4:r=Ae,o=_t,Ae=n.stateNode.containerInfo,_t=!0,tn(e,t,n),Ae=r,_t=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Ju(n,t,l),o=o.next}while(o!==r)}tn(e,t,n);break;case 1:if(!ze&&(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ge(n,t,a)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,tn(e,t,n),ze=r):tn(e,t,n);break;default:tn(e,t,n)}}function ad(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new b0),t.forEach(function(r){var o=q0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*U0(r/1960))-r,10e?16:e,dn===null)var r=!1;else{if(e=dn,dn=null,Il=0,oe&6)throw Error(b(331));var o=oe;for(oe|=4,H=e.current;H!==null;){var i=H,l=i.child;if(H.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u_e()-hc?Hn(e,0):pc|=n),Xe(e,t)}function Lm(e,t){t===0&&(e.mode&1?(t=bi,bi<<=1,!(bi&130023424)&&(bi=4194304)):t=1);var n=We();e=qt(e,t),e!==null&&(di(e,t,n),Xe(e,n))}function V0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lm(e,n)}function q0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Lm(e,n)}var jm;jm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,L0(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,de&&t.flags&1048576&&Fh(t,Ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cl(e,t),e=t.pendingProps;var o=Fr(t,$e.current);Dr(t,n),o=ac(null,t,r,e,o,n);var i=uc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(i=!0,Rl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nc(t),o.updater=ra,t.stateNode=o,o._reactInternals=t,Qu(t,r,e,n),t=Ku(null,t,r,!0,i,n)):(t.tag=0,de&&i&&Ys(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Y0(r),e=wt(r,e),o){case 0:t=qu(null,t,r,e,n);break e;case 1:t=nd(null,t,r,e,n);break e;case 11:t=ed(null,t,r,e,n);break e;case 14:t=td(null,t,r,wt(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wt(r,o),qu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wt(r,o),nd(e,t,r,o,n);case 3:e:{if(gm(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bh(e,t),Ml(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Br(Error(b(423)),t),t=rd(e,t,r,n,o);break e}else if(r!==o){o=Br(Error(b(424)),t),t=rd(e,t,r,n,o);break e}else for(rt=yn(t.stateNode.containerInfo.firstChild),ot=t,de=!0,Ct=null,n=Vh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===o){t=Kt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return qh(t),e===null&&Bu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,bu(r,o)?l=null:i!==null&&bu(r,i)&&(t.flags|=32),ym(e,t),Be(e,t,l,n),t.child;case 6:return e===null&&Bu(t),null;case 13:return wm(e,t,n);case 4:return rc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wt(r,o),ed(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ue(Pl,r._currentValue),r._currentValue=l,i!==null)if(Ot(i.value,l)){if(i.children===o.children&&!Ye.current){t=Kt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Ht(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Wu(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(b(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Wu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Dr(t,n),o=vt(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=wt(r,t.pendingProps),o=wt(r.type,o),td(e,t,r,o,n);case 15:return mm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wt(r,o),cl(e,t),t.tag=1,Ge(r)?(e=!0,Rl(t)):e=!1,Dr(t,n),Hh(t,r,o),Qu(t,r,o,n),Ku(null,t,r,!0,e,n);case 19:return Sm(e,t,n);case 22:return vm(e,t,n)}throw Error(b(156,t.tag))};function Im(e,t){return uh(e,t)}function K0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,r){return new K0(e,t,n,r)}function gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y0(e){if(typeof e=="function")return gc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bs)return 11;if(e===Fs)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")gc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case hr:return Qn(n.children,o,i,t);case Is:l=8,o|=8;break;case mu:return e=ht(12,n,t,o|2),e.elementType=mu,e.lanes=i,e;case vu:return e=ht(13,n,t,o),e.elementType=vu,e.lanes=i,e;case yu:return e=ht(19,n,t,o),e.elementType=yu,e.lanes=i,e;case Qp:return aa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wp:l=10;break e;case Hp:l=9;break e;case bs:l=11;break e;case Fs:l=14;break e;case ln:l=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=ht(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Qn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function aa(e,t,n,r){return e=ht(22,e,r,t),e.elementType=Qp,e.lanes=n,e.stateNode={isHidden:!1},e}function Xa(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Ja(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function G0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Aa(0),this.expirationTimes=Aa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Aa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wc(e,t,n,r,o,i,l,a,u){return e=new G0(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nc(i),e}function X0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Um)}catch(e){console.error(e)}}Um(),Fp.exports=at;var da=Fp.exports;const nw=Yl(da),rw=gp({__proto__:null,default:nw},[da]);/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ya(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Vu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var N0=typeof WeakMap=="function"?WeakMap:Map;function pm(e,t,n){n=Qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jl||(jl=!0,ns=r),Vu(e,t)},n}function hm(e,t,n){n=Qt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Vu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Vu(e,t),typeof r!="function"&&(Sn===null?Sn=new Set([this]):Sn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Xf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new N0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Q0.bind(null,e,t,n),t.then(e,e))}function Jf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Qt(-1,1),t.tag=2,gn(n,t,1))),n.lanes|=1),e)}var A0=Xt.ReactCurrentOwner,Ke=!1;function Be(e,t,n,r){t.child=e===null?Vh(t,null,n,r):Ur(t,e.child,n,r)}function ed(e,t,n,r,o){n=n.render;var i=t.ref;return Dr(t,o),r=ac(e,t,n,r,i,o),n=uc(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Yt(e,t,o)):(de&&n&&Ys(t),t.flags|=1,Be(e,t,r,o),t.child)}function td(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!gc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,mm(e,t,i,r,o)):(e=pl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ho,n(l,r)&&e.ref===t.ref)return Yt(e,t,o)}return t.flags|=1,e=_n(i,r),e.ref=t.ref,e.return=t,t.child=e}function mm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Ho(i,r)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,Yt(e,t,o)}return qu(e,t,n,r,o)}function vm(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(xr,tt),tt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(xr,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ue(xr,tt),tt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ue(xr,tt),tt|=r;return Be(e,t,o,n),t.child}function ym(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qu(e,t,n,r,o){var i=Ge(n)?Kn:$e.current;return i=Fr(t,i),Dr(t,o),n=ac(e,t,n,r,i,o),r=uc(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Yt(e,t,o)):(de&&r&&Ys(t),t.flags|=1,Be(e,t,n,o),t.child)}function nd(e,t,n,r,o){if(Ge(n)){var i=!0;Rl(t)}else i=!1;if(Dr(t,o),t.stateNode===null)cl(e,t),Hh(t,n,r),Qu(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=vt(s):(s=Ge(n)?Kn:$e.current,s=Fr(t,s));var c=n.getDerivedStateFromProps,h=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==s)&&qf(t,l,r,s),an=!1;var d=t.memoizedState;l.state=d,Ml(t,r,l,o),u=t.memoizedState,a!==r||d!==u||Ye.current||an?(typeof c=="function"&&(Hu(t,n,c,r),u=t.memoizedState),(a=an||Vf(t,n,a,r,d,u,s))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Bh(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:St(t.type,a),l.props=s,h=t.pendingProps,d=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=vt(u):(u=Ge(n)?Kn:$e.current,u=Fr(t,u));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==h||d!==u)&&qf(t,l,r,u),an=!1,d=t.memoizedState,l.state=d,Ml(t,r,l,o);var g=t.memoizedState;a!==h||d!==g||Ye.current||an?(typeof v=="function"&&(Hu(t,n,v,r),g=t.memoizedState),(s=an||Vf(t,n,s,r,d,g,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,g,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,g,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),l.props=r,l.state=g,l.context=u,r=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ku(e,t,n,r,i,o)}function Ku(e,t,n,r,o,i){ym(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&$f(t,n,!1),Yt(e,t,i);r=t.stateNode,A0.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ur(t,e.child,null,i),t.child=Ur(t,null,a,i)):Be(e,t,a,i),t.memoizedState=r.state,o&&$f(t,n,!0),t.child}function gm(e){var t=e.stateNode;t.pendingContext?Uf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uf(e,t.context,!1),rc(e,t.containerInfo)}function rd(e,t,n,r,o){return zr(),Xs(o),t.flags|=256,Be(e,t,n,r),t.child}var Yu={dehydrated:null,treeContext:null,retryLane:0};function Gu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sm(e,t,n){var r=t.pendingProps,o=pe.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ue(pe,o&1),e===null)return Bu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=aa(l,r,0,null),e=Vn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gu(n),t.memoizedState=Yu,e):fc(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return D0(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=_n(o,u),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=_n(a,i):(i=Vn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Gu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Yu,r}return i=e.child,e=i.sibling,r=_n(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function fc(e,t){return t=aa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qi(e,t,n,r){return r!==null&&Xs(r),Ur(t,e.child,null,n),e=fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function D0(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Ya(Error(b(422))),Qi(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=aa({mode:"visible",children:r.children},o,0,null),i=Vn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ur(t,e.child,null,l),t.child.memoizedState=Gu(l),t.memoizedState=Yu,i);if(!(t.mode&1))return Qi(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(b(419)),r=Ya(i,r,void 0),Qi(e,t,l,r)}if(a=(l&e.childLanes)!==0,Ke||a){if(r=Pe,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Kt(e,o),Rt(r,e,o,-1))}return yc(),r=Ya(Error(b(421))),Qi(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=V0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,rt=yn(o.nextSibling),ot=t,de=!0,Ct=null,e!==null&&(dt[pt++]=Wt,dt[pt++]=Ht,dt[pt++]=Yn,Wt=e.id,Ht=e.overflow,Yn=t),t=fc(t,r.children),t.flags|=4096,t)}function od(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wu(e.return,t,n)}function Ga(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function wm(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Be(e,t,r.children,n),r=pe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&od(e,n,t);else if(e.tag===19)od(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ue(pe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Nl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ga(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ga(t,!0,n,null,i);break;case"together":Ga(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,n=_n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function L0(e,t,n){switch(t.tag){case 3:gm(t),zr();break;case 5:qh(t);break;case 1:Ge(t.type)&&Rl(t);break;case 4:rc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ue(Pl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?Sm(e,t,n):(ue(pe,pe.current&1),e=Yt(e,t,n),e!==null?e.sibling:null);ue(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return wm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ue(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,vm(e,t,n)}return Yt(e,t,n)}var _m,Xu,Em,Cm;_m=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Xu=function(){};Em=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,$n(Ft.current);var i=null;switch(n){case"input":o=Su(e,o),r=Su(e,r),i=[];break;case"select":o=me({},o,{value:void 0}),r=me({},r,{value:void 0}),i=[];break;case"textarea":o=Eu(e,o),r=Eu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Cl)}xu(n,r);var l;n=null;for(s in o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&o[s]!=null)if(s==="style"){var a=o[s];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(bo.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var u=r[s];if(a=o!=null?o[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(bo.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&se("scroll",e),i||a===u||(i=[])):(i=i||[]).push(s,u))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}};Cm=function(e,t,n,r){n!==r&&(t.flags|=4)};function ao(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function j0(e,t,n){var r=t.pendingProps;switch(Gs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(t),null;case 1:return Ge(t.type)&&xl(),be(t),null;case 3:return r=t.stateNode,$r(),ce(Ye),ce($e),ic(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(is(Ct),Ct=null))),Xu(e,t),be(t),null;case 5:oc(t);var o=$n(Yo.current);if(n=t.type,e!==null&&t.stateNode!=null)Em(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return be(t),null}if(e=$n(Ft.current),Wi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[It]=t,r[qo]=i,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[It]=t,e[qo]=r,_m(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ru(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oWr&&(t.flags|=128,r=!0,ao(i,!1),t.lanes=4194304)}else{if(!r)if(e=Nl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ao(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!de)return be(t),null}else 2*_e()-i.renderingStartTime>Wr&&n!==1073741824&&(t.flags|=128,r=!0,ao(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=pe.current,ue(pe,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return vc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function I0(e,t){switch(Gs(t),t.tag){case 1:return Ge(t.type)&&xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),ce(Ye),ce($e),ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(ce(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(pe),null;case 4:return $r(),null;case 10:return ec(t.type._context),null;case 22:case 23:return vc(),null;case 24:return null;default:return null}}var Vi=!1,ze=!1,b0=typeof WeakSet=="function"?WeakSet:Set,H=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function Ju(e,t,n){try{n()}catch(r){ge(e,t,r)}}var id=!1;function F0(e,t){if(ju=wl,e=Oh(),Ks(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,h=e,d=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(a=l+o),h!==i||r!==0&&h.nodeType!==3||(u=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(v=h.firstChild)!==null;)d=h,h=v;for(;;){if(h===e)break t;if(d===n&&++s===o&&(a=l),d===i&&++c===r&&(u=l),(v=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=v}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iu={focusedElem:e,selectionRange:n},wl=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,_=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:St(t.type,w),_);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(y){ge(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return g=id,id=!1,g}function To(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ju(t,n,i)}o=o.next}while(o!==r)}}function ia(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Zu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xm(e){var t=e.alternate;t!==null&&(e.alternate=null,xm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[qo],delete t[zu],delete t[w0],delete t[_0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rm(e){return e.tag===5||e.tag===3||e.tag===4}function ld(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function es(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cl));else if(r!==4&&(e=e.child,e!==null))for(es(e,t,n),e=e.sibling;e!==null;)es(e,t,n),e=e.sibling}function ts(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ts(e,t,n),e=e.sibling;e!==null;)ts(e,t,n),e=e.sibling}var Ae=null,_t=!1;function tn(e,t,n){for(n=n.child;n!==null;)km(e,t,n),n=n.sibling}function km(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 5:ze||Cr(n,t);case 6:var r=Ae,o=_t;Ae=null,tn(e,t,n),Ae=r,_t=o,Ae!==null&&(_t?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(_t?(e=Ae,n=n.stateNode,e.nodeType===8?Wa(e.parentNode,n):e.nodeType===1&&Wa(e,n),Bo(e)):Wa(Ae,n.stateNode));break;case 4:r=Ae,o=_t,Ae=n.stateNode.containerInfo,_t=!0,tn(e,t,n),Ae=r,_t=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Ju(n,t,l),o=o.next}while(o!==r)}tn(e,t,n);break;case 1:if(!ze&&(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ge(n,t,a)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,tn(e,t,n),ze=r):tn(e,t,n);break;default:tn(e,t,n)}}function ad(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new b0),t.forEach(function(r){var o=q0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*U0(r/1960))-r,10e?16:e,dn===null)var r=!1;else{if(e=dn,dn=null,Il=0,oe&6)throw Error(b(331));var o=oe;for(oe|=4,H=e.current;H!==null;){var i=H,l=i.child;if(H.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u_e()-hc?Qn(e,0):pc|=n),Xe(e,t)}function Lm(e,t){t===0&&(e.mode&1?(t=bi,bi<<=1,!(bi&130023424)&&(bi=4194304)):t=1);var n=We();e=Kt(e,t),e!==null&&(di(e,t,n),Xe(e,n))}function V0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lm(e,n)}function q0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Lm(e,n)}var jm;jm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,L0(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,de&&t.flags&1048576&&Fh(t,Ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cl(e,t),e=t.pendingProps;var o=Fr(t,$e.current);Dr(t,n),o=ac(null,t,r,e,o,n);var i=uc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(i=!0,Rl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nc(t),o.updater=ra,t.stateNode=o,o._reactInternals=t,Qu(t,r,e,n),t=Ku(null,t,r,!0,i,n)):(t.tag=0,de&&i&&Ys(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Y0(r),e=St(r,e),o){case 0:t=qu(null,t,r,e,n);break e;case 1:t=nd(null,t,r,e,n);break e;case 11:t=ed(null,t,r,e,n);break e;case 14:t=td(null,t,r,St(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),qu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),nd(e,t,r,o,n);case 3:e:{if(gm(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bh(e,t),Ml(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Br(Error(b(423)),t),t=rd(e,t,r,n,o);break e}else if(r!==o){o=Br(Error(b(424)),t),t=rd(e,t,r,n,o);break e}else for(rt=yn(t.stateNode.containerInfo.firstChild),ot=t,de=!0,Ct=null,n=Vh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===o){t=Yt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return qh(t),e===null&&Bu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,bu(r,o)?l=null:i!==null&&bu(r,i)&&(t.flags|=32),ym(e,t),Be(e,t,l,n),t.child;case 6:return e===null&&Bu(t),null;case 13:return Sm(e,t,n);case 4:return rc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),ed(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ue(Pl,r._currentValue),r._currentValue=l,i!==null)if(Ot(i.value,l)){if(i.children===o.children&&!Ye.current){t=Yt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Qt(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Wu(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(b(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Wu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Dr(t,n),o=vt(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=St(r,t.pendingProps),o=St(r.type,o),td(e,t,r,o,n);case 15:return mm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:St(r,o),cl(e,t),t.tag=1,Ge(r)?(e=!0,Rl(t)):e=!1,Dr(t,n),Hh(t,r,o),Qu(t,r,o,n),Ku(null,t,r,!0,e,n);case 19:return wm(e,t,n);case 22:return vm(e,t,n)}throw Error(b(156,t.tag))};function Im(e,t){return uh(e,t)}function K0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,r){return new K0(e,t,n,r)}function gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y0(e){if(typeof e=="function")return gc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bs)return 11;if(e===Fs)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")gc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case hr:return Vn(n.children,o,i,t);case Is:l=8,o|=8;break;case mu:return e=ht(12,n,t,o|2),e.elementType=mu,e.lanes=i,e;case vu:return e=ht(13,n,t,o),e.elementType=vu,e.lanes=i,e;case yu:return e=ht(19,n,t,o),e.elementType=yu,e.lanes=i,e;case Qp:return aa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wp:l=10;break e;case Hp:l=9;break e;case bs:l=11;break e;case Fs:l=14;break e;case ln:l=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=ht(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Vn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function aa(e,t,n,r){return e=ht(22,e,r,t),e.elementType=Qp,e.lanes=n,e.stateNode={isHidden:!1},e}function Xa(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Ja(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function G0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Aa(0),this.expirationTimes=Aa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Aa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sc(e,t,n,r,o,i,l,a,u){return e=new G0(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nc(i),e}function X0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Um)}catch(e){console.error(e)}}Um(),Fp.exports=at;var da=Fp.exports;const nS=Yl(da),rS=gp({__proto__:null,default:nS},[da]);/** * @remix-run/router v1.15.0 * * Copyright (c) Remix Software Inc. @@ -54,8 +54,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Jn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iw(){return Math.random().toString(36).substr(2,8)}function vd(e,t){return{usr:e.state,key:e.key,idx:t}}function ei(e,t,n,r){return n===void 0&&(n=null),we({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xt(t):t,{state:n,key:t&&t.key||r||iw()})}function vi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Xt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function lw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=Se.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(we({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function h(){a=Se.Pop;let _=c(),m=_==null?null:_-s;s=_,u&&u({action:a,location:S.location,delta:m})}function d(_,m){a=Se.Push;let p=ei(S.location,_,m);n&&n(p,_),s=c()+1;let f=vd(p,s),y=S.createHref(p);try{l.pushState(f,"",y)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(y)}i&&u&&u({action:a,location:S.location,delta:1})}function v(_,m){a=Se.Replace;let p=ei(S.location,_,m);n&&n(p,_),s=c();let f=vd(p,s),y=S.createHref(p);l.replaceState(f,"",y),i&&u&&u({action:a,location:S.location,delta:0})}function g(_){let m=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof _=="string"?_:vi(_);return te(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let S={get action(){return a},get location(){return e(o,l)},listen(_){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(md,h),u=_,()=>{o.removeEventListener(md,h),u=null}},createHref(_){return t(o,_)},createURL:g,encodeLocation(_){let m=g(_);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:v,go(_){return l.go(_)}};return S}var ye;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ye||(ye={}));const aw=new Set(["lazy","caseSensitive","path","id","index","children"]);function uw(e){return e.index===!0}function ls(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(te(o.index!==!0||!o.children,"Cannot specify children on an index route"),te(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),uw(o)){let u=we({},o,t(o),{id:a});return r[a]=u,u}else{let u=we({},o,t(o),{id:a,children:void 0});return r[a]=u,o.children&&(u.children=ls(o.children,t,l,r)),u}})}function Rr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Xt(t):t,o=yi(r.pathname||"/",n);if(o==null)return null;let i=$m(e);cw(i);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(te(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=En([r,u.relativePath]),c=n.concat(u);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),$m(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:yw(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let u of Bm(i.path))o(i,l,u)}),t}function Bm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Bm(r.join("/")),a=[];return a.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function cw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fw=/^:[\w-]+$/,dw=3,pw=2,hw=1,mw=10,vw=-2,yd=e=>e==="*";function yw(e,t){let n=e.split("/"),r=n.length;return n.some(yd)&&(r+=vw),t&&(r+=pw),n.filter(o=>!yd(o)).reduce((o,i)=>o+(fw.test(i)?dw:i===""?hw:mw),r)}function gw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function ww(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:d,isOptional:v}=c;if(d==="*"){let S=a[h]||"";l=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const g=a[h];return v&&!g?s[d]=void 0:s[d]=Cw(g||"",d),s},{}),pathname:i,pathnameBase:l,pattern:e}}function _w(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Ew(e){try{return decodeURI(e)}catch(t){return Jn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Cw(e,t){try{return decodeURIComponent(e)}catch(n){return Jn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function yi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function xw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Xt(e):e;return{pathname:n?n.startsWith("/")?n:Rw(n,t):t,search:Ow(r),hash:Pw(o)}}function Rw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Za(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Wm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cc(e,t){let n=Wm(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Xt(e):(o=we({},e),te(!o.pathname||!o.pathname.includes("?"),Za("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Za("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Za("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(l==null)a=n;else{let h=t.length-1;if(!r&&l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),h-=1;o.pathname=d.join("/")}a=h>=0?t[h]:"/"}let u=xw(o,a),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const En=e=>e.join("/").replace(/\/\/+/g,"/"),kw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ow=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Rc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Hm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Qm=["post","put","patch","delete"],Tw=new Set(Qm),Mw=["get",...Qm],Nw=new Set(Mw),Aw=new Set([301,302,303,307,308]),Dw=new Set([307,308]),eu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Lw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},so={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Vm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),qm="remix-router-transitions";function Iw(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;te(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;o=P=>({hasErrorBoundary:R(P)})}else o=jw;let i={},l=ls(e.routes,o,void 0,i),a,u=e.basename||"/",s=we({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,h=new Set,d=null,v=null,g=null,S=e.hydrationData!=null,_=Rr(l,e.history.location,u),m=null;if(_==null){let R=ct(404,{pathname:e.history.location.pathname}),{matches:P,route:A}=Rd(l);_=P,m={[A.id]:R}}let p,f=_.some(R=>R.route.lazy),y=_.some(R=>R.route.loader);if(f)p=!1;else if(!y)p=!0;else if(s.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null;p=_.every(A=>A.route.loader&&A.route.loader.hydrate!==!0&&(R&&R[A.route.id]!==void 0||P&&P[A.route.id]!==void 0))}else p=e.hydrationData!=null;let E,w={historyAction:e.history.action,location:e.history.location,matches:_,initialized:p,navigation:eu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},C=Se.Pop,x=!1,O,M=!1,D=new Map,F=null,B=!1,L=!1,U=[],q=[],k=new Map,T=0,z=-1,I=new Map,W=new Set,V=new Map,J=new Map,ve=new Set,Ze=new Map,Te=new Map,At=!1;function qv(){if(c=e.history.listen(R=>{let{action:P,location:A,delta:$}=R;if(At){At=!1;return}Jn(Te.size===0||$!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=Zc({currentLocation:w.location,nextLocation:A,historyAction:P});if(Q&&$!=null){At=!0,e.history.go($*-1),Ti(Q,{state:"blocked",location:A,proceed(){Ti(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),e.history.go($)},reset(){let ee=new Map(w.blockers);ee.set(Q,so),et({blockers:ee})}});return}return An(P,A)}),n){qw(t,D);let R=()=>Kw(t,D);t.addEventListener("pagehide",R),F=()=>t.removeEventListener("pagehide",R)}return w.initialized||An(Se.Pop,w.location,{initialHydration:!0}),E}function Kv(){c&&c(),F&&F(),h.clear(),O&&O.abort(),w.fetchers.forEach((R,P)=>Pi(P)),w.blockers.forEach((R,P)=>Jc(P))}function Yv(R){return h.add(R),()=>h.delete(R)}function et(R,P){P===void 0&&(P={}),w=we({},w,R);let A=[],$=[];s.v7_fetcherPersist&&w.fetchers.forEach((Q,ee)=>{Q.state==="idle"&&(ve.has(ee)?$.push(ee):A.push(ee))}),[...h].forEach(Q=>Q(w,{deletedFetchers:$,unstable_viewTransitionOpts:P.viewTransitionOpts,unstable_flushSync:P.flushSync===!0})),s.v7_fetcherPersist&&(A.forEach(Q=>w.fetchers.delete(Q)),$.forEach(Q=>Pi(Q)))}function Jr(R,P,A){var $,Q;let{flushSync:ee}=A===void 0?{}:A,G=w.actionData!=null&&w.navigation.formMethod!=null&&Et(w.navigation.formMethod)&&w.navigation.state==="loading"&&(($=R.state)==null?void 0:$._isRedirect)!==!0,Y;P.actionData?Object.keys(P.actionData).length>0?Y=P.actionData:Y=null:G?Y=w.actionData:Y=null;let K=P.loaderData?xd(w.loaderData,P.loaderData,P.matches||[],P.errors):w.loaderData,re=w.blockers;re.size>0&&(re=new Map(re),re.forEach((ae,Me)=>re.set(Me,so)));let Re=x===!0||w.navigation.formMethod!=null&&Et(w.navigation.formMethod)&&((Q=R.state)==null?void 0:Q._isRedirect)!==!0;a&&(l=a,a=void 0),B||C===Se.Pop||(C===Se.Push?e.history.push(R,R.state):C===Se.Replace&&e.history.replace(R,R.state));let Z;if(C===Se.Pop){let ae=D.get(w.location.pathname);ae&&ae.has(R.pathname)?Z={currentLocation:w.location,nextLocation:R}:D.has(R.pathname)&&(Z={currentLocation:R,nextLocation:w.location})}else if(M){let ae=D.get(w.location.pathname);ae?ae.add(R.pathname):(ae=new Set([R.pathname]),D.set(w.location.pathname,ae)),Z={currentLocation:w.location,nextLocation:R}}et(we({},P,{actionData:Y,loaderData:K,historyAction:C,location:R,initialized:!0,navigation:eu,revalidation:"idle",restoreScrollPosition:tf(R,P.matches||w.matches),preventScrollReset:Re,blockers:re}),{viewTransitionOpts:Z,flushSync:ee===!0}),C=Se.Pop,x=!1,M=!1,B=!1,L=!1,U=[],q=[]}async function Vc(R,P){if(typeof R=="number"){e.history.go(R);return}let A=as(w.location,w.matches,u,s.v7_prependBasename,R,s.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:$,submission:Q,error:ee}=gd(s.v7_normalizeFormMethod,!1,A,P),G=w.location,Y=ei(w.location,$,P&&P.state);Y=we({},Y,e.history.encodeLocation(Y));let K=P&&P.replace!=null?P.replace:void 0,re=Se.Push;K===!0?re=Se.Replace:K===!1||Q!=null&&Et(Q.formMethod)&&Q.formAction===w.location.pathname+w.location.search&&(re=Se.Replace);let Re=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,Z=(P&&P.unstable_flushSync)===!0,ae=Zc({currentLocation:G,nextLocation:Y,historyAction:re});if(ae){Ti(ae,{state:"blocked",location:Y,proceed(){Ti(ae,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),Vc(R,P)},reset(){let Me=new Map(w.blockers);Me.set(ae,so),et({blockers:Me})}});return}return await An(re,Y,{submission:Q,pendingError:ee,preventScrollReset:Re,replace:P&&P.replace,enableViewTransition:P&&P.unstable_viewTransition,flushSync:Z})}function Gv(){if(Sa(),et({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){An(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}An(C||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function An(R,P,A){O&&O.abort(),O=null,C=R,B=(A&&A.startUninterruptedRevalidation)===!0,iy(w.location,w.matches),x=(A&&A.preventScrollReset)===!0,M=(A&&A.enableViewTransition)===!0;let $=a||l,Q=A&&A.overrideNavigation,ee=Rr($,P,u),G=(A&&A.flushSync)===!0;if(!ee){let Me=ct(404,{pathname:P.pathname}),{matches:st,route:ke}=Rd($);_a(),Jr(P,{matches:st,loaderData:{},errors:{[ke.id]:Me}},{flushSync:G});return}if(w.initialized&&!L&&$w(w.location,P)&&!(A&&A.submission&&Et(A.submission.formMethod))){Jr(P,{matches:ee},{flushSync:G});return}O=new AbortController;let Y=fo(e.history,P,O.signal,A&&A.submission),K,re;if(A&&A.pendingError)re={[Ao(ee).route.id]:A.pendingError};else if(A&&A.submission&&Et(A.submission.formMethod)){let Me=await Xv(Y,P,A.submission,ee,{replace:A.replace,flushSync:G});if(Me.shortCircuited)return;K=Me.pendingActionData,re=Me.pendingActionError,Q=tu(P,A.submission),G=!1,Y=new Request(Y.url,{signal:Y.signal})}let{shortCircuited:Re,loaderData:Z,errors:ae}=await Jv(Y,P,ee,Q,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,G,K,re);Re||(O=null,Jr(P,we({matches:ee},K?{actionData:K}:{},{loaderData:Z,errors:ae})))}async function Xv(R,P,A,$,Q){Q===void 0&&(Q={}),Sa();let ee=Qw(P,A);et({navigation:ee},{flushSync:Q.flushSync===!0});let G,Y=ss($,P);if(!Y.route.action&&!Y.route.lazy)G={type:ye.error,error:ct(405,{method:R.method,pathname:P.pathname,routeId:Y.route.id})};else if(G=await co("action",R,Y,$,i,o,u,s.v7_relativeSplatPath),R.signal.aborted)return{shortCircuited:!0};if(Bn(G)){let K;return Q&&Q.replace!=null?K=Q.replace:K=G.location===w.location.pathname+w.location.search,await Zr(w,G,{submission:A,replace:K}),{shortCircuited:!0}}if(kr(G)){let K=Ao($,Y.route.id);return(Q&&Q.replace)!==!0&&(C=Se.Push),{pendingActionData:{},pendingActionError:{[K.route.id]:G.error}}}if($n(G))throw ct(400,{type:"defer-action"});return{pendingActionData:{[Y.route.id]:G.data}}}async function Jv(R,P,A,$,Q,ee,G,Y,K,re,Re){let Z=$||tu(P,Q),ae=Q||ee||Pd(Z),Me=a||l,[st,ke]=wd(e.history,w,A,ae,P,s.v7_partialHydration&&Y===!0,L,U,q,ve,V,W,Me,u,re,Re);if(_a(le=>!(A&&A.some(fe=>fe.route.id===le))||st&&st.some(fe=>fe.route.id===le)),z=++T,st.length===0&&ke.length===0){let le=Gc();return Jr(P,we({matches:A,loaderData:{},errors:Re||null},re?{actionData:re}:{},le?{fetchers:new Map(w.fetchers)}:{}),{flushSync:K}),{shortCircuited:!0}}if(!B&&(!s.v7_partialHydration||!Y)){ke.forEach(fe=>{let Dt=w.fetchers.get(fe.key),Ni=po(void 0,Dt?Dt.data:void 0);w.fetchers.set(fe.key,Ni)});let le=re||w.actionData;et(we({navigation:Z},le?Object.keys(le).length===0?{actionData:null}:{actionData:le}:{},ke.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:K})}ke.forEach(le=>{k.has(le.key)&&Zt(le.key),le.controller&&k.set(le.key,le.controller)});let lr=()=>ke.forEach(le=>Zt(le.key));O&&O.signal.addEventListener("abort",lr);let{results:Ea,loaderResults:ar,fetcherResults:en}=await qc(w.matches,A,st,ke,R);if(R.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",lr),ke.forEach(le=>k.delete(le.key));let Dn=kd(Ea);if(Dn){if(Dn.idx>=st.length){let le=ke[Dn.idx-st.length].key;W.add(le)}return await Zr(w,Dn.result,{replace:G}),{shortCircuited:!0}}let{loaderData:Ca,errors:xa}=Cd(w,A,st,ar,Re,ke,en,Ze);Ze.forEach((le,fe)=>{le.subscribe(Dt=>{(Dt||le.done)&&Ze.delete(fe)})});let Ra=Gc(),ur=Xc(z),Mi=Ra||ur||ke.length>0;return we({loaderData:Ca,errors:xa},Mi?{fetchers:new Map(w.fetchers)}:{})}function Zv(R,P,A,$){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");k.has(R)&&Zt(R);let Q=($&&$.unstable_flushSync)===!0,ee=a||l,G=as(w.location,w.matches,u,s.v7_prependBasename,A,s.v7_relativeSplatPath,P,$==null?void 0:$.relative),Y=Rr(ee,G,u);if(!Y){eo(R,P,ct(404,{pathname:G}),{flushSync:Q});return}let{path:K,submission:re,error:Re}=gd(s.v7_normalizeFormMethod,!0,G,$);if(Re){eo(R,P,Re,{flushSync:Q});return}let Z=ss(Y,K);if(x=($&&$.preventScrollReset)===!0,re&&Et(re.formMethod)){ey(R,P,K,Z,Y,Q,re);return}V.set(R,{routeId:P,path:K}),ty(R,P,K,Z,Y,Q,re)}async function ey(R,P,A,$,Q,ee,G){if(Sa(),V.delete(R),!$.route.action&&!$.route.lazy){let fe=ct(405,{method:G.formMethod,pathname:A,routeId:P});eo(R,P,fe,{flushSync:ee});return}let Y=w.fetchers.get(R);Jt(R,Vw(G,Y),{flushSync:ee});let K=new AbortController,re=fo(e.history,A,K.signal,G);k.set(R,K);let Re=T,Z=await co("action",re,$,Q,i,o,u,s.v7_relativeSplatPath);if(re.signal.aborted){k.get(R)===K&&k.delete(R);return}if(s.v7_fetcherPersist&&ve.has(R)){if(Bn(Z)||kr(Z)){Jt(R,on(void 0));return}}else{if(Bn(Z))if(k.delete(R),z>Re){Jt(R,on(void 0));return}else return W.add(R),Jt(R,po(G)),Zr(w,Z,{fetcherSubmission:G});if(kr(Z)){eo(R,P,Z.error);return}}if($n(Z))throw ct(400,{type:"defer-action"});let ae=w.navigation.location||w.location,Me=fo(e.history,ae,K.signal),st=a||l,ke=w.navigation.state!=="idle"?Rr(st,w.navigation.location,u):w.matches;te(ke,"Didn't find any matches after fetcher action");let lr=++T;I.set(R,lr);let Ea=po(G,Z.data);w.fetchers.set(R,Ea);let[ar,en]=wd(e.history,w,ke,G,ae,!1,L,U,q,ve,V,W,st,u,{[$.route.id]:Z.data},void 0);en.filter(fe=>fe.key!==R).forEach(fe=>{let Dt=fe.key,Ni=w.fetchers.get(Dt),ay=po(void 0,Ni?Ni.data:void 0);w.fetchers.set(Dt,ay),k.has(Dt)&&Zt(Dt),fe.controller&&k.set(Dt,fe.controller)}),et({fetchers:new Map(w.fetchers)});let Dn=()=>en.forEach(fe=>Zt(fe.key));K.signal.addEventListener("abort",Dn);let{results:Ca,loaderResults:xa,fetcherResults:Ra}=await qc(w.matches,ke,ar,en,Me);if(K.signal.aborted)return;K.signal.removeEventListener("abort",Dn),I.delete(R),k.delete(R),en.forEach(fe=>k.delete(fe.key));let ur=kd(Ca);if(ur){if(ur.idx>=ar.length){let fe=en[ur.idx-ar.length].key;W.add(fe)}return Zr(w,ur.result)}let{loaderData:Mi,errors:le}=Cd(w,w.matches,ar,xa,void 0,en,Ra,Ze);if(w.fetchers.has(R)){let fe=on(Z.data);w.fetchers.set(R,fe)}Xc(lr),w.navigation.state==="loading"&&lr>z?(te(C,"Expected pending action"),O&&O.abort(),Jr(w.navigation.location,{matches:ke,loaderData:Mi,errors:le,fetchers:new Map(w.fetchers)})):(et({errors:le,loaderData:xd(w.loaderData,Mi,ke,le),fetchers:new Map(w.fetchers)}),L=!1)}async function ty(R,P,A,$,Q,ee,G){let Y=w.fetchers.get(R);Jt(R,po(G,Y?Y.data:void 0),{flushSync:ee});let K=new AbortController,re=fo(e.history,A,K.signal);k.set(R,K);let Re=T,Z=await co("loader",re,$,Q,i,o,u,s.v7_relativeSplatPath);if($n(Z)&&(Z=await Gm(Z,re.signal,!0)||Z),k.get(R)===K&&k.delete(R),!re.signal.aborted){if(ve.has(R)){Jt(R,on(void 0));return}if(Bn(Z))if(z>Re){Jt(R,on(void 0));return}else{W.add(R),await Zr(w,Z);return}if(kr(Z)){eo(R,P,Z.error);return}te(!$n(Z),"Unhandled fetcher deferred data"),Jt(R,on(Z.data))}}async function Zr(R,P,A){let{submission:$,fetcherSubmission:Q,replace:ee}=A===void 0?{}:A;P.revalidate&&(L=!0);let G=ei(R.location,P.location,{_isRedirect:!0});if(te(G,"Expected a location on the redirect navigation"),n){let ae=!1;if(P.reloadDocument)ae=!0;else if(Vm.test(P.location)){const Me=e.history.createURL(P.location);ae=Me.origin!==t.location.origin||yi(Me.pathname,u)==null}if(ae){ee?t.location.replace(P.location):t.location.assign(P.location);return}}O=null;let Y=ee===!0?Se.Replace:Se.Push,{formMethod:K,formAction:re,formEncType:Re}=R.navigation;!$&&!Q&&K&&re&&Re&&($=Pd(R.navigation));let Z=$||Q;if(Dw.has(P.status)&&Z&&Et(Z.formMethod))await An(Y,G,{submission:we({},Z,{formAction:P.location}),preventScrollReset:x});else{let ae=tu(G,$);await An(Y,G,{overrideNavigation:ae,fetcherSubmission:Q,preventScrollReset:x})}}async function qc(R,P,A,$,Q){let ee=await Promise.all([...A.map(K=>co("loader",Q,K,P,i,o,u,s.v7_relativeSplatPath)),...$.map(K=>K.matches&&K.match&&K.controller?co("loader",fo(e.history,K.path,K.controller.signal),K.match,K.matches,i,o,u,s.v7_relativeSplatPath):{type:ye.error,error:ct(404,{pathname:K.path})})]),G=ee.slice(0,A.length),Y=ee.slice(A.length);return await Promise.all([Od(R,A,G,G.map(()=>Q.signal),!1,w.loaderData),Od(R,$.map(K=>K.match),Y,$.map(K=>K.controller?K.controller.signal:null),!0)]),{results:ee,loaderResults:G,fetcherResults:Y}}function Sa(){L=!0,U.push(..._a()),V.forEach((R,P)=>{k.has(P)&&(q.push(P),Zt(P))})}function Jt(R,P,A){A===void 0&&(A={}),w.fetchers.set(R,P),et({fetchers:new Map(w.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function eo(R,P,A,$){$===void 0&&($={});let Q=Ao(w.matches,P);Pi(R),et({errors:{[Q.route.id]:A},fetchers:new Map(w.fetchers)},{flushSync:($&&$.flushSync)===!0})}function Kc(R){return s.v7_fetcherPersist&&(J.set(R,(J.get(R)||0)+1),ve.has(R)&&ve.delete(R)),w.fetchers.get(R)||Lw}function Pi(R){let P=w.fetchers.get(R);k.has(R)&&!(P&&P.state==="loading"&&I.has(R))&&Zt(R),V.delete(R),I.delete(R),W.delete(R),ve.delete(R),w.fetchers.delete(R)}function ny(R){if(s.v7_fetcherPersist){let P=(J.get(R)||0)-1;P<=0?(J.delete(R),ve.add(R)):J.set(R,P)}else Pi(R);et({fetchers:new Map(w.fetchers)})}function Zt(R){let P=k.get(R);te(P,"Expected fetch controller: "+R),P.abort(),k.delete(R)}function Yc(R){for(let P of R){let A=Kc(P),$=on(A.data);w.fetchers.set(P,$)}}function Gc(){let R=[],P=!1;for(let A of W){let $=w.fetchers.get(A);te($,"Expected fetcher: "+A),$.state==="loading"&&(W.delete(A),R.push(A),P=!0)}return Yc(R),P}function Xc(R){let P=[];for(let[A,$]of I)if($0}function ry(R,P){let A=w.blockers.get(R)||so;return Te.get(R)!==P&&Te.set(R,P),A}function Jc(R){w.blockers.delete(R),Te.delete(R)}function Ti(R,P){let A=w.blockers.get(R)||so;te(A.state==="unblocked"&&P.state==="blocked"||A.state==="blocked"&&P.state==="blocked"||A.state==="blocked"&&P.state==="proceeding"||A.state==="blocked"&&P.state==="unblocked"||A.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+P.state);let $=new Map(w.blockers);$.set(R,P),et({blockers:$})}function Zc(R){let{currentLocation:P,nextLocation:A,historyAction:$}=R;if(Te.size===0)return;Te.size>1&&Jn(!1,"A router only supports one blocker at a time");let Q=Array.from(Te.entries()),[ee,G]=Q[Q.length-1],Y=w.blockers.get(ee);if(!(Y&&Y.state==="proceeding")&&G({currentLocation:P,nextLocation:A,historyAction:$}))return ee}function _a(R){let P=[];return Ze.forEach((A,$)=>{(!R||R($))&&(A.cancel(),P.push($),Ze.delete($))}),P}function oy(R,P,A){if(d=R,g=P,v=A||null,!S&&w.navigation===eu){S=!0;let $=tf(w.location,w.matches);$!=null&&et({restoreScrollPosition:$})}return()=>{d=null,g=null,v=null}}function ef(R,P){return v&&v(R,P.map($=>sw($,w.loaderData)))||R.key}function iy(R,P){if(d&&g){let A=ef(R,P);d[A]=g()}}function tf(R,P){if(d){let A=ef(R,P),$=d[A];if(typeof $=="number")return $}return null}function ly(R){i={},a=ls(R,o,void 0,i)}return E={get basename(){return u},get future(){return s},get state(){return w},get routes(){return l},get window(){return t},initialize:qv,subscribe:Yv,enableScrollRestoration:oy,navigate:Vc,fetch:Zv,revalidate:Gv,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Kc,deleteFetcher:ny,dispose:Kv,getBlocker:ry,deleteBlocker:Jc,_internalFetchControllers:k,_internalActiveDeferreds:Ze,_internalSetRoutes:ly},E}function bw(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function as(e,t,n,r,o,i,l,a){let u,s;if(l){u=[];for(let h of t)if(u.push(h),h.route.id===l){s=h;break}}else u=t,s=t[t.length-1];let c=xc(o||".",Cc(u,i),yi(e.pathname,n)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!kc(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:En([n,c.pathname])),vi(c)}function gd(e,t,n,r){if(!r||!bw(r))return{path:n};if(r.formMethod&&!Hw(r.formMethod))return{path:n,error:ct(405,{method:r.formMethod})};let o=()=>({path:n,error:ct(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=Ym(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Et(l))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,g)=>{let[S,_]=g;return""+v+S+"="+_+` -`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Et(l))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}te(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=us(r.formData),s=r.formData;else if(r.body instanceof FormData)u=us(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Ed(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Ed(u)}catch{return o()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Et(c.formMethod))return{path:n,submission:c};let h=Xt(n);return t&&h.search&&kc(h.search)&&u.append("index",""),h.search="?"+u,{path:vi(h),submission:c}}function Fw(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function wd(e,t,n,r,o,i,l,a,u,s,c,h,d,v,g,S){let _=S?Object.values(S)[0]:g?Object.values(g)[0]:void 0,m=e.createURL(t.location),p=e.createURL(o),f=S?Object.keys(S)[0]:void 0,E=Fw(n,f).filter((C,x)=>{let{route:O}=C;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return O.loader.hydrate?!0:t.loaderData[O.id]===void 0&&(!t.errors||t.errors[O.id]===void 0);if(zw(t.loaderData,t.matches[x],C)||a.some(F=>F===C.route.id))return!0;let M=t.matches[x],D=C;return Sd(C,we({currentUrl:m,currentParams:M.params,nextUrl:p,nextParams:D.params},r,{actionResult:_,defaultShouldRevalidate:l||m.pathname+m.search===p.pathname+p.search||m.search!==p.search||Km(M,D)}))}),w=[];return c.forEach((C,x)=>{if(i||!n.some(B=>B.route.id===C.routeId)||s.has(x))return;let O=Rr(d,C.path,v);if(!O){w.push({key:x,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(x),D=ss(O,C.path),F=!1;h.has(x)?F=!1:u.includes(x)?F=!0:M&&M.state!=="idle"&&M.data===void 0?F=l:F=Sd(D,we({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:_,defaultShouldRevalidate:l})),F&&w.push({key:x,routeId:C.routeId,path:C.path,matches:O,match:D,controller:new AbortController})}),[E,w]}function zw(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Km(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Sd(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function _d(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];te(o,"No route found in manifest");let i={};for(let l in r){let u=o[l]!==void 0&&l!=="hasErrorBoundary";Jn(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!aw.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,we({},t(o),{lazy:void 0}))}async function co(e,t,n,r,o,i,l,a,u){u===void 0&&(u={});let s,c,h,d=S=>{let _,m=new Promise((p,f)=>_=f);return h=()=>_(),t.signal.addEventListener("abort",h),Promise.race([S({request:t,params:n.params,context:u.requestContext}),m])};try{let S=n.route[e];if(n.route.lazy)if(S){let _,m=await Promise.all([d(S).catch(p=>{_=p}),_d(n.route,i,o)]);if(_)throw _;c=m[0]}else if(await _d(n.route,i,o),S=n.route[e],S)c=await d(S);else if(e==="action"){let _=new URL(t.url),m=_.pathname+_.search;throw ct(405,{method:t.method,pathname:m,routeId:n.route.id})}else return{type:ye.data,data:void 0};else if(S)c=await d(S);else{let _=new URL(t.url),m=_.pathname+_.search;throw ct(404,{pathname:m})}te(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(S){s=ye.error,c=S}finally{h&&t.signal.removeEventListener("abort",h)}if(Ww(c)){let S=c.status;if(Aw.has(S)){let m=c.headers.get("Location");if(te(m,"Redirects returned/thrown from loaders/actions must have a Location header"),!Vm.test(m))m=as(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,m,a);else if(!u.isStaticRequest){let p=new URL(t.url),f=m.startsWith("//")?new URL(p.protocol+m):new URL(m),y=yi(f.pathname,l)!=null;f.origin===p.origin&&y&&(m=f.pathname+f.search+f.hash)}if(u.isStaticRequest)throw c.headers.set("Location",m),c;return{type:ye.redirect,status:S,location:m,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===ye.error?ye.error:ye.data,response:c};let _;try{let m=c.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?c.body==null?_=null:_=await c.json():_=await c.text()}catch(m){return{type:ye.error,error:m}}return s===ye.error?{type:s,error:new Rc(S,c.statusText,_),headers:c.headers}:{type:ye.data,data:_,statusCode:c.status,headers:c.headers}}if(s===ye.error)return{type:s,error:c};if(Bw(c)){var v,g;return{type:ye.deferred,deferredData:c,statusCode:(v=c.init)==null?void 0:v.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:ye.data,data:c}}function fo(e,t,n,r){let o=e.createURL(Ym(t)).toString(),i={signal:n};if(r&&Et(r.formMethod)){let{formMethod:l,formEncType:a}=r;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=us(r.formData):i.body=r.formData}return new Request(o,i)}function us(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ed(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Uw(e,t,n,r,o){let i={},l=null,a,u=!1,s={};return n.forEach((c,h)=>{let d=t[h].route.id;if(te(!Bn(c),"Cannot handle redirect results in processLoaderData"),kr(c)){let v=Ao(e,d),g=c.error;r&&(g=Object.values(r)[0],r=void 0),l=l||{},l[v.route.id]==null&&(l[v.route.id]=g),i[d]=void 0,u||(u=!0,a=Hm(c.error)?c.error.status:500),c.headers&&(s[d]=c.headers)}else $n(c)?(o.set(d,c.deferredData),i[d]=c.deferredData.data):i[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[d]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:s}}function Cd(e,t,n,r,o,i,l,a){let{loaderData:u,errors:s}=Uw(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Rd(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ct(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new Rc(e||500,l,new Error(a),!0)}function kd(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Bn(n))return{result:n,idx:t}}}function Ym(e){let t=typeof e=="string"?Xt(e):e;return vi(we({},t,{hash:""}))}function $w(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function $n(e){return e.type===ye.deferred}function kr(e){return e.type===ye.error}function Bn(e){return(e&&e.type)===ye.redirect}function Bw(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Ww(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Hw(e){return Nw.has(e.toLowerCase())}function Et(e){return Tw.has(e.toLowerCase())}async function Od(e,t,n,r,o,i){for(let l=0;lh.route.id===u.route.id),c=s!=null&&!Km(s,u)&&(i&&i[u.route.id])!==void 0;if($n(a)&&(o||c)){let h=r[l];te(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await Gm(a,h,o).then(d=>{d&&(n[l]=d||n[l])})}}}async function Gm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ye.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ye.error,error:o}}return{type:ye.data,data:e.deferredData.data}}}function kc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ss(e,t){let n=typeof t=="string"?Xt(t).search:t.search;if(e[e.length-1].route.index&&kc(n||""))return e[e.length-1];let r=Wm(e);return r[r.length-1]}function Pd(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function tu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Qw(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function po(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Vw(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function on(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function qw(e,t){try{let n=e.sessionStorage.getItem(qm);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Kw(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(qm,JSON.stringify(n))}catch(r){Jn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function kn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iS(){return Math.random().toString(36).substr(2,8)}function vd(e,t){return{usr:e.state,key:e.key,idx:t}}function ei(e,t,n,r){return n===void 0&&(n=null),Se({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ut(t):t,{state:n,key:t&&t.key||r||iS()})}function vi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ut(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function lS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=we.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(Se({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function h(){a=we.Pop;let _=c(),m=_==null?null:_-s;s=_,u&&u({action:a,location:w.location,delta:m})}function d(_,m){a=we.Push;let p=ei(w.location,_,m);n&&n(p,_),s=c()+1;let f=vd(p,s),y=w.createHref(p);try{l.pushState(f,"",y)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(y)}i&&u&&u({action:a,location:w.location,delta:1})}function v(_,m){a=we.Replace;let p=ei(w.location,_,m);n&&n(p,_),s=c();let f=vd(p,s),y=w.createHref(p);l.replaceState(f,"",y),i&&u&&u({action:a,location:w.location,delta:0})}function g(_){let m=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof _=="string"?_:vi(_);return te(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let w={get action(){return a},get location(){return e(o,l)},listen(_){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(md,h),u=_,()=>{o.removeEventListener(md,h),u=null}},createHref(_){return t(o,_)},createURL:g,encodeLocation(_){let m=g(_);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:v,go(_){return l.go(_)}};return w}var ye;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ye||(ye={}));const aS=new Set(["lazy","caseSensitive","path","id","index","children"]);function uS(e){return e.index===!0}function ls(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(te(o.index!==!0||!o.children,"Cannot specify children on an index route"),te(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),uS(o)){let u=Se({},o,t(o),{id:a});return r[a]=u,u}else{let u=Se({},o,t(o),{id:a,children:void 0});return r[a]=u,o.children&&(u.children=ls(o.children,t,l,r)),u}})}function Rr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ut(t):t,o=yi(r.pathname||"/",n);if(o==null)return null;let i=$m(e);cS(i);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(te(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=En([r,u.relativePath]),c=n.concat(u);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),$m(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:yS(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let u of Bm(i.path))o(i,l,u)}),t}function Bm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Bm(r.join("/")),a=[];return a.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function cS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fS=/^:[\w-]+$/,dS=3,pS=2,hS=1,mS=10,vS=-2,yd=e=>e==="*";function yS(e,t){let n=e.split("/"),r=n.length;return n.some(yd)&&(r+=vS),t&&(r+=pS),n.filter(o=>!yd(o)).reduce((o,i)=>o+(fS.test(i)?dS:i===""?hS:mS),r)}function gS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function SS(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:d,isOptional:v}=c;if(d==="*"){let w=a[h]||"";l=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const g=a[h];return v&&!g?s[d]=void 0:s[d]=CS(g||"",d),s},{}),pathname:i,pathnameBase:l,pattern:e}}function _S(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ES(e){try{return decodeURI(e)}catch(t){return kn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function CS(e,t){try{return decodeURIComponent(e)}catch(n){return kn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function yi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function xS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ut(e):e;return{pathname:n?n.startsWith("/")?n:RS(n,t):t,search:OS(r),hash:PS(o)}}function RS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Za(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Wm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cc(e,t){let n=Wm(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ut(e):(o=Se({},e),te(!o.pathname||!o.pathname.includes("?"),Za("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Za("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Za("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(l==null)a=n;else{let h=t.length-1;if(!r&&l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),h-=1;o.pathname=d.join("/")}a=h>=0?t[h]:"/"}let u=xS(o,a),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const En=e=>e.join("/").replace(/\/\/+/g,"/"),kS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Rc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Hm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Qm=["post","put","patch","delete"],TS=new Set(Qm),MS=["get",...Qm],NS=new Set(MS),AS=new Set([301,302,303,307,308]),DS=new Set([307,308]),eu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},LS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},so={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Vm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jS=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),qm="remix-router-transitions";function IS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;te(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;o=P=>({hasErrorBoundary:R(P)})}else o=jS;let i={},l=ls(e.routes,o,void 0,i),a,u=e.basename||"/",s=Se({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,h=new Set,d=null,v=null,g=null,w=e.hydrationData!=null,_=Rr(l,e.history.location,u),m=null;if(_==null){let R=ct(404,{pathname:e.history.location.pathname}),{matches:P,route:A}=Rd(l);_=P,m={[A.id]:R}}let p,f=_.some(R=>R.route.lazy),y=_.some(R=>R.route.loader);if(f)p=!1;else if(!y)p=!0;else if(s.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null;p=_.every(A=>A.route.loader&&A.route.loader.hydrate!==!0&&(R&&R[A.route.id]!==void 0||P&&P[A.route.id]!==void 0))}else p=e.hydrationData!=null;let E,S={historyAction:e.history.action,location:e.history.location,matches:_,initialized:p,navigation:eu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},C=we.Pop,x=!1,O,M=!1,D=new Map,F=null,B=!1,L=!1,U=[],q=[],k=new Map,T=0,z=-1,I=new Map,W=new Set,V=new Map,J=new Map,ve=new Set,Ze=new Map,Te=new Map,At=!1;function qv(){if(c=e.history.listen(R=>{let{action:P,location:A,delta:$}=R;if(At){At=!1;return}kn(Te.size===0||$!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=Zc({currentLocation:S.location,nextLocation:A,historyAction:P});if(Q&&$!=null){At=!0,e.history.go($*-1),Ti(Q,{state:"blocked",location:A,proceed(){Ti(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),e.history.go($)},reset(){let ee=new Map(S.blockers);ee.set(Q,so),et({blockers:ee})}});return}return Dn(P,A)}),n){qS(t,D);let R=()=>KS(t,D);t.addEventListener("pagehide",R),F=()=>t.removeEventListener("pagehide",R)}return S.initialized||Dn(we.Pop,S.location,{initialHydration:!0}),E}function Kv(){c&&c(),F&&F(),h.clear(),O&&O.abort(),S.fetchers.forEach((R,P)=>Pi(P)),S.blockers.forEach((R,P)=>Jc(P))}function Yv(R){return h.add(R),()=>h.delete(R)}function et(R,P){P===void 0&&(P={}),S=Se({},S,R);let A=[],$=[];s.v7_fetcherPersist&&S.fetchers.forEach((Q,ee)=>{Q.state==="idle"&&(ve.has(ee)?$.push(ee):A.push(ee))}),[...h].forEach(Q=>Q(S,{deletedFetchers:$,unstable_viewTransitionOpts:P.viewTransitionOpts,unstable_flushSync:P.flushSync===!0})),s.v7_fetcherPersist&&(A.forEach(Q=>S.fetchers.delete(Q)),$.forEach(Q=>Pi(Q)))}function Jr(R,P,A){var $,Q;let{flushSync:ee}=A===void 0?{}:A,G=S.actionData!=null&&S.navigation.formMethod!=null&&Et(S.navigation.formMethod)&&S.navigation.state==="loading"&&(($=R.state)==null?void 0:$._isRedirect)!==!0,Y;P.actionData?Object.keys(P.actionData).length>0?Y=P.actionData:Y=null:G?Y=S.actionData:Y=null;let K=P.loaderData?xd(S.loaderData,P.loaderData,P.matches||[],P.errors):S.loaderData,re=S.blockers;re.size>0&&(re=new Map(re),re.forEach((ae,Me)=>re.set(Me,so)));let Re=x===!0||S.navigation.formMethod!=null&&Et(S.navigation.formMethod)&&((Q=R.state)==null?void 0:Q._isRedirect)!==!0;a&&(l=a,a=void 0),B||C===we.Pop||(C===we.Push?e.history.push(R,R.state):C===we.Replace&&e.history.replace(R,R.state));let Z;if(C===we.Pop){let ae=D.get(S.location.pathname);ae&&ae.has(R.pathname)?Z={currentLocation:S.location,nextLocation:R}:D.has(R.pathname)&&(Z={currentLocation:R,nextLocation:S.location})}else if(M){let ae=D.get(S.location.pathname);ae?ae.add(R.pathname):(ae=new Set([R.pathname]),D.set(S.location.pathname,ae)),Z={currentLocation:S.location,nextLocation:R}}et(Se({},P,{actionData:Y,loaderData:K,historyAction:C,location:R,initialized:!0,navigation:eu,revalidation:"idle",restoreScrollPosition:tf(R,P.matches||S.matches),preventScrollReset:Re,blockers:re}),{viewTransitionOpts:Z,flushSync:ee===!0}),C=we.Pop,x=!1,M=!1,B=!1,L=!1,U=[],q=[]}async function Vc(R,P){if(typeof R=="number"){e.history.go(R);return}let A=as(S.location,S.matches,u,s.v7_prependBasename,R,s.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:$,submission:Q,error:ee}=gd(s.v7_normalizeFormMethod,!1,A,P),G=S.location,Y=ei(S.location,$,P&&P.state);Y=Se({},Y,e.history.encodeLocation(Y));let K=P&&P.replace!=null?P.replace:void 0,re=we.Push;K===!0?re=we.Replace:K===!1||Q!=null&&Et(Q.formMethod)&&Q.formAction===S.location.pathname+S.location.search&&(re=we.Replace);let Re=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,Z=(P&&P.unstable_flushSync)===!0,ae=Zc({currentLocation:G,nextLocation:Y,historyAction:re});if(ae){Ti(ae,{state:"blocked",location:Y,proceed(){Ti(ae,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),Vc(R,P)},reset(){let Me=new Map(S.blockers);Me.set(ae,so),et({blockers:Me})}});return}return await Dn(re,Y,{submission:Q,pendingError:ee,preventScrollReset:Re,replace:P&&P.replace,enableViewTransition:P&&P.unstable_viewTransition,flushSync:Z})}function Gv(){if(wa(),et({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){Dn(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}Dn(C||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation})}}async function Dn(R,P,A){O&&O.abort(),O=null,C=R,B=(A&&A.startUninterruptedRevalidation)===!0,iy(S.location,S.matches),x=(A&&A.preventScrollReset)===!0,M=(A&&A.enableViewTransition)===!0;let $=a||l,Q=A&&A.overrideNavigation,ee=Rr($,P,u),G=(A&&A.flushSync)===!0;if(!ee){let Me=ct(404,{pathname:P.pathname}),{matches:st,route:ke}=Rd($);_a(),Jr(P,{matches:st,loaderData:{},errors:{[ke.id]:Me}},{flushSync:G});return}if(S.initialized&&!L&&$S(S.location,P)&&!(A&&A.submission&&Et(A.submission.formMethod))){Jr(P,{matches:ee},{flushSync:G});return}O=new AbortController;let Y=fo(e.history,P,O.signal,A&&A.submission),K,re;if(A&&A.pendingError)re={[Ao(ee).route.id]:A.pendingError};else if(A&&A.submission&&Et(A.submission.formMethod)){let Me=await Xv(Y,P,A.submission,ee,{replace:A.replace,flushSync:G});if(Me.shortCircuited)return;K=Me.pendingActionData,re=Me.pendingActionError,Q=tu(P,A.submission),G=!1,Y=new Request(Y.url,{signal:Y.signal})}let{shortCircuited:Re,loaderData:Z,errors:ae}=await Jv(Y,P,ee,Q,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,G,K,re);Re||(O=null,Jr(P,Se({matches:ee},K?{actionData:K}:{},{loaderData:Z,errors:ae})))}async function Xv(R,P,A,$,Q){Q===void 0&&(Q={}),wa();let ee=QS(P,A);et({navigation:ee},{flushSync:Q.flushSync===!0});let G,Y=ss($,P);if(!Y.route.action&&!Y.route.lazy)G={type:ye.error,error:ct(405,{method:R.method,pathname:P.pathname,routeId:Y.route.id})};else if(G=await co("action",R,Y,$,i,o,u,s.v7_relativeSplatPath),R.signal.aborted)return{shortCircuited:!0};if(Wn(G)){let K;return Q&&Q.replace!=null?K=Q.replace:K=G.location===S.location.pathname+S.location.search,await Zr(S,G,{submission:A,replace:K}),{shortCircuited:!0}}if(kr(G)){let K=Ao($,Y.route.id);return(Q&&Q.replace)!==!0&&(C=we.Push),{pendingActionData:{},pendingActionError:{[K.route.id]:G.error}}}if(Bn(G))throw ct(400,{type:"defer-action"});return{pendingActionData:{[Y.route.id]:G.data}}}async function Jv(R,P,A,$,Q,ee,G,Y,K,re,Re){let Z=$||tu(P,Q),ae=Q||ee||Pd(Z),Me=a||l,[st,ke]=Sd(e.history,S,A,ae,P,s.v7_partialHydration&&Y===!0,L,U,q,ve,V,W,Me,u,re,Re);if(_a(le=>!(A&&A.some(fe=>fe.route.id===le))||st&&st.some(fe=>fe.route.id===le)),z=++T,st.length===0&&ke.length===0){let le=Gc();return Jr(P,Se({matches:A,loaderData:{},errors:Re||null},re?{actionData:re}:{},le?{fetchers:new Map(S.fetchers)}:{}),{flushSync:K}),{shortCircuited:!0}}if(!B&&(!s.v7_partialHydration||!Y)){ke.forEach(fe=>{let Dt=S.fetchers.get(fe.key),Ni=po(void 0,Dt?Dt.data:void 0);S.fetchers.set(fe.key,Ni)});let le=re||S.actionData;et(Se({navigation:Z},le?Object.keys(le).length===0?{actionData:null}:{actionData:le}:{},ke.length>0?{fetchers:new Map(S.fetchers)}:{}),{flushSync:K})}ke.forEach(le=>{k.has(le.key)&&Zt(le.key),le.controller&&k.set(le.key,le.controller)});let lr=()=>ke.forEach(le=>Zt(le.key));O&&O.signal.addEventListener("abort",lr);let{results:Ea,loaderResults:ar,fetcherResults:en}=await qc(S.matches,A,st,ke,R);if(R.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",lr),ke.forEach(le=>k.delete(le.key));let Ln=kd(Ea);if(Ln){if(Ln.idx>=st.length){let le=ke[Ln.idx-st.length].key;W.add(le)}return await Zr(S,Ln.result,{replace:G}),{shortCircuited:!0}}let{loaderData:Ca,errors:xa}=Cd(S,A,st,ar,Re,ke,en,Ze);Ze.forEach((le,fe)=>{le.subscribe(Dt=>{(Dt||le.done)&&Ze.delete(fe)})});let Ra=Gc(),ur=Xc(z),Mi=Ra||ur||ke.length>0;return Se({loaderData:Ca,errors:xa},Mi?{fetchers:new Map(S.fetchers)}:{})}function Zv(R,P,A,$){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");k.has(R)&&Zt(R);let Q=($&&$.unstable_flushSync)===!0,ee=a||l,G=as(S.location,S.matches,u,s.v7_prependBasename,A,s.v7_relativeSplatPath,P,$==null?void 0:$.relative),Y=Rr(ee,G,u);if(!Y){eo(R,P,ct(404,{pathname:G}),{flushSync:Q});return}let{path:K,submission:re,error:Re}=gd(s.v7_normalizeFormMethod,!0,G,$);if(Re){eo(R,P,Re,{flushSync:Q});return}let Z=ss(Y,K);if(x=($&&$.preventScrollReset)===!0,re&&Et(re.formMethod)){ey(R,P,K,Z,Y,Q,re);return}V.set(R,{routeId:P,path:K}),ty(R,P,K,Z,Y,Q,re)}async function ey(R,P,A,$,Q,ee,G){if(wa(),V.delete(R),!$.route.action&&!$.route.lazy){let fe=ct(405,{method:G.formMethod,pathname:A,routeId:P});eo(R,P,fe,{flushSync:ee});return}let Y=S.fetchers.get(R);Jt(R,VS(G,Y),{flushSync:ee});let K=new AbortController,re=fo(e.history,A,K.signal,G);k.set(R,K);let Re=T,Z=await co("action",re,$,Q,i,o,u,s.v7_relativeSplatPath);if(re.signal.aborted){k.get(R)===K&&k.delete(R);return}if(s.v7_fetcherPersist&&ve.has(R)){if(Wn(Z)||kr(Z)){Jt(R,on(void 0));return}}else{if(Wn(Z))if(k.delete(R),z>Re){Jt(R,on(void 0));return}else return W.add(R),Jt(R,po(G)),Zr(S,Z,{fetcherSubmission:G});if(kr(Z)){eo(R,P,Z.error);return}}if(Bn(Z))throw ct(400,{type:"defer-action"});let ae=S.navigation.location||S.location,Me=fo(e.history,ae,K.signal),st=a||l,ke=S.navigation.state!=="idle"?Rr(st,S.navigation.location,u):S.matches;te(ke,"Didn't find any matches after fetcher action");let lr=++T;I.set(R,lr);let Ea=po(G,Z.data);S.fetchers.set(R,Ea);let[ar,en]=Sd(e.history,S,ke,G,ae,!1,L,U,q,ve,V,W,st,u,{[$.route.id]:Z.data},void 0);en.filter(fe=>fe.key!==R).forEach(fe=>{let Dt=fe.key,Ni=S.fetchers.get(Dt),ay=po(void 0,Ni?Ni.data:void 0);S.fetchers.set(Dt,ay),k.has(Dt)&&Zt(Dt),fe.controller&&k.set(Dt,fe.controller)}),et({fetchers:new Map(S.fetchers)});let Ln=()=>en.forEach(fe=>Zt(fe.key));K.signal.addEventListener("abort",Ln);let{results:Ca,loaderResults:xa,fetcherResults:Ra}=await qc(S.matches,ke,ar,en,Me);if(K.signal.aborted)return;K.signal.removeEventListener("abort",Ln),I.delete(R),k.delete(R),en.forEach(fe=>k.delete(fe.key));let ur=kd(Ca);if(ur){if(ur.idx>=ar.length){let fe=en[ur.idx-ar.length].key;W.add(fe)}return Zr(S,ur.result)}let{loaderData:Mi,errors:le}=Cd(S,S.matches,ar,xa,void 0,en,Ra,Ze);if(S.fetchers.has(R)){let fe=on(Z.data);S.fetchers.set(R,fe)}Xc(lr),S.navigation.state==="loading"&&lr>z?(te(C,"Expected pending action"),O&&O.abort(),Jr(S.navigation.location,{matches:ke,loaderData:Mi,errors:le,fetchers:new Map(S.fetchers)})):(et({errors:le,loaderData:xd(S.loaderData,Mi,ke,le),fetchers:new Map(S.fetchers)}),L=!1)}async function ty(R,P,A,$,Q,ee,G){let Y=S.fetchers.get(R);Jt(R,po(G,Y?Y.data:void 0),{flushSync:ee});let K=new AbortController,re=fo(e.history,A,K.signal);k.set(R,K);let Re=T,Z=await co("loader",re,$,Q,i,o,u,s.v7_relativeSplatPath);if(Bn(Z)&&(Z=await Gm(Z,re.signal,!0)||Z),k.get(R)===K&&k.delete(R),!re.signal.aborted){if(ve.has(R)){Jt(R,on(void 0));return}if(Wn(Z))if(z>Re){Jt(R,on(void 0));return}else{W.add(R),await Zr(S,Z);return}if(kr(Z)){eo(R,P,Z.error);return}te(!Bn(Z),"Unhandled fetcher deferred data"),Jt(R,on(Z.data))}}async function Zr(R,P,A){let{submission:$,fetcherSubmission:Q,replace:ee}=A===void 0?{}:A;P.revalidate&&(L=!0);let G=ei(R.location,P.location,{_isRedirect:!0});if(te(G,"Expected a location on the redirect navigation"),n){let ae=!1;if(P.reloadDocument)ae=!0;else if(Vm.test(P.location)){const Me=e.history.createURL(P.location);ae=Me.origin!==t.location.origin||yi(Me.pathname,u)==null}if(ae){ee?t.location.replace(P.location):t.location.assign(P.location);return}}O=null;let Y=ee===!0?we.Replace:we.Push,{formMethod:K,formAction:re,formEncType:Re}=R.navigation;!$&&!Q&&K&&re&&Re&&($=Pd(R.navigation));let Z=$||Q;if(DS.has(P.status)&&Z&&Et(Z.formMethod))await Dn(Y,G,{submission:Se({},Z,{formAction:P.location}),preventScrollReset:x});else{let ae=tu(G,$);await Dn(Y,G,{overrideNavigation:ae,fetcherSubmission:Q,preventScrollReset:x})}}async function qc(R,P,A,$,Q){let ee=await Promise.all([...A.map(K=>co("loader",Q,K,P,i,o,u,s.v7_relativeSplatPath)),...$.map(K=>K.matches&&K.match&&K.controller?co("loader",fo(e.history,K.path,K.controller.signal),K.match,K.matches,i,o,u,s.v7_relativeSplatPath):{type:ye.error,error:ct(404,{pathname:K.path})})]),G=ee.slice(0,A.length),Y=ee.slice(A.length);return await Promise.all([Od(R,A,G,G.map(()=>Q.signal),!1,S.loaderData),Od(R,$.map(K=>K.match),Y,$.map(K=>K.controller?K.controller.signal:null),!0)]),{results:ee,loaderResults:G,fetcherResults:Y}}function wa(){L=!0,U.push(..._a()),V.forEach((R,P)=>{k.has(P)&&(q.push(P),Zt(P))})}function Jt(R,P,A){A===void 0&&(A={}),S.fetchers.set(R,P),et({fetchers:new Map(S.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function eo(R,P,A,$){$===void 0&&($={});let Q=Ao(S.matches,P);Pi(R),et({errors:{[Q.route.id]:A},fetchers:new Map(S.fetchers)},{flushSync:($&&$.flushSync)===!0})}function Kc(R){return s.v7_fetcherPersist&&(J.set(R,(J.get(R)||0)+1),ve.has(R)&&ve.delete(R)),S.fetchers.get(R)||LS}function Pi(R){let P=S.fetchers.get(R);k.has(R)&&!(P&&P.state==="loading"&&I.has(R))&&Zt(R),V.delete(R),I.delete(R),W.delete(R),ve.delete(R),S.fetchers.delete(R)}function ny(R){if(s.v7_fetcherPersist){let P=(J.get(R)||0)-1;P<=0?(J.delete(R),ve.add(R)):J.set(R,P)}else Pi(R);et({fetchers:new Map(S.fetchers)})}function Zt(R){let P=k.get(R);te(P,"Expected fetch controller: "+R),P.abort(),k.delete(R)}function Yc(R){for(let P of R){let A=Kc(P),$=on(A.data);S.fetchers.set(P,$)}}function Gc(){let R=[],P=!1;for(let A of W){let $=S.fetchers.get(A);te($,"Expected fetcher: "+A),$.state==="loading"&&(W.delete(A),R.push(A),P=!0)}return Yc(R),P}function Xc(R){let P=[];for(let[A,$]of I)if($0}function ry(R,P){let A=S.blockers.get(R)||so;return Te.get(R)!==P&&Te.set(R,P),A}function Jc(R){S.blockers.delete(R),Te.delete(R)}function Ti(R,P){let A=S.blockers.get(R)||so;te(A.state==="unblocked"&&P.state==="blocked"||A.state==="blocked"&&P.state==="blocked"||A.state==="blocked"&&P.state==="proceeding"||A.state==="blocked"&&P.state==="unblocked"||A.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+P.state);let $=new Map(S.blockers);$.set(R,P),et({blockers:$})}function Zc(R){let{currentLocation:P,nextLocation:A,historyAction:$}=R;if(Te.size===0)return;Te.size>1&&kn(!1,"A router only supports one blocker at a time");let Q=Array.from(Te.entries()),[ee,G]=Q[Q.length-1],Y=S.blockers.get(ee);if(!(Y&&Y.state==="proceeding")&&G({currentLocation:P,nextLocation:A,historyAction:$}))return ee}function _a(R){let P=[];return Ze.forEach((A,$)=>{(!R||R($))&&(A.cancel(),P.push($),Ze.delete($))}),P}function oy(R,P,A){if(d=R,g=P,v=A||null,!w&&S.navigation===eu){w=!0;let $=tf(S.location,S.matches);$!=null&&et({restoreScrollPosition:$})}return()=>{d=null,g=null,v=null}}function ef(R,P){return v&&v(R,P.map($=>sS($,S.loaderData)))||R.key}function iy(R,P){if(d&&g){let A=ef(R,P);d[A]=g()}}function tf(R,P){if(d){let A=ef(R,P),$=d[A];if(typeof $=="number")return $}return null}function ly(R){i={},a=ls(R,o,void 0,i)}return E={get basename(){return u},get future(){return s},get state(){return S},get routes(){return l},get window(){return t},initialize:qv,subscribe:Yv,enableScrollRestoration:oy,navigate:Vc,fetch:Zv,revalidate:Gv,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Kc,deleteFetcher:ny,dispose:Kv,getBlocker:ry,deleteBlocker:Jc,_internalFetchControllers:k,_internalActiveDeferreds:Ze,_internalSetRoutes:ly},E}function bS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function as(e,t,n,r,o,i,l,a){let u,s;if(l){u=[];for(let h of t)if(u.push(h),h.route.id===l){s=h;break}}else u=t,s=t[t.length-1];let c=xc(o||".",Cc(u,i),yi(e.pathname,n)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!kc(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:En([n,c.pathname])),vi(c)}function gd(e,t,n,r){if(!r||!bS(r))return{path:n};if(r.formMethod&&!HS(r.formMethod))return{path:n,error:ct(405,{method:r.formMethod})};let o=()=>({path:n,error:ct(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=Ym(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Et(l))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,g)=>{let[w,_]=g;return""+v+w+"="+_+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Et(l))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}te(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=us(r.formData),s=r.formData;else if(r.body instanceof FormData)u=us(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Ed(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Ed(u)}catch{return o()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Et(c.formMethod))return{path:n,submission:c};let h=Ut(n);return t&&h.search&&kc(h.search)&&u.append("index",""),h.search="?"+u,{path:vi(h),submission:c}}function FS(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Sd(e,t,n,r,o,i,l,a,u,s,c,h,d,v,g,w){let _=w?Object.values(w)[0]:g?Object.values(g)[0]:void 0,m=e.createURL(t.location),p=e.createURL(o),f=w?Object.keys(w)[0]:void 0,E=FS(n,f).filter((C,x)=>{let{route:O}=C;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return O.loader.hydrate?!0:t.loaderData[O.id]===void 0&&(!t.errors||t.errors[O.id]===void 0);if(zS(t.loaderData,t.matches[x],C)||a.some(F=>F===C.route.id))return!0;let M=t.matches[x],D=C;return wd(C,Se({currentUrl:m,currentParams:M.params,nextUrl:p,nextParams:D.params},r,{actionResult:_,defaultShouldRevalidate:l||m.pathname+m.search===p.pathname+p.search||m.search!==p.search||Km(M,D)}))}),S=[];return c.forEach((C,x)=>{if(i||!n.some(B=>B.route.id===C.routeId)||s.has(x))return;let O=Rr(d,C.path,v);if(!O){S.push({key:x,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(x),D=ss(O,C.path),F=!1;h.has(x)?F=!1:u.includes(x)?F=!0:M&&M.state!=="idle"&&M.data===void 0?F=l:F=wd(D,Se({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:_,defaultShouldRevalidate:l})),F&&S.push({key:x,routeId:C.routeId,path:C.path,matches:O,match:D,controller:new AbortController})}),[E,S]}function zS(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function Km(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function wd(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function _d(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];te(o,"No route found in manifest");let i={};for(let l in r){let u=o[l]!==void 0&&l!=="hasErrorBoundary";kn(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!aS.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,Se({},t(o),{lazy:void 0}))}async function co(e,t,n,r,o,i,l,a,u){u===void 0&&(u={});let s,c,h,d=w=>{let _,m=new Promise((p,f)=>_=f);return h=()=>_(),t.signal.addEventListener("abort",h),Promise.race([w({request:t,params:n.params,context:u.requestContext}),m])};try{let w=n.route[e];if(n.route.lazy)if(w){let _,m=await Promise.all([d(w).catch(p=>{_=p}),_d(n.route,i,o)]);if(_)throw _;c=m[0]}else if(await _d(n.route,i,o),w=n.route[e],w)c=await d(w);else if(e==="action"){let _=new URL(t.url),m=_.pathname+_.search;throw ct(405,{method:t.method,pathname:m,routeId:n.route.id})}else return{type:ye.data,data:void 0};else if(w)c=await d(w);else{let _=new URL(t.url),m=_.pathname+_.search;throw ct(404,{pathname:m})}te(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(w){s=ye.error,c=w}finally{h&&t.signal.removeEventListener("abort",h)}if(WS(c)){let w=c.status;if(AS.has(w)){let m=c.headers.get("Location");if(te(m,"Redirects returned/thrown from loaders/actions must have a Location header"),!Vm.test(m))m=as(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,m,a);else if(!u.isStaticRequest){let p=new URL(t.url),f=m.startsWith("//")?new URL(p.protocol+m):new URL(m),y=yi(f.pathname,l)!=null;f.origin===p.origin&&y&&(m=f.pathname+f.search+f.hash)}if(u.isStaticRequest)throw c.headers.set("Location",m),c;return{type:ye.redirect,status:w,location:m,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===ye.error?ye.error:ye.data,response:c};let _;try{let m=c.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?c.body==null?_=null:_=await c.json():_=await c.text()}catch(m){return{type:ye.error,error:m}}return s===ye.error?{type:s,error:new Rc(w,c.statusText,_),headers:c.headers}:{type:ye.data,data:_,statusCode:c.status,headers:c.headers}}if(s===ye.error)return{type:s,error:c};if(BS(c)){var v,g;return{type:ye.deferred,deferredData:c,statusCode:(v=c.init)==null?void 0:v.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:ye.data,data:c}}function fo(e,t,n,r){let o=e.createURL(Ym(t)).toString(),i={signal:n};if(r&&Et(r.formMethod)){let{formMethod:l,formEncType:a}=r;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=us(r.formData):i.body=r.formData}return new Request(o,i)}function us(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Ed(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function US(e,t,n,r,o){let i={},l=null,a,u=!1,s={};return n.forEach((c,h)=>{let d=t[h].route.id;if(te(!Wn(c),"Cannot handle redirect results in processLoaderData"),kr(c)){let v=Ao(e,d),g=c.error;r&&(g=Object.values(r)[0],r=void 0),l=l||{},l[v.route.id]==null&&(l[v.route.id]=g),i[d]=void 0,u||(u=!0,a=Hm(c.error)?c.error.status:500),c.headers&&(s[d]=c.headers)}else Bn(c)?(o.set(d,c.deferredData),i[d]=c.deferredData.data):i[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[d]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:s}}function Cd(e,t,n,r,o,i,l,a){let{loaderData:u,errors:s}=US(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Rd(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ct(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new Rc(e||500,l,new Error(a),!0)}function kd(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Wn(n))return{result:n,idx:t}}}function Ym(e){let t=typeof e=="string"?Ut(e):e;return vi(Se({},t,{hash:""}))}function $S(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Bn(e){return e.type===ye.deferred}function kr(e){return e.type===ye.error}function Wn(e){return(e&&e.type)===ye.redirect}function BS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function WS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function HS(e){return NS.has(e.toLowerCase())}function Et(e){return TS.has(e.toLowerCase())}async function Od(e,t,n,r,o,i){for(let l=0;lh.route.id===u.route.id),c=s!=null&&!Km(s,u)&&(i&&i[u.route.id])!==void 0;if(Bn(a)&&(o||c)){let h=r[l];te(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await Gm(a,h,o).then(d=>{d&&(n[l]=d||n[l])})}}}async function Gm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ye.data,data:e.deferredData.unwrappedData}}catch(o){return{type:ye.error,error:o}}return{type:ye.data,data:e.deferredData.data}}}function kc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ss(e,t){let n=typeof t=="string"?Ut(t).search:t.search;if(e[e.length-1].route.index&&kc(n||""))return e[e.length-1];let r=Wm(e);return r[r.length-1]}function Pd(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function tu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function QS(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function po(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function VS(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function on(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function qS(e,t){try{let n=e.sessionStorage.getItem(qm);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function KS(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(qm,JSON.stringify(n))}catch(r){kn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.22.0 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),N.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let h=xc(s,JSON.parse(l),i,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:En([t,h.pathname])),(c.replace?r.replace:r.push)(h,c.state,c)},[t,r,l,i,e])}const Gw=N.createContext(null);function Xw(e){let t=N.useContext(Nn).outlet;return t&&N.createElement(Gw.Provider,{value:e},t)}function Jw(e,t,n,r){wi()||te(!1);let{navigator:o}=N.useContext(gi),{matches:i}=N.useContext(Nn),l=i[i.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=Oc(),c;if(t){var h;let _=typeof t=="string"?Xt(t):t;u==="/"||(h=_.pathname)!=null&&h.startsWith(u)||te(!1),c=_}else c=s;let d=c.pathname||"/",v=u==="/"?d:d.slice(u.length)||"/",g=Rr(e,{pathname:v}),S=rS(g&&g.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:En([u,o.encodeLocation?o.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:En([u,o.encodeLocation?o.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),i,n,r);return t&&S?N.createElement(ha.Provider,{value:{location:ti({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Se.Pop}},S):S}function Zw(){let e=aS(),t=Hm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:o},n):null,null)}const eS=N.createElement(Zw,null);class tS extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?N.createElement(Nn.Provider,{value:this.props.routeContext},N.createElement(Jm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nS(e){let{routeContext:t,match:n,children:r}=e,o=N.useContext(pa);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(Nn.Provider,{value:t},r)}function rS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=l.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id]));c>=0||te(!1),l=l.slice(0,Math.min(l.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((c,h,d)=>{let v,g=!1,S=null,_=null;n&&(v=a&&h.route.id?a[h.route.id]:void 0,S=h.route.errorElement||eS,u&&(s<0&&d===0?(sS("route-fallback",!1),g=!0,_=null):s===d&&(g=!0,_=h.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,d+1)),p=()=>{let f;return v?f=S:g?f=_:h.route.Component?f=N.createElement(h.route.Component,null):h.route.element?f=h.route.element:f=c,N.createElement(nS,{match:h,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:f})};return n&&(h.route.ErrorBoundary||h.route.errorElement||d===0)?N.createElement(tS,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var tv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(tv||{}),zl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(zl||{});function oS(e){let t=N.useContext(pa);return t||te(!1),t}function iS(e){let t=N.useContext(Xm);return t||te(!1),t}function lS(e){let t=N.useContext(Nn);return t||te(!1),t}function nv(e){let t=lS(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function aS(){var e;let t=N.useContext(Jm),n=iS(zl.UseRouteError),r=nv(zl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function uS(){let{router:e}=oS(tv.UseNavigateStable),t=nv(zl.UseNavigateStable),n=N.useRef(!1);return Zm(()=>{n.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ti({fromRouteId:t},i)))},[e,t])}const Td={};function sS(e,t,n){!t&&!Td[e]&&(Td[e]=!0)}function Pc(e){let{to:t,replace:n,state:r,relative:o}=e;wi()||te(!1);let{future:i,static:l}=N.useContext(gi),{matches:a}=N.useContext(Nn),{pathname:u}=Oc(),s=ev(),c=xc(t,Cc(a,i.v7_relativeSplatPath),u,o==="path"),h=JSON.stringify(c);return N.useEffect(()=>s(JSON.parse(h),{replace:n,state:r,relative:o}),[s,h,o,n,r]),null}function Tc(e){return Xw(e.context)}function cS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Se.Pop,navigator:i,static:l=!1,future:a}=e;wi()&&te(!1);let u=t.replace(/^\/*/,"/"),s=N.useMemo(()=>({basename:u,navigator:i,static:l,future:ti({v7_relativeSplatPath:!1},a)}),[u,a,i,l]);typeof r=="string"&&(r=Xt(r));let{pathname:c="/",search:h="",hash:d="",state:v=null,key:g="default"}=r,S=N.useMemo(()=>{let _=yi(c,u);return _==null?null:{location:{pathname:_,search:h,hash:d,state:v,key:g},navigationType:o}},[u,c,h,d,v,g,o]);return S==null?null:N.createElement(gi.Provider,{value:s},N.createElement(ha.Provider,{children:n,value:S}))}new Promise(()=>{});function fS(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:N.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),N.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let h=xc(s,JSON.parse(l),i,c.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:En([t,h.pathname])),(c.replace?r.replace:r.push)(h,c.state,c)},[t,r,l,i,e])}const GS=N.createContext(null);function XS(e){let t=N.useContext(An).outlet;return t&&N.createElement(GS.Provider,{value:e},t)}function JS(e,t,n,r){Si()||te(!1);let{navigator:o}=N.useContext(gi),{matches:i}=N.useContext(An),l=i[i.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=Oc(),c;if(t){var h;let _=typeof t=="string"?Ut(t):t;u==="/"||(h=_.pathname)!=null&&h.startsWith(u)||te(!1),c=_}else c=s;let d=c.pathname||"/",v=u==="/"?d:d.slice(u.length)||"/",g=Rr(e,{pathname:v}),w=rw(g&&g.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:En([u,o.encodeLocation?o.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:En([u,o.encodeLocation?o.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),i,n,r);return t&&w?N.createElement(ha.Provider,{value:{location:ti({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:we.Pop}},w):w}function ZS(){let e=aw(),t=Hm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:o},n):null,null)}const ew=N.createElement(ZS,null);class tw extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?N.createElement(An.Provider,{value:this.props.routeContext},N.createElement(Jm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nw(e){let{routeContext:t,match:n,children:r}=e,o=N.useContext(pa);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(An.Provider,{value:t},r)}function rw(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=l.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id]));c>=0||te(!1),l=l.slice(0,Math.min(l.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((c,h,d)=>{let v,g=!1,w=null,_=null;n&&(v=a&&h.route.id?a[h.route.id]:void 0,w=h.route.errorElement||ew,u&&(s<0&&d===0?(sw("route-fallback",!1),g=!0,_=null):s===d&&(g=!0,_=h.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,d+1)),p=()=>{let f;return v?f=w:g?f=_:h.route.Component?f=N.createElement(h.route.Component,null):h.route.element?f=h.route.element:f=c,N.createElement(nw,{match:h,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:f})};return n&&(h.route.ErrorBoundary||h.route.errorElement||d===0)?N.createElement(tw,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var tv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(tv||{}),zl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(zl||{});function ow(e){let t=N.useContext(pa);return t||te(!1),t}function iw(e){let t=N.useContext(Xm);return t||te(!1),t}function lw(e){let t=N.useContext(An);return t||te(!1),t}function nv(e){let t=lw(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function aw(){var e;let t=N.useContext(Jm),n=iw(zl.UseRouteError),r=nv(zl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function uw(){let{router:e}=ow(tv.UseNavigateStable),t=nv(zl.UseNavigateStable),n=N.useRef(!1);return Zm(()=>{n.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ti({fromRouteId:t},i)))},[e,t])}const Td={};function sw(e,t,n){!t&&!Td[e]&&(Td[e]=!0)}function Pc(e){let{to:t,replace:n,state:r,relative:o}=e;Si()||te(!1);let{future:i,static:l}=N.useContext(gi),{matches:a}=N.useContext(An),{pathname:u}=Oc(),s=ev(),c=xc(t,Cc(a,i.v7_relativeSplatPath),u,o==="path"),h=JSON.stringify(c);return N.useEffect(()=>s(JSON.parse(h),{replace:n,state:r,relative:o}),[s,h,o,n,r]),null}function Tc(e){return XS(e.context)}function cw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=we.Pop,navigator:i,static:l=!1,future:a}=e;Si()&&te(!1);let u=t.replace(/^\/*/,"/"),s=N.useMemo(()=>({basename:u,navigator:i,static:l,future:ti({v7_relativeSplatPath:!1},a)}),[u,a,i,l]);typeof r=="string"&&(r=Ut(r));let{pathname:c="/",search:h="",hash:d="",state:v=null,key:g="default"}=r,w=N.useMemo(()=>{let _=yi(c,u);return _==null?null:{location:{pathname:_,search:h,hash:d,state:v,key:g},navigationType:o}},[u,c,h,d,v,g,o]);return w==null?null:N.createElement(gi.Provider,{value:s},N.createElement(ha.Provider,{children:n,value:w}))}new Promise(()=>{});function fw(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:N.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.22.0 * * Copyright (c) Remix Software Inc. @@ -73,11 +73,11 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function ES(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=N.useState(n.state),[l,a]=N.useState(),[u,s]=N.useState({isTransitioning:!1}),[c,h]=N.useState(),[d,v]=N.useState(),[g,S]=N.useState(),_=N.useRef(new Map),{v7_startTransition:m}=r||{},p=N.useCallback(C=>{m?SS(C):C()},[m]),f=N.useCallback((C,x)=>{let{deletedFetchers:O,unstable_flushSync:M,unstable_viewTransitionOpts:D}=x;O.forEach(B=>_.current.delete(B)),C.fetchers.forEach((B,L)=>{B.data!==void 0&&_.current.set(L,B.data)});let F=n.window==null||typeof n.window.document.startViewTransition!="function";if(!D||F){M?ho(()=>i(C)):p(()=>i(C));return}if(M){ho(()=>{d&&(c&&c.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:D.currentLocation,nextLocation:D.nextLocation})});let B=n.window.document.startViewTransition(()=>{ho(()=>i(C))});B.finished.finally(()=>{ho(()=>{h(void 0),v(void 0),a(void 0),s({isTransitioning:!1})})}),ho(()=>v(B));return}d?(c&&c.resolve(),d.skipTransition(),S({state:C,currentLocation:D.currentLocation,nextLocation:D.nextLocation})):(a(C),s({isTransitioning:!0,flushSync:!1,currentLocation:D.currentLocation,nextLocation:D.nextLocation}))},[n.window,d,c,_,p]);N.useLayoutEffect(()=>n.subscribe(f),[n,f]),N.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new _S)},[u]),N.useEffect(()=>{if(c&&l&&n.window){let C=l,x=c.promise,O=n.window.document.startViewTransition(async()=>{p(()=>i(C)),await x});O.finished.finally(()=>{h(void 0),v(void 0),a(void 0),s({isTransitioning:!1})}),v(O)}},[p,l,c,n.window]),N.useEffect(()=>{c&&l&&o.location.key===l.location.key&&c.resolve()},[c,d,o.location,l]),N.useEffect(()=>{!u.isTransitioning&&g&&(a(g.state),s({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),S(void 0))},[u.isTransitioning,g]),N.useEffect(()=>{},[]);let y=N.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,x,O)=>n.navigate(C,{state:x,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(C,x,O)=>n.navigate(C,{replace:!0,state:x,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),E=n.basename||"/",w=N.useMemo(()=>({router:n,navigator:y,static:!1,basename:E}),[n,y,E]);return N.createElement(N.Fragment,null,N.createElement(pa.Provider,{value:w},N.createElement(Xm.Provider,{value:o},N.createElement(yS.Provider,{value:_.current},N.createElement(vS.Provider,{value:u},N.createElement(cS,{basename:E,location:o.location,navigationType:o.historyAction,navigator:y,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?N.createElement(CS,{routes:n.routes,future:n.future,state:o}):t))))),null)}function CS(e){let{routes:t,future:n,state:r}=e;return Jw(t,void 0,r,n)}var Ad;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ad||(Ad={}));var Dd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Dd||(Dd={}));const ma=bp,rv=Dp,ov=()=>rv(e=>e.contacts);var Yt=(e=>(e.MALE="MALE",e.FEMALE="FEMALE",e))(Yt||{});function xS(e){switch(e){case"male":return Yt.MALE;case"female":return Yt.FEMALE;default:throw new Error("Wrong gender! Who is it???")}}function RS(e){return{id:null,email:e.email,firstName:e.name.first,lastName:e.name.last,gender:xS(e.gender)}}function kS(e){return e.results.map(RS).map((t,n)=>(t.id=n,t))}function Ne(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var OS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ld=OS,nu=()=>Math.random().toString(36).substring(7).split("").join("."),PS={INIT:`@@redux/INIT${nu()}`,REPLACE:`@@redux/REPLACE${nu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${nu()}`},$l=PS;function zt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function iv(e,t,n){if(typeof e!="function")throw new Error(Ne(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ne(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ne(1));return n(iv)(e,t)}let r=e,o=t,i=new Map,l=i,a=0,u=!1;function s(){l===i&&(l=new Map,i.forEach((_,m)=>{l.set(m,_)}))}function c(){if(u)throw new Error(Ne(3));return o}function h(_){if(typeof _!="function")throw new Error(Ne(4));if(u)throw new Error(Ne(5));let m=!0;s();const p=a++;return l.set(p,_),function(){if(m){if(u)throw new Error(Ne(6));m=!1,s(),l.delete(p),i=null}}}function d(_){if(!zt(_))throw new Error(Ne(7));if(typeof _.type>"u")throw new Error(Ne(8));if(typeof _.type!="string")throw new Error(Ne(17));if(u)throw new Error(Ne(9));try{u=!0,o=r(o,_)}finally{u=!1}return(i=l).forEach(p=>{p()}),_}function v(_){if(typeof _!="function")throw new Error(Ne(10));r=_,d({type:$l.REPLACE})}function g(){const _=h;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Ne(11));function p(){const y=m;y.next&&y.next(c())}return p(),{unsubscribe:_(p)}},[Ld](){return this}}}return d({type:$l.INIT}),{dispatch:d,subscribe:h,getState:c,replaceReducer:v,[Ld]:g}}function TS(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$l.INIT})>"u")throw new Error(Ne(12));if(typeof n(void 0,{type:$l.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ne(13))})}function Mc(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw a&&a.type,new Error(Ne(14));s[h]=g,u=u||g!==v}return u=u||r.length!==Object.keys(l).length,u?s:l}}function Bl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function MS(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(Ne(15))};const l={getState:o.getState,dispatch:(u,...s)=>i(u,...s)},a=e.map(u=>u(l));return i=Bl(...a)(o.dispatch),{...o,dispatch:i}}}function lv(e){return zt(e)&&"type"in e&&typeof e.type=="string"}var Nc=Symbol.for("immer-nothing"),Do=Symbol.for("immer-draftable"),Je=Symbol.for("immer-state");function De(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zn=Object.getPrototypeOf;function Pt(e){return!!e&&!!e[Je]}function Tt(e){var t;return e?av(e)||Array.isArray(e)||!!e[Do]||!!((t=e.constructor)!=null&&t[Do])||Si(e)||_i(e):!1}var NS=Object.prototype.constructor.toString();function av(e){if(!e||typeof e!="object")return!1;const t=Zn(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===NS}function AS(e){return Pt(e)||De(15,e),e[Je].base_}function Hr(e,t){er(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function er(e){const t=e[Je];return t?t.type_:Array.isArray(e)?1:Si(e)?2:_i(e)?3:0}function ni(e,t){return er(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ru(e,t){return er(e)===2?e.get(t):e[t]}function uv(e,t,n){const r=er(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function DS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Si(e){return e instanceof Map}function _i(e){return e instanceof Set}function In(e){return e.copy_||e.base_}function cs(e,t){if(Si(e))return new Map(e);if(_i(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&av(e))return Zn(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Je];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=LS),Object.freeze(e),t&&Hr(e,(n,r)=>Ac(r,!0))),e}function LS(){De(2)}function va(e){return Object.isFrozen(e)}var fs={};function tr(e){const t=fs[e];return t||De(0,e),t}function jS(e,t){fs[e]||(fs[e]=t)}var ri;function sv(){return ri}function IS(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jd(e,t){t&&(tr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ds(e){ps(e),e.drafts_.forEach(bS),e.drafts_=null}function ps(e){e===ri&&(ri=e.parent_)}function Id(e){return ri=IS(ri,e)}function bS(e){const t=e[Je];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Je].modified_&&(ds(t),De(4)),Tt(e)&&(e=Wl(t,e),t.parent_||Hl(t,e)),t.patches_&&tr("Patches").generateReplacementPatches_(n[Je].base_,e,t.patches_,t.inversePatches_)):e=Wl(t,n,[]),ds(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Nc?e:void 0}function Wl(e,t,n){if(va(t))return t;const r=t[Je];if(!r)return Hr(t,(o,i)=>Fd(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Hl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,l=!1;r.type_===3&&(i=new Set(o),o.clear(),l=!0),Hr(i,(a,u)=>Fd(e,r,o,a,u,n,l)),Hl(e,o,!1),n&&e.patches_&&tr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Fd(e,t,n,r,o,i,l){if(Pt(o)){const a=i&&t&&t.type_!==3&&!ni(t.assigned_,r)?i.concat(r):void 0,u=Wl(e,o,a);if(uv(n,r,u),Pt(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(Tt(o)&&!va(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Wl(e,o),(!t||!t.scope_.parent_)&&Hl(e,o)}}function Hl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ac(t,n)}function FS(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:sv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Dc;n&&(o=[r],i=oi);const{revoke:l,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=l,a}var Dc={get(e,t){if(t===Je)return e;const n=In(e);if(!ni(n,t))return zS(e,n,t);const r=n[t];return e.finalized_||!Tt(r)?r:r===ou(e.base_,t)?(iu(e),e.copy_[t]=ms(r,e)):r},has(e,t){return t in In(e)},ownKeys(e){return Reflect.ownKeys(In(e))},set(e,t,n){const r=cv(In(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=ou(In(e),t),i=o==null?void 0:o[Je];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(DS(n,o)&&(n!==void 0||ni(e.base_,t)))return!0;iu(e),hs(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ou(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,iu(e),hs(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=In(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){De(11)},getPrototypeOf(e){return Zn(e.base_)},setPrototypeOf(){De(12)}},oi={};Hr(Dc,(e,t)=>{oi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});oi.deleteProperty=function(e,t){return oi.set.call(this,e,t,void 0)};oi.set=function(e,t,n){return Dc.set.call(this,e[0],t,n,e[0])};function ou(e,t){const n=e[Je];return(n?In(n):e)[t]}function zS(e,t,n){var o;const r=cv(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function cv(e,t){if(!(t in e))return;let n=Zn(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Zn(n)}}function hs(e){e.modified_||(e.modified_=!0,e.parent_&&hs(e.parent_))}function iu(e){e.copy_||(e.copy_=cs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var US=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const l=this;return function(u=i,...s){return l.produce(u,c=>n.call(this,c,...s))}}typeof n!="function"&&De(6),r!==void 0&&typeof r!="function"&&De(7);let o;if(Tt(t)){const i=Id(this),l=ms(t,void 0);let a=!0;try{o=n(l),a=!1}finally{a?ds(i):ps(i)}return jd(i,r),bd(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Nc&&(o=void 0),this.autoFreeze_&&Ac(o,!0),r){const i=[],l=[];tr("Patches").generateReplacementPatches_(t,o,i,l),r(i,l)}return o}else De(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...a)=>this.produceWithPatches(l,u=>t(u,...a));let r,o;return[this.produce(t,n,(l,a)=>{r=l,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Tt(e)||De(8),Pt(e)&&(e=fv(e));const t=Id(this),n=ms(e,void 0);return n[Je].isManual_=!0,ps(t),n}finishDraft(e,t){const n=e&&e[Je];(!n||!n.isManual_)&&De(9);const{scope_:r}=n;return jd(r,t),bd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=tr("Patches").applyPatches_;return Pt(e)?r(e,t):this.produce(e,o=>r(o,t))}};function ms(e,t){const n=Si(e)?tr("MapSet").proxyMap_(e,t):_i(e)?tr("MapSet").proxySet_(e,t):FS(e,t);return(t?t.scope_:sv()).drafts_.push(n),n}function fv(e){return Pt(e)||De(10,e),dv(e)}function dv(e){if(!Tt(e)||va(e))return e;const t=e[Je];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cs(e,t.scope_.immer_.useStrictShallowCopy_)}else n=cs(e,!0);return Hr(n,(r,o)=>{uv(n,r,dv(o))}),t&&(t.finalized_=!1),n}function $S(){const t="replace",n="add",r="remove";function o(d,v,g,S){switch(d.type_){case 0:case 2:return l(d,v,g,S);case 1:return i(d,v,g,S);case 3:return a(d,v,g,S)}}function i(d,v,g,S){let{base_:_,assigned_:m}=d,p=d.copy_;p.length<_.length&&([_,p]=[p,_],[g,S]=[S,g]);for(let f=0;f<_.length;f++)if(m[f]&&p[f]!==_[f]){const y=v.concat([f]);g.push({op:t,path:y,value:h(p[f])}),S.push({op:t,path:y,value:h(_[f])})}for(let f=_.length;f{const y=ru(_,p),E=ru(m,p),w=f?ni(_,p)?t:n:r;if(y===E&&w===t)return;const C=v.concat(p);g.push(w===r?{op:w,path:C}:{op:w,path:C,value:E}),S.push(w===n?{op:r,path:C}:w===r?{op:n,path:C,value:h(y)}:{op:t,path:C,value:h(y)})})}function a(d,v,g,S){let{base_:_,copy_:m}=d,p=0;_.forEach(f=>{if(!m.has(f)){const y=v.concat([p]);g.push({op:r,path:y,value:f}),S.unshift({op:n,path:y,value:f})}p++}),p=0,m.forEach(f=>{if(!_.has(f)){const y=v.concat([p]);g.push({op:n,path:y,value:f}),S.unshift({op:r,path:y,value:f})}p++})}function u(d,v,g,S){g.push({op:t,path:[],value:v===Nc?void 0:v}),S.push({op:t,path:[],value:d})}function s(d,v){return v.forEach(g=>{const{path:S,op:_}=g;let m=d;for(let E=0;E[g,c(S)]));if(_i(d))return new Set(Array.from(d).map(c));const v=Object.create(Zn(d));for(const g in d)v[g]=c(d[g]);return ni(d,Do)&&(v[Do]=d[Do]),v}function h(d){return Pt(d)?c(d):d}jS("Patches",{applyPatches_:s,generatePatches_:o,generateReplacementPatches_:u})}var lt=new US,Ei=lt.produce,pv=lt.produceWithPatches.bind(lt);lt.setAutoFreeze.bind(lt);lt.setUseStrictShallowCopy.bind(lt);var zd=lt.applyPatches.bind(lt);lt.createDraft.bind(lt);lt.finishDraft.bind(lt);function BS(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function WS(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function HS(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ud=e=>Array.isArray(e)?e:[e];function QS(e){const t=Array.isArray(e[0])?e[0]:e;return HS(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function VS(e,t){const n=[],{length:r}=e;for(let o=0;o{n=Yi(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function hv(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,l=0,a,u={},s=o.pop();typeof s=="object"&&(u=s,s=o.pop()),BS(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...n,...u},{memoize:h,memoizeOptions:d=[],argsMemoize:v=ii,argsMemoizeOptions:g=[],devModeChecks:S={}}=c,_=Ud(d),m=Ud(g),p=QS(o),f=h(function(){return i++,s.apply(null,arguments)},..._),y=v(function(){l++;const w=VS(p,arguments);return a=f.apply(null,w),a},...m);return Object.assign(y,{resultFunc:s,memoizedResultFunc:f,dependencies:p,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:h,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var Lc=hv(ii),GS=Object.assign((e,t=Lc)=>{WS(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((l,a,u)=>(l[n[u]]=a,l),{}))},{withTypes:()=>GS});function mv(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var XS=mv(),JS=mv,ZS=(...e)=>{const t=hv(...e),n=Object.assign((...r)=>{const o=t(...r),i=(l,...a)=>o(Pt(l)?fv(l):l,...a);return Object.assign(i,o),i},{withTypes:()=>n});return n};ZS(ii);var e1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bl:Bl.apply(null,arguments)},t1=e=>e&&typeof e.match=="function";function He(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Ue(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>lv(r)&&r.type===e,n}var vv=class _o extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,_o.prototype)}static get[Symbol.species](){return _o}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new _o(...t[0].concat(this)):new _o(...t.concat(this))}};function Bd(e){return Tt(e)?Ei(e,()=>{}):e}function Wd(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(Ue(10));const r=n.insert(t,e);return e.set(t,r),r}function n1(e){return typeof e=="boolean"}var r1=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let l=new vv;return n&&(n1(n)?l.push(XS):l.push(JS(n.extraArgument))),l},Or="RTK_autoBatch",mo=()=>e=>({payload:e,meta:{[Or]:!0}}),yv=e=>t=>{setTimeout(t,e)},o1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yv(10),i1=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,l=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?o1:e.type==="callback"?e.queueNotification:yv(e.timeout),s=()=>{l=!1,i&&(i=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const h=()=>o&&c(),d=r.subscribe(h);return a.add(c),()=>{d(),a.delete(c)}},dispatch(c){var h;try{return o=!((h=c==null?void 0:c.meta)!=null&&h[Or]),i=!o,i&&(l||(l=!0,u(s))),r.dispatch(c)}finally{o=!0}}})},l1=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new vv(e);return r&&o.push(i1(typeof r=="object"?r:void 0)),o},a1=!0;function u1(e){const t=r1(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(zt(n))a=Mc(n);else throw new Error(Ue(1));let u;typeof r=="function"?u=r(t):u=t();let s=Bl;o&&(s=e1({trace:!a1,...typeof o=="object"&&o}));const c=MS(...u),h=l1(c);let d=typeof l=="function"?l(h):h();const v=s(...d);return iv(a,i,v)}function gv(e){const t={},n=[];let r;const o={addCase(i,l){const a=typeof i=="string"?i:i.type;if(!a)throw new Error(Ue(28));if(a in t)throw new Error(Ue(29));return t[a]=l,o},addMatcher(i,l){return n.push({matcher:i,reducer:l}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function s1(e){return typeof e=="function"}function c1(e,t){let[n,r,o]=gv(t),i;if(s1(e))i=()=>Bd(e());else{const a=Bd(e);i=()=>a}function l(a=i(),u){let s=[n[u.type],...r.filter(({matcher:c})=>c(u)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[o]),s.reduce((c,h)=>{if(h)if(Pt(c)){const v=h(c,u);return v===void 0?c:v}else{if(Tt(c))return Ei(c,d=>h(d,u));{const d=h(c,u);if(d===void 0){if(c===null)return c;throw new Error(Ue(9))}return d}}return c},a)}return l.getInitialState=i,l}var f1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",jc=(e=21)=>{let t="",n=e;for(;n--;)t+=f1[Math.random()*64|0];return t},wv=(e,t)=>t1(e)?e.match(t):e(t);function kn(...e){return t=>e.some(n=>wv(n,t))}function Lo(...e){return t=>e.every(n=>wv(n,t))}function ya(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Ci(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Ic(...e){return e.length===0?t=>ya(t,["pending"]):Ci(e)?t=>{const n=e.map(o=>o.pending);return kn(...n)(t)}:Ic()(e[0])}function Qr(...e){return e.length===0?t=>ya(t,["rejected"]):Ci(e)?t=>{const n=e.map(o=>o.rejected);return kn(...n)(t)}:Qr()(e[0])}function ga(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?n=>Lo(Qr(...e),t)(n):Ci(e)?n=>Lo(Qr(...e),t)(n):ga()(e[0])}function On(...e){return e.length===0?t=>ya(t,["fulfilled"]):Ci(e)?t=>{const n=e.map(o=>o.fulfilled);return kn(...n)(t)}:On()(e[0])}function vs(...e){return e.length===0?t=>ya(t,["pending","fulfilled","rejected"]):Ci(e)?t=>{const n=[];for(const o of e)n.push(o.pending,o.rejected,o.fulfilled);return kn(...n)(t)}:vs()(e[0])}var d1=["name","message","stack","code"],lu=class{constructor(e,t){ka(this,"_type");this.payload=e,this.meta=t}},Hd=class{constructor(e,t){ka(this,"_type");this.payload=e,this.meta=t}},p1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of d1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Qd=(()=>{function e(t,n,r){const o=He(t+"/fulfilled",(u,s,c,h)=>({payload:u,meta:{...h||{},arg:c,requestId:s,requestStatus:"fulfilled"}})),i=He(t+"/pending",(u,s,c)=>({payload:void 0,meta:{...c||{},arg:s,requestId:u,requestStatus:"pending"}})),l=He(t+"/rejected",(u,s,c,h,d)=>({payload:h,error:(r&&r.serializeError||p1)(u||"Rejected"),meta:{...d||{},arg:c,requestId:s,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function a(u){return(s,c,h)=>{const d=r!=null&&r.idGenerator?r.idGenerator(u):jc(),v=new AbortController;let g,S;function _(p){S=p,v.abort()}const m=async function(){var y,E;let p;try{let w=(y=r==null?void 0:r.condition)==null?void 0:y.call(r,u,{getState:c,extra:h});if(m1(w)&&(w=await w),w===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const C=new Promise((x,O)=>{g=()=>{O({name:"AbortError",message:S||"Aborted"})},v.signal.addEventListener("abort",g)});s(i(d,u,(E=r==null?void 0:r.getPendingMeta)==null?void 0:E.call(r,{requestId:d,arg:u},{getState:c,extra:h}))),p=await Promise.race([C,Promise.resolve(n(u,{dispatch:s,getState:c,extra:h,requestId:d,signal:v.signal,abort:_,rejectWithValue:(x,O)=>new lu(x,O),fulfillWithValue:(x,O)=>new Hd(x,O)})).then(x=>{if(x instanceof lu)throw x;return x instanceof Hd?o(x.payload,d,u,x.meta):o(x,d,u)})])}catch(w){p=w instanceof lu?l(null,d,u,w.payload,w.meta):l(w,d,u)}finally{g&&v.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&l.match(p)&&p.meta.condition||s(p),p}();return Object.assign(m,{abort:_,requestId:d,arg:u,unwrap(){return m.then(h1)}})}}return Object.assign(a,{pending:i,rejected:l,fulfilled:o,settled:kn(l,o),typePrefix:t})}return e.withTypes=()=>e,e})();function h1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function m1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var v1=Symbol.for("rtk-slice-createasyncthunk");function y1(e,t){return`${e}/${t}`}function g1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[v1];return function(o){const{name:i,reducerPath:l=i}=o;if(!i)throw new Error(Ue(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(S1()):o.reducers)||{},u=Object.keys(a),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(f,y){const E=typeof f=="string"?f:f.type;if(!E)throw new Error(Ue(12));if(E in s.sliceCaseReducersByType)throw new Error(Ue(13));return s.sliceCaseReducersByType[E]=y,c},addMatcher(f,y){return s.sliceMatchers.push({matcher:f,reducer:y}),c},exposeAction(f,y){return s.actionCreators[f]=y,c},exposeCaseReducer(f,y){return s.sliceCaseReducersByName[f]=y,c}};u.forEach(f=>{const y=a[f],E={reducerName:f,type:y1(i,f),createNotation:typeof o.reducers=="function"};E1(y)?x1(E,y,c,t):_1(E,y,c)});function h(){const[f={},y=[],E=void 0]=typeof o.extraReducers=="function"?gv(o.extraReducers):[o.extraReducers],w={...f,...s.sliceCaseReducersByType};return c1(o.initialState,C=>{for(let x in w)C.addCase(x,w[x]);for(let x of s.sliceMatchers)C.addMatcher(x.matcher,x.reducer);for(let x of y)C.addMatcher(x.matcher,x.reducer);E&&C.addDefaultCase(E)})}const d=f=>f,v=new Map;let g;function S(f,y){return g||(g=h()),g(f,y)}function _(){return g||(g=h()),g.getInitialState()}function m(f,y=!1){function E(C){let x=C[f];return typeof x>"u"&&y&&(x=_()),x}function w(C=d){const x=Wd(v,y,{insert:()=>new WeakMap});return Wd(x,C,{insert:()=>{const O={};for(const[M,D]of Object.entries(o.selectors??{}))O[M]=w1(D,C,_,y);return O}})}return{reducerPath:f,getSelectors:w,get selectors(){return w(E)},selectSlice:E}}const p={name:i,reducer:S,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:_,...m(l),injectInto(f,{reducerPath:y,...E}={}){const w=y??l;return f.inject({reducerPath:w,reducer:S},E),{...p,...m(w,!0)}}};return p}}function w1(e,t,n,r){function o(i,...l){let a=t(i);return typeof a>"u"&&r&&(a=n()),e(a,...l)}return o.unwrapped=e,o}var un=g1();function S1(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function _1({type:e,reducerName:t,createNotation:n},r,o){let i,l;if("reducer"in r){if(n&&!C1(r))throw new Error(Ue(17));i=r.reducer,l=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,l?He(e,l):He(e))}function E1(e){return e._reducerDefinitionType==="asyncThunk"}function C1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function x1({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Ue(18));const{payloadCreator:i,fulfilled:l,pending:a,rejected:u,settled:s,options:c}=n,h=o(e,i,c);r.exposeAction(t,h),l&&r.addCase(h.fulfilled,l),a&&r.addCase(h.pending,a),u&&r.addCase(h.rejected,u),s&&r.addMatcher(h.settled,s),r.exposeCaseReducer(t,{fulfilled:l||Gi,pending:a||Gi,rejected:u||Gi,settled:s||Gi})}function Gi(){}var R1=(e,t)=>{if(typeof e!="function")throw new Error(Ue(32))},bc="listenerMiddleware",k1=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=He(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Ue(21));return R1(i),{predicate:o,type:t,effect:i}},O1=Object.assign(e=>{const{type:t,predicate:n,effect:r}=k1(e);return{id:jc(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Ue(22))}}},{withTypes:()=>O1}),P1=Object.assign(He(`${bc}/add`),{withTypes:()=>P1});He(`${bc}/removeAll`);var T1=Object.assign(He(`${bc}/remove`),{withTypes:()=>T1});function Ue(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Fc=(e=>(e.SESSION_TAG="SESSION_TAG",e.CONTACTS_TAG="CONTACTS_TAG",e))(Fc||{}),Sv=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Sv||{});function M1(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function N1(e){return new RegExp("(^|:)//").test(e)}var A1=e=>e.replace(/\/$/,""),D1=e=>e.replace(/^\//,"");function L1(e,t){if(!e)return t;if(!t)return e;if(N1(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=A1(e),t=D1(t),`${e}${n}${t}`}var Vd=e=>[].concat(...e);function j1(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function I1(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var qd=zt;function _v(e,t){if(e===t||!(qd(e)&&qd(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const l of n)i[l]=_v(e[l],t[l]),o&&(o=e[l]===i[l]);return o?e:i}var Kd=(...e)=>fetch(...e),b1=e=>e.status>=200&&e.status<=299,F1=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Yd(e){if(!zt(e))return e;const t={...e};for(const[n,r]of Object.entries(t))r===void 0&&delete t[n];return t}function z1({baseUrl:e,prepareHeaders:t=h=>h,fetchFn:n=Kd,paramsSerializer:r,isJsonContentType:o=F1,jsonContentType:i="application/json",jsonReplacer:l,timeout:a,responseHandler:u,validateStatus:s,...c}={}){return typeof fetch>"u"&&n===Kd&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,v)=>{const{signal:g,getState:S,extra:_,endpoint:m,forced:p,type:f}=v;let y,{url:E,headers:w=new Headers(c.headers),params:C=void 0,responseHandler:x=u??"json",validateStatus:O=s??b1,timeout:M=a,...D}=typeof d=="string"?{url:d}:d,F={...c,signal:g,...D};w=new Headers(Yd(w)),F.headers=await t(w,{getState:S,extra:_,endpoint:m,forced:p,type:f})||w;const B=V=>typeof V=="object"&&(zt(V)||Array.isArray(V)||typeof V.toJSON=="function");if(!F.headers.has("content-type")&&B(F.body)&&F.headers.set("content-type",i),B(F.body)&&o(F.headers)&&(F.body=JSON.stringify(F.body,l)),C){const V=~E.indexOf("?")?"&":"?",J=r?r(C):new URLSearchParams(Yd(C));E+=V+J}E=L1(e,E);const L=new Request(E,F);y={request:new Request(E,F)};let q,k=!1,T=M&&setTimeout(()=>{k=!0,v.abort()},M);try{q=await n(L)}catch(V){return{error:{status:k?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(V)},meta:y}}finally{T&&clearTimeout(T)}const z=q.clone();y.response=z;let I,W="";try{let V;if(await Promise.all([h(q,x).then(J=>I=J,J=>V=J),z.text().then(J=>W=J,()=>{})]),V)throw V}catch(V){return{error:{status:"PARSING_ERROR",originalStatus:q.status,data:W,error:String(V)},meta:y}}return O(q,I)?{data:I,meta:y}:{error:{status:q.status,data:I},meta:y}};async function h(d,v){if(typeof v=="function")return v(d);if(v==="content-type"&&(v=o(d.headers)?"json":"text"),v==="json"){const g=await d.text();return g.length?JSON.parse(g):null}return d.text()}}var Gd=class{constructor(e,t=void 0){this.value=e,this.meta=t}},zc=He("__rtkq/focused"),Ev=He("__rtkq/unfocused"),Uc=He("__rtkq/online"),Cv=He("__rtkq/offline");function xv(e){return e.type==="query"}function U1(e){return e.type==="mutation"}function $c(e,t,n,r,o,i){return $1(e)?e(t,n,r,o).map(ys).map(i):Array.isArray(e)?e.map(ys).map(i):[]}function $1(e){return typeof e=="function"}function ys(e){return typeof e=="string"?{type:e}:e}function Xd(e){return e!=null}function jr(e){let t=0;for(const n in e)t++;return t}function B1(e,t){return e.catch(t)}var li=Symbol("forceQueryFn"),gs=e=>typeof e[li]=="function";function W1({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,l=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:s}=r.internalActions;return{buildInitiateQuery:g,buildInitiateMutation:S,getRunningQueryThunk:c,getRunningMutationThunk:h,getRunningQueriesThunk:d,getRunningMutationsThunk:v};function c(_,m){return p=>{var E;const f=o.endpointDefinitions[_],y=e({queryArgs:m,endpointDefinition:f,endpointName:_});return(E=i.get(p))==null?void 0:E[y]}}function h(_,m){return p=>{var f;return(f=l.get(p))==null?void 0:f[m]}}function d(){return _=>Object.values(i.get(_)||{}).filter(Xd)}function v(){return _=>Object.values(l.get(_)||{}).filter(Xd)}function g(_,m){const p=(f,{subscribe:y=!0,forceRefetch:E,subscriptionOptions:w,[li]:C,...x}={})=>(O,M)=>{var V;const D=e({queryArgs:f,endpointDefinition:m,endpointName:_}),F=t({...x,type:"query",subscribe:y,forceRefetch:E,subscriptionOptions:w,endpointName:_,originalArgs:f,queryCacheKey:D,[li]:C}),B=r.endpoints[_].select(f),L=O(F),U=B(M()),{requestId:q,abort:k}=L,T=U.requestId!==q,z=(V=i.get(O))==null?void 0:V[D],I=()=>B(M()),W=Object.assign(C?L.then(I):T&&!z?Promise.resolve(U):Promise.all([z,L]).then(I),{arg:f,requestId:q,subscriptionOptions:w,queryCacheKey:D,abort:k,async unwrap(){const J=await W;if(J.isError)throw J.error;return J.data},refetch:()=>O(p(f,{subscribe:!1,forceRefetch:!0})),unsubscribe(){y&&O(a({queryCacheKey:D,requestId:q}))},updateSubscriptionOptions(J){W.subscriptionOptions=J,O(s({endpointName:_,requestId:q,queryCacheKey:D,options:J}))}});if(!z&&!T&&!C){const J=i.get(O)||{};J[D]=W,i.set(O,J),W.then(()=>{delete J[D],jr(J)||i.delete(O)})}return W};return p}function S(_){return(m,{track:p=!0,fixedCacheKey:f}={})=>(y,E)=>{const w=n({type:"mutation",endpointName:_,originalArgs:m,track:p,fixedCacheKey:f}),C=y(w),{requestId:x,abort:O,unwrap:M}=C,D=B1(C.unwrap().then(U=>({data:U})),U=>({error:U})),F=()=>{y(u({requestId:x,fixedCacheKey:f}))},B=Object.assign(D,{arg:C.arg,requestId:x,abort:O,unwrap:M,reset:F}),L=l.get(y)||{};return l.set(y,L),L[x]=B,B.then(()=>{delete L[x],jr(L)||l.delete(y)}),f&&(L[f]=B,B.then(()=>{L[f]===B&&(delete L[f],jr(L)||l.delete(y))})),B}}}function Jd(e){return e}function H1({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const l=(p,f,y,E)=>(w,C)=>{const x=n[p],O=r({queryArgs:f,endpointDefinition:x,endpointName:p});if(w(o.internalActions.queryResultPatched({queryCacheKey:O,patches:y})),!E)return;const M=o.endpoints[p].select(f)(C()),D=$c(x.providesTags,M.data,void 0,f,{},i);w(o.internalActions.updateProvidedBy({queryCacheKey:O,providedTags:D}))},a=(p,f,y,E=!0)=>(w,C)=>{const O=o.endpoints[p].select(f)(C());let M={patches:[],inversePatches:[],undo:()=>w(o.util.patchQueryData(p,f,M.inversePatches,E))};if(O.status==="uninitialized")return M;let D;if("data"in O)if(Tt(O.data)){const[F,B,L]=pv(O.data,y);M.patches.push(...B),M.inversePatches.push(...L),D=F}else D=y(O.data),M.patches.push({op:"replace",path:[],value:D}),M.inversePatches.push({op:"replace",path:[],value:O.data});return w(o.util.patchQueryData(p,f,M.patches,E)),M},u=(p,f,y)=>E=>E(o.endpoints[p].initiate(f,{subscribe:!1,forceRefetch:!0,[li]:()=>({data:y})})),s=async(p,{signal:f,abort:y,rejectWithValue:E,fulfillWithValue:w,dispatch:C,getState:x,extra:O})=>{const M=n[p.endpointName];try{let D=Jd,F;const B={signal:f,abort:y,dispatch:C,getState:x,extra:O,endpoint:p.endpointName,type:p.type,forced:p.type==="query"?c(p,x()):void 0},L=p.type==="query"?p[li]:void 0;if(L?F=L():M.query?(F=await t(M.query(p.originalArgs),B,M.extraOptions),M.transformResponse&&(D=M.transformResponse)):F=await M.queryFn(p.originalArgs,B,M.extraOptions,U=>t(U,B,M.extraOptions)),typeof process<"u",F.error)throw new Gd(F.error,F.meta);return w(await D(F.data,F.meta,p.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:F.meta,[Or]:!0})}catch(D){let F=D;if(F instanceof Gd){let B=Jd;M.query&&M.transformErrorResponse&&(B=M.transformErrorResponse);try{return E(await B(F.value,F.meta,p.originalArgs),{baseQueryMeta:F.meta,[Or]:!0})}catch(L){F=L}}throw typeof process<"u",console.error(F),F}};function c(p,f){var x,O,M;const y=(O=(x=f[e])==null?void 0:x.queries)==null?void 0:O[p.queryCacheKey],E=(M=f[e])==null?void 0:M.config.refetchOnMountOrArgChange,w=y==null?void 0:y.fulfilledTimeStamp,C=p.forceRefetch??(p.subscribe&&E);return C?C===!0||(Number(new Date)-Number(w))/1e3>=C:!1}const h=Qd(`${e}/executeQuery`,s,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Or]:!0}},condition(p,{getState:f}){var M,D,F;const y=f(),E=(D=(M=y[e])==null?void 0:M.queries)==null?void 0:D[p.queryCacheKey],w=E==null?void 0:E.fulfilledTimeStamp,C=p.originalArgs,x=E==null?void 0:E.originalArgs,O=n[p.endpointName];return gs(p)?!0:(E==null?void 0:E.status)==="pending"?!1:c(p,y)||xv(O)&&((F=O==null?void 0:O.forceRefetch)!=null&&F.call(O,{currentArg:C,previousArg:x,endpointState:E,state:y}))?!0:!w},dispatchConditionRejection:!0}),d=Qd(`${e}/executeMutation`,s,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Or]:!0}}}),v=p=>"force"in p,g=p=>"ifOlderThan"in p,S=(p,f,y)=>(E,w)=>{const C=v(y)&&y.force,x=g(y)&&y.ifOlderThan,O=(D=!0)=>{const F={forceRefetch:D,isPrefetch:!0};return o.endpoints[p].initiate(f,F)},M=o.endpoints[p].select(f)(w());if(C)E(O());else if(x){const D=M==null?void 0:M.fulfilledTimeStamp;if(!D){E(O());return}(Number(new Date)-Number(new Date(D)))/1e3>=x&&E(O())}else E(O(!1))};function _(p){return f=>{var y,E;return((E=(y=f==null?void 0:f.meta)==null?void 0:y.arg)==null?void 0:E.endpointName)===p}}function m(p,f){return{matchPending:Lo(Ic(p),_(f)),matchFulfilled:Lo(On(p),_(f)),matchRejected:Lo(Qr(p),_(f))}}return{queryThunk:h,mutationThunk:d,prefetch:S,updateQueryData:a,upsertQueryData:u,patchQueryData:l,buildMatchThunkActions:m}}function Rv(e,t,n,r){return $c(n[e.meta.arg.endpointName][t],On(e)?e.payload:void 0,ga(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Xi(e,t,n){const r=e[t];r&&n(r)}function ai(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Zd(e,t,n){const r=e[ai(t)];r&&n(r)}var vo={};function Q1({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:l},assertTagType:a,config:u}){const s=He(`${e}/resetApiState`),c=un({name:`${e}/queries`,initialState:vo,reducers:{removeQueryResult:{reducer(f,{payload:{queryCacheKey:y}}){delete f[y]},prepare:mo()},queryResultPatched:{reducer(f,{payload:{queryCacheKey:y,patches:E}}){Xi(f,y,w=>{w.data=zd(w.data,E.concat())})},prepare:mo()}},extraReducers(f){f.addCase(t.pending,(y,{meta:E,meta:{arg:w}})=>{var x;const C=gs(w);y[x=w.queryCacheKey]??(y[x]={status:"uninitialized",endpointName:w.endpointName}),Xi(y,w.queryCacheKey,O=>{O.status="pending",O.requestId=C&&O.requestId?O.requestId:E.requestId,w.originalArgs!==void 0&&(O.originalArgs=w.originalArgs),O.startedTimeStamp=E.startedTimeStamp})}).addCase(t.fulfilled,(y,{meta:E,payload:w})=>{Xi(y,E.arg.queryCacheKey,C=>{if(C.requestId!==E.requestId&&!gs(E.arg))return;const{merge:x}=r[E.arg.endpointName];if(C.status="fulfilled",x)if(C.data!==void 0){const{fulfilledTimeStamp:O,arg:M,baseQueryMeta:D,requestId:F}=E;let B=Ei(C.data,L=>x(L,w,{arg:M.originalArgs,baseQueryMeta:D,fulfilledTimeStamp:O,requestId:F}));C.data=B}else C.data=w;else C.data=r[E.arg.endpointName].structuralSharing??!0?_v(Pt(C.data)?AS(C.data):C.data,w):w;delete C.error,C.fulfilledTimeStamp=E.fulfilledTimeStamp})}).addCase(t.rejected,(y,{meta:{condition:E,arg:w,requestId:C},error:x,payload:O})=>{Xi(y,w.queryCacheKey,M=>{if(!E){if(M.requestId!==C)return;M.status="rejected",M.error=O??x}})}).addMatcher(l,(y,E)=>{const{queries:w}=i(E);for(const[C,x]of Object.entries(w))((x==null?void 0:x.status)==="fulfilled"||(x==null?void 0:x.status)==="rejected")&&(y[C]=x)})}}),h=un({name:`${e}/mutations`,initialState:vo,reducers:{removeMutationResult:{reducer(f,{payload:y}){const E=ai(y);E in f&&delete f[E]},prepare:mo()}},extraReducers(f){f.addCase(n.pending,(y,{meta:E,meta:{requestId:w,arg:C,startedTimeStamp:x}})=>{C.track&&(y[ai(E)]={requestId:w,status:"pending",endpointName:C.endpointName,startedTimeStamp:x})}).addCase(n.fulfilled,(y,{payload:E,meta:w})=>{w.arg.track&&Zd(y,w,C=>{C.requestId===w.requestId&&(C.status="fulfilled",C.data=E,C.fulfilledTimeStamp=w.fulfilledTimeStamp)})}).addCase(n.rejected,(y,{payload:E,error:w,meta:C})=>{C.arg.track&&Zd(y,C,x=>{x.requestId===C.requestId&&(x.status="rejected",x.error=E??w)})}).addMatcher(l,(y,E)=>{const{mutations:w}=i(E);for(const[C,x]of Object.entries(w))((x==null?void 0:x.status)==="fulfilled"||(x==null?void 0:x.status)==="rejected")&&C!==(x==null?void 0:x.requestId)&&(y[C]=x)})}}),d=un({name:`${e}/invalidation`,initialState:vo,reducers:{updateProvidedBy:{reducer(f,y){var C,x;const{queryCacheKey:E,providedTags:w}=y.payload;for(const O of Object.values(f))for(const M of Object.values(O)){const D=M.indexOf(E);D!==-1&&M.splice(D,1)}for(const{type:O,id:M}of w){const D=(C=f[O]??(f[O]={}))[x=M||"__internal_without_id"]??(C[x]=[]);D.includes(E)||D.push(E)}},prepare:mo()}},extraReducers(f){f.addCase(c.actions.removeQueryResult,(y,{payload:{queryCacheKey:E}})=>{for(const w of Object.values(y))for(const C of Object.values(w)){const x=C.indexOf(E);x!==-1&&C.splice(x,1)}}).addMatcher(l,(y,E)=>{var C,x;const{provided:w}=i(E);for(const[O,M]of Object.entries(w))for(const[D,F]of Object.entries(M)){const B=(C=y[O]??(y[O]={}))[x=D||"__internal_without_id"]??(C[x]=[]);for(const L of F)B.includes(L)||B.push(L)}}).addMatcher(kn(On(t),ga(t)),(y,E)=>{const w=Rv(E,"providesTags",r,a),{queryCacheKey:C}=E.meta.arg;d.caseReducers.updateProvidedBy(y,d.actions.updateProvidedBy({queryCacheKey:C,providedTags:w}))})}}),v=un({name:`${e}/subscriptions`,initialState:vo,reducers:{updateSubscriptionOptions(f,y){},unsubscribeQueryResult(f,y){},internal_getRTKQSubscriptions(){}}}),g=un({name:`${e}/internalSubscriptions`,initialState:vo,reducers:{subscriptionsUpdated:{reducer(f,y){return zd(f,y.payload)},prepare:mo()}}}),S=un({name:`${e}/config`,initialState:{online:j1(),focused:I1(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(f,{payload:y}){f.middlewareRegistered=f.middlewareRegistered==="conflict"||o!==y?"conflict":!0}},extraReducers:f=>{f.addCase(Uc,y=>{y.online=!0}).addCase(Cv,y=>{y.online=!1}).addCase(zc,y=>{y.focused=!0}).addCase(Ev,y=>{y.focused=!1}).addMatcher(l,y=>({...y}))}}),_=Mc({queries:c.reducer,mutations:h.reducer,provided:d.reducer,subscriptions:g.reducer,config:S.reducer}),m=(f,y)=>_(s.match(y)?void 0:f,y),p={...S.actions,...c.actions,...v.actions,...g.actions,...h.actions,...d.actions,resetApiState:s};return{reducer:m,actions:p}}var Wn=Symbol.for("RTKQ/skipToken"),kv={status:"uninitialized"},ep=Ei(kv,()=>{}),tp=Ei(kv,()=>{});function V1({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=h=>ep,o=h=>tp;return{buildQuerySelector:a,buildMutationSelector:u,selectInvalidatedBy:s,selectCachedArgsForQuery:c};function i(h){return{...h,...M1(h.status)}}function l(h){return h[t]}function a(h,d){return v=>{const g=e({queryArgs:v,endpointDefinition:d,endpointName:h});return n(v===Wn?r:m=>{var p,f;return((f=(p=l(m))==null?void 0:p.queries)==null?void 0:f[g])??ep},i)}}function u(){return h=>{let d;return typeof h=="object"?d=ai(h)??Wn:d=h,n(d===Wn?o:S=>{var _,m;return((m=(_=l(S))==null?void 0:_.mutations)==null?void 0:m[d])??tp},i)}}function s(h,d){const v=h[t],g=new Set;for(const S of d.map(ys)){const _=v.provided[S.type];if(!_)continue;let m=(S.id!==void 0?_[S.id]:Vd(Object.values(_)))??[];for(const p of m)g.add(p)}return Vd(Array.from(g.values()).map(S=>{const _=v.queries[S];return _?[{queryCacheKey:S,endpointName:_.endpointName,originalArgs:_.originalArgs}]:[]}))}function c(h,d){return Object.values(h[t].queries).filter(v=>(v==null?void 0:v.endpointName)===d&&v.status!=="uninitialized").map(v=>v.originalArgs)}}var cr=WeakMap?new WeakMap:void 0,np=({endpointName:e,queryArgs:t})=>{let n="";const r=cr==null?void 0:cr.get(t);if(typeof r=="string")n=r;else{const o=JSON.stringify(t,(i,l)=>zt(l)?Object.keys(l).sort().reduce((a,u)=>(a[u]=l[u],a),{}):l);zt(t)&&(cr==null||cr.set(t,o)),n=o}return`${e}(${n})`};function q1(...e){return function(n){const r=ii(s=>{var c;return(c=n.extractRehydrationInfo)==null?void 0:c.call(n,s,{reducerPath:n.reducerPath??"api"})}),o={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(s){let c=np;if("serializeQueryArgs"in s.endpointDefinition){const h=s.endpointDefinition.serializeQueryArgs;c=d=>{const v=h(d);return typeof v=="string"?v:np({...d,queryArgs:v})}}else n.serializeQueryArgs&&(c=n.serializeQueryArgs);return c(s)},tagTypes:[...n.tagTypes||[]]},i={endpointDefinitions:{},batch(s){s()},apiUid:jc(),extractRehydrationInfo:r,hasRehydrationInfo:ii(s=>r(s)!=null)},l={injectEndpoints:u,enhanceEndpoints({addTagTypes:s,endpoints:c}){if(s)for(const h of s)o.tagTypes.includes(h)||o.tagTypes.push(h);if(c)for(const[h,d]of Object.entries(c))typeof d=="function"?d(i.endpointDefinitions[h]):Object.assign(i.endpointDefinitions[h]||{},d);return l}},a=e.map(s=>s.init(l,o,i));function u(s){const c=s.endpoints({query:h=>({...h,type:"query"}),mutation:h=>({...h,type:"mutation"})});for(const[h,d]of Object.entries(c)){if(s.overrideExisting!==!0&&h in i.endpointDefinitions){if(s.overrideExisting==="throw")throw new Error(Ue(39));typeof process<"u";continue}i.endpointDefinitions[h]=d;for(const v of a)v.injectEndpoint(h,d)}return l}return l.injectEndpoints({endpoints:n.endpoints})}}function K1(e){for(let t in e)return!1;return!0}var Y1=2147483647/1e3-1,G1=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function l(c){const h=r.currentSubscriptions[c];return!!h&&!K1(h)}const a={},u=(c,h,d)=>{var v;if(i.match(c)){const g=h.getState()[e],{queryCacheKey:S}=c.payload;s(S,(v=g.queries[S])==null?void 0:v.endpointName,h,g.config)}if(t.util.resetApiState.match(c))for(const[g,S]of Object.entries(a))S&&clearTimeout(S),delete a[g];if(n.hasRehydrationInfo(c)){const g=h.getState()[e],{queries:S}=n.extractRehydrationInfo(c);for(const[_,m]of Object.entries(S))s(_,m==null?void 0:m.endpointName,h,g.config)}};function s(c,h,d,v){const g=n.endpointDefinitions[h],S=(g==null?void 0:g.keepUnusedDataFor)??v.keepUnusedDataFor;if(S===1/0)return;const _=Math.max(0,Math.min(S,Y1));if(!l(c)){const m=a[c];m&&clearTimeout(m),a[c]=setTimeout(()=>{l(c)||d.dispatch(o({queryCacheKey:c})),delete a[c]},_*1e3)}}return u},X1=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:l,refetchQuery:a,internalState:u})=>{const{removeQueryResult:s}=i.internalActions,c=kn(On(r),ga(r)),h=kn(On(r,o),Qr(r,o));let d=[];const v=(_,m)=>{c(_)?S(Rv(_,"invalidatesTags",n,l),m):h(_)?S([],m):i.util.invalidateTags.match(_)&&S($c(_.payload,void 0,void 0,void 0,void 0,l),m)};function g(_){var m,p;for(const f in _.queries)if(((m=_.queries[f])==null?void 0:m.status)==="pending")return!0;for(const f in _.mutations)if(((p=_.mutations[f])==null?void 0:p.status)==="pending")return!0;return!1}function S(_,m){const p=m.getState(),f=p[e];if(d.push(..._),f.config.invalidationBehavior==="delayed"&&g(f))return;const y=d;if(d=[],y.length===0)return;const E=i.util.selectInvalidatedBy(p,y);t.batch(()=>{const w=Array.from(E.values());for(const{queryCacheKey:C}of w){const x=f.queries[C],O=u.currentSubscriptions[C]??{};x&&(jr(O)===0?m.dispatch(s({queryCacheKey:C})):x.status!=="uninitialized"&&m.dispatch(a(x,C)))}})}return v},J1=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={},l=(d,v)=>{(n.internalActions.updateSubscriptionOptions.match(d)||n.internalActions.unsubscribeQueryResult.match(d))&&u(d.payload,v),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&u(d.meta.arg,v),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&a(d.meta.arg,v),n.util.resetApiState.match(d)&&c()};function a({queryCacheKey:d},v){const g=v.getState()[e],S=g.queries[d],_=o.currentSubscriptions[d];if(!S||S.status==="uninitialized")return;const{lowestPollingInterval:m,skipPollingIfUnfocused:p}=h(_);if(!Number.isFinite(m))return;const f=i[d];f!=null&&f.timeout&&(clearTimeout(f.timeout),f.timeout=void 0);const y=Date.now()+m;i[d]={nextPollTimestamp:y,pollingInterval:m,timeout:setTimeout(()=>{(g.config.focused||!p)&&v.dispatch(r(S,d)),a({queryCacheKey:d},v)},m)}}function u({queryCacheKey:d},v){const S=v.getState()[e].queries[d],_=o.currentSubscriptions[d];if(!S||S.status==="uninitialized")return;const{lowestPollingInterval:m}=h(_);if(!Number.isFinite(m)){s(d);return}const p=i[d],f=Date.now()+m;(!p||f{const{removeQueryResult:i}=n.internalActions,l=(u,s)=>{zc.match(u)&&a(s,"refetchOnFocus"),Uc.match(u)&&a(s,"refetchOnReconnect")};function a(u,s){const c=u.getState()[e],h=c.queries,d=o.currentSubscriptions;t.batch(()=>{for(const v of Object.keys(d)){const g=h[v],S=d[v];if(!S||!g)continue;(Object.values(S).some(m=>m[s]===!0)||Object.values(S).every(m=>m[s]===void 0)&&c.config[s])&&(jr(S)===0?u.dispatch(i({queryCacheKey:v})):g.status!=="uninitialized"&&u.dispatch(r(g,v)))}})}return l},rp=new Error("Promise never resolved before cacheEntryRemoved."),e_=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const l=vs(r),a=vs(o),u=On(r,o),s={},c=(v,g,S)=>{const _=h(v);if(r.pending.match(v)){const m=S[t].queries[_],p=g.getState()[t].queries[_];!m&&p&&d(v.meta.arg.endpointName,v.meta.arg.originalArgs,_,g,v.meta.requestId)}else if(o.pending.match(v))g.getState()[t].mutations[_]&&d(v.meta.arg.endpointName,v.meta.arg.originalArgs,_,g,v.meta.requestId);else if(u(v)){const m=s[_];m!=null&&m.valueResolved&&(m.valueResolved({data:v.payload,meta:v.meta.baseQueryMeta}),delete m.valueResolved)}else if(e.internalActions.removeQueryResult.match(v)||e.internalActions.removeMutationResult.match(v)){const m=s[_];m&&(delete s[_],m.cacheEntryRemoved())}else if(e.util.resetApiState.match(v))for(const[m,p]of Object.entries(s))delete s[m],p.cacheEntryRemoved()};function h(v){return l(v)?v.meta.arg.queryCacheKey:a(v)?v.meta.arg.fixedCacheKey??v.meta.requestId:e.internalActions.removeQueryResult.match(v)?v.payload.queryCacheKey:e.internalActions.removeMutationResult.match(v)?ai(v.payload):""}function d(v,g,S,_,m){const p=n.endpointDefinitions[v],f=p==null?void 0:p.onCacheEntryAdded;if(!f)return;let y={};const E=new Promise(D=>{y.cacheEntryRemoved=D}),w=Promise.race([new Promise(D=>{y.valueResolved=D}),E.then(()=>{throw rp})]);w.catch(()=>{}),s[S]=y;const C=e.endpoints[v].select(p.type==="query"?g:S),x=_.dispatch((D,F,B)=>B),O={..._,getCacheEntry:()=>C(_.getState()),requestId:m,extra:x,updateCachedData:p.type==="query"?D=>_.dispatch(e.util.updateQueryData(v,g,D)):void 0,cacheDataLoaded:w,cacheEntryRemoved:E},M=f(g,O);Promise.resolve(M).catch(D=>{if(D!==rp)throw D})}return c},t_=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=Ic(n,r),i=Qr(n,r),l=On(n,r),a={};return(s,c)=>{var h,d;if(o(s)){const{requestId:v,arg:{endpointName:g,originalArgs:S}}=s.meta,_=t.endpointDefinitions[g],m=_==null?void 0:_.onQueryStarted;if(m){const p={},f=new Promise((C,x)=>{p.resolve=C,p.reject=x});f.catch(()=>{}),a[v]=p;const y=e.endpoints[g].select(_.type==="query"?S:v),E=c.dispatch((C,x,O)=>O),w={...c,getCacheEntry:()=>y(c.getState()),requestId:v,extra:E,updateCachedData:_.type==="query"?C=>c.dispatch(e.util.updateQueryData(g,S,C)):void 0,queryFulfilled:f};m(S,w)}}else if(l(s)){const{requestId:v,baseQueryMeta:g}=s.meta;(h=a[v])==null||h.resolve({data:s.payload,meta:g}),delete a[v]}else if(i(s)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:S}=s.meta;(d=a[v])==null||d.reject({error:s.payload??s.error,isUnhandledError:!g,meta:S}),delete a[v]}}},n_=({api:e,context:{apiUid:t},reducerPath:n})=>(r,o)=>{e.util.resetApiState.match(r)&&o.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},r_=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:a}=e.internalActions,u=(v,g)=>{var _,m,p;if(l.match(g)){const{queryCacheKey:f,requestId:y,options:E}=g.payload;return(_=v==null?void 0:v[f])!=null&&_[y]&&(v[f][y]=E),!0}if(a.match(g)){const{queryCacheKey:f,requestId:y}=g.payload;return v[f]&&delete v[f][y],!0}if(e.internalActions.removeQueryResult.match(g))return delete v[g.payload.queryCacheKey],!0;if(t.pending.match(g)){const{meta:{arg:f,requestId:y}}=g,E=v[m=f.queryCacheKey]??(v[m]={});return E[`${y}_running`]={},f.subscribe&&(E[y]=f.subscriptionOptions??E[y]??{}),!0}let S=!1;if(t.fulfilled.match(g)||t.rejected.match(g)){const f=v[g.meta.arg.queryCacheKey]||{},y=`${g.meta.requestId}_running`;S||(S=!!f[y]),delete f[y]}if(t.rejected.match(g)){const{meta:{condition:f,arg:y,requestId:E}}=g;if(f&&y.subscribe){const w=v[p=y.queryCacheKey]??(v[p]={});w[E]=y.subscriptionOptions??w[E]??{},S=!0}}return S},s=()=>n.currentSubscriptions,d={getSubscriptions:s,getSubscriptionCount:v=>{const S=s()[v]??{};return jr(S)},isRequestSubscribed:(v,g)=>{var _;const S=s();return!!((_=S==null?void 0:S[v])!=null&&_[g])}};return(v,g)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(v))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(v))return[!1,d];const S=u(n.currentSubscriptions,v);let _=!0;if(S){i||(i=setTimeout(()=>{const f=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,y]=pv(o,()=>f);g.next(e.internalActions.subscriptionsUpdated(y)),o=f,i=null},500));const m=typeof v.type=="string"&&!!v.type.startsWith(r),p=t.rejected.match(v)&&v.meta.condition&&!!v.meta.arg.subscribe;_=!m&&!p}return[_,!1]}};function o_(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,l={invalidateTags:He(`${t}/invalidateTags`)},a=h=>h.type.startsWith(`${t}/`),u=[n_,G1,X1,J1,e_,t_];return{middleware:h=>{let d=!1;const g={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:a},S=u.map(p=>p(g)),_=r_(g),m=Z1(g);return p=>f=>{if(!lv(f))return p(f);d||(d=!0,h.dispatch(r.internalActions.middlewareRegistered(i)));const y={...h,next:p},E=h.getState(),[w,C]=_(f,y,E);let x;if(w?x=p(f):x=C,h.getState()[t]&&(m(f,y,E),a(f)||o.hasRehydrationInfo(f)))for(let O of S)O(f,y,E);return x}},actions:l};function c(h,d,v={}){return n({type:"query",endpointName:h.endpointName,originalArgs:h.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...v})}}function nn(e,...t){return Object.assign(e,...t)}var op=Symbol(),i_=({createSelector:e=Lc}={})=>({name:op,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:l,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:s,invalidationBehavior:c},h){$S();const d=T=>(typeof process<"u",T);Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:Uc,onOffline:Cv,onFocus:zc,onFocusLost:Ev},util:{}});const{queryThunk:v,mutationThunk:g,patchQueryData:S,updateQueryData:_,upsertQueryData:m,prefetch:p,buildMatchThunkActions:f}=H1({baseQuery:n,reducerPath:o,context:h,api:t,serializeQueryArgs:i,assertTagType:d}),{reducer:y,actions:E}=Q1({context:h,queryThunk:v,mutationThunk:g,reducerPath:o,assertTagType:d,config:{refetchOnFocus:u,refetchOnReconnect:s,refetchOnMountOrArgChange:a,keepUnusedDataFor:l,reducerPath:o,invalidationBehavior:c}});nn(t.util,{patchQueryData:S,updateQueryData:_,upsertQueryData:m,prefetch:p,resetApiState:E.resetApiState}),nn(t.internalActions,E);const{middleware:w,actions:C}=o_({reducerPath:o,context:h,queryThunk:v,mutationThunk:g,api:t,assertTagType:d});nn(t.util,C),nn(t,{reducer:y,middleware:w});const{buildQuerySelector:x,buildMutationSelector:O,selectInvalidatedBy:M,selectCachedArgsForQuery:D}=V1({serializeQueryArgs:i,reducerPath:o,createSelector:e});nn(t.util,{selectInvalidatedBy:M,selectCachedArgsForQuery:D});const{buildInitiateQuery:F,buildInitiateMutation:B,getRunningMutationThunk:L,getRunningMutationsThunk:U,getRunningQueriesThunk:q,getRunningQueryThunk:k}=W1({queryThunk:v,mutationThunk:g,api:t,serializeQueryArgs:i,context:h});return nn(t.util,{getRunningMutationThunk:L,getRunningMutationsThunk:U,getRunningQueryThunk:k,getRunningQueriesThunk:q}),{name:op,injectEndpoint(T,z){var W;const I=t;(W=I.endpoints)[T]??(W[T]={}),xv(z)?nn(I.endpoints[T],{name:T,select:x(T,z),initiate:F(T,z)},f(v,T)):U1(z)&&nn(I.endpoints[T],{name:T,select:O(),initiate:B(T)},f(g,T))}}}});function l_(e){return e.type==="query"}function a_(e){return e.type==="mutation"}function Ji(e,...t){return Object.assign(e,...t)}function au(e){return e.replace(e[0],e[0].toUpperCase())}var fr=WeakMap?new WeakMap:void 0,u_=({endpointName:e,queryArgs:t})=>{let n="";const r=fr==null?void 0:fr.get(t);if(typeof r=="string")n=r;else{const o=JSON.stringify(t,(i,l)=>zt(l)?Object.keys(l).sort().reduce((a,u)=>(a[u]=l[u],a),{}):l);zt(t)&&(fr==null||fr.set(t,o)),n=o}return`${e}(${n})`},uu=Symbol();function ip(e,t,n,r){const o=N.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}),[e,t,n,r]),i=N.useRef(o);return N.useEffect(()=>{i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function su(e){const t=N.useRef(e);return N.useEffect(()=>{Eo(t.current,e)||(t.current=e)},[e]),Eo(t.current,e)?t.current:e}var s_=typeof window<"u"&&window.document&&window.document.createElement?N.useLayoutEffect:N.useEffect,c_=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Sv.pending}:e;function f_({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:l},serializeQueryArgs:a,context:u}){const s=i?g=>g():N.useEffect;return{buildQueryHooks:d,buildMutationHook:v,usePrefetch:h};function c(g,S,_){if(S!=null&&S.endpointName&&g.isUninitialized){const{endpointName:w}=S,C=u.endpointDefinitions[w];a({queryArgs:S.originalArgs,endpointDefinition:C,endpointName:w})===a({queryArgs:_,endpointDefinition:C,endpointName:w})&&(S=void 0)}let m=g.isSuccess?g.data:S==null?void 0:S.data;m===void 0&&(m=g.data);const p=m!==void 0,f=g.isLoading,y=!p&&f,E=g.isSuccess||f&&p;return{...g,data:m,currentData:g.data,isFetching:f,isLoading:y,isSuccess:E}}function h(g,S){const _=n(),m=su(S);return N.useCallback((p,f)=>_(e.util.prefetch(g,p,{...m,...f})),[g,_,m])}function d(g){const S=(p,{refetchOnReconnect:f,refetchOnFocus:y,refetchOnMountOrArgChange:E,skip:w=!1,pollingInterval:C=0,skipPollingIfUnfocused:x=!1}={})=>{const{initiate:O}=e.endpoints[g],M=n(),D=N.useRef();if(!D.current){const I=M(e.internalActions.internal_getRTKQSubscriptions());D.current=I}const F=ip(w?Wn:p,u_,u.endpointDefinitions[g],g),B=su({refetchOnReconnect:f,refetchOnFocus:y,pollingInterval:C,skipPollingIfUnfocused:x}),L=N.useRef(!1),U=N.useRef();let{queryCacheKey:q,requestId:k}=U.current||{},T=!1;q&&k&&(T=D.current.isRequestSubscribed(q,k));const z=!T&&L.current;return s(()=>{L.current=T}),s(()=>{z&&(U.current=void 0)},[z]),s(()=>{var V;const I=U.current;if(typeof process<"u",F===Wn){I==null||I.unsubscribe(),U.current=void 0;return}const W=(V=U.current)==null?void 0:V.subscriptionOptions;if(!I||I.arg!==F){I==null||I.unsubscribe();const J=M(O(F,{subscriptionOptions:B,forceRefetch:E}));U.current=J}else B!==W&&I.updateSubscriptionOptions(B)},[M,O,E,F,B,z]),N.useEffect(()=>()=>{var I;(I=U.current)==null||I.unsubscribe(),U.current=void 0},[]),N.useMemo(()=>({refetch:()=>{var I;if(!U.current)throw new Error(Ue(38));return(I=U.current)==null?void 0:I.refetch()}}),[])},_=({refetchOnReconnect:p,refetchOnFocus:f,pollingInterval:y=0,skipPollingIfUnfocused:E=!1}={})=>{const{initiate:w}=e.endpoints[g],C=n(),[x,O]=N.useState(uu),M=N.useRef(),D=su({refetchOnReconnect:p,refetchOnFocus:f,pollingInterval:y,skipPollingIfUnfocused:E});s(()=>{var U,q;const L=(U=M.current)==null?void 0:U.subscriptionOptions;D!==L&&((q=M.current)==null||q.updateSubscriptionOptions(D))},[D]);const F=N.useRef(D);s(()=>{F.current=D},[D]);const B=N.useCallback(function(L,U=!1){let q;return t(()=>{var k;(k=M.current)==null||k.unsubscribe(),M.current=q=C(w(L,{subscriptionOptions:F.current,forceRefetch:!U})),O(L)}),q},[C,w]);return N.useEffect(()=>()=>{var L;(L=M==null?void 0:M.current)==null||L.unsubscribe()},[]),N.useEffect(()=>{x!==uu&&!M.current&&B(x,!0)},[x,B]),N.useMemo(()=>[B,x],[B,x])},m=(p,{skip:f=!1,selectFromResult:y}={})=>{const{select:E}=e.endpoints[g],w=ip(f?Wn:p,a,u.endpointDefinitions[g],g),C=N.useRef(),x=N.useMemo(()=>l([E(w),(B,L)=>L,B=>w],c,{memoizeOptions:{resultEqualityCheck:Eo}}),[E,w]),O=N.useMemo(()=>y?l([x],y,{devModeChecks:{identityFunctionCheck:"never"}}):x,[x,y]),M=r(B=>O(B,C.current),Eo),D=o(),F=x(D.getState(),C.current);return s_(()=>{C.current=F},[F]),M};return{useQueryState:m,useQuerySubscription:S,useLazyQuerySubscription:_,useLazyQuery(p){const[f,y]=_(p),E=m(y,{...p,skip:y===uu}),w=N.useMemo(()=>({lastArg:y}),[y]);return N.useMemo(()=>[f,E,w],[f,E,w])},useQuery(p,f){const y=S(p,f),E=m(p,{selectFromResult:p===Wn||f!=null&&f.skip?void 0:c_,...f}),{data:w,status:C,isLoading:x,isSuccess:O,isError:M,error:D}=E;return N.useDebugValue({data:w,status:C,isLoading:x,isSuccess:O,isError:M,error:D}),N.useMemo(()=>({...E,...y}),[E,y])}}}function v(g){return({selectFromResult:S,fixedCacheKey:_}={})=>{const{select:m,initiate:p}=e.endpoints[g],f=n(),[y,E]=N.useState();N.useEffect(()=>()=>{y!=null&&y.arg.fixedCacheKey||y==null||y.reset()},[y]);const w=N.useCallback(function(W){const V=f(p(W,{fixedCacheKey:_}));return E(V),V},[f,p,_]),{requestId:C}=y||{},x=N.useMemo(()=>m({fixedCacheKey:_,requestId:y==null?void 0:y.requestId}),[_,y,m]),O=N.useMemo(()=>S?l([x],S):x,[S,x]),M=r(O,Eo),D=_==null?y==null?void 0:y.arg.originalArgs:void 0,F=N.useCallback(()=>{t(()=>{y&&E(void 0),_&&f(e.internalActions.removeMutationResult({requestId:C,fixedCacheKey:_}))})},[f,_,y,C]),{endpointName:B,data:L,status:U,isLoading:q,isSuccess:k,isError:T,error:z}=M;N.useDebugValue({endpointName:B,data:L,status:U,isLoading:q,isSuccess:k,isError:T,error:z});const I=N.useMemo(()=>({...M,originalArgs:D,reset:F}),[M,D,F]);return N.useMemo(()=>[w,I],[w,I])}}}var d_=Symbol(),p_=({batch:e=Jy,hooks:t={useDispatch:bp,useSelector:Dp,useStore:Ip},createSelector:n=Lc,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:d_,init(i,{serializeQueryArgs:l},a){const u=i,{buildQueryHooks:s,buildMutationHook:c,usePrefetch:h}=f_({api:i,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:l,context:a});return Ji(u,{usePrefetch:h}),Ji(a,{batch:e}),{injectEndpoint(d,v){if(l_(v)){const{useQuery:g,useLazyQuery:S,useLazyQuerySubscription:_,useQueryState:m,useQuerySubscription:p}=s(d);Ji(u.endpoints[d],{useQuery:g,useLazyQuery:S,useLazyQuerySubscription:_,useQueryState:m,useQuerySubscription:p}),i[`use${au(d)}Query`]=g,i[`useLazy${au(d)}Query`]=S}else if(a_(v)){const g=c(d);Ji(u.endpoints[d],{useMutation:g}),i[`use${au(d)}Mutation`]=g}}}}}),h_=q1(i_(),p_());const Ov={API_URL:"https://randomuser.me/api",COUNT_USERS:"20"},Ql=h_({reducerPath:"api",baseQuery:z1({baseUrl:Ov.API_URL}),tagTypes:Object.values(Fc),endpoints:()=>({})}),Bc=Ql.injectEndpoints({endpoints:e=>({generate:e.mutation({query:t=>({url:`/?seed=${t}&results=${Ov.COUNT_USERS}`,method:"GET"}),invalidatesTags:[Fc.SESSION_TAG]})})}),{useGenerateMutation:Pv}=Bc;function m_(e){return e.length}const v_={contacts:[]},ws=un({name:"contacts",initialState:v_,reducers:{pushContact:(e,{payload:t})=>{const n=t;n.id=m_(e.contacts),e.contacts.push(n)},deleteContact:(e,{payload:t})=>{e.contacts=e.contacts.filter(n=>n.id!==t)},updateContact:(e,{payload:t})=>{const n=e.contacts.findIndex(r=>r.id===t.id);n>=0&&(e.contacts[n]=t)}},extraReducers:e=>e.addMatcher(Bc.endpoints.generate.matchFulfilled,(t,{payload:n})=>{t.contacts=kS(n)})}),{pushContact:y_,deleteContact:g_,updateContact:w_}=ws.actions,S_="_layout__container_3wje0_1",__={layout__container:S_},E_=({children:e})=>j.jsx("div",{className:__.layout__container,children:e});var Tv={exports:{}};/*! + */function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Ew(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=N.useState(n.state),[l,a]=N.useState(),[u,s]=N.useState({isTransitioning:!1}),[c,h]=N.useState(),[d,v]=N.useState(),[g,w]=N.useState(),_=N.useRef(new Map),{v7_startTransition:m}=r||{},p=N.useCallback(C=>{m?ww(C):C()},[m]),f=N.useCallback((C,x)=>{let{deletedFetchers:O,unstable_flushSync:M,unstable_viewTransitionOpts:D}=x;O.forEach(B=>_.current.delete(B)),C.fetchers.forEach((B,L)=>{B.data!==void 0&&_.current.set(L,B.data)});let F=n.window==null||typeof n.window.document.startViewTransition!="function";if(!D||F){M?ho(()=>i(C)):p(()=>i(C));return}if(M){ho(()=>{d&&(c&&c.resolve(),d.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:D.currentLocation,nextLocation:D.nextLocation})});let B=n.window.document.startViewTransition(()=>{ho(()=>i(C))});B.finished.finally(()=>{ho(()=>{h(void 0),v(void 0),a(void 0),s({isTransitioning:!1})})}),ho(()=>v(B));return}d?(c&&c.resolve(),d.skipTransition(),w({state:C,currentLocation:D.currentLocation,nextLocation:D.nextLocation})):(a(C),s({isTransitioning:!0,flushSync:!1,currentLocation:D.currentLocation,nextLocation:D.nextLocation}))},[n.window,d,c,_,p]);N.useLayoutEffect(()=>n.subscribe(f),[n,f]),N.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new _w)},[u]),N.useEffect(()=>{if(c&&l&&n.window){let C=l,x=c.promise,O=n.window.document.startViewTransition(async()=>{p(()=>i(C)),await x});O.finished.finally(()=>{h(void 0),v(void 0),a(void 0),s({isTransitioning:!1})}),v(O)}},[p,l,c,n.window]),N.useEffect(()=>{c&&l&&o.location.key===l.location.key&&c.resolve()},[c,d,o.location,l]),N.useEffect(()=>{!u.isTransitioning&&g&&(a(g.state),s({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),w(void 0))},[u.isTransitioning,g]),N.useEffect(()=>{},[]);let y=N.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,x,O)=>n.navigate(C,{state:x,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(C,x,O)=>n.navigate(C,{replace:!0,state:x,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),E=n.basename||"/",S=N.useMemo(()=>({router:n,navigator:y,static:!1,basename:E}),[n,y,E]);return N.createElement(N.Fragment,null,N.createElement(pa.Provider,{value:S},N.createElement(Xm.Provider,{value:o},N.createElement(yw.Provider,{value:_.current},N.createElement(vw.Provider,{value:u},N.createElement(cw,{basename:E,location:o.location,navigationType:o.historyAction,navigator:y,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?N.createElement(Cw,{routes:n.routes,future:n.future,state:o}):t))))),null)}function Cw(e){let{routes:t,future:n,state:r}=e;return JS(t,void 0,r,n)}var Ad;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ad||(Ad={}));var Dd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Dd||(Dd={}));const ma=bp,rv=Dp,ov=()=>rv(e=>e.contacts);var Gt=(e=>(e.MALE="MALE",e.FEMALE="FEMALE",e))(Gt||{});function xw(e){switch(e){case"male":return Gt.MALE;case"female":return Gt.FEMALE;default:throw new Error("Wrong gender! Who is it???")}}function Rw(e){return{id:null,email:e.email,firstName:e.name.first,lastName:e.name.last,gender:xw(e.gender)}}function kw(e){return e.results.map(Rw).map((t,n)=>(t.id=n,t))}function Ne(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ow=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ld=Ow,nu=()=>Math.random().toString(36).substring(7).split("").join("."),Pw={INIT:`@@redux/INIT${nu()}`,REPLACE:`@@redux/REPLACE${nu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${nu()}`},$l=Pw;function zt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function iv(e,t,n){if(typeof e!="function")throw new Error(Ne(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ne(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ne(1));return n(iv)(e,t)}let r=e,o=t,i=new Map,l=i,a=0,u=!1;function s(){l===i&&(l=new Map,i.forEach((_,m)=>{l.set(m,_)}))}function c(){if(u)throw new Error(Ne(3));return o}function h(_){if(typeof _!="function")throw new Error(Ne(4));if(u)throw new Error(Ne(5));let m=!0;s();const p=a++;return l.set(p,_),function(){if(m){if(u)throw new Error(Ne(6));m=!1,s(),l.delete(p),i=null}}}function d(_){if(!zt(_))throw new Error(Ne(7));if(typeof _.type>"u")throw new Error(Ne(8));if(typeof _.type!="string")throw new Error(Ne(17));if(u)throw new Error(Ne(9));try{u=!0,o=r(o,_)}finally{u=!1}return(i=l).forEach(p=>{p()}),_}function v(_){if(typeof _!="function")throw new Error(Ne(10));r=_,d({type:$l.REPLACE})}function g(){const _=h;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Ne(11));function p(){const y=m;y.next&&y.next(c())}return p(),{unsubscribe:_(p)}},[Ld](){return this}}}return d({type:$l.INIT}),{dispatch:d,subscribe:h,getState:c,replaceReducer:v,[Ld]:g}}function Tw(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$l.INIT})>"u")throw new Error(Ne(12));if(typeof n(void 0,{type:$l.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ne(13))})}function Mc(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw a&&a.type,new Error(Ne(14));s[h]=g,u=u||g!==v}return u=u||r.length!==Object.keys(l).length,u?s:l}}function Bl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Mw(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(Ne(15))};const l={getState:o.getState,dispatch:(u,...s)=>i(u,...s)},a=e.map(u=>u(l));return i=Bl(...a)(o.dispatch),{...o,dispatch:i}}}function lv(e){return zt(e)&&"type"in e&&typeof e.type=="string"}var Nc=Symbol.for("immer-nothing"),Do=Symbol.for("immer-draftable"),Je=Symbol.for("immer-state");function De(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zn=Object.getPrototypeOf;function Pt(e){return!!e&&!!e[Je]}function Tt(e){var t;return e?av(e)||Array.isArray(e)||!!e[Do]||!!((t=e.constructor)!=null&&t[Do])||wi(e)||_i(e):!1}var Nw=Object.prototype.constructor.toString();function av(e){if(!e||typeof e!="object")return!1;const t=Zn(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Nw}function Aw(e){return Pt(e)||De(15,e),e[Je].base_}function Hr(e,t){er(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function er(e){const t=e[Je];return t?t.type_:Array.isArray(e)?1:wi(e)?2:_i(e)?3:0}function ni(e,t){return er(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ru(e,t){return er(e)===2?e.get(t):e[t]}function uv(e,t,n){const r=er(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Dw(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function wi(e){return e instanceof Map}function _i(e){return e instanceof Set}function bn(e){return e.copy_||e.base_}function cs(e,t){if(wi(e))return new Map(e);if(_i(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&av(e))return Zn(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Je];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=Lw),Object.freeze(e),t&&Hr(e,(n,r)=>Ac(r,!0))),e}function Lw(){De(2)}function va(e){return Object.isFrozen(e)}var fs={};function tr(e){const t=fs[e];return t||De(0,e),t}function jw(e,t){fs[e]||(fs[e]=t)}var ri;function sv(){return ri}function Iw(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jd(e,t){t&&(tr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ds(e){ps(e),e.drafts_.forEach(bw),e.drafts_=null}function ps(e){e===ri&&(ri=e.parent_)}function Id(e){return ri=Iw(ri,e)}function bw(e){const t=e[Je];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Je].modified_&&(ds(t),De(4)),Tt(e)&&(e=Wl(t,e),t.parent_||Hl(t,e)),t.patches_&&tr("Patches").generateReplacementPatches_(n[Je].base_,e,t.patches_,t.inversePatches_)):e=Wl(t,n,[]),ds(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Nc?e:void 0}function Wl(e,t,n){if(va(t))return t;const r=t[Je];if(!r)return Hr(t,(o,i)=>Fd(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Hl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,l=!1;r.type_===3&&(i=new Set(o),o.clear(),l=!0),Hr(i,(a,u)=>Fd(e,r,o,a,u,n,l)),Hl(e,o,!1),n&&e.patches_&&tr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Fd(e,t,n,r,o,i,l){if(Pt(o)){const a=i&&t&&t.type_!==3&&!ni(t.assigned_,r)?i.concat(r):void 0,u=Wl(e,o,a);if(uv(n,r,u),Pt(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(Tt(o)&&!va(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Wl(e,o),(!t||!t.scope_.parent_)&&Hl(e,o)}}function Hl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ac(t,n)}function Fw(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:sv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Dc;n&&(o=[r],i=oi);const{revoke:l,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=l,a}var Dc={get(e,t){if(t===Je)return e;const n=bn(e);if(!ni(n,t))return zw(e,n,t);const r=n[t];return e.finalized_||!Tt(r)?r:r===ou(e.base_,t)?(iu(e),e.copy_[t]=ms(r,e)):r},has(e,t){return t in bn(e)},ownKeys(e){return Reflect.ownKeys(bn(e))},set(e,t,n){const r=cv(bn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=ou(bn(e),t),i=o==null?void 0:o[Je];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Dw(n,o)&&(n!==void 0||ni(e.base_,t)))return!0;iu(e),hs(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ou(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,iu(e),hs(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=bn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){De(11)},getPrototypeOf(e){return Zn(e.base_)},setPrototypeOf(){De(12)}},oi={};Hr(Dc,(e,t)=>{oi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});oi.deleteProperty=function(e,t){return oi.set.call(this,e,t,void 0)};oi.set=function(e,t,n){return Dc.set.call(this,e[0],t,n,e[0])};function ou(e,t){const n=e[Je];return(n?bn(n):e)[t]}function zw(e,t,n){var o;const r=cv(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function cv(e,t){if(!(t in e))return;let n=Zn(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Zn(n)}}function hs(e){e.modified_||(e.modified_=!0,e.parent_&&hs(e.parent_))}function iu(e){e.copy_||(e.copy_=cs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Uw=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const l=this;return function(u=i,...s){return l.produce(u,c=>n.call(this,c,...s))}}typeof n!="function"&&De(6),r!==void 0&&typeof r!="function"&&De(7);let o;if(Tt(t)){const i=Id(this),l=ms(t,void 0);let a=!0;try{o=n(l),a=!1}finally{a?ds(i):ps(i)}return jd(i,r),bd(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Nc&&(o=void 0),this.autoFreeze_&&Ac(o,!0),r){const i=[],l=[];tr("Patches").generateReplacementPatches_(t,o,i,l),r(i,l)}return o}else De(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...a)=>this.produceWithPatches(l,u=>t(u,...a));let r,o;return[this.produce(t,n,(l,a)=>{r=l,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Tt(e)||De(8),Pt(e)&&(e=fv(e));const t=Id(this),n=ms(e,void 0);return n[Je].isManual_=!0,ps(t),n}finishDraft(e,t){const n=e&&e[Je];(!n||!n.isManual_)&&De(9);const{scope_:r}=n;return jd(r,t),bd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=tr("Patches").applyPatches_;return Pt(e)?r(e,t):this.produce(e,o=>r(o,t))}};function ms(e,t){const n=wi(e)?tr("MapSet").proxyMap_(e,t):_i(e)?tr("MapSet").proxySet_(e,t):Fw(e,t);return(t?t.scope_:sv()).drafts_.push(n),n}function fv(e){return Pt(e)||De(10,e),dv(e)}function dv(e){if(!Tt(e)||va(e))return e;const t=e[Je];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cs(e,t.scope_.immer_.useStrictShallowCopy_)}else n=cs(e,!0);return Hr(n,(r,o)=>{uv(n,r,dv(o))}),t&&(t.finalized_=!1),n}function $w(){const t="replace",n="add",r="remove";function o(d,v,g,w){switch(d.type_){case 0:case 2:return l(d,v,g,w);case 1:return i(d,v,g,w);case 3:return a(d,v,g,w)}}function i(d,v,g,w){let{base_:_,assigned_:m}=d,p=d.copy_;p.length<_.length&&([_,p]=[p,_],[g,w]=[w,g]);for(let f=0;f<_.length;f++)if(m[f]&&p[f]!==_[f]){const y=v.concat([f]);g.push({op:t,path:y,value:h(p[f])}),w.push({op:t,path:y,value:h(_[f])})}for(let f=_.length;f{const y=ru(_,p),E=ru(m,p),S=f?ni(_,p)?t:n:r;if(y===E&&S===t)return;const C=v.concat(p);g.push(S===r?{op:S,path:C}:{op:S,path:C,value:E}),w.push(S===n?{op:r,path:C}:S===r?{op:n,path:C,value:h(y)}:{op:t,path:C,value:h(y)})})}function a(d,v,g,w){let{base_:_,copy_:m}=d,p=0;_.forEach(f=>{if(!m.has(f)){const y=v.concat([p]);g.push({op:r,path:y,value:f}),w.unshift({op:n,path:y,value:f})}p++}),p=0,m.forEach(f=>{if(!_.has(f)){const y=v.concat([p]);g.push({op:n,path:y,value:f}),w.unshift({op:r,path:y,value:f})}p++})}function u(d,v,g,w){g.push({op:t,path:[],value:v===Nc?void 0:v}),w.push({op:t,path:[],value:d})}function s(d,v){return v.forEach(g=>{const{path:w,op:_}=g;let m=d;for(let E=0;E[g,c(w)]));if(_i(d))return new Set(Array.from(d).map(c));const v=Object.create(Zn(d));for(const g in d)v[g]=c(d[g]);return ni(d,Do)&&(v[Do]=d[Do]),v}function h(d){return Pt(d)?c(d):d}jw("Patches",{applyPatches_:s,generatePatches_:o,generateReplacementPatches_:u})}var lt=new Uw,Ei=lt.produce,pv=lt.produceWithPatches.bind(lt);lt.setAutoFreeze.bind(lt);lt.setUseStrictShallowCopy.bind(lt);var zd=lt.applyPatches.bind(lt);lt.createDraft.bind(lt);lt.finishDraft.bind(lt);function Bw(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ww(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Hw(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ud=e=>Array.isArray(e)?e:[e];function Qw(e){const t=Array.isArray(e[0])?e[0]:e;return Hw(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Vw(e,t){const n=[],{length:r}=e;for(let o=0;o{n=Yi(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function hv(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,l=0,a,u={},s=o.pop();typeof s=="object"&&(u=s,s=o.pop()),Bw(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...n,...u},{memoize:h,memoizeOptions:d=[],argsMemoize:v=ii,argsMemoizeOptions:g=[],devModeChecks:w={}}=c,_=Ud(d),m=Ud(g),p=Qw(o),f=h(function(){return i++,s.apply(null,arguments)},..._),y=v(function(){l++;const S=Vw(p,arguments);return a=f.apply(null,S),a},...m);return Object.assign(y,{resultFunc:s,memoizedResultFunc:f,dependencies:p,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:h,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var Lc=hv(ii),Gw=Object.assign((e,t=Lc)=>{Ww(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((l,a,u)=>(l[n[u]]=a,l),{}))},{withTypes:()=>Gw});function mv(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var Xw=mv(),Jw=mv,Zw=(...e)=>{const t=hv(...e),n=Object.assign((...r)=>{const o=t(...r),i=(l,...a)=>o(Pt(l)?fv(l):l,...a);return Object.assign(i,o),i},{withTypes:()=>n});return n};Zw(ii);var e1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bl:Bl.apply(null,arguments)},t1=e=>e&&typeof e.match=="function";function He(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Ue(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>lv(r)&&r.type===e,n}var vv=class _o extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,_o.prototype)}static get[Symbol.species](){return _o}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new _o(...t[0].concat(this)):new _o(...t.concat(this))}};function Bd(e){return Tt(e)?Ei(e,()=>{}):e}function Wd(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(Ue(10));const r=n.insert(t,e);return e.set(t,r),r}function n1(e){return typeof e=="boolean"}var r1=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let l=new vv;return n&&(n1(n)?l.push(Xw):l.push(Jw(n.extraArgument))),l},Or="RTK_autoBatch",mo=()=>e=>({payload:e,meta:{[Or]:!0}}),yv=e=>t=>{setTimeout(t,e)},o1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yv(10),i1=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,l=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?o1:e.type==="callback"?e.queueNotification:yv(e.timeout),s=()=>{l=!1,i&&(i=!1,a.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const h=()=>o&&c(),d=r.subscribe(h);return a.add(c),()=>{d(),a.delete(c)}},dispatch(c){var h;try{return o=!((h=c==null?void 0:c.meta)!=null&&h[Or]),i=!o,i&&(l||(l=!0,u(s))),r.dispatch(c)}finally{o=!0}}})},l1=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new vv(e);return r&&o.push(i1(typeof r=="object"?r:void 0)),o},a1=!0;function u1(e){const t=r1(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(zt(n))a=Mc(n);else throw new Error(Ue(1));let u;typeof r=="function"?u=r(t):u=t();let s=Bl;o&&(s=e1({trace:!a1,...typeof o=="object"&&o}));const c=Mw(...u),h=l1(c);let d=typeof l=="function"?l(h):h();const v=s(...d);return iv(a,i,v)}function gv(e){const t={},n=[];let r;const o={addCase(i,l){const a=typeof i=="string"?i:i.type;if(!a)throw new Error(Ue(28));if(a in t)throw new Error(Ue(29));return t[a]=l,o},addMatcher(i,l){return n.push({matcher:i,reducer:l}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function s1(e){return typeof e=="function"}function c1(e,t){let[n,r,o]=gv(t),i;if(s1(e))i=()=>Bd(e());else{const a=Bd(e);i=()=>a}function l(a=i(),u){let s=[n[u.type],...r.filter(({matcher:c})=>c(u)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[o]),s.reduce((c,h)=>{if(h)if(Pt(c)){const v=h(c,u);return v===void 0?c:v}else{if(Tt(c))return Ei(c,d=>h(d,u));{const d=h(c,u);if(d===void 0){if(c===null)return c;throw new Error(Ue(9))}return d}}return c},a)}return l.getInitialState=i,l}var f1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",jc=(e=21)=>{let t="",n=e;for(;n--;)t+=f1[Math.random()*64|0];return t},Sv=(e,t)=>t1(e)?e.match(t):e(t);function On(...e){return t=>e.some(n=>Sv(n,t))}function Lo(...e){return t=>e.every(n=>Sv(n,t))}function ya(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Ci(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Ic(...e){return e.length===0?t=>ya(t,["pending"]):Ci(e)?t=>{const n=e.map(o=>o.pending);return On(...n)(t)}:Ic()(e[0])}function Qr(...e){return e.length===0?t=>ya(t,["rejected"]):Ci(e)?t=>{const n=e.map(o=>o.rejected);return On(...n)(t)}:Qr()(e[0])}function ga(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?n=>Lo(Qr(...e),t)(n):Ci(e)?n=>Lo(Qr(...e),t)(n):ga()(e[0])}function Pn(...e){return e.length===0?t=>ya(t,["fulfilled"]):Ci(e)?t=>{const n=e.map(o=>o.fulfilled);return On(...n)(t)}:Pn()(e[0])}function vs(...e){return e.length===0?t=>ya(t,["pending","fulfilled","rejected"]):Ci(e)?t=>{const n=[];for(const o of e)n.push(o.pending,o.rejected,o.fulfilled);return On(...n)(t)}:vs()(e[0])}var d1=["name","message","stack","code"],lu=class{constructor(e,t){ka(this,"_type");this.payload=e,this.meta=t}},Hd=class{constructor(e,t){ka(this,"_type");this.payload=e,this.meta=t}},p1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of d1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Qd=(()=>{function e(t,n,r){const o=He(t+"/fulfilled",(u,s,c,h)=>({payload:u,meta:{...h||{},arg:c,requestId:s,requestStatus:"fulfilled"}})),i=He(t+"/pending",(u,s,c)=>({payload:void 0,meta:{...c||{},arg:s,requestId:u,requestStatus:"pending"}})),l=He(t+"/rejected",(u,s,c,h,d)=>({payload:h,error:(r&&r.serializeError||p1)(u||"Rejected"),meta:{...d||{},arg:c,requestId:s,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function a(u){return(s,c,h)=>{const d=r!=null&&r.idGenerator?r.idGenerator(u):jc(),v=new AbortController;let g,w;function _(p){w=p,v.abort()}const m=async function(){var y,E;let p;try{let S=(y=r==null?void 0:r.condition)==null?void 0:y.call(r,u,{getState:c,extra:h});if(m1(S)&&(S=await S),S===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const C=new Promise((x,O)=>{g=()=>{O({name:"AbortError",message:w||"Aborted"})},v.signal.addEventListener("abort",g)});s(i(d,u,(E=r==null?void 0:r.getPendingMeta)==null?void 0:E.call(r,{requestId:d,arg:u},{getState:c,extra:h}))),p=await Promise.race([C,Promise.resolve(n(u,{dispatch:s,getState:c,extra:h,requestId:d,signal:v.signal,abort:_,rejectWithValue:(x,O)=>new lu(x,O),fulfillWithValue:(x,O)=>new Hd(x,O)})).then(x=>{if(x instanceof lu)throw x;return x instanceof Hd?o(x.payload,d,u,x.meta):o(x,d,u)})])}catch(S){p=S instanceof lu?l(null,d,u,S.payload,S.meta):l(S,d,u)}finally{g&&v.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&l.match(p)&&p.meta.condition||s(p),p}();return Object.assign(m,{abort:_,requestId:d,arg:u,unwrap(){return m.then(h1)}})}}return Object.assign(a,{pending:i,rejected:l,fulfilled:o,settled:On(l,o),typePrefix:t})}return e.withTypes=()=>e,e})();function h1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function m1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var v1=Symbol.for("rtk-slice-createasyncthunk");function y1(e,t){return`${e}/${t}`}function g1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[v1];return function(o){const{name:i,reducerPath:l=i}=o;if(!i)throw new Error(Ue(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(w1()):o.reducers)||{},u=Object.keys(a),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(f,y){const E=typeof f=="string"?f:f.type;if(!E)throw new Error(Ue(12));if(E in s.sliceCaseReducersByType)throw new Error(Ue(13));return s.sliceCaseReducersByType[E]=y,c},addMatcher(f,y){return s.sliceMatchers.push({matcher:f,reducer:y}),c},exposeAction(f,y){return s.actionCreators[f]=y,c},exposeCaseReducer(f,y){return s.sliceCaseReducersByName[f]=y,c}};u.forEach(f=>{const y=a[f],E={reducerName:f,type:y1(i,f),createNotation:typeof o.reducers=="function"};E1(y)?x1(E,y,c,t):_1(E,y,c)});function h(){const[f={},y=[],E=void 0]=typeof o.extraReducers=="function"?gv(o.extraReducers):[o.extraReducers],S={...f,...s.sliceCaseReducersByType};return c1(o.initialState,C=>{for(let x in S)C.addCase(x,S[x]);for(let x of s.sliceMatchers)C.addMatcher(x.matcher,x.reducer);for(let x of y)C.addMatcher(x.matcher,x.reducer);E&&C.addDefaultCase(E)})}const d=f=>f,v=new Map;let g;function w(f,y){return g||(g=h()),g(f,y)}function _(){return g||(g=h()),g.getInitialState()}function m(f,y=!1){function E(C){let x=C[f];return typeof x>"u"&&y&&(x=_()),x}function S(C=d){const x=Wd(v,y,{insert:()=>new WeakMap});return Wd(x,C,{insert:()=>{const O={};for(const[M,D]of Object.entries(o.selectors??{}))O[M]=S1(D,C,_,y);return O}})}return{reducerPath:f,getSelectors:S,get selectors(){return S(E)},selectSlice:E}}const p={name:i,reducer:w,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:_,...m(l),injectInto(f,{reducerPath:y,...E}={}){const S=y??l;return f.inject({reducerPath:S,reducer:w},E),{...p,...m(S,!0)}}};return p}}function S1(e,t,n,r){function o(i,...l){let a=t(i);return typeof a>"u"&&r&&(a=n()),e(a,...l)}return o.unwrapped=e,o}var un=g1();function w1(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function _1({type:e,reducerName:t,createNotation:n},r,o){let i,l;if("reducer"in r){if(n&&!C1(r))throw new Error(Ue(17));i=r.reducer,l=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,l?He(e,l):He(e))}function E1(e){return e._reducerDefinitionType==="asyncThunk"}function C1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function x1({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Ue(18));const{payloadCreator:i,fulfilled:l,pending:a,rejected:u,settled:s,options:c}=n,h=o(e,i,c);r.exposeAction(t,h),l&&r.addCase(h.fulfilled,l),a&&r.addCase(h.pending,a),u&&r.addCase(h.rejected,u),s&&r.addMatcher(h.settled,s),r.exposeCaseReducer(t,{fulfilled:l||Gi,pending:a||Gi,rejected:u||Gi,settled:s||Gi})}function Gi(){}var R1=(e,t)=>{if(typeof e!="function")throw new Error(Ue(32))},bc="listenerMiddleware",k1=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=He(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Ue(21));return R1(i),{predicate:o,type:t,effect:i}},O1=Object.assign(e=>{const{type:t,predicate:n,effect:r}=k1(e);return{id:jc(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Ue(22))}}},{withTypes:()=>O1}),P1=Object.assign(He(`${bc}/add`),{withTypes:()=>P1});He(`${bc}/removeAll`);var T1=Object.assign(He(`${bc}/remove`),{withTypes:()=>T1});function Ue(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Fc=(e=>(e.SESSION_TAG="SESSION_TAG",e.CONTACTS_TAG="CONTACTS_TAG",e))(Fc||{}),wv=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(wv||{});function M1(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function N1(e){return new RegExp("(^|:)//").test(e)}var A1=e=>e.replace(/\/$/,""),D1=e=>e.replace(/^\//,"");function L1(e,t){if(!e)return t;if(!t)return e;if(N1(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=A1(e),t=D1(t),`${e}${n}${t}`}var Vd=e=>[].concat(...e);function j1(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function I1(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var qd=zt;function _v(e,t){if(e===t||!(qd(e)&&qd(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const l of n)i[l]=_v(e[l],t[l]),o&&(o=e[l]===i[l]);return o?e:i}var Kd=(...e)=>fetch(...e),b1=e=>e.status>=200&&e.status<=299,F1=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Yd(e){if(!zt(e))return e;const t={...e};for(const[n,r]of Object.entries(t))r===void 0&&delete t[n];return t}function z1({baseUrl:e,prepareHeaders:t=h=>h,fetchFn:n=Kd,paramsSerializer:r,isJsonContentType:o=F1,jsonContentType:i="application/json",jsonReplacer:l,timeout:a,responseHandler:u,validateStatus:s,...c}={}){return typeof fetch>"u"&&n===Kd&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,v)=>{const{signal:g,getState:w,extra:_,endpoint:m,forced:p,type:f}=v;let y,{url:E,headers:S=new Headers(c.headers),params:C=void 0,responseHandler:x=u??"json",validateStatus:O=s??b1,timeout:M=a,...D}=typeof d=="string"?{url:d}:d,F={...c,signal:g,...D};S=new Headers(Yd(S)),F.headers=await t(S,{getState:w,extra:_,endpoint:m,forced:p,type:f})||S;const B=V=>typeof V=="object"&&(zt(V)||Array.isArray(V)||typeof V.toJSON=="function");if(!F.headers.has("content-type")&&B(F.body)&&F.headers.set("content-type",i),B(F.body)&&o(F.headers)&&(F.body=JSON.stringify(F.body,l)),C){const V=~E.indexOf("?")?"&":"?",J=r?r(C):new URLSearchParams(Yd(C));E+=V+J}E=L1(e,E);const L=new Request(E,F);y={request:new Request(E,F)};let q,k=!1,T=M&&setTimeout(()=>{k=!0,v.abort()},M);try{q=await n(L)}catch(V){return{error:{status:k?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(V)},meta:y}}finally{T&&clearTimeout(T)}const z=q.clone();y.response=z;let I,W="";try{let V;if(await Promise.all([h(q,x).then(J=>I=J,J=>V=J),z.text().then(J=>W=J,()=>{})]),V)throw V}catch(V){return{error:{status:"PARSING_ERROR",originalStatus:q.status,data:W,error:String(V)},meta:y}}return O(q,I)?{data:I,meta:y}:{error:{status:q.status,data:I},meta:y}};async function h(d,v){if(typeof v=="function")return v(d);if(v==="content-type"&&(v=o(d.headers)?"json":"text"),v==="json"){const g=await d.text();return g.length?JSON.parse(g):null}return d.text()}}var Gd=class{constructor(e,t=void 0){this.value=e,this.meta=t}},zc=He("__rtkq/focused"),Ev=He("__rtkq/unfocused"),Uc=He("__rtkq/online"),Cv=He("__rtkq/offline");function xv(e){return e.type==="query"}function U1(e){return e.type==="mutation"}function $c(e,t,n,r,o,i){return $1(e)?e(t,n,r,o).map(ys).map(i):Array.isArray(e)?e.map(ys).map(i):[]}function $1(e){return typeof e=="function"}function ys(e){return typeof e=="string"?{type:e}:e}function Xd(e){return e!=null}function jr(e){let t=0;for(const n in e)t++;return t}function B1(e,t){return e.catch(t)}var li=Symbol("forceQueryFn"),gs=e=>typeof e[li]=="function";function W1({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,l=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:s}=r.internalActions;return{buildInitiateQuery:g,buildInitiateMutation:w,getRunningQueryThunk:c,getRunningMutationThunk:h,getRunningQueriesThunk:d,getRunningMutationsThunk:v};function c(_,m){return p=>{var E;const f=o.endpointDefinitions[_],y=e({queryArgs:m,endpointDefinition:f,endpointName:_});return(E=i.get(p))==null?void 0:E[y]}}function h(_,m){return p=>{var f;return(f=l.get(p))==null?void 0:f[m]}}function d(){return _=>Object.values(i.get(_)||{}).filter(Xd)}function v(){return _=>Object.values(l.get(_)||{}).filter(Xd)}function g(_,m){const p=(f,{subscribe:y=!0,forceRefetch:E,subscriptionOptions:S,[li]:C,...x}={})=>(O,M)=>{var V;const D=e({queryArgs:f,endpointDefinition:m,endpointName:_}),F=t({...x,type:"query",subscribe:y,forceRefetch:E,subscriptionOptions:S,endpointName:_,originalArgs:f,queryCacheKey:D,[li]:C}),B=r.endpoints[_].select(f),L=O(F),U=B(M()),{requestId:q,abort:k}=L,T=U.requestId!==q,z=(V=i.get(O))==null?void 0:V[D],I=()=>B(M()),W=Object.assign(C?L.then(I):T&&!z?Promise.resolve(U):Promise.all([z,L]).then(I),{arg:f,requestId:q,subscriptionOptions:S,queryCacheKey:D,abort:k,async unwrap(){const J=await W;if(J.isError)throw J.error;return J.data},refetch:()=>O(p(f,{subscribe:!1,forceRefetch:!0})),unsubscribe(){y&&O(a({queryCacheKey:D,requestId:q}))},updateSubscriptionOptions(J){W.subscriptionOptions=J,O(s({endpointName:_,requestId:q,queryCacheKey:D,options:J}))}});if(!z&&!T&&!C){const J=i.get(O)||{};J[D]=W,i.set(O,J),W.then(()=>{delete J[D],jr(J)||i.delete(O)})}return W};return p}function w(_){return(m,{track:p=!0,fixedCacheKey:f}={})=>(y,E)=>{const S=n({type:"mutation",endpointName:_,originalArgs:m,track:p,fixedCacheKey:f}),C=y(S),{requestId:x,abort:O,unwrap:M}=C,D=B1(C.unwrap().then(U=>({data:U})),U=>({error:U})),F=()=>{y(u({requestId:x,fixedCacheKey:f}))},B=Object.assign(D,{arg:C.arg,requestId:x,abort:O,unwrap:M,reset:F}),L=l.get(y)||{};return l.set(y,L),L[x]=B,B.then(()=>{delete L[x],jr(L)||l.delete(y)}),f&&(L[f]=B,B.then(()=>{L[f]===B&&(delete L[f],jr(L)||l.delete(y))})),B}}}function Jd(e){return e}function H1({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const l=(p,f,y,E)=>(S,C)=>{const x=n[p],O=r({queryArgs:f,endpointDefinition:x,endpointName:p});if(S(o.internalActions.queryResultPatched({queryCacheKey:O,patches:y})),!E)return;const M=o.endpoints[p].select(f)(C()),D=$c(x.providesTags,M.data,void 0,f,{},i);S(o.internalActions.updateProvidedBy({queryCacheKey:O,providedTags:D}))},a=(p,f,y,E=!0)=>(S,C)=>{const O=o.endpoints[p].select(f)(C());let M={patches:[],inversePatches:[],undo:()=>S(o.util.patchQueryData(p,f,M.inversePatches,E))};if(O.status==="uninitialized")return M;let D;if("data"in O)if(Tt(O.data)){const[F,B,L]=pv(O.data,y);M.patches.push(...B),M.inversePatches.push(...L),D=F}else D=y(O.data),M.patches.push({op:"replace",path:[],value:D}),M.inversePatches.push({op:"replace",path:[],value:O.data});return S(o.util.patchQueryData(p,f,M.patches,E)),M},u=(p,f,y)=>E=>E(o.endpoints[p].initiate(f,{subscribe:!1,forceRefetch:!0,[li]:()=>({data:y})})),s=async(p,{signal:f,abort:y,rejectWithValue:E,fulfillWithValue:S,dispatch:C,getState:x,extra:O})=>{const M=n[p.endpointName];try{let D=Jd,F;const B={signal:f,abort:y,dispatch:C,getState:x,extra:O,endpoint:p.endpointName,type:p.type,forced:p.type==="query"?c(p,x()):void 0},L=p.type==="query"?p[li]:void 0;if(L?F=L():M.query?(F=await t(M.query(p.originalArgs),B,M.extraOptions),M.transformResponse&&(D=M.transformResponse)):F=await M.queryFn(p.originalArgs,B,M.extraOptions,U=>t(U,B,M.extraOptions)),typeof process<"u",F.error)throw new Gd(F.error,F.meta);return S(await D(F.data,F.meta,p.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:F.meta,[Or]:!0})}catch(D){let F=D;if(F instanceof Gd){let B=Jd;M.query&&M.transformErrorResponse&&(B=M.transformErrorResponse);try{return E(await B(F.value,F.meta,p.originalArgs),{baseQueryMeta:F.meta,[Or]:!0})}catch(L){F=L}}throw typeof process<"u",console.error(F),F}};function c(p,f){var x,O,M;const y=(O=(x=f[e])==null?void 0:x.queries)==null?void 0:O[p.queryCacheKey],E=(M=f[e])==null?void 0:M.config.refetchOnMountOrArgChange,S=y==null?void 0:y.fulfilledTimeStamp,C=p.forceRefetch??(p.subscribe&&E);return C?C===!0||(Number(new Date)-Number(S))/1e3>=C:!1}const h=Qd(`${e}/executeQuery`,s,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Or]:!0}},condition(p,{getState:f}){var M,D,F;const y=f(),E=(D=(M=y[e])==null?void 0:M.queries)==null?void 0:D[p.queryCacheKey],S=E==null?void 0:E.fulfilledTimeStamp,C=p.originalArgs,x=E==null?void 0:E.originalArgs,O=n[p.endpointName];return gs(p)?!0:(E==null?void 0:E.status)==="pending"?!1:c(p,y)||xv(O)&&((F=O==null?void 0:O.forceRefetch)!=null&&F.call(O,{currentArg:C,previousArg:x,endpointState:E,state:y}))?!0:!S},dispatchConditionRejection:!0}),d=Qd(`${e}/executeMutation`,s,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Or]:!0}}}),v=p=>"force"in p,g=p=>"ifOlderThan"in p,w=(p,f,y)=>(E,S)=>{const C=v(y)&&y.force,x=g(y)&&y.ifOlderThan,O=(D=!0)=>{const F={forceRefetch:D,isPrefetch:!0};return o.endpoints[p].initiate(f,F)},M=o.endpoints[p].select(f)(S());if(C)E(O());else if(x){const D=M==null?void 0:M.fulfilledTimeStamp;if(!D){E(O());return}(Number(new Date)-Number(new Date(D)))/1e3>=x&&E(O())}else E(O(!1))};function _(p){return f=>{var y,E;return((E=(y=f==null?void 0:f.meta)==null?void 0:y.arg)==null?void 0:E.endpointName)===p}}function m(p,f){return{matchPending:Lo(Ic(p),_(f)),matchFulfilled:Lo(Pn(p),_(f)),matchRejected:Lo(Qr(p),_(f))}}return{queryThunk:h,mutationThunk:d,prefetch:w,updateQueryData:a,upsertQueryData:u,patchQueryData:l,buildMatchThunkActions:m}}function Rv(e,t,n,r){return $c(n[e.meta.arg.endpointName][t],Pn(e)?e.payload:void 0,ga(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Xi(e,t,n){const r=e[t];r&&n(r)}function ai(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Zd(e,t,n){const r=e[ai(t)];r&&n(r)}var vo={};function Q1({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:l},assertTagType:a,config:u}){const s=He(`${e}/resetApiState`),c=un({name:`${e}/queries`,initialState:vo,reducers:{removeQueryResult:{reducer(f,{payload:{queryCacheKey:y}}){delete f[y]},prepare:mo()},queryResultPatched:{reducer(f,{payload:{queryCacheKey:y,patches:E}}){Xi(f,y,S=>{S.data=zd(S.data,E.concat())})},prepare:mo()}},extraReducers(f){f.addCase(t.pending,(y,{meta:E,meta:{arg:S}})=>{var x;const C=gs(S);y[x=S.queryCacheKey]??(y[x]={status:"uninitialized",endpointName:S.endpointName}),Xi(y,S.queryCacheKey,O=>{O.status="pending",O.requestId=C&&O.requestId?O.requestId:E.requestId,S.originalArgs!==void 0&&(O.originalArgs=S.originalArgs),O.startedTimeStamp=E.startedTimeStamp})}).addCase(t.fulfilled,(y,{meta:E,payload:S})=>{Xi(y,E.arg.queryCacheKey,C=>{if(C.requestId!==E.requestId&&!gs(E.arg))return;const{merge:x}=r[E.arg.endpointName];if(C.status="fulfilled",x)if(C.data!==void 0){const{fulfilledTimeStamp:O,arg:M,baseQueryMeta:D,requestId:F}=E;let B=Ei(C.data,L=>x(L,S,{arg:M.originalArgs,baseQueryMeta:D,fulfilledTimeStamp:O,requestId:F}));C.data=B}else C.data=S;else C.data=r[E.arg.endpointName].structuralSharing??!0?_v(Pt(C.data)?Aw(C.data):C.data,S):S;delete C.error,C.fulfilledTimeStamp=E.fulfilledTimeStamp})}).addCase(t.rejected,(y,{meta:{condition:E,arg:S,requestId:C},error:x,payload:O})=>{Xi(y,S.queryCacheKey,M=>{if(!E){if(M.requestId!==C)return;M.status="rejected",M.error=O??x}})}).addMatcher(l,(y,E)=>{const{queries:S}=i(E);for(const[C,x]of Object.entries(S))((x==null?void 0:x.status)==="fulfilled"||(x==null?void 0:x.status)==="rejected")&&(y[C]=x)})}}),h=un({name:`${e}/mutations`,initialState:vo,reducers:{removeMutationResult:{reducer(f,{payload:y}){const E=ai(y);E in f&&delete f[E]},prepare:mo()}},extraReducers(f){f.addCase(n.pending,(y,{meta:E,meta:{requestId:S,arg:C,startedTimeStamp:x}})=>{C.track&&(y[ai(E)]={requestId:S,status:"pending",endpointName:C.endpointName,startedTimeStamp:x})}).addCase(n.fulfilled,(y,{payload:E,meta:S})=>{S.arg.track&&Zd(y,S,C=>{C.requestId===S.requestId&&(C.status="fulfilled",C.data=E,C.fulfilledTimeStamp=S.fulfilledTimeStamp)})}).addCase(n.rejected,(y,{payload:E,error:S,meta:C})=>{C.arg.track&&Zd(y,C,x=>{x.requestId===C.requestId&&(x.status="rejected",x.error=E??S)})}).addMatcher(l,(y,E)=>{const{mutations:S}=i(E);for(const[C,x]of Object.entries(S))((x==null?void 0:x.status)==="fulfilled"||(x==null?void 0:x.status)==="rejected")&&C!==(x==null?void 0:x.requestId)&&(y[C]=x)})}}),d=un({name:`${e}/invalidation`,initialState:vo,reducers:{updateProvidedBy:{reducer(f,y){var C,x;const{queryCacheKey:E,providedTags:S}=y.payload;for(const O of Object.values(f))for(const M of Object.values(O)){const D=M.indexOf(E);D!==-1&&M.splice(D,1)}for(const{type:O,id:M}of S){const D=(C=f[O]??(f[O]={}))[x=M||"__internal_without_id"]??(C[x]=[]);D.includes(E)||D.push(E)}},prepare:mo()}},extraReducers(f){f.addCase(c.actions.removeQueryResult,(y,{payload:{queryCacheKey:E}})=>{for(const S of Object.values(y))for(const C of Object.values(S)){const x=C.indexOf(E);x!==-1&&C.splice(x,1)}}).addMatcher(l,(y,E)=>{var C,x;const{provided:S}=i(E);for(const[O,M]of Object.entries(S))for(const[D,F]of Object.entries(M)){const B=(C=y[O]??(y[O]={}))[x=D||"__internal_without_id"]??(C[x]=[]);for(const L of F)B.includes(L)||B.push(L)}}).addMatcher(On(Pn(t),ga(t)),(y,E)=>{const S=Rv(E,"providesTags",r,a),{queryCacheKey:C}=E.meta.arg;d.caseReducers.updateProvidedBy(y,d.actions.updateProvidedBy({queryCacheKey:C,providedTags:S}))})}}),v=un({name:`${e}/subscriptions`,initialState:vo,reducers:{updateSubscriptionOptions(f,y){},unsubscribeQueryResult(f,y){},internal_getRTKQSubscriptions(){}}}),g=un({name:`${e}/internalSubscriptions`,initialState:vo,reducers:{subscriptionsUpdated:{reducer(f,y){return zd(f,y.payload)},prepare:mo()}}}),w=un({name:`${e}/config`,initialState:{online:j1(),focused:I1(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(f,{payload:y}){f.middlewareRegistered=f.middlewareRegistered==="conflict"||o!==y?"conflict":!0}},extraReducers:f=>{f.addCase(Uc,y=>{y.online=!0}).addCase(Cv,y=>{y.online=!1}).addCase(zc,y=>{y.focused=!0}).addCase(Ev,y=>{y.focused=!1}).addMatcher(l,y=>({...y}))}}),_=Mc({queries:c.reducer,mutations:h.reducer,provided:d.reducer,subscriptions:g.reducer,config:w.reducer}),m=(f,y)=>_(s.match(y)?void 0:f,y),p={...w.actions,...c.actions,...v.actions,...g.actions,...h.actions,...d.actions,resetApiState:s};return{reducer:m,actions:p}}var Hn=Symbol.for("RTKQ/skipToken"),kv={status:"uninitialized"},ep=Ei(kv,()=>{}),tp=Ei(kv,()=>{});function V1({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=h=>ep,o=h=>tp;return{buildQuerySelector:a,buildMutationSelector:u,selectInvalidatedBy:s,selectCachedArgsForQuery:c};function i(h){return{...h,...M1(h.status)}}function l(h){return h[t]}function a(h,d){return v=>{const g=e({queryArgs:v,endpointDefinition:d,endpointName:h});return n(v===Hn?r:m=>{var p,f;return((f=(p=l(m))==null?void 0:p.queries)==null?void 0:f[g])??ep},i)}}function u(){return h=>{let d;return typeof h=="object"?d=ai(h)??Hn:d=h,n(d===Hn?o:w=>{var _,m;return((m=(_=l(w))==null?void 0:_.mutations)==null?void 0:m[d])??tp},i)}}function s(h,d){const v=h[t],g=new Set;for(const w of d.map(ys)){const _=v.provided[w.type];if(!_)continue;let m=(w.id!==void 0?_[w.id]:Vd(Object.values(_)))??[];for(const p of m)g.add(p)}return Vd(Array.from(g.values()).map(w=>{const _=v.queries[w];return _?[{queryCacheKey:w,endpointName:_.endpointName,originalArgs:_.originalArgs}]:[]}))}function c(h,d){return Object.values(h[t].queries).filter(v=>(v==null?void 0:v.endpointName)===d&&v.status!=="uninitialized").map(v=>v.originalArgs)}}var cr=WeakMap?new WeakMap:void 0,np=({endpointName:e,queryArgs:t})=>{let n="";const r=cr==null?void 0:cr.get(t);if(typeof r=="string")n=r;else{const o=JSON.stringify(t,(i,l)=>zt(l)?Object.keys(l).sort().reduce((a,u)=>(a[u]=l[u],a),{}):l);zt(t)&&(cr==null||cr.set(t,o)),n=o}return`${e}(${n})`};function q1(...e){return function(n){const r=ii(s=>{var c;return(c=n.extractRehydrationInfo)==null?void 0:c.call(n,s,{reducerPath:n.reducerPath??"api"})}),o={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(s){let c=np;if("serializeQueryArgs"in s.endpointDefinition){const h=s.endpointDefinition.serializeQueryArgs;c=d=>{const v=h(d);return typeof v=="string"?v:np({...d,queryArgs:v})}}else n.serializeQueryArgs&&(c=n.serializeQueryArgs);return c(s)},tagTypes:[...n.tagTypes||[]]},i={endpointDefinitions:{},batch(s){s()},apiUid:jc(),extractRehydrationInfo:r,hasRehydrationInfo:ii(s=>r(s)!=null)},l={injectEndpoints:u,enhanceEndpoints({addTagTypes:s,endpoints:c}){if(s)for(const h of s)o.tagTypes.includes(h)||o.tagTypes.push(h);if(c)for(const[h,d]of Object.entries(c))typeof d=="function"?d(i.endpointDefinitions[h]):Object.assign(i.endpointDefinitions[h]||{},d);return l}},a=e.map(s=>s.init(l,o,i));function u(s){const c=s.endpoints({query:h=>({...h,type:"query"}),mutation:h=>({...h,type:"mutation"})});for(const[h,d]of Object.entries(c)){if(s.overrideExisting!==!0&&h in i.endpointDefinitions){if(s.overrideExisting==="throw")throw new Error(Ue(39));typeof process<"u";continue}i.endpointDefinitions[h]=d;for(const v of a)v.injectEndpoint(h,d)}return l}return l.injectEndpoints({endpoints:n.endpoints})}}function K1(e){for(let t in e)return!1;return!0}var Y1=2147483647/1e3-1,G1=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function l(c){const h=r.currentSubscriptions[c];return!!h&&!K1(h)}const a={},u=(c,h,d)=>{var v;if(i.match(c)){const g=h.getState()[e],{queryCacheKey:w}=c.payload;s(w,(v=g.queries[w])==null?void 0:v.endpointName,h,g.config)}if(t.util.resetApiState.match(c))for(const[g,w]of Object.entries(a))w&&clearTimeout(w),delete a[g];if(n.hasRehydrationInfo(c)){const g=h.getState()[e],{queries:w}=n.extractRehydrationInfo(c);for(const[_,m]of Object.entries(w))s(_,m==null?void 0:m.endpointName,h,g.config)}};function s(c,h,d,v){const g=n.endpointDefinitions[h],w=(g==null?void 0:g.keepUnusedDataFor)??v.keepUnusedDataFor;if(w===1/0)return;const _=Math.max(0,Math.min(w,Y1));if(!l(c)){const m=a[c];m&&clearTimeout(m),a[c]=setTimeout(()=>{l(c)||d.dispatch(o({queryCacheKey:c})),delete a[c]},_*1e3)}}return u},X1=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:l,refetchQuery:a,internalState:u})=>{const{removeQueryResult:s}=i.internalActions,c=On(Pn(r),ga(r)),h=On(Pn(r,o),Qr(r,o));let d=[];const v=(_,m)=>{c(_)?w(Rv(_,"invalidatesTags",n,l),m):h(_)?w([],m):i.util.invalidateTags.match(_)&&w($c(_.payload,void 0,void 0,void 0,void 0,l),m)};function g(_){var m,p;for(const f in _.queries)if(((m=_.queries[f])==null?void 0:m.status)==="pending")return!0;for(const f in _.mutations)if(((p=_.mutations[f])==null?void 0:p.status)==="pending")return!0;return!1}function w(_,m){const p=m.getState(),f=p[e];if(d.push(..._),f.config.invalidationBehavior==="delayed"&&g(f))return;const y=d;if(d=[],y.length===0)return;const E=i.util.selectInvalidatedBy(p,y);t.batch(()=>{const S=Array.from(E.values());for(const{queryCacheKey:C}of S){const x=f.queries[C],O=u.currentSubscriptions[C]??{};x&&(jr(O)===0?m.dispatch(s({queryCacheKey:C})):x.status!=="uninitialized"&&m.dispatch(a(x,C)))}})}return v},J1=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={},l=(d,v)=>{(n.internalActions.updateSubscriptionOptions.match(d)||n.internalActions.unsubscribeQueryResult.match(d))&&u(d.payload,v),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&u(d.meta.arg,v),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&a(d.meta.arg,v),n.util.resetApiState.match(d)&&c()};function a({queryCacheKey:d},v){const g=v.getState()[e],w=g.queries[d],_=o.currentSubscriptions[d];if(!w||w.status==="uninitialized")return;const{lowestPollingInterval:m,skipPollingIfUnfocused:p}=h(_);if(!Number.isFinite(m))return;const f=i[d];f!=null&&f.timeout&&(clearTimeout(f.timeout),f.timeout=void 0);const y=Date.now()+m;i[d]={nextPollTimestamp:y,pollingInterval:m,timeout:setTimeout(()=>{(g.config.focused||!p)&&v.dispatch(r(w,d)),a({queryCacheKey:d},v)},m)}}function u({queryCacheKey:d},v){const w=v.getState()[e].queries[d],_=o.currentSubscriptions[d];if(!w||w.status==="uninitialized")return;const{lowestPollingInterval:m}=h(_);if(!Number.isFinite(m)){s(d);return}const p=i[d],f=Date.now()+m;(!p||f{const{removeQueryResult:i}=n.internalActions,l=(u,s)=>{zc.match(u)&&a(s,"refetchOnFocus"),Uc.match(u)&&a(s,"refetchOnReconnect")};function a(u,s){const c=u.getState()[e],h=c.queries,d=o.currentSubscriptions;t.batch(()=>{for(const v of Object.keys(d)){const g=h[v],w=d[v];if(!w||!g)continue;(Object.values(w).some(m=>m[s]===!0)||Object.values(w).every(m=>m[s]===void 0)&&c.config[s])&&(jr(w)===0?u.dispatch(i({queryCacheKey:v})):g.status!=="uninitialized"&&u.dispatch(r(g,v)))}})}return l},rp=new Error("Promise never resolved before cacheEntryRemoved."),e_=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const l=vs(r),a=vs(o),u=Pn(r,o),s={},c=(v,g,w)=>{const _=h(v);if(r.pending.match(v)){const m=w[t].queries[_],p=g.getState()[t].queries[_];!m&&p&&d(v.meta.arg.endpointName,v.meta.arg.originalArgs,_,g,v.meta.requestId)}else if(o.pending.match(v))g.getState()[t].mutations[_]&&d(v.meta.arg.endpointName,v.meta.arg.originalArgs,_,g,v.meta.requestId);else if(u(v)){const m=s[_];m!=null&&m.valueResolved&&(m.valueResolved({data:v.payload,meta:v.meta.baseQueryMeta}),delete m.valueResolved)}else if(e.internalActions.removeQueryResult.match(v)||e.internalActions.removeMutationResult.match(v)){const m=s[_];m&&(delete s[_],m.cacheEntryRemoved())}else if(e.util.resetApiState.match(v))for(const[m,p]of Object.entries(s))delete s[m],p.cacheEntryRemoved()};function h(v){return l(v)?v.meta.arg.queryCacheKey:a(v)?v.meta.arg.fixedCacheKey??v.meta.requestId:e.internalActions.removeQueryResult.match(v)?v.payload.queryCacheKey:e.internalActions.removeMutationResult.match(v)?ai(v.payload):""}function d(v,g,w,_,m){const p=n.endpointDefinitions[v],f=p==null?void 0:p.onCacheEntryAdded;if(!f)return;let y={};const E=new Promise(D=>{y.cacheEntryRemoved=D}),S=Promise.race([new Promise(D=>{y.valueResolved=D}),E.then(()=>{throw rp})]);S.catch(()=>{}),s[w]=y;const C=e.endpoints[v].select(p.type==="query"?g:w),x=_.dispatch((D,F,B)=>B),O={..._,getCacheEntry:()=>C(_.getState()),requestId:m,extra:x,updateCachedData:p.type==="query"?D=>_.dispatch(e.util.updateQueryData(v,g,D)):void 0,cacheDataLoaded:S,cacheEntryRemoved:E},M=f(g,O);Promise.resolve(M).catch(D=>{if(D!==rp)throw D})}return c},t_=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=Ic(n,r),i=Qr(n,r),l=Pn(n,r),a={};return(s,c)=>{var h,d;if(o(s)){const{requestId:v,arg:{endpointName:g,originalArgs:w}}=s.meta,_=t.endpointDefinitions[g],m=_==null?void 0:_.onQueryStarted;if(m){const p={},f=new Promise((C,x)=>{p.resolve=C,p.reject=x});f.catch(()=>{}),a[v]=p;const y=e.endpoints[g].select(_.type==="query"?w:v),E=c.dispatch((C,x,O)=>O),S={...c,getCacheEntry:()=>y(c.getState()),requestId:v,extra:E,updateCachedData:_.type==="query"?C=>c.dispatch(e.util.updateQueryData(g,w,C)):void 0,queryFulfilled:f};m(w,S)}}else if(l(s)){const{requestId:v,baseQueryMeta:g}=s.meta;(h=a[v])==null||h.resolve({data:s.payload,meta:g}),delete a[v]}else if(i(s)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:w}=s.meta;(d=a[v])==null||d.reject({error:s.payload??s.error,isUnhandledError:!g,meta:w}),delete a[v]}}},n_=({api:e,context:{apiUid:t},reducerPath:n})=>(r,o)=>{e.util.resetApiState.match(r)&&o.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},r_=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:a}=e.internalActions,u=(v,g)=>{var _,m,p;if(l.match(g)){const{queryCacheKey:f,requestId:y,options:E}=g.payload;return(_=v==null?void 0:v[f])!=null&&_[y]&&(v[f][y]=E),!0}if(a.match(g)){const{queryCacheKey:f,requestId:y}=g.payload;return v[f]&&delete v[f][y],!0}if(e.internalActions.removeQueryResult.match(g))return delete v[g.payload.queryCacheKey],!0;if(t.pending.match(g)){const{meta:{arg:f,requestId:y}}=g,E=v[m=f.queryCacheKey]??(v[m]={});return E[`${y}_running`]={},f.subscribe&&(E[y]=f.subscriptionOptions??E[y]??{}),!0}let w=!1;if(t.fulfilled.match(g)||t.rejected.match(g)){const f=v[g.meta.arg.queryCacheKey]||{},y=`${g.meta.requestId}_running`;w||(w=!!f[y]),delete f[y]}if(t.rejected.match(g)){const{meta:{condition:f,arg:y,requestId:E}}=g;if(f&&y.subscribe){const S=v[p=y.queryCacheKey]??(v[p]={});S[E]=y.subscriptionOptions??S[E]??{},w=!0}}return w},s=()=>n.currentSubscriptions,d={getSubscriptions:s,getSubscriptionCount:v=>{const w=s()[v]??{};return jr(w)},isRequestSubscribed:(v,g)=>{var _;const w=s();return!!((_=w==null?void 0:w[v])!=null&&_[g])}};return(v,g)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(v))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(v))return[!1,d];const w=u(n.currentSubscriptions,v);let _=!0;if(w){i||(i=setTimeout(()=>{const f=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,y]=pv(o,()=>f);g.next(e.internalActions.subscriptionsUpdated(y)),o=f,i=null},500));const m=typeof v.type=="string"&&!!v.type.startsWith(r),p=t.rejected.match(v)&&v.meta.condition&&!!v.meta.arg.subscribe;_=!m&&!p}return[_,!1]}};function o_(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,l={invalidateTags:He(`${t}/invalidateTags`)},a=h=>h.type.startsWith(`${t}/`),u=[n_,G1,X1,J1,e_,t_];return{middleware:h=>{let d=!1;const g={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:a},w=u.map(p=>p(g)),_=r_(g),m=Z1(g);return p=>f=>{if(!lv(f))return p(f);d||(d=!0,h.dispatch(r.internalActions.middlewareRegistered(i)));const y={...h,next:p},E=h.getState(),[S,C]=_(f,y,E);let x;if(S?x=p(f):x=C,h.getState()[t]&&(m(f,y,E),a(f)||o.hasRehydrationInfo(f)))for(let O of w)O(f,y,E);return x}},actions:l};function c(h,d,v={}){return n({type:"query",endpointName:h.endpointName,originalArgs:h.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...v})}}function nn(e,...t){return Object.assign(e,...t)}var op=Symbol(),i_=({createSelector:e=Lc}={})=>({name:op,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:l,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:s,invalidationBehavior:c},h){$w();const d=T=>(typeof process<"u",T);Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:Uc,onOffline:Cv,onFocus:zc,onFocusLost:Ev},util:{}});const{queryThunk:v,mutationThunk:g,patchQueryData:w,updateQueryData:_,upsertQueryData:m,prefetch:p,buildMatchThunkActions:f}=H1({baseQuery:n,reducerPath:o,context:h,api:t,serializeQueryArgs:i,assertTagType:d}),{reducer:y,actions:E}=Q1({context:h,queryThunk:v,mutationThunk:g,reducerPath:o,assertTagType:d,config:{refetchOnFocus:u,refetchOnReconnect:s,refetchOnMountOrArgChange:a,keepUnusedDataFor:l,reducerPath:o,invalidationBehavior:c}});nn(t.util,{patchQueryData:w,updateQueryData:_,upsertQueryData:m,prefetch:p,resetApiState:E.resetApiState}),nn(t.internalActions,E);const{middleware:S,actions:C}=o_({reducerPath:o,context:h,queryThunk:v,mutationThunk:g,api:t,assertTagType:d});nn(t.util,C),nn(t,{reducer:y,middleware:S});const{buildQuerySelector:x,buildMutationSelector:O,selectInvalidatedBy:M,selectCachedArgsForQuery:D}=V1({serializeQueryArgs:i,reducerPath:o,createSelector:e});nn(t.util,{selectInvalidatedBy:M,selectCachedArgsForQuery:D});const{buildInitiateQuery:F,buildInitiateMutation:B,getRunningMutationThunk:L,getRunningMutationsThunk:U,getRunningQueriesThunk:q,getRunningQueryThunk:k}=W1({queryThunk:v,mutationThunk:g,api:t,serializeQueryArgs:i,context:h});return nn(t.util,{getRunningMutationThunk:L,getRunningMutationsThunk:U,getRunningQueryThunk:k,getRunningQueriesThunk:q}),{name:op,injectEndpoint(T,z){var W;const I=t;(W=I.endpoints)[T]??(W[T]={}),xv(z)?nn(I.endpoints[T],{name:T,select:x(T,z),initiate:F(T,z)},f(v,T)):U1(z)&&nn(I.endpoints[T],{name:T,select:O(),initiate:B(T)},f(g,T))}}}});function l_(e){return e.type==="query"}function a_(e){return e.type==="mutation"}function Ji(e,...t){return Object.assign(e,...t)}function au(e){return e.replace(e[0],e[0].toUpperCase())}var fr=WeakMap?new WeakMap:void 0,u_=({endpointName:e,queryArgs:t})=>{let n="";const r=fr==null?void 0:fr.get(t);if(typeof r=="string")n=r;else{const o=JSON.stringify(t,(i,l)=>zt(l)?Object.keys(l).sort().reduce((a,u)=>(a[u]=l[u],a),{}):l);zt(t)&&(fr==null||fr.set(t,o)),n=o}return`${e}(${n})`},uu=Symbol();function ip(e,t,n,r){const o=N.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}),[e,t,n,r]),i=N.useRef(o);return N.useEffect(()=>{i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function su(e){const t=N.useRef(e);return N.useEffect(()=>{Eo(t.current,e)||(t.current=e)},[e]),Eo(t.current,e)?t.current:e}var s_=typeof window<"u"&&window.document&&window.document.createElement?N.useLayoutEffect:N.useEffect,c_=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:wv.pending}:e;function f_({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:l},serializeQueryArgs:a,context:u}){const s=i?g=>g():N.useEffect;return{buildQueryHooks:d,buildMutationHook:v,usePrefetch:h};function c(g,w,_){if(w!=null&&w.endpointName&&g.isUninitialized){const{endpointName:S}=w,C=u.endpointDefinitions[S];a({queryArgs:w.originalArgs,endpointDefinition:C,endpointName:S})===a({queryArgs:_,endpointDefinition:C,endpointName:S})&&(w=void 0)}let m=g.isSuccess?g.data:w==null?void 0:w.data;m===void 0&&(m=g.data);const p=m!==void 0,f=g.isLoading,y=!p&&f,E=g.isSuccess||f&&p;return{...g,data:m,currentData:g.data,isFetching:f,isLoading:y,isSuccess:E}}function h(g,w){const _=n(),m=su(w);return N.useCallback((p,f)=>_(e.util.prefetch(g,p,{...m,...f})),[g,_,m])}function d(g){const w=(p,{refetchOnReconnect:f,refetchOnFocus:y,refetchOnMountOrArgChange:E,skip:S=!1,pollingInterval:C=0,skipPollingIfUnfocused:x=!1}={})=>{const{initiate:O}=e.endpoints[g],M=n(),D=N.useRef();if(!D.current){const I=M(e.internalActions.internal_getRTKQSubscriptions());D.current=I}const F=ip(S?Hn:p,u_,u.endpointDefinitions[g],g),B=su({refetchOnReconnect:f,refetchOnFocus:y,pollingInterval:C,skipPollingIfUnfocused:x}),L=N.useRef(!1),U=N.useRef();let{queryCacheKey:q,requestId:k}=U.current||{},T=!1;q&&k&&(T=D.current.isRequestSubscribed(q,k));const z=!T&&L.current;return s(()=>{L.current=T}),s(()=>{z&&(U.current=void 0)},[z]),s(()=>{var V;const I=U.current;if(typeof process<"u",F===Hn){I==null||I.unsubscribe(),U.current=void 0;return}const W=(V=U.current)==null?void 0:V.subscriptionOptions;if(!I||I.arg!==F){I==null||I.unsubscribe();const J=M(O(F,{subscriptionOptions:B,forceRefetch:E}));U.current=J}else B!==W&&I.updateSubscriptionOptions(B)},[M,O,E,F,B,z]),N.useEffect(()=>()=>{var I;(I=U.current)==null||I.unsubscribe(),U.current=void 0},[]),N.useMemo(()=>({refetch:()=>{var I;if(!U.current)throw new Error(Ue(38));return(I=U.current)==null?void 0:I.refetch()}}),[])},_=({refetchOnReconnect:p,refetchOnFocus:f,pollingInterval:y=0,skipPollingIfUnfocused:E=!1}={})=>{const{initiate:S}=e.endpoints[g],C=n(),[x,O]=N.useState(uu),M=N.useRef(),D=su({refetchOnReconnect:p,refetchOnFocus:f,pollingInterval:y,skipPollingIfUnfocused:E});s(()=>{var U,q;const L=(U=M.current)==null?void 0:U.subscriptionOptions;D!==L&&((q=M.current)==null||q.updateSubscriptionOptions(D))},[D]);const F=N.useRef(D);s(()=>{F.current=D},[D]);const B=N.useCallback(function(L,U=!1){let q;return t(()=>{var k;(k=M.current)==null||k.unsubscribe(),M.current=q=C(S(L,{subscriptionOptions:F.current,forceRefetch:!U})),O(L)}),q},[C,S]);return N.useEffect(()=>()=>{var L;(L=M==null?void 0:M.current)==null||L.unsubscribe()},[]),N.useEffect(()=>{x!==uu&&!M.current&&B(x,!0)},[x,B]),N.useMemo(()=>[B,x],[B,x])},m=(p,{skip:f=!1,selectFromResult:y}={})=>{const{select:E}=e.endpoints[g],S=ip(f?Hn:p,a,u.endpointDefinitions[g],g),C=N.useRef(),x=N.useMemo(()=>l([E(S),(B,L)=>L,B=>S],c,{memoizeOptions:{resultEqualityCheck:Eo}}),[E,S]),O=N.useMemo(()=>y?l([x],y,{devModeChecks:{identityFunctionCheck:"never"}}):x,[x,y]),M=r(B=>O(B,C.current),Eo),D=o(),F=x(D.getState(),C.current);return s_(()=>{C.current=F},[F]),M};return{useQueryState:m,useQuerySubscription:w,useLazyQuerySubscription:_,useLazyQuery(p){const[f,y]=_(p),E=m(y,{...p,skip:y===uu}),S=N.useMemo(()=>({lastArg:y}),[y]);return N.useMemo(()=>[f,E,S],[f,E,S])},useQuery(p,f){const y=w(p,f),E=m(p,{selectFromResult:p===Hn||f!=null&&f.skip?void 0:c_,...f}),{data:S,status:C,isLoading:x,isSuccess:O,isError:M,error:D}=E;return N.useDebugValue({data:S,status:C,isLoading:x,isSuccess:O,isError:M,error:D}),N.useMemo(()=>({...E,...y}),[E,y])}}}function v(g){return({selectFromResult:w,fixedCacheKey:_}={})=>{const{select:m,initiate:p}=e.endpoints[g],f=n(),[y,E]=N.useState();N.useEffect(()=>()=>{y!=null&&y.arg.fixedCacheKey||y==null||y.reset()},[y]);const S=N.useCallback(function(W){const V=f(p(W,{fixedCacheKey:_}));return E(V),V},[f,p,_]),{requestId:C}=y||{},x=N.useMemo(()=>m({fixedCacheKey:_,requestId:y==null?void 0:y.requestId}),[_,y,m]),O=N.useMemo(()=>w?l([x],w):x,[w,x]),M=r(O,Eo),D=_==null?y==null?void 0:y.arg.originalArgs:void 0,F=N.useCallback(()=>{t(()=>{y&&E(void 0),_&&f(e.internalActions.removeMutationResult({requestId:C,fixedCacheKey:_}))})},[f,_,y,C]),{endpointName:B,data:L,status:U,isLoading:q,isSuccess:k,isError:T,error:z}=M;N.useDebugValue({endpointName:B,data:L,status:U,isLoading:q,isSuccess:k,isError:T,error:z});const I=N.useMemo(()=>({...M,originalArgs:D,reset:F}),[M,D,F]);return N.useMemo(()=>[S,I],[S,I])}}}var d_=Symbol(),p_=({batch:e=Jy,hooks:t={useDispatch:bp,useSelector:Dp,useStore:Ip},createSelector:n=Lc,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:d_,init(i,{serializeQueryArgs:l},a){const u=i,{buildQueryHooks:s,buildMutationHook:c,usePrefetch:h}=f_({api:i,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:l,context:a});return Ji(u,{usePrefetch:h}),Ji(a,{batch:e}),{injectEndpoint(d,v){if(l_(v)){const{useQuery:g,useLazyQuery:w,useLazyQuerySubscription:_,useQueryState:m,useQuerySubscription:p}=s(d);Ji(u.endpoints[d],{useQuery:g,useLazyQuery:w,useLazyQuerySubscription:_,useQueryState:m,useQuerySubscription:p}),i[`use${au(d)}Query`]=g,i[`useLazy${au(d)}Query`]=w}else if(a_(v)){const g=c(d);Ji(u.endpoints[d],{useMutation:g}),i[`use${au(d)}Mutation`]=g}}}}}),h_=q1(i_(),p_());const Ov={API_URL:"https://randomuser.me/api",COUNT_USERS:"20"},Ql=h_({reducerPath:"api",baseQuery:z1({baseUrl:Ov.API_URL}),tagTypes:Object.values(Fc),endpoints:()=>({})}),Bc=Ql.injectEndpoints({endpoints:e=>({generate:e.mutation({query:t=>({url:`/?seed=${t}&results=${Ov.COUNT_USERS}`,method:"GET"}),invalidatesTags:[Fc.SESSION_TAG]})})}),{useGenerateMutation:Pv}=Bc;function m_(e){return e.length}const v_={contacts:[]},Ss=un({name:"contacts",initialState:v_,reducers:{pushContact:(e,{payload:t})=>{const n=t;n.id=m_(e.contacts),e.contacts.push(n)},deleteContact:(e,{payload:t})=>{e.contacts=e.contacts.filter(n=>n.id!==t)},updateContact:(e,{payload:t})=>{const n=e.contacts.findIndex(r=>r.id===t.id);n>=0&&(e.contacts[n]=t)}},extraReducers:e=>e.addMatcher(Bc.endpoints.generate.matchFulfilled,(t,{payload:n})=>{t.contacts=kw(n)})}),{pushContact:y_,deleteContact:g_,updateContact:S_}=Ss.actions,w_="_layout__container_3wje0_1",__={layout__container:w_},E_=({children:e})=>j.jsx("div",{className:__.layout__container,children:e});var Tv={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l{const l=`button--size_${t}`,a=`button--variant_${n}`;return j.jsx("button",{type:i,className:Ir(cu.button,cu[l],cu[a]),style:{width:r},onClick:o,children:e})},R_="_card__container_1xkmu_1",k_={card__container:R_},O_=({children:e,className:t})=>j.jsx("div",{className:Ir(k_.card__container,t),children:e});var Ss={exports:{}},nr={},Mv={exports:{}},P_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",T_=P_,M_=T_;function Nv(){}function Av(){}Av.resetWarningCache=Nv;var N_=function(){function e(r,o,i,l,a,u){if(u!==M_){var s=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 s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Av,resetWarningCache:Nv};return n.PropTypes=n,n};Mv.exports=N_();var Dv=Mv.exports,_s={exports:{}},Mt={},Es={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;/*! +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l{const l=`button--size_${t}`,a=`button--variant_${n}`;return j.jsx("button",{type:i,className:Ir(cu.button,cu[l],cu[a]),style:{width:r},onClick:o,children:e})},R_="_card__container_1xkmu_1",k_={card__container:R_},O_=({children:e,className:t})=>j.jsx("div",{className:Ir(k_.card__container,t),children:e});var ws={exports:{}},nr={},Mv={exports:{}},P_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",T_=P_,M_=T_;function Nv(){}function Av(){}Av.resetWarningCache=Nv;var N_=function(){function e(r,o,i,l,a,u){if(u!==M_){var s=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 s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Av,resetWarningCache:Nv};return n.PropTypes=n,n};Mv.exports=N_();var Dv=Mv.exports,_s={exports:{}},Mt={},Es={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;/*! * Adapted from jQuery UI core * * http://jqueryui.com @@ -87,11 +87,11 @@ Error generating stack: `+i.message+` * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ - */var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function i(h,d){return d.getPropertyValue("overflow")!=="visible"||h.scrollWidth<=0&&h.scrollHeight<=0}function l(h){var d=h.offsetWidth<=0&&h.offsetHeight<=0;if(d&&!h.innerHTML)return!0;try{var v=window.getComputedStyle(h),g=v.getPropertyValue("display");return d?g!==r&&i(h,v):g===n}catch{return console.warn("Failed to inspect element style"),!1}}function a(h){for(var d=h,v=h.getRootNode&&h.getRootNode();d&&d!==document.body;){if(v&&d===v&&(d=v.host.parentNode),l(d))return!1;d=d.parentNode}return!0}function u(h,d){var v=h.nodeName.toLowerCase(),g=o.test(v)&&!h.disabled||v==="a"&&h.href||d;return g&&a(h)}function s(h){var d=h.getAttribute("tabindex");d===null&&(d=void 0);var v=isNaN(d);return(v||d>=0)&&u(h,!v)}function c(h){var d=[].slice.call(h.querySelectorAll("*"),0).reduce(function(v,g){return v.concat(g.shadowRoot?c(g.shadowRoot):[g])},[]);return d.filter(s)}e.exports=t.default})(Es,Es.exports);var Lv=Es.exports;Object.defineProperty(Mt,"__esModule",{value:!0});Mt.resetState=j_;Mt.log=I_;Mt.handleBlur=ui;Mt.handleFocus=si;Mt.markForFocusLater=b_;Mt.returnFocus=F_;Mt.popWithoutFocus=z_;Mt.setupScopedFocus=U_;Mt.teardownScopedFocus=$_;var A_=Lv,D_=L_(A_);function L_(e){return e&&e.__esModule?e:{default:e}}var Vr=[],Pr=null,Cs=!1;function j_(){Vr=[]}function I_(){}function ui(){Cs=!0}function si(){if(Cs){if(Cs=!1,!Pr)return;setTimeout(function(){if(!Pr.contains(document.activeElement)){var e=(0,D_.default)(Pr)[0]||Pr;e.focus()}},0)}}function b_(){Vr.push(document.activeElement)}function F_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{Vr.length!==0&&(t=Vr.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function z_(){Vr.length>0&&Vr.pop()}function U_(e){Pr=e,window.addEventListener?(window.addEventListener("blur",ui,!1),document.addEventListener("focus",si,!0)):(window.attachEvent("onBlur",ui),document.attachEvent("onFocus",si))}function $_(){Pr=null,window.addEventListener?(window.removeEventListener("blur",ui),document.removeEventListener("focus",si)):(window.detachEvent("onBlur",ui),document.detachEvent("onFocus",si))}var xs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=Lv,r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return a.activeElement.shadowRoot?i(a.activeElement.shadowRoot):a.activeElement}function l(a,u){var s=(0,r.default)(a);if(!s.length){u.preventDefault();return}var c=void 0,h=u.shiftKey,d=s[0],v=s[s.length-1],g=i();if(a===g){if(!h)return;c=v}if(v===g&&!h&&(c=d),d===g&&h&&(c=v),c){u.preventDefault(),c.focus();return}var S=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),_=S!=null&&S[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(_){var m=s.indexOf(g);if(m>-1&&(m+=h?-1:1),c=s[m],typeof c>"u"){u.preventDefault(),c=h?v:d,c.focus();return}u.preventDefault(),c.focus()}}e.exports=t.default})(xs,xs.exports);var B_=xs.exports,Nt={},W_=function(){},H_=W_,kt={},jv={exports:{}};/*! + */var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function i(h,d){return d.getPropertyValue("overflow")!=="visible"||h.scrollWidth<=0&&h.scrollHeight<=0}function l(h){var d=h.offsetWidth<=0&&h.offsetHeight<=0;if(d&&!h.innerHTML)return!0;try{var v=window.getComputedStyle(h),g=v.getPropertyValue("display");return d?g!==r&&i(h,v):g===n}catch{return console.warn("Failed to inspect element style"),!1}}function a(h){for(var d=h,v=h.getRootNode&&h.getRootNode();d&&d!==document.body;){if(v&&d===v&&(d=v.host.parentNode),l(d))return!1;d=d.parentNode}return!0}function u(h,d){var v=h.nodeName.toLowerCase(),g=o.test(v)&&!h.disabled||v==="a"&&h.href||d;return g&&a(h)}function s(h){var d=h.getAttribute("tabindex");d===null&&(d=void 0);var v=isNaN(d);return(v||d>=0)&&u(h,!v)}function c(h){var d=[].slice.call(h.querySelectorAll("*"),0).reduce(function(v,g){return v.concat(g.shadowRoot?c(g.shadowRoot):[g])},[]);return d.filter(s)}e.exports=t.default})(Es,Es.exports);var Lv=Es.exports;Object.defineProperty(Mt,"__esModule",{value:!0});Mt.resetState=j_;Mt.log=I_;Mt.handleBlur=ui;Mt.handleFocus=si;Mt.markForFocusLater=b_;Mt.returnFocus=F_;Mt.popWithoutFocus=z_;Mt.setupScopedFocus=U_;Mt.teardownScopedFocus=$_;var A_=Lv,D_=L_(A_);function L_(e){return e&&e.__esModule?e:{default:e}}var Vr=[],Pr=null,Cs=!1;function j_(){Vr=[]}function I_(){}function ui(){Cs=!0}function si(){if(Cs){if(Cs=!1,!Pr)return;setTimeout(function(){if(!Pr.contains(document.activeElement)){var e=(0,D_.default)(Pr)[0]||Pr;e.focus()}},0)}}function b_(){Vr.push(document.activeElement)}function F_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{Vr.length!==0&&(t=Vr.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function z_(){Vr.length>0&&Vr.pop()}function U_(e){Pr=e,window.addEventListener?(window.addEventListener("blur",ui,!1),document.addEventListener("focus",si,!0)):(window.attachEvent("onBlur",ui),document.attachEvent("onFocus",si))}function $_(){Pr=null,window.addEventListener?(window.removeEventListener("blur",ui),document.removeEventListener("focus",si)):(window.detachEvent("onBlur",ui),document.detachEvent("onFocus",si))}var xs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=Lv,r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return a.activeElement.shadowRoot?i(a.activeElement.shadowRoot):a.activeElement}function l(a,u){var s=(0,r.default)(a);if(!s.length){u.preventDefault();return}var c=void 0,h=u.shiftKey,d=s[0],v=s[s.length-1],g=i();if(a===g){if(!h)return;c=v}if(v===g&&!h&&(c=d),d===g&&h&&(c=v),c){u.preventDefault(),c.focus();return}var w=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),_=w!=null&&w[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(_){var m=s.indexOf(g);if(m>-1&&(m+=h?-1:1),c=s[m],typeof c>"u"){u.preventDefault(),c=h?v:d,c.focus();return}u.preventDefault(),c.focus()}}e.exports=t.default})(xs,xs.exports);var B_=xs.exports,Nt={},W_=function(){},H_=W_,kt={},jv={exports:{}};/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. -*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(jv);var Q_=jv.exports;Object.defineProperty(kt,"__esModule",{value:!0});kt.canUseDOM=kt.SafeNodeList=kt.SafeHTMLCollection=void 0;var V_=Q_,q_=K_(V_);function K_(e){return e&&e.__esModule?e:{default:e}}var wa=q_.default,Y_=wa.canUseDOM?window.HTMLElement:{};kt.SafeHTMLCollection=wa.canUseDOM?window.HTMLCollection:{};kt.SafeNodeList=wa.canUseDOM?window.NodeList:{};kt.canUseDOM=wa.canUseDOM;kt.default=Y_;Object.defineProperty(Nt,"__esModule",{value:!0});Nt.resetState=eE;Nt.log=tE;Nt.assertNodeList=Iv;Nt.setElement=nE;Nt.validateElement=Wc;Nt.hide=rE;Nt.show=oE;Nt.documentNotReadyOrSSRTesting=iE;var G_=H_,X_=Z_(G_),J_=kt;function Z_(e){return e&&e.__esModule?e:{default:e}}var ft=null;function eE(){ft&&(ft.removeAttribute?ft.removeAttribute("aria-hidden"):ft.length!=null?ft.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(ft).forEach(function(e){return e.removeAttribute("aria-hidden")})),ft=null}function tE(){}function Iv(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function nE(e){var t=e;if(typeof t=="string"&&J_.canUseDOM){var n=document.querySelectorAll(t);Iv(n,t),t=n}return ft=t||ft,ft}function Wc(e){var t=e||ft;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,X_.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function rE(e){var t=!0,n=!1,r=void 0;try{for(var o=Wc(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var l=i.value;l.setAttribute("aria-hidden","true")}}catch(a){n=!0,r=a}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function oE(e){var t=!0,n=!1,r=void 0;try{for(var o=Wc(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var l=i.value;l.removeAttribute("aria-hidden")}}catch(a){n=!0,r=a}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function iE(){ft=null}var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});Gr.resetState=lE;Gr.log=aE;var jo={},Io={};function lp(e,t){e.classList.remove(t)}function lE(){var e=document.getElementsByTagName("html")[0];for(var t in jo)lp(e,jo[t]);var n=document.body;for(var r in Io)lp(n,Io[r]);jo={},Io={}}function aE(){}var uE=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},sE=function(t,n){return t[n]&&(t[n]-=1),n},cE=function(t,n,r){r.forEach(function(o){uE(n,o),t.add(o)})},fE=function(t,n,r){r.forEach(function(o){sE(n,o),n[o]===0&&t.remove(o)})};Gr.add=function(t,n){return cE(t.classList,t.nodeName.toLowerCase()=="html"?jo:Io,n.split(" "))};Gr.remove=function(t,n){return fE(t.classList,t.nodeName.toLowerCase()=="html"?jo:Io,n.split(" "))};var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.log=pE;Xr.resetState=hE;function dE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var bv=function e(){var t=this;dE(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Vl=new bv;function pE(){console.log("portalOpenInstances ----------"),console.log(Vl.openInstances.length),Vl.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function hE(){Vl=new bv}Xr.default=Vl;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.resetState=gE;Hc.log=wE;var mE=Xr,vE=yE(mE);function yE(e){return e&&e.__esModule?e:{default:e}}var Fe=void 0,St=void 0,Vn=[];function gE(){for(var e=[Fe,St],t=0;t0?(document.body.firstChild!==Fe&&document.body.insertBefore(Fe,document.body.firstChild),document.body.lastChild!==St&&document.body.appendChild(St)):(Fe.parentElement&&Fe.parentElement.removeChild(Fe),St.parentElement&&St.parentElement.removeChild(St))}vE.default.subscribe(SE);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(L){for(var U=1;U0&&(F-=1,F===0&&v.show(z)),k.props.shouldFocusAfterRender&&(k.props.shouldReturnFocusAfterClose?(s.returnFocus(k.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),k.props.onAfterClose&&k.props.onAfterClose(),f.default.deregister(k)},k.open=function(){k.beforeOpen(),k.state.afterOpen&&k.state.beforeClose?(clearTimeout(k.closeTimer),k.setState({beforeClose:!1})):(k.props.shouldFocusAfterRender&&(s.setupScopedFocus(k.node),s.markForFocusLater()),k.setState({isOpen:!0},function(){k.openAnimationFrame=requestAnimationFrame(function(){k.setState({afterOpen:!0}),k.props.isOpen&&k.props.onAfterOpen&&k.props.onAfterOpen({overlayEl:k.overlay,contentEl:k.content})})}))},k.close=function(){k.props.closeTimeoutMS>0?k.closeWithTimeout():k.closeWithoutTimeout()},k.focusContent=function(){return k.content&&!k.contentHasFocus()&&k.content.focus({preventScroll:!0})},k.closeWithTimeout=function(){var T=Date.now()+k.props.closeTimeoutMS;k.setState({beforeClose:!0,closesAt:T},function(){k.closeTimer=setTimeout(k.closeWithoutTimeout,k.state.closesAt-Date.now())})},k.closeWithoutTimeout=function(){k.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},k.afterClose)},k.handleKeyDown=function(T){M(T)&&(0,h.default)(k.content,T),k.props.shouldCloseOnEsc&&D(T)&&(T.stopPropagation(),k.requestClose(T))},k.handleOverlayOnClick=function(T){k.shouldClose===null&&(k.shouldClose=!0),k.shouldClose&&k.props.shouldCloseOnOverlayClick&&(k.ownerHandlesClose()?k.requestClose(T):k.focusContent()),k.shouldClose=null},k.handleContentOnMouseUp=function(){k.shouldClose=!1},k.handleOverlayOnMouseDown=function(T){!k.props.shouldCloseOnOverlayClick&&T.target==k.overlay&&T.preventDefault()},k.handleContentOnClick=function(){k.shouldClose=!1},k.handleContentOnMouseDown=function(){k.shouldClose=!1},k.requestClose=function(T){return k.ownerHandlesClose()&&k.props.onRequestClose(T)},k.ownerHandlesClose=function(){return k.props.onRequestClose},k.shouldBeClosed=function(){return!k.state.isOpen&&!k.state.beforeClose},k.contentHasFocus=function(){return document.activeElement===k.content||k.content.contains(document.activeElement)},k.buildClassName=function(T,z){var I=(typeof z>"u"?"undefined":r(z))==="object"?z:{base:O[T],afterOpen:O[T]+"--after-open",beforeClose:O[T]+"--before-close"},W=I.base;return k.state.afterOpen&&(W=W+" "+I.afterOpen),k.state.beforeClose&&(W=W+" "+I.beforeClose),typeof z=="string"&&z?W+" "+z:W},k.attributesFromObject=function(T,z){return Object.keys(z).reduce(function(I,W){return I[T+"-"+W]=z[W],I},{})},k.state={afterOpen:!1,beforeClose:!1},k.shouldClose=null,k.moveFromContentToOverlay=null,k}return o(U,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(k,T){this.props.isOpen&&!k.isOpen?this.open():!this.props.isOpen&&k.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!T.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var k=this.props,T=k.appElement,z=k.ariaHideApp,I=k.htmlOpenClassName,W=k.bodyOpenClassName,V=k.parentSelector,J=V&&V().ownerDocument||document;W&&S.add(J.body,W),I&&S.add(J.getElementsByTagName("html")[0],I),z&&(F+=1,v.hide(T)),f.default.register(this)}},{key:"render",value:function(){var k=this.props,T=k.id,z=k.className,I=k.overlayClassName,W=k.defaultStyles,V=k.children,J=z?{}:W.content,ve=I?{}:W.overlay;if(this.shouldBeClosed())return null;var Ze={ref:this.setOverlayRef,className:this.buildClassName("overlay",I),style:n({},ve,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Te=n({id:T,ref:this.setContentRef,style:n({},J,this.props.style.content),className:this.buildClassName("content",z),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),At=this.props.contentElement(Te,V);return this.props.overlayElement(Ze,At)}}]),U}(i.Component);B.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},B.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(m.default),a.default.instanceOf(_.SafeHTMLCollection),a.default.instanceOf(_.SafeNodeList),a.default.arrayOf(a.default.instanceOf(m.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=B,e.exports=t.default})(_s,_s.exports);var _E=_s.exports;function Fv(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function zv(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function Uv(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Fv.__suppressDeprecationWarning=!0;zv.__suppressDeprecationWarning=!0;Uv.__suppressDeprecationWarning=!0;function EE(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=e.displayName||e.name,l=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(jv);var Q_=jv.exports;Object.defineProperty(kt,"__esModule",{value:!0});kt.canUseDOM=kt.SafeNodeList=kt.SafeHTMLCollection=void 0;var V_=Q_,q_=K_(V_);function K_(e){return e&&e.__esModule?e:{default:e}}var Sa=q_.default,Y_=Sa.canUseDOM?window.HTMLElement:{};kt.SafeHTMLCollection=Sa.canUseDOM?window.HTMLCollection:{};kt.SafeNodeList=Sa.canUseDOM?window.NodeList:{};kt.canUseDOM=Sa.canUseDOM;kt.default=Y_;Object.defineProperty(Nt,"__esModule",{value:!0});Nt.resetState=eE;Nt.log=tE;Nt.assertNodeList=Iv;Nt.setElement=nE;Nt.validateElement=Wc;Nt.hide=rE;Nt.show=oE;Nt.documentNotReadyOrSSRTesting=iE;var G_=H_,X_=Z_(G_),J_=kt;function Z_(e){return e&&e.__esModule?e:{default:e}}var ft=null;function eE(){ft&&(ft.removeAttribute?ft.removeAttribute("aria-hidden"):ft.length!=null?ft.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(ft).forEach(function(e){return e.removeAttribute("aria-hidden")})),ft=null}function tE(){}function Iv(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function nE(e){var t=e;if(typeof t=="string"&&J_.canUseDOM){var n=document.querySelectorAll(t);Iv(n,t),t=n}return ft=t||ft,ft}function Wc(e){var t=e||ft;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,X_.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function rE(e){var t=!0,n=!1,r=void 0;try{for(var o=Wc(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var l=i.value;l.setAttribute("aria-hidden","true")}}catch(a){n=!0,r=a}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function oE(e){var t=!0,n=!1,r=void 0;try{for(var o=Wc(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=!0){var l=i.value;l.removeAttribute("aria-hidden")}}catch(a){n=!0,r=a}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function iE(){ft=null}var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});Gr.resetState=lE;Gr.log=aE;var jo={},Io={};function lp(e,t){e.classList.remove(t)}function lE(){var e=document.getElementsByTagName("html")[0];for(var t in jo)lp(e,jo[t]);var n=document.body;for(var r in Io)lp(n,Io[r]);jo={},Io={}}function aE(){}var uE=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},sE=function(t,n){return t[n]&&(t[n]-=1),n},cE=function(t,n,r){r.forEach(function(o){uE(n,o),t.add(o)})},fE=function(t,n,r){r.forEach(function(o){sE(n,o),n[o]===0&&t.remove(o)})};Gr.add=function(t,n){return cE(t.classList,t.nodeName.toLowerCase()=="html"?jo:Io,n.split(" "))};Gr.remove=function(t,n){return fE(t.classList,t.nodeName.toLowerCase()=="html"?jo:Io,n.split(" "))};var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.log=pE;Xr.resetState=hE;function dE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var bv=function e(){var t=this;dE(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Vl=new bv;function pE(){console.log("portalOpenInstances ----------"),console.log(Vl.openInstances.length),Vl.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function hE(){Vl=new bv}Xr.default=Vl;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.resetState=gE;Hc.log=SE;var mE=Xr,vE=yE(mE);function yE(e){return e&&e.__esModule?e:{default:e}}var Fe=void 0,wt=void 0,qn=[];function gE(){for(var e=[Fe,wt],t=0;t0?(document.body.firstChild!==Fe&&document.body.insertBefore(Fe,document.body.firstChild),document.body.lastChild!==wt&&document.body.appendChild(wt)):(Fe.parentElement&&Fe.parentElement.removeChild(Fe),wt.parentElement&&wt.parentElement.removeChild(wt))}vE.default.subscribe(wE);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(L){for(var U=1;U0&&(F-=1,F===0&&v.show(z)),k.props.shouldFocusAfterRender&&(k.props.shouldReturnFocusAfterClose?(s.returnFocus(k.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),k.props.onAfterClose&&k.props.onAfterClose(),f.default.deregister(k)},k.open=function(){k.beforeOpen(),k.state.afterOpen&&k.state.beforeClose?(clearTimeout(k.closeTimer),k.setState({beforeClose:!1})):(k.props.shouldFocusAfterRender&&(s.setupScopedFocus(k.node),s.markForFocusLater()),k.setState({isOpen:!0},function(){k.openAnimationFrame=requestAnimationFrame(function(){k.setState({afterOpen:!0}),k.props.isOpen&&k.props.onAfterOpen&&k.props.onAfterOpen({overlayEl:k.overlay,contentEl:k.content})})}))},k.close=function(){k.props.closeTimeoutMS>0?k.closeWithTimeout():k.closeWithoutTimeout()},k.focusContent=function(){return k.content&&!k.contentHasFocus()&&k.content.focus({preventScroll:!0})},k.closeWithTimeout=function(){var T=Date.now()+k.props.closeTimeoutMS;k.setState({beforeClose:!0,closesAt:T},function(){k.closeTimer=setTimeout(k.closeWithoutTimeout,k.state.closesAt-Date.now())})},k.closeWithoutTimeout=function(){k.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},k.afterClose)},k.handleKeyDown=function(T){M(T)&&(0,h.default)(k.content,T),k.props.shouldCloseOnEsc&&D(T)&&(T.stopPropagation(),k.requestClose(T))},k.handleOverlayOnClick=function(T){k.shouldClose===null&&(k.shouldClose=!0),k.shouldClose&&k.props.shouldCloseOnOverlayClick&&(k.ownerHandlesClose()?k.requestClose(T):k.focusContent()),k.shouldClose=null},k.handleContentOnMouseUp=function(){k.shouldClose=!1},k.handleOverlayOnMouseDown=function(T){!k.props.shouldCloseOnOverlayClick&&T.target==k.overlay&&T.preventDefault()},k.handleContentOnClick=function(){k.shouldClose=!1},k.handleContentOnMouseDown=function(){k.shouldClose=!1},k.requestClose=function(T){return k.ownerHandlesClose()&&k.props.onRequestClose(T)},k.ownerHandlesClose=function(){return k.props.onRequestClose},k.shouldBeClosed=function(){return!k.state.isOpen&&!k.state.beforeClose},k.contentHasFocus=function(){return document.activeElement===k.content||k.content.contains(document.activeElement)},k.buildClassName=function(T,z){var I=(typeof z>"u"?"undefined":r(z))==="object"?z:{base:O[T],afterOpen:O[T]+"--after-open",beforeClose:O[T]+"--before-close"},W=I.base;return k.state.afterOpen&&(W=W+" "+I.afterOpen),k.state.beforeClose&&(W=W+" "+I.beforeClose),typeof z=="string"&&z?W+" "+z:W},k.attributesFromObject=function(T,z){return Object.keys(z).reduce(function(I,W){return I[T+"-"+W]=z[W],I},{})},k.state={afterOpen:!1,beforeClose:!1},k.shouldClose=null,k.moveFromContentToOverlay=null,k}return o(U,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(k,T){this.props.isOpen&&!k.isOpen?this.open():!this.props.isOpen&&k.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!T.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var k=this.props,T=k.appElement,z=k.ariaHideApp,I=k.htmlOpenClassName,W=k.bodyOpenClassName,V=k.parentSelector,J=V&&V().ownerDocument||document;W&&w.add(J.body,W),I&&w.add(J.getElementsByTagName("html")[0],I),z&&(F+=1,v.hide(T)),f.default.register(this)}},{key:"render",value:function(){var k=this.props,T=k.id,z=k.className,I=k.overlayClassName,W=k.defaultStyles,V=k.children,J=z?{}:W.content,ve=I?{}:W.overlay;if(this.shouldBeClosed())return null;var Ze={ref:this.setOverlayRef,className:this.buildClassName("overlay",I),style:n({},ve,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Te=n({id:T,ref:this.setContentRef,style:n({},J,this.props.style.content),className:this.buildClassName("content",z),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),At=this.props.contentElement(Te,V);return this.props.overlayElement(Ze,At)}}]),U}(i.Component);B.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},B.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(m.default),a.default.instanceOf(_.SafeHTMLCollection),a.default.instanceOf(_.SafeNodeList),a.default.arrayOf(a.default.instanceOf(m.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=B,e.exports=t.default})(_s,_s.exports);var _E=_s.exports;function Fv(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function zv(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function Uv(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Fv.__suppressDeprecationWarning=!0;zv.__suppressDeprecationWarning=!0;Uv.__suppressDeprecationWarning=!0;function EE(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=e.displayName||e.name,l=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+i+" uses "+l+" but also contains the following legacy lifecycles:"+(n!==null?` `+n:"")+(r!==null?` @@ -99,4 +99,4 @@ Error generating stack: `+i.message+` `+o:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Fv,t.componentWillReceiveProps=zv),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Uv;var a=t.componentDidUpdate;t.componentDidUpdate=function(s,c,h){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;a.call(this,s,c,d)}}return e}const CE=Object.freeze(Object.defineProperty({__proto__:null,polyfill:EE},Symbol.toStringTag,{value:"Module"})),xE=cy(CE);Object.defineProperty(nr,"__esModule",{value:!0});nr.bodyOpenClassName=nr.portalClassName=void 0;var up=Object.assign||function(e){for(var t=1;tj.jsx(Bv,{isOpen:t.isShow,onRequestClose:n,className:el.modal__container,children:j.jsxs("div",{className:el.modal__content,children:[j.jsx("button",{className:el.modal__close,onClick:n,children:j.jsx(Qv,{type:"close"})}),j.jsx("h2",{className:el.modal__header,children:e}),j.jsx("div",{className:"",children:r})]})}),BE={isShow:!1};function WE(e,t){switch(t.type){case"show":return{isShow:!0};case"close":return{isShow:!1};default:throw new Error("Unknown action")}}const Hv=()=>N.useReducer(WE,BE),HE="_input__wrapper_1aszk_1",QE="_input__content_1aszk_5",VE="_input__span_1aszk_9",qE="_input__textfield_1aszk_23",tl={input__wrapper:HE,input__content:QE,input__span:VE,input__textfield:qE},hl=({label:e="",type:t="text",name:n,defaultValue:r,required:o,onChange:i,pattern:l,patternTitle:a})=>{const u=N.useId();return j.jsx("div",{className:tl.input__wrapper,children:j.jsxs("label",{htmlFor:u,className:tl.input__content,children:[j.jsx("input",{className:tl.input__textfield,defaultValue:r,required:o,name:n,type:t,id:u,placeholder:" ",onChange:i,pattern:l,title:a}),j.jsx("span",{className:tl.input__span,children:e})]})})},dr={"root--h1":"_root--h1_15mot_1","root--h2":"_root--h2_15mot_9","root--error":"_root--error_15mot_17"},ki=({children:e,variant:t,className:n,align:r})=>{switch(t){case"h1":return j.jsx("h1",{className:Ir(dr.root,dr["root--h1"],n),style:{textAlign:r},children:e});case"h2":return j.jsx("h2",{className:Ir(dr.root,dr["root--h2"],n),style:{textAlign:r},children:e});case"error":return j.jsx("strong",{className:Ir(dr.root,dr["root--error"],n),style:{textAlign:r},children:e});default:return j.jsx("span",{children:e})}},KE="_toggle__list_kgl35_1",YE="_toggle__button_kgl35_7",hp={toggle__list:KE,toggle__button:YE},GE=({data:e,className:t,name:n,defaultValue:r=e[0].value})=>{const[o,i]=N.useState(r);return j.jsxs("div",{className:Ir(hp.toggle__list,t),children:[j.jsx("input",{type:"hidden",name:n,value:o}),e.map(l=>j.jsx("button",{type:"button",disabled:o===l.value,className:hp.toggle__button,onClick:()=>{i(l.value)},children:l.name},l.value))]})},XE="_table__viewport_5jjbi_1",JE="_table__table_5jjbi_22",ZE="_table__body_5jjbi_26",eC="_table__head_5jjbi_27",tC="_table__row_5jjbi_51",rn={table__viewport:XE,table__table:JE,table__body:ZE,table__head:eC,table__row:tC,"table__head-cell":"_table__head-cell_5jjbi_57","table__body-cell":"_table__body-cell_5jjbi_59"},nC=({columns:e=[],data:t=[],idColumnName:n})=>{if(e.length===0)throw new Error("Columns are empty!");const r=[...new Set(e.map(o=>o.name))];if(e.length!==r.length)throw new Error("Columns has duplicate values!");if(!r.includes(n))throw new Error("Wrong id column name!");return j.jsx("div",{className:rn.table__viewport,children:j.jsxs("table",{className:rn.table__table,cellSpacing:"0",children:[j.jsx("thead",{className:rn.table__head,children:j.jsx("tr",{className:rn.table__row,children:e.map(o=>j.jsx("th",{className:rn["table__head-cell"],style:{minWidth:`${o.width}px`,maxWidth:`${o.width}px`,textAlign:o.align},children:o.value},o.name))})}),j.jsx("tbody",{className:rn.table__body,children:t.map(o=>{const i=o[n];return j.jsx("tr",{className:rn.table__row,children:e.map(l=>{const a=l.name+i;return j.jsx("td",{className:rn["table__body-cell"],style:{minWidth:`${l.width}px`,maxWidth:`${l.width}px`,textAlign:l.align},children:o[l.name]},a)})},i)})})]})})},rC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAClSURBVHgB7ZMxDsMgDEVtV70HvQUZOuTkmRpxi3KPqrjy0CHENkhRlIU3IbDeB1sADAZHQetgmp5vxAKlfOeUUtZqYowB8b5I3bq+HloNgZ8fiG6LiGw5B89gBjB/ZmbMWshWzlleaXnMFnmies9qYTNAC2Em6JV3BexDhD65QHAyzYB9i/TBW1w3ZE3+F3lnNWaLPIGs639ieRozsG+3DRkMzuQHDtCmL6tFDZ8AAAAASUVORK5CYII=",oC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB8SURBVHgB7ZXdDYAgDIQvTtJNZQPckBFwA4UEItYgNeJPAl9yARrotbwUaIXRyTotQX6vUQmdJOZSqECsnJIYYevkNrFaaXzHwM4Gx2/gCUtxc2bwGqL2Jfcf76AbdINu8KHBHFZCGWJvRCjkh0xOEy7iH1hBYotKk+2frIzPP94Nx3p/AAAAAElFTkSuQmCC";function iC(e,t="24px"){if(t==="24px")switch(e){case"close":return rC;case"empty":return oC}}const Qv=({type:e,size:t})=>j.jsx("img",{alt:e,width:t,height:t,src:iC(e,t)}),lC="_contacts__gender_1p4wj_1",aC="_contacts__fields_1p4wj_7",mp={contacts__gender:lC,contacts__fields:aC},uC={email:"",firstName:"",gender:Yt.MALE,lastName:""},Vv=({defaultData:e=uC})=>j.jsxs(j.Fragment,{children:[j.jsx(GE,{name:"gender",data:[{name:"Мужчина",value:Yt.MALE},{name:"Женщина",value:Yt.FEMALE}],defaultValue:e.gender,className:mp.contacts__gender}),j.jsxs("div",{className:mp.contacts__fields,children:[j.jsx(hl,{required:!0,pattern:"^\\p{L}+$",patternTitle:"Только символы русского или английского алфавита",defaultValue:e.lastName,name:"lastName",label:"Фамилия*"}),j.jsx(hl,{required:!0,pattern:"^\\p{L}+$",patternTitle:"Только символы русского или английского алфавита",defaultValue:e.firstName,name:"firstName",label:"Имя*"}),j.jsx(hl,{required:!0,type:"email",defaultValue:e.email,name:"email",label:"Email*"})]})]}),sC=e=>{const{contacts:t}=ov();return t.find(n=>n.id===e)},vp={"contacts__edit-contact-form":"_contacts__edit-contact-form_mppbd_1","contacts__delete-contact":"_contacts__delete-contact_mppbd_7"},cC=({onEdited:e,id:t})=>{const n=ma(),r=sC(t),[o,i]=N.useState(!0);if(r===void 0)return;function l(s){i(s.currentTarget.checkValidity())}function a(s){s.preventDefault();const c=new FormData(s.target),h={id:t,email:c.get("email"),firstName:c.get("firstName"),lastName:c.get("lastName"),gender:Yt[c.get("gender")]};n(w_(h)),e==null||e()}const u={email:r.email,firstName:r.firstName,lastName:r.lastName,gender:r.gender};return j.jsxs("form",{className:vp["contacts__edit-contact-form"],onSubmit:a,onInvalid:l,children:[j.jsx(Vv,{defaultData:u}),!o&&j.jsx(ki,{variant:"error",children:"*Некоторые поля заполнены не корректно"}),j.jsxs("div",{className:vp["contacts__delete-contact"],children:[j.jsx(dC,{id:t}),j.jsx(ir,{type:"submit",width:"549px",children:"Редактировать"})]})]})},fC=({id:e})=>{const[t,n]=Hv();function r(){n({type:"show"})}function o(){n({type:"close"})}return j.jsxs(j.Fragment,{children:[j.jsx(ir,{variant:"primary",size:"m",onClick:r,children:"Редактировать"}),j.jsx(Wv,{header:"Редактирование пользователя",isOpen:t,onRequestClose:o,children:j.jsx(cC,{onEdited:o,id:e})})]})},dC=({id:e})=>{const t=ma();function n(){t(g_(e))}return j.jsx(ir,{variant:"secondary",size:"s",width:"50px",onClick:n,children:j.jsx(Qv,{type:"empty"})})},pC=[{name:"id",width:52,value:"№",align:"left"},{name:"lastName",width:130,value:"Имя",align:"left"},{name:"firstName",width:120,value:"Фамилия",align:"left"},{name:"gender",width:120,value:"Пол",align:"left"},{name:"email",width:200,value:"Почта",align:"left"},{name:"actions",width:128,value:"Действия",align:"left"}],hC="_contacts__table_izeta_1",mC={contacts__table:hC},vC=()=>{const{contacts:e}=ov(),t=e.map(n=>({id:n.id,lastName:n.lastName,firstName:n.firstName,gender:n.gender===Yt.MALE?"Мужчина":"Женщина",email:n.email,actions:n.id!==null&&j.jsx(fC,{id:n.id})}));return j.jsx("div",{className:mC.contacts__table,children:j.jsx(nC,{columns:pC,data:t,idColumnName:"id"})})},yC={"contacts__add-contact-form":"_contacts__add-contact-form_1aum7_1"},gC=({onAdded:e})=>{const t=ma(),[n,r]=N.useState(!0);function o(l){r(l.currentTarget.checkValidity())}function i(l){l.preventDefault();const a=new FormData(l.target),u={id:null,email:a.get("email"),firstName:a.get("firstName"),lastName:a.get("lastName"),gender:Yt[a.get("gender")]};t(y_(u)),e==null||e()}return j.jsxs("form",{className:yC["contacts__add-contact-form"],onSubmit:i,onInvalid:o,children:[j.jsx(Vv,{}),!n&&j.jsx(ki,{variant:"error",children:"*Некоторые поля заполнены не корректно"}),j.jsx(ir,{type:"submit",width:"552px",children:"Сохранить"})]})},wC=()=>{const[e,t]=Hv();function n(){t({type:"show"})}function r(){t({type:"close"})}return j.jsxs(j.Fragment,{children:[j.jsx(ir,{variant:"primary",size:"l",onClick:n,children:"Добавить Пользователя"}),j.jsx(Wv,{header:"Новый пользователь",isOpen:e,onRequestClose:r,children:j.jsx(gC,{onAdded:r})})]})},Qc=()=>rv(e=>e.session);function SC(){return localStorage.getItem("seed")}function _C(e){localStorage.setItem("seed",e)}function EC(){localStorage.removeItem("seed")}const CC={seed:SC(),isAuth:!1},Rs=un({name:"session",initialState:CC,reducers:{clearSession:e=>{e.seed=null,e.isAuth=!1,EC()}},extraReducers:e=>e.addMatcher(Bc.endpoints.generate.matchFulfilled,(t,{meta:n})=>{t.seed=n.arg.originalArgs,t.isAuth=!0,_C(t.seed)})}),{clearSession:xC}=Rs.actions,Oi={login:"login",contacts:"contacts"},RC=()=>{const e=ma(),t=ev();function n(){e(xC()),t(`../${Oi.login}`)}return j.jsx(ir,{variant:"secondary",size:"l",onClick:n,children:"Выйти"})},kC="_contacts__header_1034h_1",OC="_contacts__empty_1034h_9",PC="_contacts__content_1034h_12",fu={contacts__header:kC,contacts__empty:OC,contacts__content:PC},TC=()=>{const{seed:e}=Qc();return j.jsxs(j.Fragment,{children:[j.jsxs("header",{className:fu.contacts__header,children:[j.jsx(ki,{variant:"h1",children:e}),j.jsx("div",{className:fu.contacts__empty}),j.jsx(wC,{}),j.jsx(RC,{})]}),j.jsx("main",{className:fu.contacts__content,children:j.jsx(vC,{})})]})},MC=()=>{const[e]=Pv(),[t,n]=N.useState(""),[r,o]=N.useState(!0);function i(u){n(u.target.value)}function l(u){u.preventDefault(),e(t)}function a(u){o(u.currentTarget.checkValidity())}return j.jsxs("form",{onSubmit:l,onInvalid:a,children:[j.jsx(hl,{name:"seed",label:"Seed",onChange:i,pattern:"[a-zA-Z]+",patternTitle:"Только буквы латинского алфавита"}),!r&&j.jsx(ki,{variant:"error",children:"*Поле заполнено не корректно"}),j.jsx(ir,{size:"l",variant:"primary",width:"318px",type:"submit",children:"Войти"})]})},du={"login-form__header":"_login-form__header_1rnqo_1","login-form__container":"_login-form__container_1rnqo_4","login-form__content":"_login-form__content_1rnqo_10"},NC=()=>j.jsx("div",{className:du["login-form__container"],children:j.jsx(O_,{children:j.jsxs("div",{className:du["login-form__content"],children:[j.jsx(ki,{variant:"h2",className:du["login-form__header"],align:"center",children:"Добро пожаловать"}),j.jsx(MC,{})]})})}),AC=j.jsx(E_,{children:j.jsx(Tc,{})}),DC=()=>{const{seed:e,isAuth:t}=Qc(),[n]=Pv();return N.useEffect(()=>{e&&!t&&n(e)},[t,e,n]),e?j.jsx(Tc,{}):j.jsx(Pc,{to:Oi.login})},LC=()=>{const{seed:e}=Qc();return e?j.jsx(Pc,{to:"/"}):j.jsx(Tc,{})},jC=[{path:Oi.contacts,element:j.jsx(TC,{})}],IC=[{path:Oi.login,element:j.jsx(NC,{})}],bC=[{path:"/",element:j.jsx(Pc,{to:Oi.contacts,replace:!0})}],FC=pS([{element:AC,children:[{element:j.jsx(DC,{}),children:jC},{element:j.jsx(LC,{}),children:IC},...bC]}]),zC=Mc({[ws.name]:ws.reducer,[Rs.name]:Rs.reducer,[Ql.reducerPath]:Ql.reducer}),UC=[Ql.middleware],$C=u1({reducer:zC,middleware:e=>e({}).concat(...UC)}),BC=()=>j.jsx(Ns.StrictMode,{children:j.jsx(Gy,{store:$C,children:j.jsx(ES,{router:FC})})});var ks={},yp=da;ks.createRoot=yp.createRoot,ks.hydrateRoot=yp.hydrateRoot;ks.createRoot(document.getElementById("root")).render(BC()); +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Fv,t.componentWillReceiveProps=zv),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Uv;var a=t.componentDidUpdate;t.componentDidUpdate=function(s,c,h){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;a.call(this,s,c,d)}}return e}const CE=Object.freeze(Object.defineProperty({__proto__:null,polyfill:EE},Symbol.toStringTag,{value:"Module"})),xE=cy(CE);Object.defineProperty(nr,"__esModule",{value:!0});nr.bodyOpenClassName=nr.portalClassName=void 0;var up=Object.assign||function(e){for(var t=1;tj.jsx(Bv,{isOpen:t.isShow,onRequestClose:n,className:el.modal__container,children:j.jsxs("div",{className:el.modal__content,children:[j.jsx("button",{className:el.modal__close,onClick:n,children:j.jsx(Qv,{type:"close"})}),j.jsx("h2",{className:el.modal__header,children:e}),j.jsx("div",{className:"",children:r})]})}),BE={isShow:!1};function WE(e,t){switch(t.type){case"show":return{isShow:!0};case"close":return{isShow:!1};default:throw new Error("Unknown action")}}const Hv=()=>N.useReducer(WE,BE),HE="_input__wrapper_1aszk_1",QE="_input__content_1aszk_5",VE="_input__span_1aszk_9",qE="_input__textfield_1aszk_23",tl={input__wrapper:HE,input__content:QE,input__span:VE,input__textfield:qE},hl=({label:e="",type:t="text",name:n,defaultValue:r,required:o,onChange:i,pattern:l,patternTitle:a})=>{const u=N.useId();return j.jsx("div",{className:tl.input__wrapper,children:j.jsxs("label",{htmlFor:u,className:tl.input__content,children:[j.jsx("input",{className:tl.input__textfield,defaultValue:r,required:o,name:n,type:t,id:u,placeholder:" ",onChange:i,pattern:l,title:a}),j.jsx("span",{className:tl.input__span,children:e})]})})},dr={"root--h1":"_root--h1_15mot_1","root--h2":"_root--h2_15mot_9","root--error":"_root--error_15mot_17"},ki=({children:e,variant:t,className:n,align:r})=>{switch(t){case"h1":return j.jsx("h1",{className:Ir(dr.root,dr["root--h1"],n),style:{textAlign:r},children:e});case"h2":return j.jsx("h2",{className:Ir(dr.root,dr["root--h2"],n),style:{textAlign:r},children:e});case"error":return j.jsx("strong",{className:Ir(dr.root,dr["root--error"],n),style:{textAlign:r},children:e});default:return j.jsx("span",{children:e})}},KE="_toggle__list_kgl35_1",YE="_toggle__button_kgl35_7",hp={toggle__list:KE,toggle__button:YE},GE=({data:e,className:t,name:n,defaultValue:r=e[0].value})=>{const[o,i]=N.useState(r);return j.jsxs("div",{className:Ir(hp.toggle__list,t),children:[j.jsx("input",{type:"hidden",name:n,value:o}),e.map(l=>j.jsx("button",{type:"button",disabled:o===l.value,className:hp.toggle__button,onClick:()=>{i(l.value)},children:l.name},l.value))]})},XE="_table__viewport_5jjbi_1",JE="_table__table_5jjbi_22",ZE="_table__body_5jjbi_26",eC="_table__head_5jjbi_27",tC="_table__row_5jjbi_51",rn={table__viewport:XE,table__table:JE,table__body:ZE,table__head:eC,table__row:tC,"table__head-cell":"_table__head-cell_5jjbi_57","table__body-cell":"_table__body-cell_5jjbi_59"},nC=({columns:e=[],data:t=[],idColumnName:n})=>{if(e.length===0)throw new Error("Columns are empty!");const r=[...new Set(e.map(o=>o.name))];if(e.length!==r.length)throw new Error("Columns has duplicate values!");if(!r.includes(n))throw new Error("Wrong id column name!");return j.jsx("div",{className:rn.table__viewport,children:j.jsxs("table",{className:rn.table__table,cellSpacing:"0",children:[j.jsx("thead",{className:rn.table__head,children:j.jsx("tr",{className:rn.table__row,children:e.map(o=>j.jsx("th",{className:rn["table__head-cell"],style:{minWidth:`${o.width}px`,maxWidth:`${o.width}px`,textAlign:o.align},children:o.value},o.name))})}),j.jsx("tbody",{className:rn.table__body,children:t.map(o=>{const i=o[n];return j.jsx("tr",{className:rn.table__row,children:e.map(l=>{const a=l.name+i;return j.jsx("td",{className:rn["table__body-cell"],style:{minWidth:`${l.width}px`,maxWidth:`${l.width}px`,textAlign:l.align},children:o[l.name]},a)})},i)})})]})})},rC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAClSURBVHgB7ZMxDsMgDEVtV70HvQUZOuTkmRpxi3KPqrjy0CHENkhRlIU3IbDeB1sADAZHQetgmp5vxAKlfOeUUtZqYowB8b5I3bq+HloNgZ8fiG6LiGw5B89gBjB/ZmbMWshWzlleaXnMFnmies9qYTNAC2Em6JV3BexDhD65QHAyzYB9i/TBW1w3ZE3+F3lnNWaLPIGs639ieRozsG+3DRkMzuQHDtCmL6tFDZ8AAAAASUVORK5CYII=",oC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB8SURBVHgB7ZXdDYAgDIQvTtJNZQPckBFwA4UEItYgNeJPAl9yARrotbwUaIXRyTotQX6vUQmdJOZSqECsnJIYYevkNrFaaXzHwM4Gx2/gCUtxc2bwGqL2Jfcf76AbdINu8KHBHFZCGWJvRCjkh0xOEy7iH1hBYotKk+2frIzPP94Nx3p/AAAAAElFTkSuQmCC";function iC(e,t="24px"){if(t==="24px")switch(e){case"close":return rC;case"empty":return oC}}const Qv=({type:e,size:t})=>j.jsx("img",{alt:e,width:t,height:t,src:iC(e,t)}),lC="_contacts__gender_1p4wj_1",aC="_contacts__fields_1p4wj_7",mp={contacts__gender:lC,contacts__fields:aC},uC={email:"",firstName:"",gender:Gt.MALE,lastName:""},Vv=({defaultData:e=uC})=>j.jsxs(j.Fragment,{children:[j.jsx(GE,{name:"gender",data:[{name:"Мужчина",value:Gt.MALE},{name:"Женщина",value:Gt.FEMALE}],defaultValue:e.gender,className:mp.contacts__gender}),j.jsxs("div",{className:mp.contacts__fields,children:[j.jsx(hl,{required:!0,pattern:"^\\p{L}+$",patternTitle:"Только символы русского или английского алфавита",defaultValue:e.lastName,name:"lastName",label:"Фамилия*"}),j.jsx(hl,{required:!0,pattern:"^\\p{L}+$",patternTitle:"Только символы русского или английского алфавита",defaultValue:e.firstName,name:"firstName",label:"Имя*"}),j.jsx(hl,{required:!0,type:"email",defaultValue:e.email,name:"email",label:"Email*"})]})]}),sC=e=>{const{contacts:t}=ov();return t.find(n=>n.id===e)},vp={"contacts__edit-contact-form":"_contacts__edit-contact-form_mppbd_1","contacts__delete-contact":"_contacts__delete-contact_mppbd_7"},cC=({onEdited:e,id:t})=>{const n=ma(),r=sC(t),[o,i]=N.useState(!0);if(r===void 0)return;function l(s){i(s.currentTarget.checkValidity())}function a(s){s.preventDefault();const c=new FormData(s.target),h={id:t,email:c.get("email"),firstName:c.get("firstName"),lastName:c.get("lastName"),gender:Gt[c.get("gender")]};n(S_(h)),e==null||e()}const u={email:r.email,firstName:r.firstName,lastName:r.lastName,gender:r.gender};return j.jsxs("form",{className:vp["contacts__edit-contact-form"],onSubmit:a,onInvalid:l,children:[j.jsx(Vv,{defaultData:u}),!o&&j.jsx(ki,{variant:"error",children:"*Некоторые поля заполнены не корректно"}),j.jsxs("div",{className:vp["contacts__delete-contact"],children:[j.jsx(dC,{id:t}),j.jsx(ir,{type:"submit",width:"549px",children:"Редактировать"})]})]})},fC=({id:e})=>{const[t,n]=Hv();function r(){n({type:"show"})}function o(){n({type:"close"})}return j.jsxs(j.Fragment,{children:[j.jsx(ir,{variant:"primary",size:"m",onClick:r,children:"Редактировать"}),j.jsx(Wv,{header:"Редактирование пользователя",isOpen:t,onRequestClose:o,children:j.jsx(cC,{onEdited:o,id:e})})]})},dC=({id:e})=>{const t=ma();function n(){t(g_(e))}return j.jsx(ir,{variant:"secondary",size:"s",width:"50px",onClick:n,children:j.jsx(Qv,{type:"empty"})})},pC=[{name:"id",width:52,value:"№",align:"left"},{name:"lastName",width:130,value:"Имя",align:"left"},{name:"firstName",width:120,value:"Фамилия",align:"left"},{name:"gender",width:120,value:"Пол",align:"left"},{name:"email",width:200,value:"Почта",align:"left"},{name:"actions",width:128,value:"Действия",align:"left"}],hC="_contacts__table_izeta_1",mC={contacts__table:hC},vC=()=>{const{contacts:e}=ov(),t=e.map(n=>({id:n.id,lastName:n.lastName,firstName:n.firstName,gender:n.gender===Gt.MALE?"Мужчина":"Женщина",email:n.email,actions:n.id!==null&&j.jsx(fC,{id:n.id})}));return j.jsx("div",{className:mC.contacts__table,children:j.jsx(nC,{columns:pC,data:t,idColumnName:"id"})})},yC={"contacts__add-contact-form":"_contacts__add-contact-form_1aum7_1"},gC=({onAdded:e})=>{const t=ma(),[n,r]=N.useState(!0);function o(l){r(l.currentTarget.checkValidity())}function i(l){l.preventDefault();const a=new FormData(l.target),u={id:null,email:a.get("email"),firstName:a.get("firstName"),lastName:a.get("lastName"),gender:Gt[a.get("gender")]};t(y_(u)),e==null||e()}return j.jsxs("form",{className:yC["contacts__add-contact-form"],onSubmit:i,onInvalid:o,children:[j.jsx(Vv,{}),!n&&j.jsx(ki,{variant:"error",children:"*Некоторые поля заполнены не корректно"}),j.jsx(ir,{type:"submit",width:"552px",children:"Сохранить"})]})},SC=()=>{const[e,t]=Hv();function n(){t({type:"show"})}function r(){t({type:"close"})}return j.jsxs(j.Fragment,{children:[j.jsx(ir,{variant:"primary",size:"l",onClick:n,children:"Добавить Пользователя"}),j.jsx(Wv,{header:"Новый пользователь",isOpen:e,onRequestClose:r,children:j.jsx(gC,{onAdded:r})})]})},Qc=()=>rv(e=>e.session);function wC(){return localStorage.getItem("seed")}function _C(e){localStorage.setItem("seed",e)}function EC(){localStorage.removeItem("seed")}const CC={seed:wC(),isAuth:!1},Rs=un({name:"session",initialState:CC,reducers:{clearSession:e=>{e.seed=null,e.isAuth=!1,EC()}},extraReducers:e=>e.addMatcher(Bc.endpoints.generate.matchFulfilled,(t,{meta:n})=>{t.seed=n.arg.originalArgs,t.isAuth=!0,_C(t.seed)})}),{clearSession:xC}=Rs.actions,Oi={login:"login",contacts:"contacts"},RC=()=>{const e=ma(),t=ev();function n(){e(xC()),t(`../${Oi.login}`)}return j.jsx(ir,{variant:"secondary",size:"l",onClick:n,children:"Выйти"})},kC="_contacts__header_1034h_1",OC="_contacts__empty_1034h_9",PC="_contacts__content_1034h_12",fu={contacts__header:kC,contacts__empty:OC,contacts__content:PC},TC=()=>{const{seed:e}=Qc();return j.jsxs(j.Fragment,{children:[j.jsxs("header",{className:fu.contacts__header,children:[j.jsx(ki,{variant:"h1",children:e}),j.jsx("div",{className:fu.contacts__empty}),j.jsx(SC,{}),j.jsx(RC,{})]}),j.jsx("main",{className:fu.contacts__content,children:j.jsx(vC,{})})]})},MC=()=>{const[e]=Pv(),[t,n]=N.useState(""),[r,o]=N.useState(!0);function i(u){n(u.target.value)}function l(u){u.preventDefault(),e(t)}function a(u){o(u.currentTarget.checkValidity())}return j.jsxs("form",{onSubmit:l,onInvalid:a,children:[j.jsx(hl,{name:"seed",label:"Seed",onChange:i,pattern:"[a-zA-Z]+",patternTitle:"Только буквы латинского алфавита"}),!r&&j.jsx(ki,{variant:"error",children:"*Поле заполнено не корректно"}),j.jsx(ir,{size:"l",variant:"primary",width:"318px",type:"submit",children:"Войти"})]})},du={"login-form__header":"_login-form__header_1rnqo_1","login-form__container":"_login-form__container_1rnqo_4","login-form__content":"_login-form__content_1rnqo_10"},NC=()=>j.jsx("div",{className:du["login-form__container"],children:j.jsx(O_,{children:j.jsxs("div",{className:du["login-form__content"],children:[j.jsx(ki,{variant:"h2",className:du["login-form__header"],align:"center",children:"Добро пожаловать"}),j.jsx(MC,{})]})})}),AC=j.jsx(E_,{children:j.jsx(Tc,{})}),DC=()=>{const{seed:e,isAuth:t}=Qc(),[n]=Pv();return N.useEffect(()=>{e&&!t&&n(e)},[t,e,n]),e?j.jsx(Tc,{}):j.jsx(Pc,{to:Oi.login})},LC=()=>{const{seed:e}=Qc();return e?j.jsx(Pc,{to:"/"}):j.jsx(Tc,{})},jC=[{path:Oi.contacts,element:j.jsx(TC,{})}],IC=[{path:Oi.login,element:j.jsx(NC,{})}],bC=[{path:"/",element:j.jsx(Pc,{to:Oi.contacts,replace:!0})}],FC=pw([{element:AC,children:[{element:j.jsx(DC,{}),children:jC},{element:j.jsx(LC,{}),children:IC},...bC]}]),zC=Mc({[Ss.name]:Ss.reducer,[Rs.name]:Rs.reducer,[Ql.reducerPath]:Ql.reducer}),UC=[Ql.middleware],$C=u1({reducer:zC,middleware:e=>e({}).concat(...UC)}),BC=()=>j.jsx(Ns.StrictMode,{children:j.jsx(Gy,{store:$C,children:j.jsx(Ew,{router:FC})})});var ks={},yp=da;ks.createRoot=yp.createRoot,ks.hydrateRoot=yp.hydrateRoot;ks.createRoot(document.getElementById("root")).render(BC()); diff --git a/index.html b/index.html index 8c90c2b..0ec3470 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Контакты - +