@ebay/muse-lib-react 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +1,100 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function E(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?E(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(ne(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function se(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ce(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var D=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},O={map:se,forEach:function(e,t,n){se(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return se(e,function(){t++}),t},toArray:function(e){return se(e,function(e){return e})||[]},only:function(e){if(!ne(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=O,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ee(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ee(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ne,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ce}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,D)}catch(e){D(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),p=s(((e,t)=>{})),m=s(((e,t)=>{t.exports=f()})),h=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,ne());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ne():S=!1}}}var ne;if(typeof y==`function`)ne=function(){y(te)};else if(typeof MessageChannel<`u`){var E=new MessageChannel,re=E.port2;E.port1.onmessage=te,ne=function(){re.postMessage(null)}}else ne=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ne()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),g=s((e=>{})),_=s(((e,t)=>{t.exports=h()})),v=s((e=>{var t=m();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),y=s((e=>{})),b=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),x=s((e=>{var t=_(),n=m(),r=b();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),re=Symbol.for(`react.memo_cache_sentinel`),ie=Symbol.iterator;function ae(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}var oe=Symbol.for(`react.client.reference`);function se(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case x:return`Profiler`;case y:return`StrictMode`;case T:return`Suspense`;case ee:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?se(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var ce=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ue=[],de=-1;function fe(e){return{current:e}}function k(e){0>de||(e.current=ue[de],ue[de]=null,de--)}function A(e,t){de++,ue[de]=e.current,e.current=t}var pe=fe(null),me=fe(null),he=fe(null),ge=fe(null);function _e(e,t){switch(A(he,t),A(me,e),A(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}k(pe),A(pe,e)}function ve(){k(pe),k(me),k(he)}function ye(e){e.memoizedState!==null&&A(ge,e);var t=pe.current,n=Kd(t,e.type);t!==n&&(A(me,e),A(pe,n))}function be(e){me.current===e&&(k(pe),k(me)),ge.current===e&&(k(ge),np._currentValue=le)}var xe,Se;function Ce(e){if(xe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||``,Se=-1<e.stack.indexOf(`
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ie(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ie(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),ie(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(a,u),c+=ie(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ne(a,u++),c+=ie(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ie(re(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function k(e,t,n){if(e==null)return e;var r=[],i=0;return ie(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var A=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},j={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=j,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,A)}catch(e){A(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),p=s(((e,t)=>{})),m=s(((e,t)=>{t.exports=f()})),h=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,te=O.port2;O.port1.onmessage=ee,D=function(){te.postMessage(null)}}else D=function(){_(ee,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),g=s((e=>{})),_=s(((e,t)=>{t.exports=h()})),v=s((e=>{var t=m();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),y=s((e=>{})),b=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),x=s((e=>{var t=_(),n=m(),r=b();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function k(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case x:return`Profiler`;case y:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?k(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return k(e(t))}catch{}}return null}var ae=Array.isArray,A=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function M(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function N(e,t){ce++,se[ce]=e.current,e.current=t}var ue=le(null),de=le(null),fe=le(null),pe=le(null);function me(e,t){switch(N(fe,t),N(de,e),N(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}M(ue),N(ue,e)}function he(){M(ue),M(de),M(fe)}function ge(e){e.memoizedState!==null&&N(pe,e);var t=ue.current,n=Kd(t,e.type);t!==n&&(N(de,e),N(ue,n))}function _e(e){de.current===e&&(M(ue),M(de)),pe.current===e&&(M(pe),np._currentValue=oe)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(`
2
2
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
- `+xe+e+Se}var we=!1;function Te(e,t){if(!e||we)return``;we=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
3
+ `+ve+e+ye}var xe=!1;function Se(e,t){if(!e||xe)return``;xe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
4
  `),l=s.split(`
5
5
  `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
- `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{we=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ce(n):``}function Ee(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce(`Lazy`);case 13:return e.child!==t&&t!==null?Ce(`Suspense Fallback`):Ce(`Suspense`);case 19:return Ce(`SuspenseList`);case 0:case 15:return Te(e.type,!1);case 11:return Te(e.type.render,!1);case 1:return Te(e.type,!0);case 31:return Ce(`Activity`);default:return``}}function De(e){try{var t=``,n=null;do t+=Ee(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
6
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?be(n):``}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be(`Lazy`);case 13:return e.child!==t&&t!==null?be(`Suspense Fallback`):be(`Suspense`);case 19:return be(`SuspenseList`);case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return be(`Activity`);default:return``}}function we(e){try{var t=``,n=null;do t+=Ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
7
  Error generating stack: `+e.message+`
8
- `+e.stack}}var Oe=Object.prototype.hasOwnProperty,ke=t.unstable_scheduleCallback,Ae=t.unstable_cancelCallback,je=t.unstable_shouldYield,Me=t.unstable_requestPaint,Ne=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Fe=t.unstable_ImmediatePriority,Ie=t.unstable_UserBlockingPriority,Le=t.unstable_NormalPriority,Re=t.unstable_LowPriority,ze=t.unstable_IdlePriority,Be=t.log,Ve=t.unstable_setDisableYieldValue,He=null,Ue=null;function We(e){if(typeof Be==`function`&&Ve(e),Ue&&typeof Ue.setStrictMode==`function`)try{Ue.setStrictMode(He,e)}catch{}}var Ge=Math.clz32?Math.clz32:Je,Ke=Math.log,qe=Math.LN2;function Je(e){return e>>>=0,e===0?32:31-(Ke(e)/qe|0)|0}var Ye=256,Xe=262144,Ze=4194304;function Qe(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ge(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ot(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ot(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ge(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function st(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ge(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ct(e,t){var n=t&-t;return n=n&42?1:lt(n),(n&(e.suspendedLanes|t))===0?n:0}function lt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ut(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function dt(){var e=O.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function ft(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var pt=Math.random().toString(36).slice(2),mt=`__reactFiber$`+pt,ht=`__reactProps$`+pt,gt=`__reactContainer$`+pt,_t=`__reactEvents$`+pt,vt=`__reactListeners$`+pt,yt=`__reactHandles$`+pt,bt=`__reactResources$`+pt,xt=`__reactMarker$`+pt;function St(e){delete e[mt],delete e[ht],delete e[_t],delete e[vt],delete e[yt]}function Ct(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[mt])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function wt(e){if(e=e[mt]||e[gt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function j(e){var t=e[bt];return t||=e[bt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Et(e){e[xt]=!0}var Dt=new Set,Ot={};function kt(e,t){At(e,t),At(e+`Capture`,t)}function At(e,t){for(Ot[e]=t,e=0;e<t.length;e++)Dt.add(t[e])}var jt=RegExp(`^[: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]*$`),Mt={},Nt={};function M(e){return Oe.call(Nt,e)?!0:Oe.call(Mt,e)?!1:jt.test(e)?Nt[e]=!0:(Mt[e]=!0,!1)}function Pt(e,t,n){if(M(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ft(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function It(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Lt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Rt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function zt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bt(e){if(!e._valueTracker){var t=Rt(e)?`checked`:`value`;e._valueTracker=zt(e,t,``+e[t])}}function Vt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Rt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ht(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ut=/[\n"\\]/g;function Wt(e){return e.replace(Ut,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Gt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Lt(t)):e.value!==``+Lt(t)&&(e.value=``+Lt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):qt(e,o,Lt(n)):qt(e,o,Lt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Lt(s):e.removeAttribute(`name`)}function Kt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Bt(e);return}n=n==null?``:``+Lt(n),t=t==null?n:``+Lt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Bt(e)}function qt(e,t,n){t===`number`&&Ht(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Jt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yt(e,t,n){if(t!=null&&(t=``+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Lt(n)}function Xt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ce(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Lt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Bt(e)}function Zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function $t(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function en(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&$t(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&$t(e,o,t[o])}function tn(e){if(e.indexOf(`-`)===-1)return!1;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 nn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),rn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function an(e){return rn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function on(){}var sn=null;function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ln=null,un=null;function dn(e){var t=wt(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Wt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ht]||null;if(!a)throw Error(i(90));Gt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Vt(r)}break a;case`textarea`:Yt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var fn=!1;function pn(e,t,n){if(fn)return e(t,n);fn=!0;try{return e(t)}finally{if(fn=!1,(ln!==null||un!==null)&&(wu(),ln&&(t=ln,e=un,un=ln=null,dn(t),e)))for(t=0;t<e.length;t++)dn(e[t])}}function mn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ht]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var N=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),hn=!1;if(N)try{var gn={};Object.defineProperty(gn,`passive`,{get:function(){hn=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{hn=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return yn=i.slice(e,1<r?1-r:void 0)}function xn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Sn(){return!0}function Cn(){return!1}function wn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Sn:Cn,this.isPropagationStopped=Cn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Sn)},persist:function(){},isPersistent:Sn}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},En=wn(Tn),Dn=f({},Tn,{view:0,detail:0}),On=wn(Dn),kn,An,jn,Mn=f({},Dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Un,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==jn&&(jn&&e.type===`mousemove`?(kn=e.screenX-jn.screenX,An=e.screenY-jn.screenY):An=kn=0,jn=e),kn)},movementY:function(e){return`movementY`in e?e.movementY:An}}),Nn=wn(Mn),Pn=wn(f({},Mn,{dataTransfer:0})),Fn=wn(f({},Dn,{relatedTarget:0})),In=wn(f({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0})),Ln=wn(f({},Tn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Rn=wn(f({},Tn,{data:0})),zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Bn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Vn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vn[e])?!!t[e]:!1}function Un(){return Hn}var Wn=wn(f({},Dn,{key:function(e){if(e.key){var t=zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=xn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Bn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Un,charCode:function(e){return e.type===`keypress`?xn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?xn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Gn=wn(f({},Mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Kn=wn(f({},Dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Un})),qn=wn(f({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Jn=wn(f({},Mn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Yn=wn(f({},Tn,{newState:0,oldState:0})),Xn=[9,13,27,32],Zn=N&&`CompositionEvent`in window,Qn=null;N&&`documentMode`in document&&(Qn=document.documentMode);var $n=N&&`TextEvent`in window&&!Qn,er=N&&(!Zn||Qn&&8<Qn&&11>=Qn),tr=` `,nr=!1;function rr(e,t){switch(e){case`keyup`:return Xn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ir(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ar=!1;function or(e,t){switch(e){case`compositionend`:return ir(t);case`keypress`:return t.which===32?(nr=!0,tr):null;case`textInput`:return e=t.data,e===tr&&nr?null:e;default:return null}}function sr(e,t){if(ar)return e===`compositionend`||!Zn&&rr(e,t)?(e=bn(),yn=vn=_n=null,ar=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return er&&t.locale!==`ko`?null:t.data;default:return null}}var cr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!cr[e.type]:t===`textarea`}function ur(e,t,n,r){ln?un?un.push(r):un=[r]:ln=r,t=kd(t,`onChange`),0<t.length&&(n=new En(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var dr=null,fr=null;function pr(e){Sd(e,0)}function mr(e){if(Vt(Tt(e)))return e}function hr(e,t){if(e===`change`)return t}var gr=!1;if(N){var _r;if(N){var vr=`oninput`in document;if(!vr){var yr=document.createElement(`div`);yr.setAttribute(`oninput`,`return;`),vr=typeof yr.oninput==`function`}_r=vr}else _r=!1;gr=_r&&(!document.documentMode||9<document.documentMode)}function br(){dr&&(dr.detachEvent(`onpropertychange`,xr),fr=dr=null)}function xr(e){if(e.propertyName===`value`&&mr(fr)){var t=[];ur(t,fr,e,cn(e)),pn(pr,t)}}function Sr(e,t,n){e===`focusin`?(br(),dr=t,fr=n,dr.attachEvent(`onpropertychange`,xr)):e===`focusout`&&br()}function Cr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return mr(fr)}function wr(e,t){if(e===`click`)return mr(t)}function Tr(e,t){if(e===`input`||e===`change`)return mr(t)}function Er(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Dr=typeof Object.is==`function`?Object.is:Er;function Or(e,t){if(Dr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Oe.call(t,i)||!Dr(e[i],t[i]))return!1}return!0}function kr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ar(e,t){var n=kr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=kr(n)}}function jr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ht(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ht(e.document)}return t}function Nr(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`)}var Pr=N&&`documentMode`in document&&11>=document.documentMode,Fr=null,Ir=null,Lr=null,Rr=!1;function zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rr||Fr==null||Fr!==Ht(r)||(r=Fr,`selectionStart`in r&&Nr(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}),Lr&&Or(Lr,r)||(Lr=r,r=kd(Ir,`onSelect`),0<r.length&&(t=new En(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Fr)))}function Br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Vr={animationend:Br(`Animation`,`AnimationEnd`),animationiteration:Br(`Animation`,`AnimationIteration`),animationstart:Br(`Animation`,`AnimationStart`),transitionrun:Br(`Transition`,`TransitionRun`),transitionstart:Br(`Transition`,`TransitionStart`),transitioncancel:Br(`Transition`,`TransitionCancel`),transitionend:Br(`Transition`,`TransitionEnd`)},Hr={},Ur={};N&&(Ur=document.createElement(`div`).style,`AnimationEvent`in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),`TransitionEvent`in window||delete Vr.transitionend.transition);function P(e){if(Hr[e])return Hr[e];if(!Vr[e])return e;var t=Vr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ur)return Hr[e]=t[n];return e}var Wr=P(`animationend`),Gr=P(`animationiteration`),Kr=P(`animationstart`),F=P(`transitionrun`),qr=P(`transitionstart`),Jr=P(`transitioncancel`),Yr=P(`transitionend`),Xr=new Map,Zr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Zr.push(`scrollEnd`);function Qr(e,t){Xr.set(e,t),kt(t,[e])}var $r=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ei=[],ti=0,ni=0;function ri(){for(var e=ti,t=ni=ti=0;t<e;){var n=ei[t];ei[t++]=null;var r=ei[t];ei[t++]=null;var i=ei[t];ei[t++]=null;var a=ei[t];if(ei[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&si(n,i,a)}}function ii(e,t,n,r){ei[ti++]=e,ei[ti++]=t,ei[ti++]=n,ei[ti++]=r,ni|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ai(e,t,n,r){return ii(e,t,n,r),ci(e)}function oi(e,t){return ii(e,null,null,t),ci(e)}function si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ge(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ci(e){if(50<_u)throw _u=0,G=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function ui(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.refCleanup=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 di(e,t,n,r){return new ui(e,t,n,r)}function fi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pi(e,t){var n=e.alternate;return n===null?(n=di(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&65011712,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.refCleanup=e.refCleanup,n}function mi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)fi(e)&&(s=1);else if(typeof e==`string`)s=qf(e,n,pe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=di(31,n,t,a),e.elementType=E,e.lanes=o,e;case v:return gi(n.children,a,o,t);case y:s=8,a|=24;break;case x:return e=di(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=di(13,n,t,a),e.elementType=T,e.lanes=o,e;case ee:return e=di(19,n,t,a),e.elementType=ee,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case te:s=14;break a;case ne:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=di(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function gi(e,t,n,r){return e=di(7,e,r,t),e.lanes=n,e}function _i(e,t,n){return e=di(6,e,null,t),e.lanes=n,e}function vi(e){var t=di(18,null,null,0);return t.stateNode=e,t}function yi(e,t,n){return t=di(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bi=new WeakMap;function xi(e,t){if(typeof e==`object`&&e){var n=bi.get(e);return n===void 0?(t={value:e,source:t,stack:De(t)},bi.set(e,t),t):n}return{value:e,source:t,stack:De(t)}}var Si=[],Ci=0,wi=null,Ti=0,Ei=[],Di=0,Oi=null,ki=1,Ai=``;function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=wi,wi=e,Ti=t}function Mi(e,t,n){Ei[Di++]=ki,Ei[Di++]=Ai,Ei[Di++]=Oi,Oi=e;var r=ki;e=Ai;var i=32-Ge(r)-1;r&=~(1<<i),n+=1;var a=32-Ge(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ki=1<<32-Ge(t)+i|n<<i|r,Ai=a+e}else ki=1<<a|n<<i|r,Ai=e}function Ni(e){e.return!==null&&(ji(e,1),Mi(e,1,0))}function Pi(e){for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null;for(;e===Oi;)Oi=Ei[--Di],Ei[Di]=null,Ai=Ei[--Di],Ei[Di]=null,ki=Ei[--Di],Ei[Di]=null}function Fi(e,t){Ei[Di++]=ki,Ei[Di++]=Ai,Ei[Di++]=Oi,ki=t.id,Ai=t.overflow,Oi=e}var I=null,Ii=null,L=!1,Li=null,Ri=!1,zi=Error(i(519));function Bi(e){throw Ki(xi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),zi}function Vi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[mt]=e,t[ht]=r,n){case`dialog`:Y(`cancel`,t),Y(`close`,t);break;case`iframe`:case`object`:case`embed`:Y(`load`,t);break;case`video`:case`audio`:for(n=0;n<bd.length;n++)Y(bd[n],t);break;case`source`:Y(`error`,t);break;case`img`:case`image`:case`link`:Y(`error`,t),Y(`load`,t);break;case`details`:Y(`toggle`,t);break;case`input`:Y(`invalid`,t),Kt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Y(`invalid`,t);break;case`textarea`:Y(`invalid`,t),Xt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(Y(`beforetoggle`,t),Y(`toggle`,t)),r.onScroll!=null&&Y(`scroll`,t),r.onScrollEnd!=null&&Y(`scrollend`,t),r.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Bi(e,!0)}function Hi(e){for(I=e.return;I;)switch(I.tag){case 5:case 31:case 13:Ri=!1;return;case 27:case 3:Ri=!0;return;default:I=I.return}}function Ui(e){if(e!==I)return!1;if(!L)return Hi(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||qd(e.type,e.memoizedProps)),n=!n),n&&Ii&&Bi(e),Hi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ii=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ii=mf(e)}else t===27?(t=Ii,tf(e.type)?(e=pf,pf=null,Ii=e):Ii=t):Ii=I?ff(e.stateNode.nextSibling):null;return!0}function Wi(){Ii=I=null,L=!1}function Gi(){var e=Li;return e!==null&&(ru===null?ru=e:ru.push.apply(ru,e),Li=null),e}function Ki(e){Li===null?Li=[e]:Li.push(e)}var qi=fe(null),Ji=null,Yi=null;function Xi(e,t,n){A(qi,t._currentValue),t._currentValue=n}function Zi(e){e._currentValue=qi.current,k(qi)}function Qi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function $i(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Qi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Qi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ea(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Dr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ge.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[np]:e.push(np))}a=a.return}e!==null&&$i(t,e,n,r),t.flags|=262144}function ta(e){for(e=e.firstContext;e!==null;){if(!Dr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){Ji=e,Yi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function R(e){return ia(Ji,e)}function ra(e,t){return Ji===null&&na(e),ia(e,t)}function ia(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yi===null){if(e===null)throw Error(i(308));Yi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yi=Yi.next=t;return n}var aa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},oa=t.unstable_scheduleCallback,sa=t.unstable_NormalPriority,ca={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function la(){return{controller:new aa,data:new Map,refCount:0}}function ua(e){e.refCount--,e.refCount===0&&oa(sa,function(){e.controller.abort()})}var da=null,fa=0,pa=0,ma=null;function ha(e,t){if(da===null){var n=da=[];fa=0,pa=md(),ma={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return fa++,t.then(ga,ga),t}function ga(){if(--fa===0&&da!==null){ma!==null&&(ma.status=`fulfilled`);var e=da;da=null,pa=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _a(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var va=D.S;D.S=function(e,t){ou=Ne(),typeof t==`object`&&t&&typeof t.then==`function`&&ha(e,t),va!==null&&va(e,t)};var ya=fe(null);function ba(){var e=ya.current;return e===null?Ul.pooledCache:e}function xa(e,t){t===null?A(ya,ya.current):A(ya,t.pool)}function Sa(){var e=ba();return e===null?null:{parent:ca._currentValue,pool:e}}var Ca=Error(i(460)),wa=Error(i(474)),Ta=Error(i(542)),Ea={then:function(){}};function Da(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Oa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e;default:if(typeof t.status==`string`)t.then(on,on);else{if(e=Ul,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e}throw Aa=t,Ca}}function ka(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Aa=e,Ca):e}}var Aa=null;function ja(){if(Aa===null)throw Error(i(459));var e=Aa;return Aa=null,e}function Ma(e){if(e===Ca||e===Ta)throw Error(i(483))}var Na=null,Pa=0;function Fa(e){var t=Pa;return Pa+=1,Na===null&&(Na=[]),Oa(Na,e,t)}function z(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=pi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=_i(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ne&&ka(i)===t.type)?(t=a(t,n.props),z(t,n),t.return=e,t):(t=hi(n.type,n.key,n.props,null,e.mode,r),z(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=yi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=gi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=_i(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=hi(t.type,t.key,t.props,null,e.mode,n),z(n,t),n.return=e,n;case g:return t=yi(t,e.mode,n),t.return=e,t;case ne:return t=ka(t),f(e,t,n)}if(ce(t)||ae(t))return t=gi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Fa(t),n);if(t.$$typeof===C)return f(e,ra(e,t),n);Ia(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case ne:return n=ka(n),p(e,t,n,r)}if(ce(n)||ae(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Fa(n),r);if(n.$$typeof===C)return p(e,t,ra(e,n),r);Ia(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ne:return r=ka(r),m(e,t,n,r,i)}if(ce(r)||ae(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Fa(r),i);if(r.$$typeof===C)return m(e,t,n,ra(t,r),i);Ia(t,r)}return null}function _(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),L&&ji(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return L&&ji(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),L&&ji(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),L&&ji(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return L&&ji(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),L&&ji(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ne&&ka(l)===r.type){n(e,r.sibling),c=a(r,o.props),z(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===v?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),z(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=yi(o,e.mode,c),c.return=e,e=c}return s(e);case ne:return o=ka(o),b(e,r,o,c)}if(ce(o))return _(e,r,o,c);if(ae(o)){if(l=ae(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Fa(o),c);if(o.$$typeof===C)return b(e,r,ra(e,o),c);Ia(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Pa=0;var i=b(e,t,n,r);return Na=null,i}catch(t){if(t===Ca||t===Ta)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function Ga(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qa=!1;function Ja(){if(qa){var e=ma;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(W&p)===p:(r&p)===p){p!==0&&p===pa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ba=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Zl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=fe(null),$a=fe(0);function eo(e,t){e=Yl,A($a,e),A(Qa,t),Yl=e|t.baseLanes}function to(){A($a,Yl),A(Qa,Qa.current)}function no(){Yl=$a.current,k(Qa),k($a)}var ro=fe(null),io=null;function ao(e){var t=e.alternate;A(uo,uo.current&1),A(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){A(uo,uo.current),A(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(A(uo,uo.current),A(ro,e),io===null&&(io=e)):co(e)}function co(){A(uo,uo.current),A(ro,ro.current)}function lo(e){k(ro),io===e&&(io=null),k(uo)}var uo=fe(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lf(n)||uf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){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 po=0,B=null,mo=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return po=a,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Vs:Hs,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){D.H=Bs;var t=mo!==null&&mo.next!==null;if(po=0,ho=mo=B=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||ac||(e=e.dependencies,e!==null&&ta(e)&&(ac=!0))}function Do(e,t,n,r){B=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=Us,o=t(n,r)}while(_o);return o}function Oo(){var e=D.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(B.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}po=0,ho=mo=B=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?B.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(mo===null){var e=B.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?B.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw B.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?B.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=Oa(xo,e,t),t=B,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Vs:Hs),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===C)return R(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=B.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=B.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Po(),B.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=re;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),mo,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(W&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===pa&&(d=!0);else if((po&p)===p){u=u.next,p===pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,B.lanes|=p,Zl|=p;f=u.action,vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,B.lanes|=f,Zl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Dr(o,e.memoizedState)&&(ac=!0,d&&(n=ma,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=No(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Dr(o,t.memoizedState)||(ac=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ho(e,t,n){var r=B,a=No(),o=L;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Dr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,ac=!0),a=a.queue,fs(Go.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,ss(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),Ul===null)throw Error(i(349));o||po&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=B.updateQueue,t===null?(t=Po(),B.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dr(e,n)}catch{return!0}}function qo(e){var t=oi(e,2);t!==null&&K(t,e,2)}function Jo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){We(!0);try{n()}finally{We(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,mo,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,a){if(Ls(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};D.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=D.T,o={};D.T=o;try{var s=n(i,r),c=D.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),D.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(L){var n=Ul.formState;if(n!==null){a:{var r=B;if(L){if(Ii){b:{for(var i=Ii,a=Ri;i.nodeType!==8;){if(!a){i=null;break b}if(i=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ii=ff(i.nextSibling),r=i.data===`F!`;break a}}Bi(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Ps.bind(null,B,r),r.dispatch=n,r=Jo(!1),a=Is.bind(null,B,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,B,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function V(e){return is(No(),mo,e)}function is(e,t,n){if(t=Bo(e,t,ns)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===Ca?Ta:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(B.flags|=2048,ss(9,{destroy:void 0},as.bind(null,i,n),null)),[r,a,e]}function as(e,t){e.action=t}function os(e){var t=No(),n=mo;if(n!==null)return is(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ss(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=B.updateQueue,t===null&&(t=Po(),B.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function cs(){return No().memoizedState}function ls(e,t,n,r){var i=Mo();B.flags|=e,i.memoizedState=ss(1|t,{destroy:void 0},n,r===void 0?null:r)}function us(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&wo(r,mo.memoizedState.deps)?i.memoizedState=ss(t,a,n,r):(B.flags|=e,i.memoizedState=ss(1|t,a,n,r))}function ds(e,t){ls(8390656,8,e,t)}function fs(e,t){us(2048,8,e,t)}function ps(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=Po(),B.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ms(e){var t=No().memoizedState;return ps({ref:t,nextImpl:e}),function(){if(H&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function hs(e,t){return us(4,2,e,t)}function gs(e,t){return us(4,4,e,t)}function _s(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vs(e,t,n){n=n==null?null:n.concat([e]),us(4,4,_s.bind(null,t,e),n)}function ys(){}function bs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r}function Ss(e,t,n){return n===void 0||po&1073741824&&!(W&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),B.lanes|=e,Zl|=e,n)}function Cs(e,t,n,r){return Dr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(W&261930)?(ac=!0,e.memoizedState=n):(e=yu(),B.lanes|=e,Zl|=e,t):(e=Ss(e,n,r),Dr(e,t)||(ac=!0),e)}function ws(e,t,n,r,i){var a=O.p;O.p=a!==0&&8>a?a:8;var o=D.T,s={};D.T=s,Is(e,!1,t,n);try{var c=i(),l=D.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fs(e,t,_a(c,r),vu(e)):Fs(e,t,r,vu(e))}catch(n){Fs(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{O.p=a,o!==null&&s.types!==null&&(o.types=s.types),D.T=o}}function Ts(){}function Es(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ds(e).queue;ws(e,a,t,le,n===null?Ts:function(){return Os(e),n(r)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Os(e){var t=Ds(e);t.next===null&&(t=e.alternate.memoizedState),Fs(e,t.next.queue,{},vu())}function ks(){return R(np)}function As(){return No().memoizedState}function js(){return No().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(K(r,t,n),Ga(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function Ns(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ls(e)?Rs(t,n):(n=ai(e,t,n,r),n!==null&&(K(n,e,r),zs(n,t,r)))}function Ps(e,t,n){Fs(e,t,n,vu())}function Fs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))Rs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Dr(s,o))return ii(e,t,i,0),Ul===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return K(n,e,r),zs(n,t,r),!0}return!1}function Is(e,t,n,r){if(r={lane:2,revertLane:md(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(i(479))}else t=ai(e,n,r,2),t!==null&&K(t,e,2)}function Ls(e){var t=e.alternate;return e===B||t!==null&&t===B}function Rs(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}var Bs={readContext:R,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};Bs.useEffectEvent=Co;var Vs={readContext:R,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:R,useEffect:ds,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ls(4194308,4,_s.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){We(!0);try{n(t)}finally{We(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ns.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Ps.bind(null,B,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ys,useDeferredValue:function(e,t){return Ss(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=ws.bind(null,B,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=B,a=Mo();if(L){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ul===null)throw Error(i(349));W&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ds(Go.bind(null,r,o,e),[e]),r.flags|=2048,ss(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=Ul.identifierPrefix;if(L){var n=Ai,r=ki;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ks,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Is.bind(null,B,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=Ms.bind(null,B)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(H&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Hs={readContext:R,use:Io,useCallback:bs,useContext:R,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:zo,useRef:cs,useState:function(){return zo(Ro)},useDebugValue:ys,useDeferredValue:function(e,t){return Cs(No(),mo.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:As,useHostTransitionStatus:ks,useFormState:V,useActionState:V,useOptimistic:function(e,t){return Yo(No(),mo,e,t)},useMemoCache:Lo,useCacheRefresh:js};Hs.useEffectEvent=ms;var Us={readContext:R,use:Io,useCallback:bs,useContext:R,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Vo,useRef:cs,useState:function(){return Vo(Ro)},useDebugValue:ys,useDeferredValue:function(e,t){var n=No();return mo===null?Ss(n,e,t):Cs(n,mo.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:As,useHostTransitionStatus:ks,useFormState:os,useActionState:os,useOptimistic:function(e,t){var n=No();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,mo,e,t)},useMemoCache:Lo,useCacheRefresh:js};Us.useEffectEvent=ms;function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(K(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(K(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(K(t,e,n),Ga(t,e,n))}};function Ks(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Or(n,r)||!Or(i,a):!0}function qs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Gs.enqueueReplaceState(t,t.state,null)}function Js(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ys(e){$r(e)}function Xs(e){console.error(e)}function Zs(e){$r(e)}function Qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){Qs(e,t)},n}function tc(e){return e=Ua(e),e.tag=3,e}function nc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){$s(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){$s(t,n,r),typeof i!=`function`&&(lu===null?lu=new Set([this]):lu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function rc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ea(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?ju():n.alternate===null&&Xl===0&&(Xl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Xu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Xu(e,r,a)),!1}throw Error(i(435,n.tag))}return Xu(e,r,a),ju(),!1}if(L)return t=ro.current,t===null?(r!==zi&&(t=Error(i(423),{cause:r}),Ki(xi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=xi(r,n),a=ec(e.stateNode,r,a),Ka(e,a),Xl!==4&&(Xl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==zi&&(e=Error(i(422),{cause:r}),Ki(xi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=xi(o,n),nu===null?nu=[o]:nu.push(o),Xl!==4&&(Xl=2),t===null)return!0;r=xi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ec(n.stateNode,r,e),Ka(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(lu===null||!lu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=tc(a),nc(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var ic=Error(i(461)),ac=!1;function oc(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function sc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return na(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!ac?(Ao(e,t,i),jc(e,t,i)):(L&&s&&Ni(t),t.flags|=1,oc(e,t,r,i),t.child)}function cc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!fi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,lc(e,t,a,r,i)):(e=hi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Mc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Or:n,n(o,r)&&e.ref===t.ref)return jc(e,t,i)}return t.flags|=1,e=pi(a,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Or(a,r)&&e.ref===t.ref)if(ac=!1,t.pendingProps=r=a,Mc(e,i))e.flags&131072&&(ac=!0);else return t.lanes=e.lanes,jc(e,t,i)}return _c(e,t,n,r,i)}function uc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xa(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&xa(t,null),to(),co(t)):(xa(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return oc(e,t,i,n),t.child}function dc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fc(e,t,n,r,i){var a=ba();return a=a===null?null:{parent:ca._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&xa(t,null),to(),so(t),e!==null&&ea(e,t,r,!0),t.childLanes=i,null}function pc(e,t){return t=Ec({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mc(e,t,n){return Ra(t,e.child,null,n),e=pc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function hc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(L){if(r.mode===`hidden`)return e=pc(t,r),t.lanes=536870912,dc(null,e);if(oo(t),(e=Ii)?(e=cf(e,Ri),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oi===null?null:{id:ki,overflow:Ai},retryLane:536870912,hydrationErrors:null},n=vi(e),n.return=t,t.child=n,I=t,Ii=null)):e=null,e===null)throw Bi(t);return t.lanes=536870912,null}return pc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a)if(t.flags&256)t.flags&=-257,t=mc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ac||ea(e,t,n,!1),a=(n&e.childLanes)!==0,ac||a){if(r=Ul,r!==null&&(s=ct(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,oi(e,s),K(r,e,s),ic;ju(),t=mc(e,t,n)}else e=o.treeContext,Ii=ff(s.nextSibling),I=t,L=!0,Li=null,Ri=!1,e!==null&&Fi(t,e),t=pc(t,r),t.flags|=4096;return t}return e=pi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function gc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _c(e,t,n,r,i){return na(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!ac?(Ao(e,t,i),jc(e,t,i)):(L&&r&&Ni(t),t.flags|=1,oc(e,t,n,i),t.child)}function vc(e,t,n,r,i,a){return na(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!ac?(Ao(e,t,a),jc(e,t,a)):(L&&r&&Ni(t),t.flags|=1,oc(e,t,n,a),t.child)}function yc(e,t,n,r,i){if(na(t),t.stateNode===null){var a=li,o=n.contextType;typeof o==`object`&&o&&(a=R(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Gs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?R(o):li,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ws(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Gs.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Js(n,s);a.props=c;var l=a.context,u=n.contextType;o=li,typeof u==`object`&&u&&(o=R(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&qs(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Ws(t,n,d,r),l=t.memoizedState),(c=Ba||Ks(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),o=t.memoizedProps,u=Js(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=li,typeof l==`object`&&l&&(c=R(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&qs(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&ta(e.dependencies)?(typeof s==`function`&&(Ws(t,n,s,r),p=t.memoizedState),(u=Ba||Ks(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ta(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,gc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):oc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=jc(e,t,i),e}function bc(e,t,n,r){return Wi(),t.flags|=256,oc(e,t,n,r),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:Sa()}}function Cc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=eu),e}function wc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(uo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(L){if(a?ao(t):co(t),(e=Ii)?(e=cf(e,Ri),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oi===null?null:{id:ki,overflow:Ai},retryLane:536870912,hydrationErrors:null},n=vi(e),n.return=t,t.child=n,I=t,Ii=null)):e=null,e===null)throw Bi(t);return uf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=Ec({mode:`hidden`,children:c},a),r=gi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(null,r)):(ao(t),Tc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=Ec({mode:`visible`,children:r.children},a),c=gi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,t=dc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),uf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ki({value:r,source:null,stack:null}),t=Dc(e,t,n)}else if(ac||ea(e,t,n,!1),s=(n&e.childLanes)!==0,ac||s){if(s=Ul,s!==null&&(r=ct(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,oi(e,r),K(s,e,r),ic;lf(c)||ju(),t=Dc(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ii=ff(c.nextSibling),I=t,L=!0,Li=null,Ri=!1,e!==null&&Fi(t,e),t=Tc(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=pi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=gi(c,a,n,null),c.flags|=2):c=pi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,dc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sc(n):(a=c.cachePool,a===null?a=Sa():(l=ca._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=pi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Tc(e,t){return t=Ec({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ec(e,t){return e=di(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ra(t,e.child,null,n),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qi(e.return,t,n)}function kc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,A(uo,o),oc(e,t,r,n),r=L?Ti:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oc(e,n,t);else if(e.tag===19)Oc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),kc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}kc(t,!0,n,null,a,r);break;case`together`:kc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function jc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ta(e))):!0}function Nc(e,t,n){switch(t.tag){case 3:_e(t,t.stateNode.containerInfo),Xi(t,ca,e.memoizedState.cache),Wi();break;case 27:case 5:ye(t);break;case 4:_e(t,t.stateNode.containerInfo);break;case 10:Xi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=jc(e,t,n),e===null?null:e.sibling):wc(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(uo,uo.current),r)break;return null;case 22:return t.lanes=0,uc(e,t,n,t.pendingProps);case 24:Xi(t,ca,e.memoizedState.cache)}return jc(e,t,n)}function Pc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ac=!0;else{if(!Mc(e,n)&&!(t.flags&128))return ac=!1,Nc(e,t,n);ac=!!(e.flags&131072)}else ac=!1,L&&t.flags&1048576&&Mi(t,Ti,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e==`function`)fi(e)?(r=Js(e,r),t.tag=1,t=yc(null,t,e,r,n)):(t.tag=0,t=_c(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=sc(null,t,e,r,n);break a}else if(a===te){t.tag=14,t=cc(null,t,e,r,n);break a}}throw t=se(e)||e,Error(i(306,t,``))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Js(r,t.pendingProps),yc(e,t,r,a,n);case 3:a:{if(_e(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Xi(t,ca,r),r!==o.cache&&$i(t,[ca],n,!0),Ja(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=bc(e,t,r,n);break a}else if(r!==a){a=xi(Error(i(424)),t),Ki(a),t=bc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ii=ff(e.firstChild),I=t,L=!0,Li=null,Ri=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wi(),r===a){t=jc(e,t,n);break a}oc(e,t,r,n)}t=t.child}return t;case 26:return gc(e,t),e===null?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(n=t.type,e=t.pendingProps,r=Wd(he.current).createElement(n),r[mt]=t,r[ht]=e,Rd(r,n,e),Et(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&L&&(r=t.stateNode=gf(t.type,t.pendingProps,he.current),I=t,Ri=!0,a=Ii,tf(t.type)?(pf=a,Ii=ff(r.firstChild)):Ii=a),oc(e,t,t.pendingProps.children,n),gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((a=r=Ii)&&(r=of(r,t.type,t.pendingProps,Ri),r===null?a=!1:(t.stateNode=r,I=t,Ii=ff(r.firstChild),Ri=!1,a=!0)),a||Bi(t)),ye(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(a,o)?r=null:s!==null&&qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),np._currentValue=a),gc(e,t),oc(e,t,r,n),t.child;case 6:return e===null&&L&&((e=n=Ii)&&(n=sf(n,t.pendingProps,Ri),n===null?e=!1:(t.stateNode=n,I=t,Ii=null,e=!0)),e||Bi(t)),null;case 13:return wc(e,t,n);case 4:return _e(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):oc(e,t,r,n),t.child;case 11:return sc(e,t,t.type,t.pendingProps,n);case 7:return oc(e,t,t.pendingProps,n),t.child;case 8:return oc(e,t,t.pendingProps.children,n),t.child;case 12:return oc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Xi(t,t.type,r.value),oc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,na(t),a=R(a),r=r(a),t.flags|=1,oc(e,t,r,n),t.child;case 14:return cc(e,t,t.type,t.pendingProps,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 19:return Ac(e,t,n);case 31:return hc(e,t,n);case 22:return uc(e,t,n,t.pendingProps);case 24:return na(t),r=R(ca),e===null?(a=ba(),a===null&&(a=Ul,o=la(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Xi(t,ca,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Xi(t,ca,r),r!==a.cache&&$i(t,[ca],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Xi(t,ca,r))),oc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Fc(e){e.flags|=4}function Ic(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ou())e.flags|=8192;else throw Aa=Ea,wa}else e.flags&=-16777217}function Lc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jf(t))if(Ou())e.flags|=8192;else throw Aa=Ea,wa}function Rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:nt(),e.lanes|=t,tu|=t)}function zc(e,t){if(!L)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 Bc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vc(e,t,n){var r=t.pendingProps;switch(Pi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bc(t),null;case 1:return Bc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Zi(ca),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?Fc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gi())),Bc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Fc(t),o===null?(Bc(t),Ic(t,a,null,r,n)):(Bc(t),Lc(t,o))):o?o===e.memoizedState?(Bc(t),t.flags&=-16777217):(Fc(t),Bc(t),Lc(t,o)):(e=e.memoizedProps,e!==r&&Fc(t),Bc(t),Ic(t,a,e,r,n)),null;case 27:if(be(t),n=he.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Bc(t),null}e=pe.current,Ui(t)?Vi(t,e):(e=gf(a,r,n),t.stateNode=e,Fc(t))}return Bc(t),null;case 5:if(be(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Bc(t),null}if(o=pe.current,Ui(t))Vi(t,o);else{var s=Wd(he.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[mt]=t,o[ht]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Rd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Fc(t)}}return Bc(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=he.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=I,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Bi(t,!0)}else e=Wd(e).createTextNode(r),e[mt]=t,t.stateNode=e}return Bc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ui(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[mt]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bc(t),e=!1}else n=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return Bc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[mt]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bc(t),a=!1}else a=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Rc(t,t.updateQueue),Bc(t),null);case 4:return ve(),e===null&&Td(t.stateNode.containerInfo),Bc(t),null;case 10:return Zi(t.type),Bc(t),null;case 19:if(k(uo),r=t.memoizedState,r===null)return Bc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)zc(r,!1);else{if(Xl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,zc(r,!1),e=o.updateQueue,t.updateQueue=e,Rc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return A(uo,uo.current&1|2),L&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ne()>su&&(t.flags|=128,a=!0,zc(r,!1),t.lanes=4194304)}else{if(!a)if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Rc(t,e),zc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!L)return Bc(t),null}else 2*Ne()-r.renderingStartTime>su&&n!==536870912&&(t.flags|=128,a=!0,zc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Bc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ne(),e.sibling=null,n=uo.current,A(uo,a?n&1|2:n&1),L&&ji(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Bc(t),t.subtreeFlags&6&&(t.flags|=8192)):Bc(t),n=t.updateQueue,n!==null&&Rc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&k(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zi(ca),Bc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Hc(e,t){switch(Pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(ca),ve(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return be(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(uo),null;case 4:return ve(),null;case 10:return Zi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&k(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zi(ca),null;case 25:return null;default:return null}}function Uc(e,t){switch(Pi(t),t.tag){case 3:Zi(ca),ve();break;case 26:case 27:case 5:be(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:k(uo);break;case 10:Zi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&k(ya);break;case 24:Zi(ca)}}function Wc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Yu(t,t.return,e)}}function Gc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Yu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Yu(t,t.return,e)}}function Kc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){Yu(e,e.return,t)}}}function qc(e,t,n){n.props=Js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Yu(e,t,n)}}function Jc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Yu(e,t,n)}}function Yc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Yu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Yu(e,t,n)}else n.current=null}function Xc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Yu(e,e.return,t)}}function Zc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[ht]=t}catch(t){Yu(e,e.return,t)}}function Qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function $c(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(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.tag===27&&tf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(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&&(r===27&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[mt]=e,t[ht]=n}catch(t){Yu(e,e.return,t)}}var rl=!1,il=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,sl=null;function cl(e,t){if(e=e.containerInfo,Hd=dp,e=Mr(e),Nr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},dp=!1,sl=t;sl!==null;)if(t=sl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,sl=e;else for(;sl!==null;){switch(t=sl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Js(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Yu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)af(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:af(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,sl=e;break}sl=t.return}}function ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:wl(e,n),r&4&&Wc(5,n);break;case 1:if(wl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Yu(n,n.return,e)}else{var i=Js(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Yu(n,n.return,e)}}r&64&&Kc(n),r&512&&Jc(n,n.return);break;case 3:if(wl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Za(e,t)}catch(e){Yu(n,n.return,e)}}break;case 27:t===null&&r&4&&nl(n);case 26:case 5:wl(e,n),t===null&&r&4&&Xc(n),r&512&&Jc(n,n.return);break;case 12:wl(e,n);break;case 31:wl(e,n),r&4&&hl(e,n);break;case 13:wl(e,n),r&4&&gl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$u.bind(null,n),df(e,n))));break;case 22:if(r=n.memoizedState!==null||rl,!r){t=t!==null&&t.memoizedState!==null||il,i=rl;var a=il;rl=r,(il=t)&&!a?El(e,n,(n.subtreeFlags&8772)!=0):wl(e,n),rl=i,il=a}break;case 30:break;default:wl(e,n)}}function ul(e){var t=e.alternate;t!==null&&(e.alternate=null,ul(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&St(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var dl=null,fl=!1;function pl(e,t,n){for(n=n.child;n!==null;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount==`function`)try{Ue.onCommitFiberUnmount(He,n)}catch{}switch(n.tag){case 26:il||Yc(n,t),pl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:il||Yc(n,t);var r=dl,i=fl;tf(n.type)&&(dl=n.stateNode,fl=!1),pl(e,t,n),_f(n.stateNode),dl=r,fl=i;break;case 5:il||Yc(n,t);case 6:if(r=dl,i=fl,dl=null,pl(e,t,n),dl=r,fl=i,dl!==null)if(fl)try{(dl.nodeType===9?dl.body:dl.nodeName===`HTML`?dl.ownerDocument.body:dl).removeChild(n.stateNode)}catch(e){Yu(n,t,e)}else try{dl.removeChild(n.stateNode)}catch(e){Yu(n,t,e)}break;case 18:dl!==null&&(fl?(e=dl,nf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Lp(e)):nf(dl,n.stateNode));break;case 4:r=dl,i=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=i;break;case 0:case 11:case 14:case 15:Gc(2,n,t),il||Gc(4,n,t),pl(e,t,n);break;case 1:il||(Yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&qc(n,t,r)),pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:il=(r=il)||n.memoizedState!==null,pl(e,t,n),il=r;break;default:pl(e,t,n)}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Lp(e)}catch(e){Yu(t,t.return,e)}}}function gl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Lp(e)}catch(e){Yu(t,t.return,e)}}function _l(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ol),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ol),t;default:throw Error(i(435,e.tag))}}function vl(e,t){var n=_l(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ed.bind(null,e,t);t.then(r,r)}})}function yl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(tf(c.type)){dl=c.stateNode,fl=!1;break a}break;case 5:dl=c.stateNode,fl=!1;break a;case 3:case 4:dl=c.stateNode.containerInfo,fl=!0;break a}c=c.return}if(dl===null)throw Error(i(160));ml(o,s,a),dl=null,fl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xl(t,e),t=t.sibling}var bl=null;function xl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yl(t,e),Sl(e),r&4&&(Gc(3,e,e.return),Wc(3,e),Gc(5,e,e.return));break;case 1:yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),r&64&&rl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=bl;if(yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[xt]||o[mt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Rd(o,r,n),o[mt]=e,Et(o),r=o;break a;case`link`:var s=Gf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Gf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[mt]=e,Et(o),r=o}e.stateNode=r}else Kf(a,e.type,e.stateNode);else e.stateNode=Bf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Kf(a,e.type,e.stateNode):Bf(a,r,e.memoizedProps))}break;case 27:yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),n!==null&&r&4&&Zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yl(t,e),Sl(e),r&512&&(il||n===null||Yc(n,n.return)),e.flags&32){a=e.stateNode;try{Zt(a,``)}catch(t){Yu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Zc(e,a,n===null?a:n.memoizedProps)),r&1024&&(al=!0);break;case 6:if(yl(t,e),Sl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Yu(e,e.return,t)}}break;case 3:if(Wf=null,a=bl,bl=bf(t.containerInfo),yl(t,e),bl=a,Sl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(t){Yu(e,e.return,t)}al&&(al=!1,Cl(e));break;case 4:r=bl,bl=bf(e.stateNode.containerInfo),yl(t,e),Sl(e),bl=r;break;case 12:yl(t,e),Sl(e);break;case 31:yl(t,e),Sl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 13:yl(t,e),Sl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(au=Ne()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=rl,d=il;if(rl=u||a,il=d||l,yl(t,e),il=d,rl=u,Sl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||rl||il||Tl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Yu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Yu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?rf(m,!0):rf(l.stateNode,!1)}catch(e){Yu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,vl(e,n))));break;case 19:yl(t,e),Sl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 30:break;case 21:break;default:yl(t,e),Sl(e)}}function Sl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Qc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;tl(e,$c(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Zt(o,``),n.flags&=-33),tl(e,$c(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;el(e,$c(e),s);break;default:throw Error(i(161))}}catch(t){Yu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ll(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gc(4,t,t.return),Tl(t);break;case 1:Yc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&qc(t,t.return,n),Tl(t);break;case 27:_f(t.stateNode);case 26:case 5:Yc(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function El(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:El(i,a,n),Wc(4,a);break;case 1:if(El(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Yu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Xa(c[i],s)}catch(e){Yu(r,r.return,e)}}n&&o&64&&Kc(a),Jc(a,a.return);break;case 27:nl(a);case 26:case 5:El(i,a,n),n&&r===null&&o&4&&Xc(a),Jc(a,a.return);break;case 12:El(i,a,n);break;case 31:El(i,a,n),n&&o&4&&hl(i,a);break;case 13:El(i,a,n),n&&o&4&&gl(i,a);break;case 22:a.memoizedState===null&&El(i,a,n),Jc(a,a.return);break;case 30:break;default:El(i,a,n)}t=t.sibling}}function Dl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ua(n))}function Ol(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e))}function kl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Al(e,t,n,r),t=t.sibling}function Al(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:kl(e,t,n,r),i&2048&&Wc(9,t);break;case 1:kl(e,t,n,r);break;case 3:kl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e)));break;case 12:if(i&2048){kl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Yu(t,t.return,e)}}else kl(e,t,n,r);break;case 31:kl(e,t,n,r);break;case 13:kl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?kl(e,t,n,r):(a._visibility|=2,jl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?kl(e,t,n,r):Ml(e,t),i&2048&&Dl(o,t);break;case 24:kl(e,t,n,r),i&2048&&Ol(t.alternate,t);break;default:kl(e,t,n,r)}}function jl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:jl(a,o,s,c,i),Wc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,jl(a,o,s,c,i)):u._visibility&2?jl(a,o,s,c,i):Ml(a,o),i&&l&2048&&Dl(o.alternate,o);break;case 24:jl(a,o,s,c,i),i&&l&2048&&Ol(o.alternate,o);break;default:jl(a,o,s,c,i)}t=t.sibling}}function Ml(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ml(n,r),i&2048&&Dl(r.alternate,r);break;case 24:Ml(n,r),i&2048&&Ol(r.alternate,r);break;default:Ml(n,r)}t=t.sibling}}var Nl=8192;function Pl(e,t,n){if(e.subtreeFlags&Nl)for(e=e.child;e!==null;)Fl(e,t,n),e=e.sibling}function Fl(e,t,n){switch(e.tag){case 26:Pl(e,t,n),e.flags&Nl&&e.memoizedState!==null&&Yf(n,bl,e.memoizedState,e.memoizedProps);break;case 5:Pl(e,t,n);break;case 3:case 4:var r=bl;bl=bf(e.stateNode.containerInfo),Pl(e,t,n),bl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Nl,Nl=16777216,Pl(e,t,n),Nl=r):Pl(e,t,n));break;default:Pl(e,t,n)}}function Il(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,Bl(r,e)}Il(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rl(e),e=e.sibling}function Rl(e){switch(e.tag){case 0:case 11:case 15:Ll(e),e.flags&2048&&Gc(9,e,e.return);break;case 3:Ll(e);break;case 12:Ll(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zl(e)):Ll(e);break;default:Ll(e)}}function zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,Bl(r,e)}Il(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gc(8,t,t.return),zl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zl(t));break;default:zl(t)}e=e.sibling}}function Bl(e,t){for(;sl!==null;){var n=sl;switch(n.tag){case 0:case 11:case 15:Gc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ua(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,sl=r;else a:for(n=e;sl!==null;){r=sl;var i=r.sibling,a=r.return;if(ul(r),r===n){sl=null;break a}if(i!==null){i.return=a,sl=i;break a}sl=a}}}var Vl={getCacheForType:function(e){var t=R(ca),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return R(ca).controller.signal}},Hl=typeof WeakMap==`function`?WeakMap:Map,H=0,Ul=null,U=null,W=0,Wl=0,Gl=null,Kl=!1,ql=!1,Jl=!1,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=null,ru=null,iu=!1,au=0,ou=0,su=1/0,cu=null,lu=null,uu=0,du=null,fu=null,pu=0,mu=0,hu=null,gu=null,_u=0,G=null;function vu(){return H&2&&W!==0?W&-W:D.T===null?dt():md()}function yu(){if(eu===0)if(!(W&536870912)||L){var e=Xe;Xe<<=1,!(Xe&3932160)&&(Xe=262144),eu=e}else eu=536870912;return e=ro.current,e!==null&&(e.flags|=32),eu}function K(e,t,n){(e===Ul&&(Wl===2||Wl===9)||e.cancelPendingCommit!==null)&&(Eu(e,0),Cu(e,W,eu,!1)),it(e,n),(!(H&2)||e!==Ul)&&(e===Ul&&(!(H&2)&&(Ql|=n),Xl===4&&Cu(e,W,eu,!1)),od(e))}function bu(e,t,n){if(H&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||et(e,t),a=r?Pu(e,t):Mu(e,t,!0),o=r;do{if(a===0){ql&&!r&&Cu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Su(n)){a=Mu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=nu;var l=c.current.memoizedState.isDehydrated;if(l&&(Eu(c,s).flags|=256),s=Mu(c,s,!1),s!==2){if(Jl&&!l){c.errorRecoveryDisabledLanes|=o,Ql|=o,a=4;break a}o=ru,ru=a,o!==null&&(ru===null?ru=o:ru.push.apply(ru,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Eu(e,0),Cu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Cu(r,t,eu,!Kl);break a;case 2:ru=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=au+300-Ne(),10<a)){if(Cu(r,t,eu,!Kl),$e(r,0,!0)!==0)break a;pu=t,r.timeoutHandle=Xd(xu.bind(null,r,n,ru,cu,iu,t,eu,Ql,tu,Kl,o,`Throttled`,-0,0),a);break a}xu(r,n,ru,cu,iu,t,eu,Ql,tu,Kl,o,null,-0,0)}}break}while(1);od(e)}function xu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Fl(t,a,d);var m=(a&62914560)===a?au-Ne():(a&4194048)===a?ou-Ne():0;if(m=Zf(d,m),m!==null){pu=a,e.cancelPendingCommit=m(Vu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Cu(e,a,o,!l);return}}Vu(e,t,a,n,r,i,o,s,c)}function Su(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Dr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cu(e,t,n,r){t&=~$l,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ge(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ot(e,n,t)}function wu(){return H&6?!0:(sd(0,!1),!1)}function Tu(){if(U!==null){if(Wl===0)var e=U.return;else e=U,Yi=Ji=null,jo(e),Na=null,Pa=0,e=U;for(;e!==null;)Uc(e.alternate,e),e=e.return;U=null}}function Eu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),pu=0,Tu(),Ul=e,U=n=pi(e.current,null),W=t,Wl=0,Gl=null,Kl=!1,ql=et(e,t),Jl=!1,tu=eu=$l=Ql=Zl=Xl=0,ru=nu=null,iu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ge(r),a=1<<i;t|=e[i],r&=~a}return Yl=t,ri(),n}function Du(e,t){B=null,D.H=Bs,t===Ca||t===Ta?(t=ja(),Wl=3):t===wa?(t=ja(),Wl=4):Wl=t===ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Gl=t,U===null&&(Xl=1,Qs(e,xi(t,e.current)))}function Ou(){var e=ro.current;return e===null?!0:(W&4194048)===W?io===null:(W&62914560)===W||W&536870912?e===io:!1}function ku(){var e=D.H;return D.H=Bs,e===null?Bs:e}function Au(){var e=D.A;return D.A=Vl,e}function ju(){Xl=4,Kl||(W&4194048)!==W&&ro.current!==null||(ql=!0),!(Zl&134217727)&&!(Ql&134217727)||Ul===null||Cu(Ul,W,eu,!1)}function Mu(e,t,n){var r=H;H|=2;var i=ku(),a=Au();(Ul!==e||W!==t)&&(cu=null,Eu(e,t)),t=!1;var o=Xl;a:do try{if(Wl!==0&&U!==null){var s=U,c=Gl;switch(Wl){case 8:Tu(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=Wl;if(Wl=0,Gl=null,Ru(e,s,c,l),n&&ql){o=0;break a}break;default:l=Wl,Wl=0,Gl=null,Ru(e,s,c,l)}}Nu(),o=Xl;break}catch(t){Du(e,t)}while(1);return t&&e.shellSuspendCounter++,Yi=Ji=null,H=r,D.H=i,D.A=a,U===null&&(Ul=null,W=0,ri()),o}function Nu(){for(;U!==null;)Iu(U)}function Pu(e,t){var n=H;H|=2;var r=ku(),a=Au();Ul!==e||W!==t?(cu=null,su=Ne()+500,Eu(e,t)):ql=et(e,t);a:do try{if(Wl!==0&&U!==null){t=U;var o=Gl;b:switch(Wl){case 1:Wl=0,Gl=null,Ru(e,t,o,1);break;case 2:case 9:if(Da(o)){Wl=0,Gl=null,Lu(t);break}t=function(){Wl!==2&&Wl!==9||Ul!==e||(Wl=7),od(e)},o.then(t,t);break a;case 3:Wl=7;break a;case 4:Wl=5;break a;case 7:Da(o)?(Wl=0,Gl=null,Lu(t)):(Wl=0,Gl=null,Ru(e,t,o,7));break;case 5:var s=null;switch(U.tag){case 26:s=U.memoizedState;case 5:case 27:var c=U;if(s?Jf(s):c.stateNode.complete){Wl=0,Gl=null;var l=c.sibling;if(l!==null)U=l;else{var u=c.return;u===null?U=null:(U=u,zu(u))}break b}}Wl=0,Gl=null,Ru(e,t,o,5);break;case 6:Wl=0,Gl=null,Ru(e,t,o,6);break;case 8:Tu(),Xl=6;break a;default:throw Error(i(462))}}Fu();break}catch(t){Du(e,t)}while(1);return Yi=Ji=null,D.H=r,D.A=a,H=n,U===null?(Ul=null,W=0,ri(),Xl):0}function Fu(){for(;U!==null&&!je();)Iu(U)}function Iu(e){var t=Pc(e.alternate,e,Yl);e.memoizedProps=e.pendingProps,t===null?zu(e):U=t}function Lu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=vc(n,t,t.pendingProps,t.type,void 0,W);break;case 11:t=vc(n,t,t.pendingProps,t.type.render,t.ref,W);break;case 5:jo(t);default:Uc(n,t),t=U=mi(t,Yl),t=Pc(n,t,Yl)}e.memoizedProps=e.pendingProps,t===null?zu(e):U=t}function Ru(e,t,n,r){Yi=Ji=null,jo(t),Na=null,Pa=0;var i=t.return;try{if(rc(e,i,t,n,W)){Xl=1,Qs(e,xi(n,e.current)),U=null;return}}catch(t){if(i!==null)throw U=i,t;Xl=1,Qs(e,xi(n,e.current)),U=null;return}t.flags&32768?(L||r===1?e=!0:ql||W&536870912?e=!1:(Kl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bu(t,e)):zu(t)}function zu(e){var t=e;do{if(t.flags&32768){Bu(t,Kl);return}e=t.return;var n=Vc(t.alternate,t,Yl);if(n!==null){U=n;return}if(t=t.sibling,t!==null){U=t;return}U=t=e}while(t!==null);Xl===0&&(Xl=5)}function Bu(e,t){do{var n=Hc(e.alternate,e);if(n!==null){n.flags&=32767,U=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){U=e;return}U=e=n}while(e!==null);Xl=6,U=null}function Vu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Ku();while(uu!==0);if(H&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ni,at(e,n,o,s,c,l),e===Ul&&(U=Ul=null,W=0),fu=t,du=e,pu=n,mu=o,hu=a,gu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,td(Le,function(){return qu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=D.T,D.T=null,a=O.p,O.p=2,s=H,H|=4;try{cl(e,t,n)}finally{H=s,O.p=a,D.T=r}}uu=1,Hu(),Uu(),Wu()}}function Hu(){if(uu===1){uu=0;var e=du,t=fu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=H;H|=4;try{xl(t,e);var a=Ud,o=Mr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&jr(s.ownerDocument.documentElement,s)){if(c!==null&&Nr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Ar(s,h),v=Ar(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}dp=!!Hd,Ud=Hd=null}finally{H=i,O.p=r,D.T=n}}e.current=t,uu=2}}function Uu(){if(uu===2){uu=0;var e=du,t=fu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=H;H|=4;try{ll(e,t.alternate,t)}finally{H=i,O.p=r,D.T=n}}uu=3}}function Wu(){if(uu===4||uu===3){uu=0,Me();var e=du,t=fu,n=pu,r=gu;t.subtreeFlags&10256||t.flags&10256?uu=5:(uu=0,fu=du=null,Gu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(lu=null),ut(n),t=t.stateNode,Ue&&typeof Ue.onCommitFiberRoot==`function`)try{Ue.onCommitFiberRoot(He,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=D.T,i=O.p,O.p=2,D.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{D.T=t,O.p=i}}pu&3&&Ku(),od(e),i=e.pendingLanes,n&261930&&i&42?e===G?_u++:(_u=0,G=e):_u=0,sd(0,!1)}}function Gu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function Ku(){return Hu(),Uu(),Wu(),qu()}function qu(){if(uu!==5)return!1;var e=du,t=mu;mu=0;var n=ut(pu),r=D.T,a=O.p;try{O.p=32>n?32:n,D.T=null,n=hu,hu=null;var o=du,s=pu;if(uu=0,fu=du=null,pu=0,H&6)throw Error(i(331));var c=H;if(H|=4,Rl(o.current),Al(o,o.current,s,n),H=c,sd(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot==`function`)try{Ue.onPostCommitFiberRoot(He,o)}catch{}return!0}finally{O.p=a,D.T=r,Gu(e,t)}}function Ju(e,t,n){t=xi(n,t),t=ec(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(it(e,2),od(e))}function Yu(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(lu===null||!lu.has(r))){e=xi(n,e),n=tc(2),r=Wa(t,n,2),r!==null&&(nc(n,r,t,e),it(r,2),od(r));break}}t=t.return}}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Jl=!0,i.add(n),e=Zu.bind(null,e,t,n),t.then(e,e))}function Zu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(W&n)===n&&(Xl===4||Xl===3&&(W&62914560)===W&&300>Ne()-au?!(H&2)&&Eu(e,0):$l|=n,tu===W&&(tu=0)),od(e)}function Qu(e,t){t===0&&(t=nt()),e=oi(e,t),e!==null&&(it(e,t),od(e))}function $u(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qu(e,n)}function ed(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Qu(e,n)}function td(e,t){return ke(e,t)}var q=null,nd=null,rd=!1,id=!1,ad=!1,J=0;function od(e){e!==nd&&e.next===null&&(nd===null?q=nd=e:nd=nd.next=e),id=!0,rd||(rd=!0,pd())}function sd(e,t){if(!ad&&id){ad=!0;do for(var n=!1,r=q;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ge(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,fd(r,a))}else a=W,a=$e(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||et(r,a)||(n=!0,fd(r,a));r=r.next}while(n);ad=!1}}function cd(){ld()}function ld(){id=rd=!1;var e=0;J!==0&&Yd()&&(e=J);for(var t=Ne(),n=null,r=q;r!==null;){var i=r.next,a=ud(r,t);a===0?(r.next=null,n===null?q=i:n.next=i,i===null&&(nd=n)):(n=r,(e!==0||a&3)&&(id=!0)),r=i}uu!==0&&uu!==5||sd(e,!1),J!==0&&(J=0)}function ud(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ge(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=tt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=W,n=$e(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Wl===2||Wl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ae(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||et(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ae(r),ut(n)){case 2:case 8:n=Ie;break;case 32:n=Le;break;case 268435456:n=ze;break;default:n=Le}return r=dd.bind(null,e),n=ke(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ae(r),e.callbackPriority=2,e.callbackNode=null,2}function dd(e,t){if(uu!==0&&uu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ku()&&e.callbackNode!==n)return null;var r=W;return r=$e(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(bu(e,r,t),ud(e,Ne()),e.callbackNode!=null&&e.callbackNode===n?dd.bind(null,e):null)}function fd(e,t){if(Ku())return null;bu(e,t,!0)}function pd(){$d(function(){H&6?ke(Fe,cd):ld()})}function md(){if(J===0){var e=pa;e===0&&(e=Ye,Ye<<=1,!(Ye&261888)&&(Ye=256)),J=e}return J}function hd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:an(``+e)}function gd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function _d(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=hd((i[ht]||null).action),o=r.submitter;o&&(t=(t=o[ht]||null)?hd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new En(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(J!==0){var e=o?gd(i,o):new FormData(i);Es(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?gd(i,o):new FormData(i),Es(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var vd=0;vd<Zr.length;vd++){var yd=Zr[vd];Qr(yd.toLowerCase(),`on`+(yd[0].toUpperCase()+yd.slice(1)))}Qr(Wr,`onAnimationEnd`),Qr(Gr,`onAnimationIteration`),Qr(Kr,`onAnimationStart`),Qr(`dblclick`,`onDoubleClick`),Qr(`focusin`,`onFocus`),Qr(`focusout`,`onBlur`),Qr(F,`onTransitionRun`),Qr(qr,`onTransitionStart`),Qr(Jr,`onTransitionCancel`),Qr(Yr,`onTransitionEnd`),At(`onMouseEnter`,[`mouseout`,`mouseover`]),At(`onMouseLeave`,[`mouseout`,`mouseover`]),At(`onPointerEnter`,[`pointerout`,`pointerover`]),At(`onPointerLeave`,[`pointerout`,`pointerover`]),kt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),kt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),kt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),kt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),kt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),kt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var bd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),xd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(bd));function Sd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){$r(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){$r(e)}i.currentTarget=null,a=c}}}}function Y(e,t){var n=t[_t];n===void 0&&(n=t[_t]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,Dt.forEach(function(t){t!==`selectionchange`&&(xd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(vp(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}n=i.bind(null,t,n,e),i=void 0,!hn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Ct(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}pn(function(){var r=a,i=cn(n),s=[];a:{var c=Xr.get(e);if(c!==void 0){var l=En,u=e;switch(e){case`keypress`:if(xn(n)===0)break a;case`keydown`:case`keyup`:l=Wn;break;case`focusin`:u=`focus`,l=Fn;break;case`focusout`:u=`blur`,l=Fn;break;case`beforeblur`:case`afterblur`:l=Fn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Nn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Pn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Kn;break;case Wr:case Gr:case Kr:l=In;break;case Yr:l=qn;break;case`scroll`:case`scrollend`:l=On;break;case`wheel`:l=Jn;break;case`copy`:case`cut`:case`paste`:l=Ln;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Gn;break;case`toggle`:case`beforetoggle`:l=Yn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=mn(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==sn&&(u=n.relatedTarget||n.fromElement)&&(Ct(u)||u[gt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Ct(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Nn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Gn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Tt(l),h=u==null?c:Tt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,Ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(s,c,l,d,!1),u!==null&&f!==null&&jd(s,f,u,d,!0)}}a:{if(c=r?Tt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=hr;else if(lr(c))if(gr)v=Tr;else{v=Cr;var y=Sr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&tn(r.elementType)&&(v=hr):v=wr;if(v&&=v(e,r)){ur(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&qt(c,`number`,c.value)}switch(y=r?Tt(r):window,e){case`focusin`:(lr(y)||y.contentEditable===`true`)&&(Fr=y,Ir=r,Lr=null);break;case`focusout`:Lr=Ir=Fr=null;break;case`mousedown`:Rr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Rr=!1,zr(s,n,i);break;case`selectionchange`:if(Pr)break;case`keydown`:case`keyup`:zr(s,n,i)}var b;if(Zn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else ar?rr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(er&&n.locale!==`ko`&&(ar||x!==`onCompositionStart`?x===`onCompositionEnd`&&ar&&(b=bn()):(_n=i,vn=`value`in _n?_n.value:_n.textContent,ar=!0)),y=kd(r,x),0<y.length&&(x=new Rn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=ir(n),b!==null&&(x.data=b)))),(b=$n?or(e,n):sr(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new Rn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),_d(s,e,r,n,i)}Sd(s,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=mn(e,n),i!=null&&r.unshift(Od(e,i,a)),i=mn(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=mn(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=mn(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
9
- `).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Zt(e,``+r);break;case`className`:Ft(e,`class`,r);break;case`tabIndex`:Ft(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ft(e,n,r);break;case`style`:en(e,r,o);break;case`data`:if(t!==`object`){Ft(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=an(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Y(`beforetoggle`,e),Y(`toggle`,e),Pt(e,`popover`,r);break;case`xlinkActuate`:It(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:It(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:It(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:It(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Pt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=nn.get(n)||n,Pt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:en(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Zt(e,``+r);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=on);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Ot.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ht]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Pt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Y(`error`,e),Y(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Y(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Id(e,t,r,d,n,null)}}Kt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Y(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Jt(e,!!r,n,!0):Jt(e,!!r,t,!1);return;case`textarea`:for(s in Y(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Id(e,t,s,c,n,null)}Xt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Id(e,t,l,r,n,null)}return;case`dialog`:Y(`beforetoggle`,e),Y(`toggle`,e),Y(`cancel`,e),Y(`close`,e);break;case`iframe`:case`object`:Y(`load`,e);break;case`video`:case`audio`:for(r=0;r<bd.length;r++)Y(bd[r],e);break;case`image`:Y(`error`,e),Y(`load`,e);break;case`details`:Y(`toggle`,e);break;case`embed`:case`source`:case`link`:Y(`error`,e),Y(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,u,r,n,null)}return;default:if(tn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Id(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Id(e,t,p,m,r,f)}}Gt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Id(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Jt(e,!!n,n?[]:``,!1):Jt(e,!!n,t,!0)):Jt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Id(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Id(e,t,s,a,r,o)}Yt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Id(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Id(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Id(e,t,u,p,r,m)}return;default:if(tn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Bd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Kd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function qd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(ef)};function ef(e){setTimeout(function(){throw e})}function tf(e){return e===`head`}function nf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Lp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[xt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body);n=i}while(n);Lp(t)}function rf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:af(n),St(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function of(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[xt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function ff(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gf(e,t,n){switch(t=Wd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);St(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=O.d;O.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=wu();return e||t}function Cf(e){var t=wt(e);t!==null&&t.tag===5&&t.type===`form`?Os(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Wt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),Et(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Wt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Wt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Wt(n.imageSizes)+`"]`)):i+=`[href="`+Wt(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Rf(e)}vf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),Et(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Wt(r)+`"][href="`+Wt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rf(e)}if(!vf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),Et(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=j(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);Et(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=j(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),Et(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=j(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),Et(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=he.current)?bf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Pf(n.href),n=j(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pf(n.href);var o=j(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vf.set(e,n),o||Lf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Rf(n),n=j(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pf(e){return`href="`+Wt(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Lf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),Et(t),e.head.appendChild(t))}function Rf(e){return`[src="`+Wt(e)+`"]`}function zf(e){return`script[async]`+e}function Bf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Wt(n.href)+`"]`);if(r)return t.instance=r,Et(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Et(r),Rd(r,`style`,a),Vf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,Et(o),o;r=If(n),(a=vf.get(a))&&Hf(r,a),o=(e.ownerDocument||e).createElement(`link`),Et(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Vf(o,n.precedence,e),t.instance=o;case`script`:return o=Rf(n.src),(a=e.querySelector(zf(o)))?(t.instance=a,Et(a),a):(r=n,(a=vf.get(o))&&(r=f({},n),Uf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Et(a),Rd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vf(r,n.precedence,e));return t.instance}function Vf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wf=null;function Gf(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[xt]||a[mt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Yf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Qf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Et(a);return}a=t.ownerDocument||t,r=If(r),(i=vf.get(i))&&Hf(r,i),a=a.createElement(`link`),Et(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Qf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Xf=0;function Zf(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $f=null;function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$f=new Map,t.forEach(tp,e),$f=null,Qf.call(e))}function tp(e,t){if(!(t.state.loading&4)){var n=$f.get(e);if(n)var r=n.get(null);else{n=new Map,$f.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Qf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var np={$$typeof:C,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function rp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rt(0),this.hiddenUpdates=rt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ip(e,t,n,r,i,a,o,s,c,l,u,d){return e=new rp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=di(3,null,null,t),e.current=a,a.stateNode=e,t=la(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function ap(e){return e?(e=li,e):li}function op(e,t,n,r,i,a){i=ap(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(K(n,e,t),Ga(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=oi(e,67108864);t!==null&&K(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=vu();t=lt(t);var n=oi(e,t);n!==null&&K(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=2,mp(e,t,n,r)}finally{O.p=a,D.T=i}}function pp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=8,mp(e,t,n,r)}finally{O.p=a,D.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Dd(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=wt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Qe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ge(o);s.entanglements[1]|=c,o&=~c}od(a),!(H&6)&&(su=Ne()+500,sd(0,!1))}}break;case 31:case 13:s=oi(a,2),s!==null&&K(s,a,2),wu(),cp(a,2)}if(a=hp(r),a===null&&Dd(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function hp(e){return e=cn(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=Ct(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gp=e,null}function vp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Pe()){case Fe:return 2;case Ie:return 8;case Le:case Re:return 32;case ze:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=wt(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=Ct(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ft(e.priority,function(){up(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ft(e.priority,function(){up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sn=r,n.target.dispatchEvent(r),sn=null}else return t=wt(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function Ip(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(_p(r||n)===null)continue;break}var a=wt(n);a!==null&&(e.splice(t,3),t-=3,Es(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Lp(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ht]||null;if(typeof a==`function`)o||Ip(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ht]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Ip(n)}}}function Rp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function zp(e){this._internalRoot=e}Bp.prototype.render=zp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;op(n,vu(),e,t,null,null)},Bp.prototype.unmount=zp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),wu(),t[gt]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var Vp=n.version;if(Vp!==`19.2.5`)throw Error(i(527,Vp,`19.2.5`));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Hp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:D,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{He=Up.inject(Hp),Ue=Up}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ys,s=Xs,c=Zs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ip(e,1,!1,null,null,n,r,null,o,s,c,Rp),e[gt]=t.current,Td(e),new zp(t)},e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=Ys,c=Xs,l=Zs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ip(e,1,!0,t,n??null,r,o,u,s,c,l,Rp),t.context=ap(null),n=t.current,r=vu(),r=lt(r),o=Ua(r),o.callback=null,Wa(n,o,r),n=r,t.current.lanes=n,it(t,n),od(t),e[gt]=t.current,Td(e),new Bp(t)},e.version=`19.2.5`})),S=s((e=>{})),C=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=x()})),w=s((e=>{var t=m();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}})),T=s((e=>{})),ee=s(((e,t)=>{t.exports=w()})),te=u(C(),1),ne=c({Provider:()=>ct,ReactReduxContext:()=>$e,batch:()=>vt,connect:()=>ot,createDispatchHook:()=>pt,createSelectorHook:()=>gt,createStoreHook:()=>dt,shallowEqual:()=>Ie,useDispatch:()=>mt,useSelector:()=>_t,useStore:()=>ft}),E=u(m(),1),re=u(ee(),1),ie=Symbol.for(`react.transitional.element`),ae=Symbol.for(`react.portal`),oe=Symbol.for(`react.fragment`),se=Symbol.for(`react.strict_mode`),ce=Symbol.for(`react.profiler`),D=Symbol.for(`react.consumer`),O=Symbol.for(`react.context`),le=Symbol.for(`react.forward_ref`),ue=Symbol.for(`react.suspense`),de=Symbol.for(`react.suspense_list`),fe=Symbol.for(`react.memo`),k=Symbol.for(`react.lazy`),A=le,pe=fe;function me(e){if(typeof e==`object`&&e){let{$$typeof:t}=e;switch(t){case ie:switch(e=e.type,e){case oe:case ce:case se:case ue:case de:return e;default:switch(e&&=e.$$typeof,e){case O:case le:case k:case fe:return e;case D:return e;default:return t}}case ae:return t}}}function he(e){return me(e)===fe}function ge(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,u,d,f;function p(i,a){return c=i,l=a,u=e(c,l),d=t(r,l),f=n(u,d,l),s=!0,f}function m(){return u=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function h(){return e.dependsOnOwnProps&&(u=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function g(){let t=e(c,l),r=!o(t,u);return u=t,r&&(f=n(u,d,l)),f}function _(e,t){let n=!a(t,l),r=!i(e,c,t,l);return c=e,l=t,n&&r?m():n?h():r?g():f}return function(e,t){return s?_(e,t):p(e,t)}}function _e(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return ge(t(e,i),n(e,i),r(e,i),e,i)}function ve(e,t){let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=(...e)=>t(i(...e)))}return n}function ye(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function be(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function xe(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=be(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=be(i),i=r(t,n)),i},r}}function Se(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Ce(e){return e&&typeof e==`object`?ye(t=>ve(e,t)):e?typeof e==`function`?xe(e,`mapDispatchToProps`):Se(e,`mapDispatchToProps`):ye(e=>({dispatch:e}))}function we(e){return e?typeof e==`function`?xe(e,`mapStateToProps`):Se(e,`mapStateToProps`):ye(()=>({}))}function Te(e,t,n){return{...n,...e,...t}}function Ee(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i=!1,a;return function(t,n,o){let s=e(t,n,o);return i?r(s,a)||(a=s):(i=!0,a=s),a}}}function De(e){return e?typeof e==`function`?Ee(e):Se(e,`mergeProps`):()=>Te}function Oe(e){e()}function ke(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Oe(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Ae={notify(){},get:()=>[]};function je(e,t){let n,r=Ae,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=ke())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Ae)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var Me=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Ne=typeof navigator<`u`&&navigator.product===`ReactNative`,Pe=Me||Ne?E.useLayoutEffect:E.useEffect;function Fe(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function Ie(e,t){if(Fe(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Fe(e[n[r]],t[n[r]]))return!1;return!0}var Le={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ze={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Be={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ve={[A]:ze,[pe]:Be};function He(e){return he(e)?Be:Ve[e.$$typeof]||Le}var Ue=Object.defineProperty,We=Object.getOwnPropertyNames,Ge=Object.getOwnPropertySymbols,Ke=Object.getOwnPropertyDescriptor,qe=Object.getPrototypeOf,Je=Object.prototype;function Ye(e,t){if(typeof t!=`string`){if(Je){let n=qe(t);n&&n!==Je&&Ye(e,n)}let n=We(t);Ge&&(n=n.concat(Ge(t)));let r=He(e),i=He(t);for(let a=0;a<n.length;++a){let o=n[a];if(!Re[o]&&!(i&&i[o])&&!(r&&r[o])){let n=Ke(t,o);try{Ue(e,o,n)}catch{}}}}return e}var Xe=Symbol.for(`react-redux-context`),Ze=typeof globalThis<`u`?globalThis:{};function Qe(){if(!E.createContext)return{};let e=Ze[Xe]??=new Map,t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var $e=Qe(),et=[null,null];function tt(e,t,n){Pe(()=>e(...t),n)}function nt(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function rt(e,t,n,r,i,a,o,s,c,l,u){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e=t.getState(),n,p;try{n=r(e,i.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?o.current||l():(a.current=n,c.current=n,o.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function it(e,t){return e===t}function at(e,t,n,{pure:r,areStatesEqual:i=it,areOwnPropsEqual:a=Ie,areStatePropsEqual:o=Ie,areMergedPropsEqual:s=Ie,forwardRef:c=!1,context:l=$e}={}){let u=l,d=we(e),f=Ce(t),p=De(n),m=!!e;return e=>{let t=e.displayName||e.name||`Component`,n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){let[n,i,a]=E.useMemo(()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),o=E.useMemo(()=>{let e=u;return n?.Consumer,e},[n,u]),s=E.useContext(o),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,l=!!s&&!!s.store,d=c?t.store:s.store,f=l?s.getServerState:d.getState,p=E.useMemo(()=>_e(d.dispatch,r),[d]),[h,g]=E.useMemo(()=>{if(!m)return et;let e=je(d,c?void 0:s.subscription);return[e,e.notifyNestedSubs.bind(e)]},[d,c,s]),_=E.useMemo(()=>c?s:{...s,subscription:h},[c,s,h]),v=E.useRef(void 0),y=E.useRef(a),b=E.useRef(void 0),x=E.useRef(!1),S=E.useRef(!1),C=E.useRef(void 0);Pe(()=>(S.current=!0,()=>{S.current=!1}),[]);let w=E.useMemo(()=>()=>b.current&&a===y.current?b.current:p(d.getState(),a),[d,a]),T=E.useMemo(()=>e=>h?rt(m,d,h,p,y,v,x,S,b,g,e):()=>{},[h]);tt(nt,[y,v,x,a,b,g]);let ee;try{ee=E.useSyncExternalStore(T,w,f?()=>p(f(),a):w)}catch(e){throw C.current&&(e.message+=`
8
+ `+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $e(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-He(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&rt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function rt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function it(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function at(e,t){var n=t&-t;return n=n&42?1:ot(n),(n&(e.suspendedLanes|t))===0?n:0}function ot(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function st(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ct(){var e=j.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function lt(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var ut=Math.random().toString(36).slice(2),dt=`__reactFiber$`+ut,ft=`__reactProps$`+ut,pt=`__reactContainer$`+ut,mt=`__reactEvents$`+ut,ht=`__reactListeners$`+ut,gt=`__reactHandles$`+ut,_t=`__reactResources$`+ut,vt=`__reactMarker$`+ut;function yt(e){delete e[dt],delete e[ft],delete e[mt],delete e[ht],delete e[gt]}function bt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pt]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[dt])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function xt(e){if(e=e[dt]||e[pt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function St(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function P(e){var t=e[_t];return t||=e[_t]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ct(e){e[vt]=!0}var wt=new Set,Tt={};function Et(e,t){Dt(e,t),Dt(e+`Capture`,t)}function Dt(e,t){for(Tt[e]=t,e=0;e<t.length;e++)wt.add(t[e])}var Ot=RegExp(`^[: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]*$`),kt={},At={};function F(e){return Te.call(At,e)?!0:Te.call(kt,e)?!1:Ot.test(e)?At[e]=!0:(kt[e]=!0,!1)}function jt(e,t,n){if(F(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Mt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Nt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Pt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ft(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function It(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lt(e){if(!e._valueTracker){var t=Ft(e)?`checked`:`value`;e._valueTracker=It(e,t,``+e[t])}}function Rt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ft(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function zt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Bt=/[\n"\\]/g;function Vt(e){return e.replace(Bt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ht(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Pt(t)):e.value!==``+Pt(t)&&(e.value=``+Pt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Wt(e,o,Pt(n)):Wt(e,o,Pt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Pt(s):e.removeAttribute(`name`)}function Ut(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Lt(e);return}n=n==null?``:``+Pt(n),t=t==null?n:``+Pt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Lt(e)}function Wt(e,t,n){t===`number`&&zt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Gt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Pt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Kt(e,t,n){if(t!=null&&(t=``+Pt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Pt(n)}function qt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Pt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Lt(e)}function Jt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Xt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Yt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Zt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Xt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Xt(e,o,t[o])}function Qt(e){if(e.indexOf(`-`)===-1)return!1;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 $t=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),en=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tn(e){return en.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function nn(){}var rn=null;function an(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var on=null,sn=null;function cn(e){var t=xt(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ht(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Vt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ft]||null;if(!a)throw Error(i(90));Ht(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Rt(r)}break a;case`textarea`:Kt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var ln=!1;function un(e,t,n){if(ln)return e(t,n);ln=!0;try{return e(t)}finally{if(ln=!1,(on!==null||sn!==null)&&(wu(),on&&(t=on,e=sn,sn=on=null,cn(t),e)))for(t=0;t<e.length;t++)cn(e[t])}}function dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ft]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var fn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),pn=!1;if(fn)try{var mn={};Object.defineProperty(mn,`passive`,{get:function(){pn=!0}}),window.addEventListener(`test`,mn,mn),window.removeEventListener(`test`,mn,mn)}catch{pn=!1}var hn=null,gn=null,_n=null;function vn(){if(_n)return _n;var e,t=gn,n=t.length,r,i=`value`in hn?hn.value:hn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return _n=i.slice(e,1<r?1-r:void 0)}function yn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bn(){return!0}function xn(){return!1}function Sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?bn:xn,this.isPropagationStopped=xn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=bn)},persist:function(){},isPersistent:bn}),t}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wn=Sn(Cn),Tn=f({},Cn,{view:0,detail:0}),En=Sn(Tn),Dn,On,kn,An=f({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==kn&&(kn&&e.type===`mousemove`?(Dn=e.screenX-kn.screenX,On=e.screenY-kn.screenY):On=Dn=0,kn=e),Dn)},movementY:function(e){return`movementY`in e?e.movementY:On}}),jn=Sn(An),Mn=Sn(f({},An,{dataTransfer:0})),Nn=Sn(f({},Tn,{relatedTarget:0})),Pn=Sn(f({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0})),Fn=Sn(f({},Cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),In=Sn(f({},Cn,{data:0})),Ln={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Rn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zn[e])?!!t[e]:!1}function Vn(){return Bn}var Hn=Sn(f({},Tn,{key:function(e){if(e.key){var t=Ln[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=yn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Rn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vn,charCode:function(e){return e.type===`keypress`?yn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?yn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Un=Sn(f({},An,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Wn=Sn(f({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vn})),Gn=Sn(f({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Kn=Sn(f({},An,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),qn=Sn(f({},Cn,{newState:0,oldState:0})),Jn=[9,13,27,32],Yn=fn&&`CompositionEvent`in window,Xn=null;fn&&`documentMode`in document&&(Xn=document.documentMode);var Zn=fn&&`TextEvent`in window&&!Xn,Qn=fn&&(!Yn||Xn&&8<Xn&&11>=Xn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Yn&&tr(e,t)?(e=vn(),_n=gn=hn=null,rr=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Qn&&t.locale!==`ko`?null:t.data;default:return null}}var or={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!or[e.type]:t===`textarea`}function cr(e,t,n,r){on?sn?sn.push(r):sn=[r]:on=r,t=kd(t,`onChange`),0<t.length&&(n=new wn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var lr=null,ur=null;function dr(e){Sd(e,0)}function fr(e){if(Rt(St(e)))return e}function pr(e,t){if(e===`change`)return t}var mr=!1;if(fn){var hr;if(fn){var gr=`oninput`in document;if(!gr){var _r=document.createElement(`div`);_r.setAttribute(`oninput`,`return;`),gr=typeof _r.oninput==`function`}hr=gr}else hr=!1;mr=hr&&(!document.documentMode||9<document.documentMode)}function vr(){lr&&(lr.detachEvent(`onpropertychange`,yr),ur=lr=null)}function yr(e){if(e.propertyName===`value`&&fr(ur)){var t=[];cr(t,ur,e,an(e)),un(dr,t)}}function br(e,t,n){e===`focusin`?(vr(),lr=t,ur=n,lr.attachEvent(`onpropertychange`,yr)):e===`focusout`&&vr()}function xr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return fr(ur)}function Sr(e,t){if(e===`click`)return fr(t)}function Cr(e,t){if(e===`input`||e===`change`)return fr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Tr=typeof Object.is==`function`?Object.is:wr;function Er(e,t){if(Tr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Te.call(t,i)||!Tr(e[i],t[i]))return!1}return!0}function Dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n=Dr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=zt(e.document)}return t}function jr(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`)}var Mr=fn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==zt(r)||(r=Nr,`selectionStart`in r&&jr(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}),Fr&&Er(Fr,r)||(Fr=r,r=kd(Pr,`onSelect`),0<r.length&&(t=new wn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Nr)))}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var zr={animationend:Rr(`Animation`,`AnimationEnd`),animationiteration:Rr(`Animation`,`AnimationIteration`),animationstart:Rr(`Animation`,`AnimationStart`),transitionrun:Rr(`Transition`,`TransitionRun`),transitionstart:Rr(`Transition`,`TransitionStart`),transitioncancel:Rr(`Transition`,`TransitionCancel`),transitionend:Rr(`Transition`,`TransitionEnd`)},Br={},Vr={};fn&&(Vr=document.createElement(`div`).style,`AnimationEvent`in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),`TransitionEvent`in window||delete zr.transitionend.transition);function I(e){if(Br[e])return Br[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vr)return Br[e]=t[n];return e}var Hr=I(`animationend`),Ur=I(`animationiteration`),Wr=I(`animationstart`),L=I(`transitionrun`),Gr=I(`transitionstart`),Kr=I(`transitioncancel`),qr=I(`transitionend`),Jr=new Map,Yr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Yr.push(`scrollEnd`);function Xr(e,t){Jr.set(e,t),Et(t,[e])}var Zr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Qr=[],$r=0,ei=0;function ti(){for(var e=$r,t=ei=$r=0;t<e;){var n=Qr[t];Qr[t++]=null;var r=Qr[t];Qr[t++]=null;var i=Qr[t];Qr[t++]=null;var a=Qr[t];if(Qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ai(n,i,a)}}function ni(e,t,n,r){Qr[$r++]=e,Qr[$r++]=t,Qr[$r++]=n,Qr[$r++]=r,ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ri(e,t,n,r){return ni(e,t,n,r),oi(e)}function ii(e,t){return ni(e,null,null,t),oi(e)}function ai(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-He(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function oi(e){if(50<_u)throw _u=0,G=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function ci(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.refCleanup=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 li(e,t,n,r){return new ci(e,t,n,r)}function ui(e){return e=e.prototype,!(!e||!e.isReactComponent)}function di(e,t){var n=e.alternate;return n===null?(n=li(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&65011712,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.refCleanup=e.refCleanup,n}function fi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ui(e)&&(s=1);else if(typeof e==`string`)s=qf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case O:return e=li(31,n,t,a),e.elementType=O,e.lanes=o,e;case v:return mi(n.children,a,o,t);case y:s=8,a|=24;break;case x:return e=li(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=li(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=li(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case ee:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=li(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function mi(e,t,n,r){return e=li(7,e,r,t),e.lanes=n,e}function hi(e,t,n){return e=li(6,e,null,t),e.lanes=n,e}function gi(e){var t=li(18,null,null,0);return t.stateNode=e,t}function _i(e,t,n){return t=li(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vi=new WeakMap;function yi(e,t){if(typeof e==`object`&&e){var n=vi.get(e);return n===void 0?(t={value:e,source:t,stack:we(t)},vi.set(e,t),t):n}return{value:e,source:t,stack:we(t)}}var bi=[],xi=0,Si=null,Ci=0,wi=[],Ti=0,Ei=null,Di=1,Oi=``;function ki(e,t){bi[xi++]=Ci,bi[xi++]=Si,Si=e,Ci=t}function Ai(e,t,n){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Ei=e;var r=Di;e=Oi;var i=32-He(r)-1;r&=~(1<<i),n+=1;var a=32-He(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Di=1<<32-He(t)+i|n<<i|r,Oi=a+e}else Di=1<<a|n<<i|r,Oi=e}function ji(e){e.return!==null&&(ki(e,1),Ai(e,1,0))}function Mi(e){for(;e===Si;)Si=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null;for(;e===Ei;)Ei=wi[--Ti],wi[Ti]=null,Oi=wi[--Ti],wi[Ti]=null,Di=wi[--Ti],wi[Ti]=null}function Ni(e,t){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Di=t.id,Oi=t.overflow,Ei=e}var R=null,Pi=null,z=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(yi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[ft]=r,n){case`dialog`:Y(`cancel`,t),Y(`close`,t);break;case`iframe`:case`object`:case`embed`:Y(`load`,t);break;case`video`:case`audio`:for(n=0;n<bd.length;n++)Y(bd[n],t);break;case`source`:Y(`error`,t);break;case`img`:case`image`:case`link`:Y(`error`,t),Y(`load`,t);break;case`details`:Y(`toggle`,t);break;case`input`:Y(`invalid`,t),Ut(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Y(`invalid`,t);break;case`textarea`:Y(`invalid`,t),qt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(Y(`beforetoggle`,t),Y(`toggle`,t)),r.onScroll!=null&&Y(`scroll`,t),r.onScrollEnd!=null&&Y(`scrollend`,t),r.onClick!=null&&(t.onclick=nn),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(R=e.return;R;)switch(R.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:R=R.return}}function Vi(e){if(e!==R)return!1;if(!z)return Bi(e),z=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||qd(e.type,e.memoizedProps)),n=!n),n&&Pi&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=mf(e)}else t===27?(t=Pi,tf(e.type)?(e=pf,pf=null,Pi=e):Pi=t):Pi=R?ff(e.stateNode.nextSibling):null;return!0}function Hi(){Pi=R=null,z=!1}function Ui(){var e=Fi;return e!==null&&(ru===null?ru=e:ru.push.apply(ru,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=le(null),Ki=null,qi=null;function Ji(e,t,n){N(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,M(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Tr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===pe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[np]:e.push(np))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!Tr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=md(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var _a=A.S;A.S=function(e,t){ou=Ae(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=le(null);function ya(){var e=va.current;return e===null?Ul.pooledCache:e}function ba(e,t){t===null?N(va,va.current):N(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(nn,nn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then(nn,nn);else{if(e=Ul,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function B(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Fa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ia(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=di(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=hi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===D&&Oa(i)===t.type)?(t=a(t,n.props),B(t,n),t.return=e,t):(t=pi(n.type,n.key,n.props,null,e.mode,r),B(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=_i(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=mi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=hi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=pi(t.type,t.key,t.props,null,e.mode,n),B(n,t),n.return=e,n;case g:return t=_i(t,e.mode,n),t.return=e,t;case D:return t=Oa(t),f(e,t,n)}if(ae(t)||re(t))return t=mi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===C)return f(e,na(e,t),n);Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case D:return n=Oa(n),p(e,t,n,r)}if(ae(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===C)return p(e,t,na(e,n),r);Fa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=Oa(r),m(e,t,n,r,i)}if(ae(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Pa(r),i);if(r.$$typeof===C)return m(e,t,n,na(t,r),i);Fa(t,r)}return null}function _(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),z&&ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return z&&ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),z&&ki(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),z&&ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return z&&ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),z&&ki(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),B(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===v?(c=mi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=pi(o.type,o.key,o.props,null,e.mode,c),B(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=_i(o,e.mode,c),c.return=e,e=c}return s(e);case D:return o=Oa(o),b(e,r,o,c)}if(ae(o))return _(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Pa(o),c);if(o.$$typeof===C)return b(e,r,na(e,o),c);Fa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var La=Ia(!0),Ra=Ia(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Hl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=oi(e),ai(e,null,n),t}return ni(e,r,t,n),oi(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ka=!1;function qa(){if(Ka){var e=pa;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(W&p)===p:(r&p)===p){p!==0&&p===fa&&(Ka=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:za=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Zl|=o,e.lanes=o,e.memoizedState=d}}function Ya(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ya(n[e],t)}var Za=le(null),Qa=le(0);function $a(e,t){e=Yl,N(Qa,e),N(Za,t),Yl=e|t.baseLanes}function eo(){N(Qa,Yl),N(Za,Za.current)}function to(){Yl=Qa.current,M(Za),M(Qa)}var no=le(null),ro=null;function io(e){var t=e.alternate;N(lo,lo.current&1),N(no,e),ro===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(ro=e)}function ao(e){N(lo,lo.current),N(no,e),ro===null&&(ro=e)}function oo(e){e.tag===22?(N(lo,lo.current),N(no,e),ro===null&&(ro=e)):so(e)}function so(){N(lo,lo.current),N(no,no.current)}function co(e){M(no),ro===e&&(ro=null),M(lo)}var lo=le(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lf(n)||uf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){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 fo=0,V=null,po=null,mo=null,ho=!1,go=!1,_o=!1,vo=0,yo=0,bo=null,xo=0;function So(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,i,a){return fo=a,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Bs:Vs,_o=!1,a=n(r,i),_o=!1,go&&(a=Eo(t,n,r,i)),To(e),a}function To(e){A.H=zs;var t=po!==null&&po.next!==null;if(fo=0,mo=po=V=null,ho=!1,yo=0,bo=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&$i(e)&&(ic=!0))}function Eo(e,t,n,r){V=e;var a=0;do{if(go&&(bo=null),yo=0,go=!1,25<=a)throw Error(i(301));if(a+=1,mo=po=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}A.H=Hs,o=t(n,r)}while(go);return o}function Do(){var e=A.H,t=e.useState()[0];return t=typeof t.then==`function`?Po(t):t,e=e.useState()[0],(po===null?null:po.memoizedState)!==e&&(V.flags|=1024),t}function Oo(){var e=vo!==0;return vo=0,e}function ko(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ao(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}fo=0,mo=po=V=null,go=!1,yo=vo=0,bo=null}function jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mo===null?V.memoizedState=mo=e:mo=mo.next=e,mo}function Mo(){if(po===null){var e=V.alternate;e=e===null?null:e.memoizedState}else e=po.next;var t=mo===null?V.memoizedState:mo.next;if(t!==null)mo=t,po=e;else{if(e===null)throw V.alternate===null?Error(i(467)):Error(i(310));po=e,e={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},mo===null?V.memoizedState=mo=e:mo=mo.next=e}return mo}function No(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Po(e){var t=yo;return yo+=1,bo===null&&(bo=[]),e=Da(bo,e,t),t=V,(mo===null?t.memoizedState:mo.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Bs:Vs),e}function Fo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Po(e);if(e.$$typeof===C)return ta(e)}throw Error(i(438,String(e)))}function Io(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=V.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=No(),V.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=te;return t.index++,n}function Lo(e,t){return typeof t==`function`?t(e):t}function Ro(e){return zo(Mo(),po,e)}function zo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(fo&f)===f:(W&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((fo&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,V.lanes|=p,Zl|=p;f=u.action,_o&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,V.lanes|=f,Zl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Tr(o,e.memoizedState)&&(ic=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Bo(e){var t=Mo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Tr(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Vo(e,t,n){var r=V,a=Mo(),o=z;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Tr((po||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,ds(Wo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||mo!==null&&mo.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Uo.bind(null,r,a,n,t),null),Ul===null)throw Error(i(349));o||fo&127||Ho(r,t,n)}return n}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=No(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&Ko(e)}function Wo(e,t,n){return n(function(){Go(t)&&Ko(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function Ko(e){var t=ii(e,2);t!==null&&K(t,e,2)}function qo(e){var t=jo();if(typeof e==`function`){var n=e;if(e=n(),_o){Ve(!0);try{n()}finally{Ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t}function Jo(e,t,n,r){return e.baseState=n,zo(e,po,typeof r==`function`?r:Lo)}function Yo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};A.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Xo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Xo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=A.T,o={};A.T=o;try{var s=n(i,r),c=A.S;c!==null&&c(o,s),Zo(e,t,s)}catch(n){$o(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),A.T=a}}else try{a=n(i,r),Zo(e,t,a)}catch(n){$o(e,t,n)}}function Zo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Qo(e,t,n)},function(n){return $o(e,t,n)}):Qo(e,t,n)}function Qo(e,t,n){t.status=`fulfilled`,t.value=n,es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xo(e,n)))}function $o(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,es(t),t=t.next;while(t!==r)}e.action=null}function es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ts(e,t){return t}function ns(e,t){if(z){var n=Ul.formState;if(n!==null){a:{var r=V;if(z){if(Pi){b:{for(var i=Pi,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=ff(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=jo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:t},n.queue=r,n=Ns.bind(null,V,r),r.dispatch=n,r=qo(!1),a=Fs.bind(null,V,!1,r.queue),r=jo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Yo.bind(null,V,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function H(e){return rs(Mo(),po,e)}function rs(e,t,n){if(t=zo(e,t,ts)[0],e=Ro(Lo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Po(t)}catch(e){throw e===Sa?wa:e}else r=t;t=Mo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=Mo(),n=po;if(n!==null)return rs(t,n,e);Mo(),t=t.memoizedState,n=Mo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=V.updateQueue,t===null&&(t=No(),V.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return Mo().memoizedState}function cs(e,t,n,r){var i=jo();V.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=Mo();r=r===void 0?null:r;var a=i.memoizedState.inst;po!==null&&r!==null&&Co(r,po.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(V.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=No(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=Mo().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(Hl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Co(t,r[1]))return r[0];if(r=e(),_o){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||fo&1073741824&&!(W&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),V.lanes|=e,Zl|=e,n)}function Ss(e,t,n,r){return Tr(n,t)?n:Za.current===null?!(fo&42)||fo&1073741824&&!(W&261930)?(ic=!0,e.memoizedState=n):(e=yu(),V.lanes|=e,Zl|=e,t):(e=xs(e,n,r),Tr(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=j.p;j.p=a!==0&&8>a?a:8;var o=A.T,s={};A.T=s,Fs(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,ga(c,r),vu(e)):Ps(e,t,r,vu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Es(e).queue;Cs(e,a,t,oe,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},vu())}function Os(){return ta(np)}function ks(){return Mo().memoizedState}function As(){return Mo().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=Ha(n);var r=Ua(t,e,n);r!==null&&(K(r,t,n),Wa(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=ri(e,t,n,r),n!==null&&(K(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,vu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o))return ni(e,t,i,0),Ul===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return K(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:md(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=ri(e,n,r,2),t!==null&&K(t,e,2)}function Is(e){var t=e.alternate;return e===V||t!==null&&t===V}function Ls(e,t){go=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}var zs={readContext:ta,use:Fo,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useInsertionEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useSyncExternalStore:So,useId:So,useHostTransitionStatus:So,useFormState:So,useActionState:So,useOptimistic:So,useMemoCache:So,useCacheRefresh:So};zs.useEffectEvent=So;var Bs={readContext:ta,use:Fo,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(_o){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(_o){Ve(!0);try{n(t)}finally{Ve(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ns.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(jo(),e,t)},useTransition:function(){var e=qo(!1);return e=Cs.bind(null,V,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=jo();if(z){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ul===null)throw Error(i(349));W&127||Ho(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(Wo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Uo.bind(null,r,o,n,t),null),n},useId:function(){var e=jo(),t=Ul.identifierPrefix;if(z){var n=Oi,r=Di;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e){var t=jo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:Io,useCacheRefresh:function(){return jo().memoizedState=js.bind(null,V)},useEffectEvent:function(e){var t=jo(),n={impl:e};return t.memoizedState=n,function(){if(Hl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:ta,use:Fo,useCallback:ys,useContext:ta,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Ro,useRef:ss,useState:function(){return Ro(Lo)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(Mo(),po.memoizedState,e,t)},useTransition:function(){var e=Ro(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:ks,useHostTransitionStatus:Os,useFormState:H,useActionState:H,useOptimistic:function(e,t){return Jo(Mo(),po,e,t)},useMemoCache:Io,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:ta,use:Fo,useCallback:ys,useContext:ta,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Bo,useRef:ss,useState:function(){return Bo(Lo)},useDebugValue:vs,useDeferredValue:function(e,t){var n=Mo();return po===null?xs(n,e,t):Ss(n,po.memoizedState,e,t)},useTransition:function(){var e=Bo(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=Mo();return po===null?(n.baseState=e,[e,n.queue.dispatch]):Jo(n,po,e,t)},useMemoCache:Io,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ha(r);i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(K(t,e,r),Wa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ha(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(K(t,e,r),Wa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=Ha(n);r.tag=2,t!=null&&(r.callback=t),t=Ua(e,r,n),t!==null&&(K(t,e,n),Wa(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Er(n,r)||!Er(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){Zr(e)}function Ys(e){console.error(e)}function Xs(e){Zr(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Ha(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(lu===null?lu=new Set([this]):lu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=no.current,n!==null){switch(n.tag){case 31:case 13:return ro===null?ju():n.alternate===null&&Xl===0&&(Xl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Xu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Xu(e,r,a)),!1}throw Error(i(435,n.tag))}return Xu(e,r,a),ju(),!1}if(z)return t=no.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(yi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=yi(r,n),a=$s(e.stateNode,r,a),Ga(e,a),Xl!==4&&(Xl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(yi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=yi(o,n),nu===null?nu=[o]:nu.push(o),Xl!==4&&(Xl=2),t===null)return!0;r=yi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=$s(n.stateNode,r,e),Ga(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(lu===null||!lu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Ga(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?Ra(t,null,n,r):La(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=wo(e,t,n,o,a,i),s=Oo(),e!==null&&!ic?(ko(e,t,i),Ac(e,t,i)):(z&&s&&ji(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ui(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=pi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Er:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=di(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Er(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?eo():$a(t,a),oo(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),eo(),so(t)):(ba(t,a.cachePool),$a(t,a),so(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),eo(),oo(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return La(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,co(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(z){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(ao(t),(e=Pi)?(e=cf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,R=t,Pi=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ao(t),a)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ic||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=Ul,r!==null&&(s=at(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ii(e,s),K(r,e,s),rc;ju(),t=pc(e,t,n)}else e=o.treeContext,Pi=ff(s.nextSibling),R=t,z=!0,Fi=null,Ii=!1,e!==null&&Ni(t,e),t=fc(t,r),t.flags|=4096;return t}return e=di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return ea(t),n=wo(e,t,n,r,void 0,i),r=Oo(),e!==null&&!ic?(ko(e,t,i),Ac(e,t,i)):(z&&r&&ji(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=Eo(t,r,n,i),To(e),r=Oo(),e!==null&&!ic?(ko(e,t,a),Ac(e,t,a)):(z&&r&&ji(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=si,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ba(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):si,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),Ja(t,r,a,i),qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=si,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),za=!1;var f=t.memoizedState;a.state=f,Ja(t,r,a,i),qa(),l=t.memoizedState,s||f!==l||za?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=za||Gs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Va(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=si,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),za=!1,f=t.memoizedState,a.state=f,Ja(t,r,a,i),qa();var p=t.memoizedState;o!==d||f!==p||za||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=za||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=La(t,e.child,null,i),t.child=La(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Hi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:xa()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=eu),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(lo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(z){if(a?io(t):so(t),(e=Pi)?(e=cf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,R=t,Pi=null)):e=null,e===null)throw Ri(t);return uf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(so(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=mi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(io(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(io(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(so(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=mi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,La(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(so(t),t.child=e.child,t.flags|=128,t=null);else if(io(t),uf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=Ul,s!==null&&(r=at(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ii(e,r),K(s,e,r),rc;lf(c)||ju(),t=Ec(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=ff(c.nextSibling),R=t,z=!0,Fi=null,Ii=!1,e!==null&&Ni(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(so(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=di(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=mi(c,a,n,null),c.flags|=2):c=di(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(io(t),n=e.child,e=n.sibling,n=di(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=li(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return La(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=lo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,N(lo,o),ac(e,t,r,n),r=z?Ci:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&$i(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:ge(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(io(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(io(t),t.flags|=128,null);io(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(lo,lo.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,z&&t.flags&1048576&&Ai(t,Ci,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)ui(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=oc(null,t,e,r,n);break a}else if(a===ee){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=k(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Va(e,t),Ja(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}else if(r!==a){a=yi(Error(i(424)),t),Wi(a),t=yc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=ff(e.firstChild),R=t,z=!0,Fi=null,Ii=!0,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:z||(n=t.type,e=t.pendingProps,r=Wd(fe.current).createElement(n),r[dt]=t,r[ft]=e,Rd(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&z&&(r=t.stateNode=gf(t.type,t.pendingProps,fe.current),R=t,Ii=!0,a=Pi,tf(t.type)?(pf=a,Pi=ff(r.firstChild)):Pi=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&z&&((a=r=Pi)&&(r=of(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,R=t,Pi=ff(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),ge(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(a,o)?r=null:s!==null&&qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=wo(e,t,Do,null,null,n),np._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&z&&((e=n=Pi)&&(n=sf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,R=t,Pi=null,e=!0)),e||Ri(t)),null;case 13:return Cc(e,t,n);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=La(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=ya(),a===null&&(a=Ul,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ba(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Va(e,t),Ja(t,null,null,n),qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ou())e.flags|=8192;else throw ka=Ta,Ca}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jf(t))if(Ou())e.flags|=8192;else throw ka=Ta,Ca}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:$e(),e.lanes|=t,tu|=t)}function Rc(e,t){if(!z)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 zc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bc(e,t,n){var r=t.pendingProps;switch(Mi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),zc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(zc(t),Fc(t,a,null,r,n)):(zc(t),Ic(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,a,e,r,n)),null;case 27:if(_e(t),n=fe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}e=ue.current,Vi(t)?zi(t,e):(e=gf(a,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(_e(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}if(o=ue.current,Vi(t))zi(t,o);else{var s=Wd(fe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[dt]=t,o[ft]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Rd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=fe.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=R,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Ri(t,!0)}else e=Wd(e).createTextNode(r),e[dt]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[dt]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(co(t),t):(co(t),null);if(t.flags&128)throw Error(i(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[dt]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(co(t),t):(co(t),null)}return co(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),zc(t),null);case 4:return he(),e===null&&Td(t.stateNode.containerInfo),zc(t),null;case 10:return Yi(t.type),zc(t),null;case 19:if(M(lo),r=t.memoizedState,r===null)return zc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Rc(r,!1);else{if(Xl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=uo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fi(n,e),n=n.sibling;return N(lo,lo.current&1|2),z&&ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>su&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}else{if(!a)if(e=uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!z)return zc(t),null}else 2*Ae()-r.renderingStartTime>su&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=lo.current,N(lo,a?n&1|2:n&1),z&&ki(t,r.treeForkCount),e);case 22:case 23:return co(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&M(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),zc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(Mi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),he(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 31:if(t.memoizedState!==null){if(co(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(co(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(lo),null;case 4:return he(),null;case 10:return Yi(t.type),null;case 22:case 23:return co(t),to(),e!==null&&M(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Hc(e,t){switch(Mi(t),t.tag){case 3:Yi(sa),he();break;case 26:case 27:case 5:_e(t);break;case 4:he();break;case 31:t.memoizedState!==null&&co(t);break;case 13:co(t);break;case 19:M(lo);break;case 10:Yi(t.type);break;case 22:case 23:co(t),to(),e!==null&&M(va);break;case 24:Yi(sa)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Yu(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Yu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Yu(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){Yu(e,e.return,t)}}}function Kc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Yu(e,t,n)}}function qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Yu(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Yu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Yu(e,t,n)}else n.current=null}function Yc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Yu(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[ft]=t}catch(t){Yu(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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.tag===27&&tf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nn));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(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&&(r===27&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[dt]=e,t[ft]=n}catch(t){Yu(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,Hd=dp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},dp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Yu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)af(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:af(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Yu(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Yu(n,n.return,e)}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xa(e,t)}catch(e){Yu(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$u.bind(null,n),df(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,(n.subtreeFlags&8772)!=0):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount==`function`)try{Be.onCommitFiberUnmount(ze,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;tf(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),_f(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null)if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){Yu(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){Yu(n,t,e)}break;case 18:ul!==null&&(dl?(e=ul,nf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Lp(e)):nf(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Lp(e)}catch(e){Yu(t,t.return,e)}}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Lp(e)}catch(e){Yu(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ed.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(tf(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(i(160));pl(o,s,a),ul=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[vt]||o[dt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Rd(o,r,n),o[dt]=e,Ct(o),r=o;break a;case`link`:var s=Gf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Gf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[dt]=e,Ct(o),r=o}e.stateNode=r}else Kf(a,e.type,e.stateNode);else e.stateNode=Bf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Kf(a,e.type,e.stateNode):Bf(a,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){a=e.stateNode;try{Jt(a,``)}catch(t){Yu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Xc(e,a,n===null?a:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Yu(e,e.return,t)}}break;case 3:if(Wf=null,a=yl,yl=bf(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(t){Yu(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=bf(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(au=Ae()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||a,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||nl||rl||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Yu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Yu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?rf(m,!0):rf(l.stateNode,!1)}catch(e){Yu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;el(e,Qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Jt(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(i(161))}}catch(t){Yu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:_f(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Yu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ya(c[i],s)}catch(e){Yu(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){Ol(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Yu(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&Yf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=bf(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,Hl=0,Ul=null,U=null,W=0,Wl=0,Gl=null,Kl=!1,ql=!1,Jl=!1,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=null,ru=null,iu=!1,au=0,ou=0,su=1/0,cu=null,lu=null,uu=0,du=null,fu=null,pu=0,mu=0,hu=null,gu=null,_u=0,G=null;function vu(){return Hl&2&&W!==0?W&-W:A.T===null?ct():md()}function yu(){if(eu===0)if(!(W&536870912)||z){var e=qe;qe<<=1,!(qe&3932160)&&(qe=262144),eu=e}else eu=536870912;return e=no.current,e!==null&&(e.flags|=32),eu}function K(e,t,n){(e===Ul&&(Wl===2||Wl===9)||e.cancelPendingCommit!==null)&&(Eu(e,0),Cu(e,W,eu,!1)),tt(e,n),(!(Hl&2)||e!==Ul)&&(e===Ul&&(!(Hl&2)&&(Ql|=n),Xl===4&&Cu(e,W,eu,!1)),od(e))}function bu(e,t,n){if(Hl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ze(e,t),a=r?Pu(e,t):Mu(e,t,!0),o=r;do{if(a===0){ql&&!r&&Cu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Su(n)){a=Mu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=nu;var l=c.current.memoizedState.isDehydrated;if(l&&(Eu(c,s).flags|=256),s=Mu(c,s,!1),s!==2){if(Jl&&!l){c.errorRecoveryDisabledLanes|=o,Ql|=o,a=4;break a}o=ru,ru=a,o!==null&&(ru===null?ru=o:ru.push.apply(ru,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Eu(e,0),Cu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Cu(r,t,eu,!Kl);break a;case 2:ru=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=au+300-Ae(),10<a)){if(Cu(r,t,eu,!Kl),Xe(r,0,!0)!==0)break a;pu=t,r.timeoutHandle=Xd(xu.bind(null,r,n,ru,cu,iu,t,eu,Ql,tu,Kl,o,`Throttled`,-0,0),a);break a}xu(r,n,ru,cu,iu,t,eu,Ql,tu,Kl,o,null,-0,0)}}break}while(1);od(e)}function xu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nn},Pl(t,a,d);var m=(a&62914560)===a?au-Ae():(a&4194048)===a?ou-Ae():0;if(m=Zf(d,m),m!==null){pu=a,e.cancelPendingCommit=m(Vu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Cu(e,a,o,!l);return}}Vu(e,t,a,n,r,i,o,s,c)}function Su(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Tr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cu(e,t,n,r){t&=~$l,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-He(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&rt(e,n,t)}function wu(){return Hl&6?!0:(sd(0,!1),!1)}function Tu(){if(U!==null){if(Wl===0)var e=U.return;else e=U,qi=Ki=null,Ao(e),Ma=null,Na=0,e=U;for(;e!==null;)Hc(e.alternate,e),e=e.return;U=null}}function Eu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),pu=0,Tu(),Ul=e,U=n=di(e.current,null),W=t,Wl=0,Gl=null,Kl=!1,ql=Ze(e,t),Jl=!1,tu=eu=$l=Ql=Zl=Xl=0,ru=nu=null,iu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-He(r),a=1<<i;t|=e[i],r&=~a}return Yl=t,ti(),n}function Du(e,t){V=null,A.H=zs,t===Sa||t===wa?(t=Aa(),Wl=3):t===Ca?(t=Aa(),Wl=4):Wl=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Gl=t,U===null&&(Xl=1,Zs(e,yi(t,e.current)))}function Ou(){var e=no.current;return e===null?!0:(W&4194048)===W?ro===null:(W&62914560)===W||W&536870912?e===ro:!1}function ku(){var e=A.H;return A.H=zs,e===null?zs:e}function Au(){var e=A.A;return A.A=Bl,e}function ju(){Xl=4,Kl||(W&4194048)!==W&&no.current!==null||(ql=!0),!(Zl&134217727)&&!(Ql&134217727)||Ul===null||Cu(Ul,W,eu,!1)}function Mu(e,t,n){var r=Hl;Hl|=2;var i=ku(),a=Au();(Ul!==e||W!==t)&&(cu=null,Eu(e,t)),t=!1;var o=Xl;a:do try{if(Wl!==0&&U!==null){var s=U,c=Gl;switch(Wl){case 8:Tu(),o=6;break a;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var l=Wl;if(Wl=0,Gl=null,Ru(e,s,c,l),n&&ql){o=0;break a}break;default:l=Wl,Wl=0,Gl=null,Ru(e,s,c,l)}}Nu(),o=Xl;break}catch(t){Du(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Hl=r,A.H=i,A.A=a,U===null&&(Ul=null,W=0,ti()),o}function Nu(){for(;U!==null;)Iu(U)}function Pu(e,t){var n=Hl;Hl|=2;var r=ku(),a=Au();Ul!==e||W!==t?(cu=null,su=Ae()+500,Eu(e,t)):ql=Ze(e,t);a:do try{if(Wl!==0&&U!==null){t=U;var o=Gl;b:switch(Wl){case 1:Wl=0,Gl=null,Ru(e,t,o,1);break;case 2:case 9:if(Ea(o)){Wl=0,Gl=null,Lu(t);break}t=function(){Wl!==2&&Wl!==9||Ul!==e||(Wl=7),od(e)},o.then(t,t);break a;case 3:Wl=7;break a;case 4:Wl=5;break a;case 7:Ea(o)?(Wl=0,Gl=null,Lu(t)):(Wl=0,Gl=null,Ru(e,t,o,7));break;case 5:var s=null;switch(U.tag){case 26:s=U.memoizedState;case 5:case 27:var c=U;if(s?Jf(s):c.stateNode.complete){Wl=0,Gl=null;var l=c.sibling;if(l!==null)U=l;else{var u=c.return;u===null?U=null:(U=u,zu(u))}break b}}Wl=0,Gl=null,Ru(e,t,o,5);break;case 6:Wl=0,Gl=null,Ru(e,t,o,6);break;case 8:Tu(),Xl=6;break a;default:throw Error(i(462))}}Fu();break}catch(t){Du(e,t)}while(1);return qi=Ki=null,A.H=r,A.A=a,Hl=n,U===null?(Ul=null,W=0,ti(),Xl):0}function Fu(){for(;U!==null&&!Oe();)Iu(U)}function Iu(e){var t=Nc(e.alternate,e,Yl);e.memoizedProps=e.pendingProps,t===null?zu(e):U=t}function Lu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,W);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,W);break;case 5:Ao(t);default:Hc(n,t),t=U=fi(t,Yl),t=Nc(n,t,Yl)}e.memoizedProps=e.pendingProps,t===null?zu(e):U=t}function Ru(e,t,n,r){qi=Ki=null,Ao(t),Ma=null,Na=0;var i=t.return;try{if(nc(e,i,t,n,W)){Xl=1,Zs(e,yi(n,e.current)),U=null;return}}catch(t){if(i!==null)throw U=i,t;Xl=1,Zs(e,yi(n,e.current)),U=null;return}t.flags&32768?(z||r===1?e=!0:ql||W&536870912?e=!1:(Kl=e=!0,(r===2||r===9||r===3||r===6)&&(r=no.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bu(t,e)):zu(t)}function zu(e){var t=e;do{if(t.flags&32768){Bu(t,Kl);return}e=t.return;var n=Bc(t.alternate,t,Yl);if(n!==null){U=n;return}if(t=t.sibling,t!==null){U=t;return}U=t=e}while(t!==null);Xl===0&&(Xl=5)}function Bu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,U=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){U=e;return}U=e=n}while(e!==null);Xl=6,U=null}function Vu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Ku();while(uu!==0);if(Hl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ei,nt(e,n,o,s,c,l),e===Ul&&(U=Ul=null,W=0),fu=t,du=e,pu=n,mu=o,hu=a,gu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,td(Pe,function(){return qu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=A.T,A.T=null,a=j.p,j.p=2,s=Hl,Hl|=4;try{sl(e,t,n)}finally{Hl=s,j.p=a,A.T=r}}uu=1,Hu(),Uu(),Wu()}}function Hu(){if(uu===1){uu=0;var e=du,t=fu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=Hl;Hl|=4;try{bl(t,e);var a=Ud,o=Ar(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&kr(s.ownerDocument.documentElement,s)){if(c!==null&&jr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}dp=!!Hd,Ud=Hd=null}finally{Hl=i,j.p=r,A.T=n}}e.current=t,uu=2}}function Uu(){if(uu===2){uu=0;var e=du,t=fu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=Hl;Hl|=4;try{cl(e,t.alternate,t)}finally{Hl=i,j.p=r,A.T=n}}uu=3}}function Wu(){if(uu===4||uu===3){uu=0,ke();var e=du,t=fu,n=pu,r=gu;t.subtreeFlags&10256||t.flags&10256?uu=5:(uu=0,fu=du=null,Gu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(lu=null),st(n),t=t.stateNode,Be&&typeof Be.onCommitFiberRoot==`function`)try{Be.onCommitFiberRoot(ze,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=A.T,i=j.p,j.p=2,A.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{A.T=t,j.p=i}}pu&3&&Ku(),od(e),i=e.pendingLanes,n&261930&&i&42?e===G?_u++:(_u=0,G=e):_u=0,sd(0,!1)}}function Gu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Ku(){return Hu(),Uu(),Wu(),qu()}function qu(){if(uu!==5)return!1;var e=du,t=mu;mu=0;var n=st(pu),r=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=hu,hu=null;var o=du,s=pu;if(uu=0,fu=du=null,pu=0,Hl&6)throw Error(i(331));var c=Hl;if(Hl|=4,Ll(o.current),kl(o,o.current,s,n),Hl=c,sd(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{j.p=a,A.T=r,Gu(e,t)}}function Ju(e,t,n){t=yi(n,t),t=$s(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(tt(e,2),od(e))}function Yu(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(lu===null||!lu.has(r))){e=yi(n,e),n=ec(2),r=Ua(t,n,2),r!==null&&(tc(n,r,t,e),tt(r,2),od(r));break}}t=t.return}}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Jl=!0,i.add(n),e=Zu.bind(null,e,t,n),t.then(e,e))}function Zu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(W&n)===n&&(Xl===4||Xl===3&&(W&62914560)===W&&300>Ae()-au?!(Hl&2)&&Eu(e,0):$l|=n,tu===W&&(tu=0)),od(e)}function Qu(e,t){t===0&&(t=$e()),e=ii(e,t),e!==null&&(tt(e,t),od(e))}function $u(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qu(e,n)}function ed(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Qu(e,n)}function td(e,t){return Ee(e,t)}var q=null,nd=null,rd=!1,id=!1,ad=!1,J=0;function od(e){e!==nd&&e.next===null&&(nd===null?q=nd=e:nd=nd.next=e),id=!0,rd||(rd=!0,pd())}function sd(e,t){if(!ad&&id){ad=!0;do for(var n=!1,r=q;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-He(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,fd(r,a))}else a=W,a=Xe(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,fd(r,a));r=r.next}while(n);ad=!1}}function cd(){ld()}function ld(){id=rd=!1;var e=0;J!==0&&Yd()&&(e=J);for(var t=Ae(),n=null,r=q;r!==null;){var i=r.next,a=ud(r,t);a===0?(r.next=null,n===null?q=i:n.next=i,i===null&&(nd=n)):(n=r,(e!==0||a&3)&&(id=!0)),r=i}uu!==0&&uu!==5||sd(e,!1),J!==0&&(J=0)}function ud(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-He(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=W,n=Xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Wl===2||Wl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&De(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&De(r),st(n)){case 2:case 8:n=Ne;break;case 32:n=Pe;break;case 268435456:n=Ie;break;default:n=Pe}return r=dd.bind(null,e),n=Ee(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&De(r),e.callbackPriority=2,e.callbackNode=null,2}function dd(e,t){if(uu!==0&&uu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ku()&&e.callbackNode!==n)return null;var r=W;return r=Xe(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(bu(e,r,t),ud(e,Ae()),e.callbackNode!=null&&e.callbackNode===n?dd.bind(null,e):null)}function fd(e,t){if(Ku())return null;bu(e,t,!0)}function pd(){$d(function(){Hl&6?Ee(Me,cd):ld()})}function md(){if(J===0){var e=fa;e===0&&(e=Ke,Ke<<=1,!(Ke&261888)&&(Ke=256)),J=e}return J}function hd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:tn(``+e)}function gd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function _d(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=hd((i[ft]||null).action),o=r.submitter;o&&(t=(t=o[ft]||null)?hd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new wn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(J!==0){var e=o?gd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?gd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var vd=0;vd<Yr.length;vd++){var yd=Yr[vd];Xr(yd.toLowerCase(),`on`+(yd[0].toUpperCase()+yd.slice(1)))}Xr(Hr,`onAnimationEnd`),Xr(Ur,`onAnimationIteration`),Xr(Wr,`onAnimationStart`),Xr(`dblclick`,`onDoubleClick`),Xr(`focusin`,`onFocus`),Xr(`focusout`,`onBlur`),Xr(L,`onTransitionRun`),Xr(Gr,`onTransitionStart`),Xr(Kr,`onTransitionCancel`),Xr(qr,`onTransitionEnd`),Dt(`onMouseEnter`,[`mouseout`,`mouseover`]),Dt(`onMouseLeave`,[`mouseout`,`mouseover`]),Dt(`onPointerEnter`,[`pointerout`,`pointerover`]),Dt(`onPointerLeave`,[`pointerout`,`pointerover`]),Et(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Et(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Et(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Et(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var bd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),xd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(bd));function Sd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Zr(e)}i.currentTarget=null,a=c}}}}function Y(e,t){var n=t[mt];n===void 0&&(n=t[mt]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,wt.forEach(function(t){t!==`selectionchange`&&(xd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(vp(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}n=i.bind(null,t,n,e),i=void 0,!pn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=bt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}un(function(){var r=a,i=an(n),s=[];a:{var c=Jr.get(e);if(c!==void 0){var l=wn,u=e;switch(e){case`keypress`:if(yn(n)===0)break a;case`keydown`:case`keyup`:l=Hn;break;case`focusin`:u=`focus`,l=Nn;break;case`focusout`:u=`blur`,l=Nn;break;case`beforeblur`:case`afterblur`:l=Nn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=jn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Mn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Wn;break;case Hr:case Ur:case Wr:l=Pn;break;case qr:l=Gn;break;case`scroll`:case`scrollend`:l=En;break;case`wheel`:l=Kn;break;case`copy`:case`cut`:case`paste`:l=Fn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Un;break;case`toggle`:case`beforetoggle`:l=qn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=dn(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==rn&&(u=n.relatedTarget||n.fromElement)&&(bt(u)||u[pt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?bt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=jn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Un,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:St(l),h=u==null?c:St(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,bt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(s,c,l,d,!1),u!==null&&f!==null&&jd(s,f,u,d,!0)}}a:{if(c=r?St(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=pr;else if(sr(c))if(mr)v=Cr;else{v=xr;var y=br}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Qt(r.elementType)&&(v=pr):v=Sr;if(v&&=v(e,r)){cr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Wt(c,`number`,c.value)}switch(y=r?St(r):window,e){case`focusin`:(sr(y)||y.contentEditable===`true`)&&(Nr=y,Pr=r,Fr=null);break;case`focusout`:Fr=Pr=Nr=null;break;case`mousedown`:Ir=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ir=!1,Lr(s,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Lr(s,n,i)}var b;if(Yn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else rr?tr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Qn&&n.locale!==`ko`&&(rr||x!==`onCompositionStart`?x===`onCompositionEnd`&&rr&&(b=vn()):(hn=i,gn=`value`in hn?hn.value:hn.textContent,rr=!0)),y=kd(r,x),0<y.length&&(x=new In(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=nr(n),b!==null&&(x.data=b)))),(b=Zn?ir(e,n):ar(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new In(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),_d(s,e,r,n,i)}Sd(s,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=dn(e,n),i!=null&&r.unshift(Od(e,i,a)),i=dn(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=dn(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=dn(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
9
+ `).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Jt(e,``+r);break;case`className`:Mt(e,`class`,r);break;case`tabIndex`:Mt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Mt(e,n,r);break;case`style`:Zt(e,r,o);break;case`data`:if(t!==`object`){Mt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=tn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=tn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=tn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Y(`beforetoggle`,e),Y(`toggle`,e),jt(e,`popover`,r);break;case`xlinkActuate`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:jt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=$t.get(n)||n,jt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:Zt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Jt(e,``+r);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Tt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ft]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):jt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Y(`error`,e),Y(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Y(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Id(e,t,r,d,n,null)}}Ut(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Y(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Gt(e,!!r,n,!0):Gt(e,!!r,t,!1);return;case`textarea`:for(s in Y(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Id(e,t,s,c,n,null)}qt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Id(e,t,l,r,n,null)}return;case`dialog`:Y(`beforetoggle`,e),Y(`toggle`,e),Y(`cancel`,e),Y(`close`,e);break;case`iframe`:case`object`:Y(`load`,e);break;case`video`:case`audio`:for(r=0;r<bd.length;r++)Y(bd[r],e);break;case`image`:Y(`error`,e),Y(`load`,e);break;case`details`:Y(`toggle`,e);break;case`embed`:case`source`:case`link`:Y(`error`,e),Y(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,u,r,n,null)}return;default:if(Qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Id(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Id(e,t,p,m,r,f)}}Ht(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Id(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Gt(e,!!n,n?[]:``,!1):Gt(e,!!n,t,!0)):Gt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Id(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Id(e,t,s,a,r,o)}Kt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Id(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Id(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Id(e,t,u,p,r,m)}return;default:if(Qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Bd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Kd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function qd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(ef)};function ef(e){setTimeout(function(){throw e})}function tf(e){return e===`head`}function nf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Lp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[vt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body);n=i}while(n);Lp(t)}function rf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:af(n),yt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function of(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[vt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function ff(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gf(e,t,n){switch(t=Wd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=j.d;j.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=wu();return e||t}function Cf(e){var t=xt(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Vt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Vt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Vt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Vt(n.imageSizes)+`"]`)):i+=`[href="`+Vt(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Rf(e)}vf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Vt(r)+`"][href="`+Vt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rf(e)}if(!vf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),Ct(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=P(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);Ct(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=P(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),Ct(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=P(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),Ct(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=fe.current)?bf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Pf(n.href),n=P(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pf(n.href);var o=P(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vf.set(e,n),o||Lf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Rf(n),n=P(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pf(e){return`href="`+Vt(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Lf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),Ct(t),e.head.appendChild(t))}function Rf(e){return`[src="`+Vt(e)+`"]`}function zf(e){return`script[async]`+e}function Bf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Vt(n.href)+`"]`);if(r)return t.instance=r,Ct(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ct(r),Rd(r,`style`,a),Vf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,Ct(o),o;r=If(n),(a=vf.get(a))&&Hf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Vf(o,n.precedence,e),t.instance=o;case`script`:return o=Rf(n.src),(a=e.querySelector(zf(o)))?(t.instance=a,Ct(a),a):(r=n,(a=vf.get(o))&&(r=f({},n),Uf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ct(a),Rd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vf(r,n.precedence,e));return t.instance}function Vf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wf=null;function Gf(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[vt]||a[dt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Yf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Qf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ct(a);return}a=t.ownerDocument||t,r=If(r),(i=vf.get(i))&&Hf(r,i),a=a.createElement(`link`),Ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Qf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Xf=0;function Zf(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $f=null;function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$f=new Map,t.forEach(tp,e),$f=null,Qf.call(e))}function tp(e,t){if(!(t.state.loading&4)){var n=$f.get(e);if(n)var r=n.get(null);else{n=new Map,$f.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Qf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var np={$$typeof:C,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function rp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ip(e,t,n,r,i,a,o,s,c,l,u,d){return e=new rp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=li(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function ap(e){return e?(e=si,e):si}function op(e,t,n,r,i,a){i=ap(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(K(n,e,t),Wa(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=ii(e,67108864);t!==null&&K(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=vu();t=ot(t);var n=ii(e,t);n!==null&&K(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,mp(e,t,n,r)}finally{j.p=a,A.T=i}}function pp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,mp(e,t,n,r)}finally{j.p=a,A.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Dd(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=xt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ye(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-He(o);s.entanglements[1]|=c,o&=~c}od(a),!(Hl&6)&&(su=Ae()+500,sd(0,!1))}}break;case 31:case 13:s=ii(a,2),s!==null&&K(s,a,2),wu(),cp(a,2)}if(a=hp(r),a===null&&Dd(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function hp(e){return e=an(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=bt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gp=e,null}function vp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(je()){case Me:return 2;case Ne:return 8;case Pe:case Fe:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=xt(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=bt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,lt(e.priority,function(){up(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,lt(e.priority,function(){up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rn=r,n.target.dispatchEvent(r),rn=null}else return t=xt(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function Ip(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(_p(r||n)===null)continue;break}var a=xt(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Lp(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ft]||null;if(typeof a==`function`)o||Ip(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ft]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Ip(n)}}}function Rp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function zp(e){this._internalRoot=e}Bp.prototype.render=zp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;op(n,vu(),e,t,null,null)},Bp.prototype.unmount=zp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),wu(),t[pt]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var Vp=n.version;if(Vp!==`19.2.5`)throw Error(i(527,Vp,`19.2.5`));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Hp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:A,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{ze=Up.inject(Hp),Be=Up}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ip(e,1,!1,null,null,n,r,null,o,s,c,Rp),e[pt]=t.current,Td(e),new zp(t)},e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=Js,c=Ys,l=Xs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ip(e,1,!0,t,n??null,r,o,u,s,c,l,Rp),t.context=ap(null),n=t.current,r=vu(),r=ot(r),o=Ha(r),o.callback=null,Ua(n,o,r),n=r,t.current.lanes=n,tt(t,n),od(t),e[pt]=t.current,Td(e),new Bp(t)},e.version=`19.2.5`})),S=s((e=>{})),C=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=x()})),w=s((e=>{var t=m();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}})),T=s((e=>{})),E=s(((e,t)=>{t.exports=w()})),ee=u(C(),1),D=c({Provider:()=>at,ReactReduxContext:()=>Xe,batch:()=>ht,connect:()=>rt,createDispatchHook:()=>ut,createSelectorHook:()=>pt,createStoreHook:()=>ct,shallowEqual:()=>Ne,useDispatch:()=>dt,useSelector:()=>mt,useStore:()=>lt}),O=u(m(),1),te=u(E(),1),ne=Symbol.for(`react.transitional.element`),re=Symbol.for(`react.portal`),ie=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),ae=Symbol.for(`react.profiler`),A=Symbol.for(`react.consumer`),j=Symbol.for(`react.context`),oe=Symbol.for(`react.forward_ref`),se=Symbol.for(`react.suspense`),ce=Symbol.for(`react.suspense_list`),le=Symbol.for(`react.memo`),M=Symbol.for(`react.lazy`),N=oe,ue=le;function de(e){if(typeof e==`object`&&e){let{$$typeof:t}=e;switch(t){case ne:switch(e=e.type,e){case ie:case ae:case k:case se:case ce:return e;default:switch(e&&=e.$$typeof,e){case j:case oe:case M:case le:return e;case A:return e;default:return t}}case re:return t}}}function fe(e){return de(e)===le}function pe(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,u,d,f;function p(i,a){return c=i,l=a,u=e(c,l),d=t(r,l),f=n(u,d,l),s=!0,f}function m(){return u=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function h(){return e.dependsOnOwnProps&&(u=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function g(){let t=e(c,l),r=!o(t,u);return u=t,r&&(f=n(u,d,l)),f}function _(e,t){let n=!a(t,l),r=!i(e,c,t,l);return c=e,l=t,n&&r?m():n?h():r?g():f}return function(e,t){return s?_(e,t):p(e,t)}}function me(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return pe(t(e,i),n(e,i),r(e,i),e,i)}function he(e,t){let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=(...e)=>t(i(...e)))}return n}function ge(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function _e(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function ve(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=_e(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=_e(i),i=r(t,n)),i},r}}function ye(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function be(e){return e&&typeof e==`object`?ge(t=>he(e,t)):e?typeof e==`function`?ve(e,`mapDispatchToProps`):ye(e,`mapDispatchToProps`):ge(e=>({dispatch:e}))}function xe(e){return e?typeof e==`function`?ve(e,`mapStateToProps`):ye(e,`mapStateToProps`):ge(()=>({}))}function Se(e,t,n){return{...n,...e,...t}}function Ce(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i=!1,a;return function(t,n,o){let s=e(t,n,o);return i?r(s,a)||(a=s):(i=!0,a=s),a}}}function we(e){return e?typeof e==`function`?Ce(e):ye(e,`mergeProps`):()=>Se}function Te(e){e()}function Ee(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Te(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var De={notify(){},get:()=>[]};function Oe(e,t){let n,r=De,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Ee())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=De)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var ke=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Ae=typeof navigator<`u`&&navigator.product===`ReactNative`,je=ke||Ae?O.useLayoutEffect:O.useEffect;function Me(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function Ne(e,t){if(Me(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Me(e[n[r]],t[n[r]]))return!1;return!0}var Pe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Le={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Re={[N]:Ie,[ue]:Le};function ze(e){return fe(e)?Le:Re[e.$$typeof]||Pe}var Be=Object.defineProperty,Ve=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Ue=Object.getOwnPropertyDescriptor,We=Object.getPrototypeOf,Ge=Object.prototype;function Ke(e,t){if(typeof t!=`string`){if(Ge){let n=We(t);n&&n!==Ge&&Ke(e,n)}let n=Ve(t);He&&(n=n.concat(He(t)));let r=ze(e),i=ze(t);for(let a=0;a<n.length;++a){let o=n[a];if(!Fe[o]&&!(i&&i[o])&&!(r&&r[o])){let n=Ue(t,o);try{Be(e,o,n)}catch{}}}}return e}var qe=Symbol.for(`react-redux-context`),Je=typeof globalThis<`u`?globalThis:{};function Ye(){if(!O.createContext)return{};let e=Je[qe]??=new Map,t=e.get(O.createContext);return t||(t=O.createContext(null),e.set(O.createContext,t)),t}var Xe=Ye(),Ze=[null,null];function Qe(e,t,n){je(()=>e(...t),n)}function $e(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function et(e,t,n,r,i,a,o,s,c,l,u){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e=t.getState(),n,p;try{n=r(e,i.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?o.current||l():(a.current=n,c.current=n,o.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function tt(e,t){return e===t}function nt(e,t,n,{pure:r,areStatesEqual:i=tt,areOwnPropsEqual:a=Ne,areStatePropsEqual:o=Ne,areMergedPropsEqual:s=Ne,forwardRef:c=!1,context:l=Xe}={}){let u=l,d=xe(e),f=be(t),p=we(n),m=!!e;return e=>{let t=e.displayName||e.name||`Component`,n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){let[n,i,a]=O.useMemo(()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),o=O.useMemo(()=>{let e=u;return n?.Consumer,e},[n,u]),s=O.useContext(o),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,l=!!s&&!!s.store,d=c?t.store:s.store,f=l?s.getServerState:d.getState,p=O.useMemo(()=>me(d.dispatch,r),[d]),[h,g]=O.useMemo(()=>{if(!m)return Ze;let e=Oe(d,c?void 0:s.subscription);return[e,e.notifyNestedSubs.bind(e)]},[d,c,s]),_=O.useMemo(()=>c?s:{...s,subscription:h},[c,s,h]),v=O.useRef(void 0),y=O.useRef(a),b=O.useRef(void 0),x=O.useRef(!1),S=O.useRef(!1),C=O.useRef(void 0);je(()=>(S.current=!0,()=>{S.current=!1}),[]);let w=O.useMemo(()=>()=>b.current&&a===y.current?b.current:p(d.getState(),a),[d,a]),T=O.useMemo(()=>e=>h?et(m,d,h,p,y,v,x,S,b,g,e):()=>{},[h]);Qe($e,[y,v,x,a,b,g]);let E;try{E=O.useSyncExternalStore(T,w,f?()=>p(f(),a):w)}catch(e){throw C.current&&(e.message+=`
10
10
  The error may be correlated with this previous error:
11
11
  ${C.current.stack}
12
12
 
13
- `),e}Pe(()=>{C.current=void 0,b.current=void 0,v.current=ee});let te=E.useMemo(()=>E.createElement(e,{...ee,ref:i}),[i,e,ee]);return E.useMemo(()=>m?E.createElement(o.Provider,{value:_},te):te,[o,te,_])}let h=E.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=E.forwardRef(function(e,t){return E.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,Ye(t,e)}return Ye(h,e)}}var ot=at;function st(e){let{children:t,context:n,serverState:r,store:i}=e,a=E.useMemo(()=>({store:i,subscription:je(i),getServerState:r?()=>r:void 0}),[i,r]),o=E.useMemo(()=>i.getState(),[i]);Pe(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||$e;return E.createElement(s.Provider,{value:a},t)}var ct=st;function lt(e=$e){return function(){return E.useContext(e)}}var ut=lt();function dt(e=$e){let t=e===$e?ut:lt(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var ft=dt();function pt(e=$e){let t=e===$e?ft:dt(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var mt=pt(),ht=(e,t)=>e===t;function gt(e=$e){let t=e===$e?ut:lt(e),n=(e,n={})=>{let{equalityFn:r=ht}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();E.useRef(!0);let s=E.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,re.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return E.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}var _t=gt(),vt=Oe,yt=`modulepreload`,bt=function(e,t){return new URL(e,t).href},xt={},St=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=bt(t,n),t in xt)return;xt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:yt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ct=c({Action:()=>Ot,Await:()=>co,AwaitContextProvider:()=>Gi,BrowserRouter:()=>nl,CRITICAL_CSS_DATA_ATTRIBUTE:()=>Fc,DataRouterContext:()=>Ri,DataRouterStateContext:()=>zi,ENABLE_DEV_WARNINGS:()=>!0,ErrorResponseImpl:()=>Bn,FetchersContext:()=>Ui,Form:()=>cl,FrameworkContext:()=>Ac,HashRouter:()=>rl,HistoryRouter:()=>il,IDLE_BLOCKER:()=>dr,IDLE_FETCHER:()=>ur,IDLE_NAVIGATION:()=>lr,Link:()=>ol,Links:()=>Ic,LocationContext:()=>qi,MemoryRouter:()=>no,Meta:()=>Vc,NO_BODY_STATUS_CODES:()=>Ts,NavLink:()=>sl,Navigate:()=>ro,NavigationContext:()=>Ki,Outlet:()=>io,PrefetchPageLinks:()=>Lc,RSCRouterContext:()=>Bi,RemixErrorBoundary:()=>Jc,Route:()=>ao,RouteContext:()=>Ji,Router:()=>oo,RouterContextProvider:()=>Wt,RouterProvider:()=>Qa,Routes:()=>so,SINGLE_FETCH_REDIRECT_STATUS:()=>202,Scripts:()=>Gc,ScrollRestoration:()=>ll,SingleFetchRedirectSymbol:()=>Cs,StaticRouter:()=>kl,StaticRouterProvider:()=>Al,StreamTransfer:()=>Es,URL_LIMIT:()=>vc,ViewTransitionContext:()=>Hi,WithComponentProps:()=>ho,WithErrorBoundaryProps:()=>xo,WithHydrateFallbackProps:()=>vo,convertRoutesToDataRoutes:()=>Xt,createBrowserHistory:()=>Mt,createBrowserRouter:()=>Qc,createClientRoutes:()=>lc,createClientRoutesWithHMRRevalidationOptOut:()=>oc,createContext:()=>Ht,createHashHistory:()=>Nt,createHashRouter:()=>$c,createMemoryHistory:()=>jt,createMemoryRouter:()=>Xa,createPath:()=>Rt,createRequestInit:()=>vs,createRouter:()=>br,createRoutesFromChildren:()=>fo,createRoutesFromElements:()=>po,createSearchParams:()=>jo,createServerRoutes:()=>ac,createStaticHandler:()=>xr,createStaticHandler2:()=>Nl,createStaticRouter:()=>Pl,data:()=>In,decodeRedirectErrorDigest:()=>$i,decodeRouteErrorResponseDigest:()=>ea,decodeViaTurboStream:()=>Ls,encode:()=>_s,escapeHtml:()=>xs,generatePath:()=>hn,getManifestPath:()=>Cc,getPatchRoutesOnNavigationFunction:()=>xc,getSingleFetchDataStrategyImpl:()=>Os,getStaticContextFromError:()=>Sr,getTurboStreamSingleFetchDataStrategy:()=>Ds,hydrationRouteProperties:()=>Ya,instrumentHandler:()=>Jn,invalidProtocols:()=>ei,invariant:()=>M,isDataWithResponseInit:()=>Ci,isMutationMethod:()=>Oi,isRedirectResponse:()=>Ei,isRedirectStatusCode:()=>Ti,isResponse:()=>wi,isRouteErrorResponse:()=>Vn,mapRouteProperties:()=>Ja,matchPath:()=>gn,matchRoutes:()=>Qt,matchRoutesImpl:()=>$t,noActionDefinedError:()=>cc,parsePath:()=>zt,redirect:()=>Ln,redirectDocument:()=>Rn,renderMatches:()=>B,replace:()=>zn,resolvePath:()=>Cn,setIsHydrated:()=>Wc,shouldHydrateRouteLoader:()=>mc,singleFetchUrl:()=>Fs,stripBasename:()=>yn,stripIndexParam:()=>Ps,useActionData:()=>Pa,useAsyncError:()=>Ia,useAsyncValue:()=>z,useBeforeUnload:()=>Tl,useBlocker:()=>Ra,useFetcher:()=>yl,useFetchers:()=>bl,useFogOFWarDiscovery:()=>Sc,useFormAction:()=>vl,useHref:()=>ta,useInRouterContext:()=>na,useLinkClickHandler:()=>pl,useLoaderData:()=>Ma,useLocation:()=>R,useMatch:()=>ia,useMatches:()=>ja,useNavigate:()=>sa,useNavigation:()=>ka,useNavigationType:()=>ra,useOutlet:()=>da,useOutletContext:()=>ua,useParams:()=>fa,usePrompt:()=>Dl,useResolvedPath:()=>pa,useRevalidator:()=>Aa,useRoute:()=>Ha,useRouteError:()=>Fa,useRouteLoaderData:()=>Na,useRoutes:()=>ma,useScrollRestoration:()=>wl,useSearchParams:()=>ml,useSubmit:()=>_l,useViewTransitionState:()=>Ol,warnOnce:()=>Wa,withComponentProps:()=>go,withErrorBoundaryProps:()=>So,withHydrateFallbackProps:()=>yo}),wt=e=>{throw TypeError(e)},Tt=(e,t,n)=>t.has(e)||wt(`Cannot `+n),j=(e,t,n)=>(Tt(e,t,`read from private field`),n?n.call(e):t.get(e)),Et=(e,t,n)=>t.has(e)?wt(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Dt=(e,t,n,r)=>(Tt(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Ot=(e=>(e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`,e))(Ot||{}),kt=`popstate`;function At(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function jt(e={}){let{initialEntries:t=[`/`],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((e,t)=>u(e,typeof e==`string`?null:e.state,t===0?`default`:void 0,typeof e==`string`?void 0:e.mask));let a=c(n??i.length-1),o=`POP`,s=null;function c(e){return Math.min(Math.max(e,0),i.length-1)}function l(){return i[a]}function u(e,t=null,n,r){let a=Lt(i?l().pathname:`/`,e,t,n,r);return Pt(a.pathname.charAt(0)===`/`,`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return typeof e==`string`?e:Rt(e)}return{get index(){return a},get action(){return o},get location(){return l()},createHref:d,createURL(e){return new URL(d(e),`http://localhost`)},encodeLocation(e){let t=typeof e==`string`?zt(e):e;return{pathname:t.pathname||``,search:t.search||``,hash:t.hash||``}},push(e,t){o=`PUSH`;let n=At(e)?e:u(e,t);a+=1,i.splice(a,i.length,n),r&&s&&s({action:o,location:n,delta:1})},replace(e,t){o=`REPLACE`;let n=At(e)?e:u(e,t);i[a]=n,r&&s&&s({action:o,location:n,delta:0})},go(e){o=`POP`;let t=c(a+e),n=i[t];a=t,s&&s({action:o,location:n,delta:e})},listen(e){return s=e,()=>{s=null}}}}function Mt(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Lt(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Rt(t)}return Bt(t,n,null,e)}function Nt(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=zt(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),Lt(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:Rt(t))}function r(e,t){Pt(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return Bt(t,n,r,e)}function M(e,t){if(e===!1||e==null)throw Error(t)}function Pt(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Ft(){return Math.random().toString(36).substring(2,10)}function It(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Lt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?zt(t):t,state:n,key:t&&t.key||r||Ft(),mask:i}}function Rt({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function zt(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Bt(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=At(e)?e:Lt(h.location,e,t);n&&n(r,e),l=u()+1;let d=It(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=At(e)?e:Lt(h.location,e,t);n&&n(r,e),l=u();let i=It(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Vt(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(kt,d),c=e,()=>{i.removeEventListener(kt,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Vt(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),M(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:Rt(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function Ht(e){return{defaultValue:e}}var Ut,Wt=class{constructor(e){if(Et(this,Ut,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(j(this,Ut).has(e))return j(this,Ut).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){j(this,Ut).set(e,t)}};Ut=new WeakMap;var Gt=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Kt(e){return Gt.has(e)}var qt=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function Jt(e){return qt.has(e)}function Yt(e){return e.index===!0}function Xt(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(M(e.index!==!0||!e.children,`Cannot specify children on an index route`),M(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),Yt(e)){let n={...e,id:s};return r[s]=Zt(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=Zt(n,t(n)),e.children&&(n.children=Xt(e.children,t,o,r,i)),n}})}function Zt(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Qt(e,t,n=`/`){return $t(e,t,n,!1)}function $t(e,t,n,r,i){let a=yn((typeof t==`string`?zt(t):t).pathname||`/`,n);if(a==null)return null;let o=i??tn(e),s=null,c=vn(a);for(let e=0;s==null&&e<o.length;++e)s=N(o[e],c,r);return s}function en(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function tn(e){let t=nn(e);return an(t),t}function nn(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;M(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=An([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(M(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),nn(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:pn(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of rn(e.path))a(e,t,!0,n)}),t}function rn(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=rn(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function an(e){e.sort((e,t)=>e.score===t.score?mn(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var on=/^:[\w-]+$/,sn=3,cn=2,ln=1,un=10,dn=-2,fn=e=>e===`*`;function pn(e,t){let n=e.split(`/`),r=n.length;return n.some(fn)&&(r+=dn),t&&(r+=cn),n.filter(e=>!fn(e)).reduce((e,t)=>e+(on.test(t)?sn:t===``?ln:un),r)}function mn(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function N(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=gn({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=gn({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:An([a,u.pathname]),pathnameBase:Mn(An([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=An([a,u.pathnameBase]))}return o}function hn(e,t={}){let n=e;n.endsWith(`*`)&&n!==`*`&&!n.endsWith(`/*`)&&(Pt(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,`/*`)}".`),n=n.replace(/\*$/,`/*`));let r=n.startsWith(`/`)?`/`:``,i=e=>e==null?``:typeof e==`string`?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&e===`*`)return i(t[`*`]);let a=e.match(/^:([\w-]+)(\??)(.*)/);if(a){let[,e,n,r]=a,o=t[e];return M(n===`?`||o!=null,`Missing ":${e}" param`),encodeURIComponent(i(o))+r}return e.replace(/\?$/g,``)}).filter(e=>!!e).join(`/`)}function gn(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_n(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function _n(e,t=!1,n=!0){Pt(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=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function vn(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Pt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function yn(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 bn({basename:e,pathname:t}){return t===`/`?e:An([e,t])}var xn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sn=e=>xn.test(e);function Cn(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?zt(e):e,a;return n?(n=kn(n),a=n.startsWith(`/`)?wn(n.substring(1),`/`):wn(n,t)):a=t,{pathname:a,search:Nn(r),hash:Pn(i)}}function wn(e,t){let n=jn(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Tn(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 <Link to="..."> and the router will parse it for you.`}function En(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Dn(e){let t=En(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function On(e,t,n,r=!1){let i;typeof e==`string`?i=zt(e):(i={...e},M(!i.pathname||!i.pathname.includes(`?`),Tn(`?`,`pathname`,`search`,i)),M(!i.pathname||!i.pathname.includes(`#`),Tn(`#`,`pathname`,`hash`,i)),M(!i.search||!i.search.includes(`#`),Tn(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Cn(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var kn=e=>e.replace(/\/\/+/g,`/`),An=e=>kn(e.join(`/`)),jn=e=>e.replace(/\/+$/,``),Mn=e=>jn(e).replace(/^\/*/,`/`),Nn=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Pn=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Fn=class{constructor(e,t){this.type=`DataWithResponseInit`,this.data=e,this.init=t||null}};function In(e,t){return new Fn(e,typeof t==`number`?{status:t}:t)}var Ln=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},Rn=(e,t)=>{let n=Ln(e,t);return n.headers.set(`X-Remix-Reload-Document`,`true`),n},zn=(e,t)=>{let n=Ln(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},Bn=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Vn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Hn(e){return An(e.map(e=>e.route.path).filter(Boolean))||`/`}var Un=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Wn(e,t){let n=e;if(typeof n!=`string`||!xn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Un)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=yn(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Pt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Gn=Symbol(`Uninstrumented`);function Kn(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Yn(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Yn(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Gn]??i,a=Yn(n[e],t,(...e)=>Zn(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Gn]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Gn]??e,r=Yn(n.middleware,t,(...e)=>Zn(e[0]));return r?(r[Gn]=t,r):e})),r}function qn(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Gn]??e.navigate,r=Yn(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?Rt(n):`.`,...Qn(e,r??{})}});r&&(r[Gn]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Gn]??e.fetch,r=Yn(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Qn(e,i??{})}});r&&(r[Gn]=t,e.fetch=r)}return e}function Jn(e,t){let n={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}));let r=e;return n.request.length>0&&(r=Yn(n.request,e,(...e)=>{let[t,n]=e;return{request:$n(t),context:n==null?n:er(n)}})),r}function Yn(e,t,n){return e.length===0?null:async(...r)=>{let i=await Xn(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function Xn(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=Xn(e,t,n,r-1),a=await o,M(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Zn(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:$n(t),params:{...r},pattern:i,context:er(n)}}function Qn(e,t){return{currentUrl:Rt(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function $n(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function er(e){if(nr(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var tr=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function nr(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===tr}var rr=[`POST`,`PUT`,`PATCH`,`DELETE`],ir=new Set(rr),ar=[`GET`,...rr],or=new Set(ar),sr=new Set([301,302,303,307,308]),cr=new Set([307,308]),lr={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ur={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dr={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},fr=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),pr=`remix-router-transitions`,mr=Symbol(`ResetLoaderData`),hr,gr,_r,vr,yr=class{constructor(e){Et(this,hr),Et(this,gr),Et(this,_r),Et(this,vr),Dt(this,hr,e),Dt(this,gr,tn(e))}get stableRoutes(){return j(this,hr)}get activeRoutes(){return j(this,_r)??j(this,hr)}get branches(){return j(this,vr)??j(this,gr)}get hasHMRRoutes(){return j(this,_r)!=null}setRoutes(e){Dt(this,hr,e),Dt(this,gr,tn(e))}setHmrRoutes(e){Dt(this,_r,e),Dt(this,vr,tn(e))}commitHmrRoutes(){j(this,_r)&&(Dt(this,hr,j(this,_r)),Dt(this,gr,j(this,vr)),Dt(this,_r,void 0),Dt(this,vr,void 0))}};hr=new WeakMap,gr=new WeakMap,_r=new WeakMap,vr=new WeakMap;function br(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;M(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||fr,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Kn(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new yr(Xt(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Ur,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=e.hydrationData!=null,_=$t(s.activeRoutes,e.history.location,c,!1,s.branches),v=!1,y=null,b,x;if(_==null&&!e.patchRoutesOnNavigation){let t=fi(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=di(s.activeRoutes);b=!0,x=!b,_=n,y={[r.id]:t}}else if(_&&!e.hydrationData&&Qe(_,s.activeRoutes,e.history.location.pathname).active&&(_=null),!_){b=!1,x=!b,_=[];let t=Qe(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(v=!0,_=t.matches)}else if(_.some(e=>e.route.lazy))b=!1,x=!b;else if(!_.some(e=>kr(e.route)))b=!0,x=!b;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=_;if(n){let e=_.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}x=!1,b=!0,r.forEach(e=>{let r=Ar(e.route,t,n);x||=r.renderFallback,b&&=!r.shouldLoad})}let S,C={historyAction:e.history.action,location:e.history.location,matches:_,initialized:b,renderFallback:x,navigation:lr,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},w=`POP`,T=null,ee=!1,te,ne=!1,E=new Map,re=null,ie=!1,ae=!1,oe=new Set,se=new Map,ce=0,D=-1,O=new Map,le=new Set,ue=new Map,de=new Map,fe=new Set,k=new Map,A,pe=null;function me(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(A){A(),A=void 0;return}Pt(k.size===0||r!=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 i=Ke({currentLocation:C.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{A=e});e.history.go(r*-1),Ge(i,{state:`blocked`,location:n,proceed(){Ge(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(C.blockers);e.set(i,dr),_e({blockers:e})}}),T?.resolve(),T=null;return}return xe(t,n)}),n){Ii(t,E);let e=()=>L(t,E);t.addEventListener(`pagehide`,e),re=()=>t.removeEventListener(`pagehide`,e)}return C.initialized||xe(`POP`,C.location,{initialHydration:!0}),S}function he(){d&&d(),re&&re(),f.clear(),te&&te.abort(),C.fetchers.forEach((e,t)=>Le(t)),C.blockers.forEach((e,t)=>We(t))}function ge(e){return f.add(e),()=>f.delete(e)}function _e(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),C={...C,...e};let n=[],r=[];C.fetchers.forEach((e,t)=>{e.state===`idle`&&(fe.has(t)?n.push(t):r.push(t))}),fe.forEach(e=>{!C.fetchers.has(e)&&!se.has(e)&&n.push(e)}),[...f].forEach(r=>r(C,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Le(e)),r.forEach(e=>C.fetchers.delete(e))}function ve(t,n,{flushSync:r}={}){let i=C.actionData!=null&&C.navigation.formMethod!=null&&Oi(C.navigation.formMethod)&&C.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?C.actionData:null;let o=n.loaderData?ci(C.loaderData,n.loaderData,n.matches||[],n.errors):C.loaderData,c=C.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,dr)));let l=ie?!1:Ze(t,n.matches||C.matches),u=ee===!0||C.navigation.formMethod!=null&&Oi(C.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),ie||w===`POP`||(w===`PUSH`?e.history.push(t,t.state):w===`REPLACE`&&e.history.replace(t,t.state));let d;if(w===`POP`){let e=E.get(C.location.pathname);e&&e.has(t.pathname)?d={currentLocation:C.location,nextLocation:t}:E.has(t.pathname)&&(d={currentLocation:t,nextLocation:C.location})}else if(ne){let e=E.get(C.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),E.set(C.location.pathname,e)),d={currentLocation:C.location,nextLocation:t}}_e({...n,actionData:a,loaderData:o,historyAction:w,location:t,initialized:!0,renderFallback:!1,navigation:lr,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),w=`POP`,ee=!1,ne=!1,ie=!1,ae=!1,T?.resolve(),T=null,pe?.resolve(),pe=null}async function ye(t,n){if(T?.resolve(),T=null,typeof t==`number`){T||=Li();let n=T.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Dr(!1,Er(C.location,C.matches,c,t,n?.fromRouteId,n?.relative),n),o;n?.mask&&(o={pathname:``,search:``,hash:``,...typeof n.mask==`string`?zt(n.mask):{...C.location.mask,...n.mask}});let s=C.location,l=Lt(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Oi(i.formMethod)&&i.formAction===C.location.pathname+C.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=Ke({currentLocation:s,nextLocation:l,historyAction:d});if(m){Ge(m,{state:`blocked`,location:l,proceed(){Ge(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),ye(t,n)},reset(){let e=new Map(C.blockers);e.set(m,dr),_e({blockers:e})}});return}await xe(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function be(){pe||=Li(),Me(),_e({revalidation:`loading`});let e=pe.promise;return C.navigation.state===`submitting`?e:C.navigation.state===`idle`?(xe(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),e):(xe(w||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:ne===!0}),e)}async function xe(t,n,r){te&&te.abort(),te=null,w=t,ie=(r&&r.startUninterruptedRevalidation)===!0,Xe(C.location,C.matches),ee=(r&&r.preventScrollReset)===!0,ne=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r&&r.overrideNavigation,o=r?.initialHydration&&C.matches&&C.matches.length>0&&!v?C.matches:$t(i,n,c,!1,s.branches),l=(r&&r.flushSync)===!0;if(o&&C.initialized&&!ae&&hi(C.location,n)&&!(r&&r.submission&&Oi(r.submission.formMethod))){ve(n,{matches:o},{flushSync:l});return}let u=Qe(o,i,n.pathname);if(u.active&&u.matches&&(o=u.matches),!o){let{error:e,notFoundMatches:t,route:r}=qe(n.pathname);ve(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l});return}te=new AbortController;let d=ni(e.history,n,te.signal,r&&r.submission),f=e.getContext?await e.getContext():new Wt,p;if(r&&r.pendingError)p=[ui(o).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Oi(r.submission.formMethod)){let t=await Se(d,n,r.submission,o,f,u.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(xi(r)&&Vn(r.error)&&r.error.status===404){te=null,ve(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}o=t.matches||o,p=t.pendingActionResult,a=Mi(n,r.submission),l=!1,u.active=!1,d=ni(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_}=await Ce(d,n,o,f,u.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,l,p,r&&r.callSiteDefaultShouldRevalidate);m||(te=null,ve(n,{matches:h||o,...li(p),loaderData:g,errors:_}))}async function Se(t,n,i,l,u,d,f,p={}){if(Me(),_e({navigation:Ni(n,i)},{flushSync:p.flushSync===!0}),d){let e=await $e(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=di(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=ui(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=qe(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let m,h=Ai(l,n);if(!h.route.action&&!h.route.lazy)m={type:`error`,error:fi(405,{method:t.method,pathname:n.pathname,routeId:h.route.id})};else{let e=await Ae(t,n,Jr(a,o,t,n,l,h,f?[]:r,u),u,null);if(m=e[h.route.id],!m){for(let t of l)if(e[t.route.id]){m=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Si(m)){let n;return n=p&&p.replace!=null?p.replace:ti(m.response.headers.get(`Location`),new URL(t.url),c,e.history)===C.location.pathname+C.location.search,await ke(t,m,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(xi(m)){let e=ui(l,h.route.id);return(p&&p.replace)!==!0&&(w=`PUSH`),{matches:l,pendingActionResult:[e.route.id,m,h.route.id]}}return{matches:l,pendingActionResult:[h.route.id,m]}}async function Ce(t,n,i,l,u,d,f,p,m,h,g,_,v){let y=d||Mi(n,f),b=f||p||ji(y),x=!ie&&!h;if(u){if(x){let e=we(_);_e({navigation:y,...e===void 0?{}:{actionData:e}},{flushSync:g})}let e=await $e(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=di(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=ui(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=qe(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let S=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=Or(t,l,a,o,e.history,C,i,b,n,h?[]:r,h===!0,ae,oe,fe,ue,le,S,c,e.patchRoutesOnNavigation!=null,s.branches,_,v);if(D=++ce,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=Ve();return ve(n,{matches:i,loaderData:{},errors:_&&xi(_[1])?{[_[0]]:_[1].error}:null,...li(_),...e?{fetchers:new Map(C.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(x){let e={};if(!u){e.navigation=y;let t=we(_);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Te(T)),_e(e,{flushSync:g})}T.forEach(e=>{ze(e.key),e.controller&&se.set(e.key,e.controller)});let ee=()=>T.forEach(e=>ze(e.key));te&&te.signal.addEventListener(`abort`,ee);let{loaderResults:ne,fetcherResults:E}=await je(w,T,t,n,l);if(t.signal.aborted)return{shortCircuited:!0};te&&te.signal.removeEventListener(`abort`,ee),T.forEach(e=>se.delete(e.key));let re=pi(ne);if(re)return await ke(t,re.result,!0,{replace:m}),{shortCircuited:!0};if(re=pi(E),re)return le.add(re.key),await ke(t,re.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:O,errors:de}=si(C,i,ne,_,T,E);h&&C.errors&&(de={...C.errors,...de});let k=Ve(),A=He(D),pe=k||A||T.length>0;return{matches:i,loaderData:O,errors:de,...pe?{fetchers:new Map(C.fetchers)}:{}}}function we(e){if(e&&!xi(e[1]))return{[e[0]]:e[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Te(e){return e.forEach(e=>{let t=C.fetchers.get(e.key),n=Pi(void 0,t?t.data:void 0);C.fetchers.set(e.key,n)}),new Map(C.fetchers)}async function Ee(t,n,r,i){ze(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=Er(C.location,C.matches,c,r,n,i?.relative),u=$t(o,l,c,!1,s.branches),d=Qe(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){Pe(t,n,fi(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Dr(!0,l,i);if(m){Pe(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new Wt,g=(i&&i.preventScrollReset)===!0;if(p&&Oi(p.formMethod)){await De(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}ue.set(t,{routeId:n,path:f}),await Oe(t,n,f,u,h,d.active,a,g,p)}async function De(t,n,i,l,u,d,f,p,m,h){Me(),ue.delete(t),Ne(t,Fi(m,C.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=ni(e.history,i,g.signal,m);if(d){let e=await $e(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Pe(t,n,e.error,{flushSync:f});return}else if(e.matches)l=e.matches;else{Pe(t,n,fi(404,{pathname:i}),{flushSync:f});return}}let v=Ai(l,i);if(!v.route.action&&!v.route.lazy){Pe(t,n,fi(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}se.set(t,g);let y=ce,b=Jr(a,o,_,i,l,v,r,u),x=await Ae(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){se.get(t)===g&&se.delete(t);return}if(fe.has(t)){if(Si(S)||xi(S)){Ne(t,I(void 0));return}}else{if(Si(S))if(se.delete(t),D>y){Ne(t,I(void 0));return}else return le.add(t),Ne(t,Pi(m)),ke(_,S,!1,{fetcherSubmission:m,preventScrollReset:p});if(xi(S)){Pe(t,n,S.error);return}}let T=C.navigation.location||C.location,ee=ni(e.history,T,g.signal),ne=s.activeRoutes,E=C.navigation.state===`idle`?C.matches:$t(ne,C.navigation.location,c,!1,s.branches);M(E,`Didn't find any matches after fetcher action`);let re=++ce;O.set(t,re);let ie=Pi(m,S.data);C.fetchers.set(t,ie);let{dsMatches:de,revalidatingFetchers:k}=Or(ee,u,a,o,e.history,C,E,m,T,r,!1,ae,oe,fe,ue,le,ne,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h);k.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=C.fetchers.get(t),r=Pi(void 0,n?n.data:void 0);C.fetchers.set(t,r),ze(t),e.controller&&se.set(t,e.controller)}),_e({fetchers:new Map(C.fetchers)});let A=()=>k.forEach(e=>ze(e.key));g.signal.addEventListener(`abort`,A);let{loaderResults:pe,fetcherResults:me}=await je(de,k,ee,T,u);if(g.signal.aborted)return;if(g.signal.removeEventListener(`abort`,A),O.delete(t),se.delete(t),k.forEach(e=>se.delete(e.key)),C.fetchers.has(t)){let e=I(S.data);C.fetchers.set(t,e)}let he=pi(pe);if(he)return ke(ee,he.result,!1,{preventScrollReset:p});if(he=pi(me),he)return le.add(he.key),ke(ee,he.result,!1,{preventScrollReset:p});let{loaderData:ge,errors:ye}=si(C,E,pe,void 0,k,me);He(re),C.navigation.state===`loading`&&re>D?(M(w,`Expected pending action`),te&&te.abort(),ve(C.navigation.location,{matches:E,loaderData:ge,errors:ye,fetchers:new Map(C.fetchers)})):(_e({errors:ye,loaderData:ci(C.loaderData,ge,E,ye),fetchers:new Map(C.fetchers)}),ae=!1)}async function Oe(t,n,i,s,c,l,u,d,f){let p=C.fetchers.get(t);Ne(t,Pi(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=ni(e.history,i,m.signal);if(l){let e=await $e(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Pe(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{Pe(t,n,fi(404,{pathname:i}),{flushSync:u});return}}let g=Ai(s,i);se.set(t,m);let _=ce,v=await Ae(h,i,Jr(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(se.get(t)===m&&se.delete(t),!h.signal.aborted){if(fe.has(t)){Ne(t,I(void 0));return}if(Si(y))if(D>_){Ne(t,I(void 0));return}else{le.add(t),await ke(h,y,!1,{preventScrollReset:d});return}if(xi(y)){Pe(t,n,y.error);return}Ne(t,I(y.data))}}async function ke(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(T?.resolve(),T=null),i.response.headers.has(`X-Remix-Revalidate`)&&(ae=!0);let d=i.response.headers.get(`Location`);M(d,`Expected a Location header on the redirect Response`),d=ti(d,new URL(r.url),c,e.history);let f=Lt(C.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(Sn(d)){let n=Vt(d,!0);e=n.origin!==t.location.origin||yn(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}te=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=C.navigation;!o&&!s&&m&&h&&g&&(o=ji(C.navigation));let _=o||s;cr.has(i.response.status)&&_&&Oi(_.formMethod)?await xe(p,f,{submission:{..._,formAction:d},preventScrollReset:l||ee,enableViewTransition:a?ne:void 0}):await xe(p,f,{overrideNavigation:Mi(f,o),fetcherSubmission:s,preventScrollReset:l||ee,enableViewTransition:a?ne:void 0})}async function Ae(e,t,n,r,i){let a,o={};try{a=await Yr(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Oi(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!C.loaderData.hasOwnProperty(e.route.id)&&(!C.errors||!C.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(bi(r)){let i=r.result;o[t]={type:`redirect`,response:$r(i,e,t,n,c)}}else o[t]=await Qr(r);return o}async function je(e,t,n,r,i){let a=Ae(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Ae(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:fi(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Me(){ae=!0,ue.forEach((e,t)=>{se.has(t)&&oe.add(t),ze(t)})}function Ne(e,t,n={}){C.fetchers.set(e,t),_e({fetchers:new Map(C.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function Pe(e,t,n,r={}){let i=ui(C.matches,t);Le(e),_e({errors:{[i.route.id]:n},fetchers:new Map(C.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function Fe(e){return de.set(e,(de.get(e)||0)+1),fe.has(e)&&fe.delete(e),C.fetchers.get(e)||ur}function Ie(e,t){ze(e,t?.reason),Ne(e,I(null))}function Le(e){let t=C.fetchers.get(e);se.has(e)&&!(t&&t.state===`loading`&&O.has(e))&&ze(e),ue.delete(e),O.delete(e),le.delete(e),fe.delete(e),oe.delete(e),C.fetchers.delete(e)}function Re(e){let t=(de.get(e)||0)-1;t<=0?(de.delete(e),fe.add(e)):de.set(e,t),_e({fetchers:new Map(C.fetchers)})}function ze(e,t){let n=se.get(e);n&&(n.abort(t),se.delete(e))}function Be(e){for(let t of e){let e=I(Fe(t).data);C.fetchers.set(t,e)}}function Ve(){let e=[],t=!1;for(let n of le){let r=C.fetchers.get(n);M(r,`Expected fetcher: ${n}`),r.state===`loading`&&(le.delete(n),e.push(n),t=!0)}return Be(e),t}function He(e){let t=[];for(let[n,r]of O)if(r<e){let e=C.fetchers.get(n);M(e,`Expected fetcher: ${n}`),e.state===`loading`&&(ze(n),O.delete(n),t.push(n))}return Be(t),t.length>0}function Ue(e,t){let n=C.blockers.get(e)||dr;return k.get(e)!==t&&k.set(e,t),n}function We(e){C.blockers.delete(e),k.delete(e)}function Ge(e,t){let n=C.blockers.get(e)||dr;M(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(C.blockers);r.set(e,t),_e({blockers:r})}function Ke({currentLocation:e,nextLocation:t,historyAction:n}){if(k.size===0)return;k.size>1&&Pt(!1,`A router only supports one blocker at a time`);let r=Array.from(k.entries()),[i,a]=r[r.length-1],o=C.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function qe(e){let t=fi(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=di(n);return{notFoundMatches:r,route:i,error:t}}function Je(e,t,n){if(p=e,h=t,m=n||null,!g&&C.navigation===lr){g=!0;let e=Ze(C.location,C.matches);e!=null&&_e({restoreScrollPosition:e})}return()=>{p=null,h=null,m=null}}function Ye(e,t){return m&&m(e,t.map(e=>en(e,C.loaderData)))||e.key}function Xe(e,t){if(p&&h){let n=Ye(e,t);p[n]=h()}}function Ze(e,t){if(p){let n=Ye(e,t),r=p[n];if(typeof r==`number`)return r}return null}function Qe(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:$t(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:$t(n,r,c,!0,e)}}return{active:!1,matches:null}}async function $e(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||Pr(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=$t(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=$t(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&et(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=$t(s.activeRoutes,n,c,!0,u),!f||et(l,f))return{type:`success`,matches:null};l=f}}function et(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function tt(e){o={},s.setHmrRoutes(Xt(e,a,void 0,o))}function nt(e,t,n=!1){Pr(e,t,s,o,a,n),s.hasHMRRoutes||_e({})}return S={get basename(){return c},get future(){return u},get state(){return C},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:me,subscribe:ge,enableScrollRestoration:Je,navigate:ye,fetch:Ee,revalidate:be,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Fe,resetFetcher:Ie,deleteFetcher:Re,dispose:he,getBlocker:Ue,deleteBlocker:We,patchRoutes:nt,_internalFetchControllers:se,_internalSetRoutes:tt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){_e(e)}},e.instrumentations&&(S=qn(S,e.instrumentations.map(e=>e.router).filter(Boolean))),S}function xr(e,t){M(e.length>0,`You must provide a non-empty routes array to createStaticHandler`);let n={},r=(t?t.basename:null)||`/`,i=t?.mapRouteProperties||fr,a=i;if({...t?.future},t?.instrumentations){let e=t.instrumentations;a=t=>({...i(t),...Kn(e.map(e=>e.route).filter(Boolean),t)})}let o=Xt(e,a,void 0,n),s=tn(o);async function c(e,{requestContext:t,filterMatchesToLoad:i,skipLoaderErrorBubbling:c,skipRevalidation:l,dataStrategy:d,generateMiddlewareResponse:f,normalizePath:p}={}){let m=p||Tr,h=e.method,g=Lt(``,m(e),null,`default`),_=$t(o,g,r,!1,s);if(t??=new Wt,!Di(h)&&h!==`HEAD`){let e=fi(405,{method:h}),{matches:t,route:n}=di(o),i={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(i)):i}else if(!_){let e=fi(404,{pathname:g.pathname}),{matches:t,route:n}=di(o),i={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(i)):i}if(f){M(t instanceof Wt,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{await Vr(_,n,a);let s,p=await P({request:e,url:ri(e,g),pattern:Hn(_),matches:_,params:_[0].params,context:t},async()=>await f(async(e,n={})=>{let a=await u(e,g,_,t,d||null,c===!0,null,`filterMatchesToLoad`in n?n.filterMatchesToLoad??null:i??null,l===!0);return wi(a)?a:(s={location:g,basename:r,...a},s)}),async(e,t)=>{if(Ei(e))return e;if(wi(e))try{e=new Bn(e.status,e.statusText,await Zr(e))}catch(t){e=t}if(Ci(e)&&(e=_i(e)),s){t in s.loaderData&&(s.loaderData[t]=void 0);let n=Sr(o,s,e,c?t:ui(_,t).route.id);return f(()=>Promise.resolve(n))}else{let n={matches:_,location:g,basename:r,loaderData:{},actionData:null,errors:{[c?t:ui(_,_.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id]:e},statusCode:Vn(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return f(()=>Promise.resolve(n))}});return M(wi(p),`Expected a response in query()`),p}catch(e){if(wi(e))return e;throw e}}let v=await u(e,g,_,t,d||null,c===!0,null,i||null,l===!0);return wi(v)?v:{location:g,basename:r,...v}}async function l(e,{routeId:t,requestContext:i,dataStrategy:c,generateMiddlewareResponse:l,normalizePath:d}={}){let f=d||Tr,p=e.method,m=Lt(``,f(e),null,`default`),h=$t(o,m,r,!1,s);if(i??=new Wt,!Di(p)&&p!==`HEAD`&&p!==`OPTIONS`)throw fi(405,{method:p});if(!h)throw fi(404,{pathname:m.pathname});let g=t?h.find(e=>e.route.id===t):Ai(h,m);if(t&&!g)throw fi(403,{pathname:m.pathname,routeId:t});if(!g)throw fi(404,{pathname:m.pathname});if(l)return M(i instanceof Wt,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await Vr(h,n,a),await P({request:e,url:ri(e,m),pattern:Hn(h),matches:h,params:h[0].params,context:i},async()=>await l(async e=>{let t=_(await u(e,m,h,i,c||null,!1,g,null,!1));return wi(t)?t:typeof t==`string`?new Response(t):Response.json(t)}),e=>{if(Ci(e))return Promise.resolve(gi(e));if(wi(e))return Promise.resolve(e);throw e});return _(await u(e,m,h,i,c||null,!1,g,null,!1));function _(e){if(wi(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(t!==void 0)throw t;if(e.actionData)return Object.values(e.actionData)[0];if(e.loaderData)return Object.values(e.loaderData)[0]}}async function u(e,t,n,r,i,a,o,s,c){M(e.signal,`query()/queryRoute() requests must contain an AbortController signal`);try{if(Oi(e.method))return await d(e,t,n,o||Ai(n,t),r,i,a,o!=null,s,c);let l=await f(e,t,n,r,i,a,o,s);return wi(l)?l:{...l,actionData:null,actionHeaders:{}}}catch(e){if(yi(e)&&wi(e.result)){if(e.type===`error`)throw e.result;return e.result}if(Ei(e))return e;throw e}}async function d(e,t,r,i,o,s,c,l,u,d){let m;if(!i.route.action&&!i.route.lazy){let t=fi(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:i.route.id});if(l)throw t;m={type:`error`,error:t}}else m=(await p(e,t,Jr(a,n,e,t,r,i,[],o),l,o,s))[i.route.id],e.signal.aborted&&Cr(e,l);if(Si(m))throw new Response(null,{status:m.response.status,headers:{Location:m.response.headers.get(`Location`)}});if(l){if(xi(m))throw m.error;return{matches:[i],loaderData:{},actionData:{[i.route.id]:m.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(d)if(xi(m)){let e=c?i:ui(r,i.route.id);return{statusCode:Vn(m.error)?m.error.status:m.statusCode==null?500:m.statusCode,actionData:null,actionHeaders:{...m.headers?{[i.route.id]:m.headers}:{}},matches:r,loaderData:{},errors:{[e.route.id]:m.error},loaderHeaders:{}}}else return{actionData:{[i.route.id]:m.data},actionHeaders:m.headers?{[i.route.id]:m.headers}:{},matches:r,loaderData:{},errors:null,statusCode:m.statusCode||200,loaderHeaders:{}};let h=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});return xi(m)?{...await f(h,t,r,o,s,c,null,u,[(c?i:ui(r,i.route.id)).route.id,m]),statusCode:Vn(m.error)?m.error.status:m.statusCode==null?500:m.statusCode,actionData:null,actionHeaders:{...m.headers?{[i.route.id]:m.headers}:{}}}:{...await f(h,t,r,o,s,c,null,u),actionData:{[i.route.id]:m.data},...m.statusCode?{statusCode:m.statusCode}:{},actionHeaders:m.headers?{[i.route.id]:m.headers}:{}}}async function f(e,t,r,i,o,s,c,l,u){let d=c!=null;if(d&&!c?.route.loader&&!c?.route.lazy)throw fi(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:c?.route.id});let f;if(c)f=Jr(a,n,e,t,r,c,[],i);else{let o=u&&xi(u[1])?r.findIndex(e=>e.route.id===u[0])-1:void 0,s=Hn(r);f=r.map((r,c)=>o!=null&&c>o?qr(a,n,e,t,s,r,[],i,!1):qr(a,n,e,t,s,r,[],i,(r.route.loader||r.route.lazy)!=null&&(!l||l(r))))}if(!o&&!f.some(e=>e.shouldLoad))return{matches:r,loaderData:{},errors:u&&xi(u[1])?{[u[0]]:u[1].error}:null,statusCode:200,loaderHeaders:{}};let m=await p(e,t,f,d,i,o);return e.signal.aborted&&Cr(e,d),{...oi(r,m,u,!0,s),matches:r}}async function p(e,t,n,i,a,o){let s=await Yr(o||Hr,e,t,n,null,a,!0),c={};return await Promise.all(n.map(async t=>{if(!(t.route.id in s))return;let a=s[t.route.id];if(bi(a)){let i=a.result;throw $r(i,e,t.route.id,n,r)}if(i){if(wi(a.result))throw a;if(Ci(a.result))throw gi(a.result)}c[t.route.id]=await Qr(a)})),c}return{dataRoutes:o,_internalRouteBranches:s,query:c,queryRoute:l}}function Sr(e,t,n,r){let i=r||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:Vn(n)?n.status:500,errors:{[i]:n}}}function Cr(e,t){throw e.signal.reason===void 0?Error(`${t?`queryRoute`:`query`}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`):e.signal.reason}function wr(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Tr(e){let t=new URL(e.url);return{pathname:t.pathname,search:t.search,hash:t.hash}}function Er(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=On(r||`.`,Dn(o),yn(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=ki(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=bn({basename:n,pathname:c.pathname})),Rt(c)}function Dr(e,t,n){if(!n||!wr(n))return{path:t};if(n.formMethod&&!Di(n.formMethod))return{path:t,error:fi(405,{method:n.formMethod})};let r=()=>({path:t,error:fi(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=mi(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Oi(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
14
- `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!Oi(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}M(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=ii(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ii(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=ai(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=ai(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Oi(c.formMethod))return{path:t,submission:c};let l=zt(t);return e&&l.search&&ki(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:Rt(l),submission:c}}function Or(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?xi(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&xi(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let ee=b?b[1].statusCode:void 0,te=ee&&ee>=400,ne={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:ee},E=Hn(o),re=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!kr(s))f=!1;else if(u){let{shouldLoad:e}=Ar(s,a.loaderData,a.errors);f=e}else jr(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return qr(n,r,e,c,E,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:te?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?Mr(a.matches[o],i)&&(p=!0):p=!0;let m={...ne,defaultShouldRevalidate:p};return qr(n,r,e,c,E,i,l,t,Nr(i,m),m,x)}),ie=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=$t(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;ie.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Ai(b,e.path),C=new AbortController,w=ni(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Jr(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Jr(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:te?!1:d;let a={...ne,defaultShouldRevalidate:i};Nr(S,a)&&(T=Jr(n,r,w,e.path,b,S,l,t,a))}T&&ie.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:re,revalidatingFetchers:ie}}function kr(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Ar(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!kr(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function jr(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Mr(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Nr(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Pr(e,t,n,r,i,a){let o;if(e){let t=r[e];M(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Fr(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=Xt(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=Xt([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Fr(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Fr(e,t)))??!1:!1}var Ir=new WeakMap,Lr=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(M(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Ir.get(i);o||(o={},Ir.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=Kt(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)Pt(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)Pt(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Rr=new WeakMap;function zr(e,t,n,r,i){let a=n[e.id];if(M(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Rr.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{M(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=Jt(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?Pt(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?Pt(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Rr.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Lr({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}function Br(e){return e!==void 0}function Vr(e,t,n){let r=e.map(({route:e})=>{if(!(typeof e.lazy!=`object`||!e.lazy.middleware))return Lr({key:`middleware`,route:e,manifest:t,mapRouteProperties:n})}).filter(Br);return r.length>0?Promise.all(r):void 0}async function Hr(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Ur(e){return e.matches.some(e=>e.route.middleware)?Wr(e,()=>Hr(e)):Hr(e)}function P(e,t,n){return Gr(e,t,r,wi,n);function r(e){return Ci(e)?gi(e):e}}function Wr(e,t){return Gr(e,t,e=>{if(Ei(e))throw e;return e},vi,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=ui(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function Gr(e,t,n,r,i){let{matches:a,...o}=e;return await Kr(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Kr(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Kr(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function F(e,t,n,r,i){let a=Lr({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=zr(r.route,Oi(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function qr(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=F(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Nr(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Nr(a,{...l,defaultShouldRevalidate:e}):Nr(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Oi(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Oi(n.method)||!p)?Xr({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Jr(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?qr(e,t,n,r,Hn(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:F(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Yr(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:ri(t,n),pattern:Hn(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Wr(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Xr({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Oi(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:ri(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw fi(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw fi(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Zr(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Qr(e){let{result:t,type:n}=e;if(wi(t)){let e;try{e=await Zr(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Bn(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Ci(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:_i(t),statusCode:Vn(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Vn(t)?t.status:void 0}:Ci(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function $r(e,t,n,r,i){let a=e.headers.get(`Location`);if(M(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!Sn(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=Er(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var ei=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function ti(e,t,n,r){if(Sn(e)){let r=e,i=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(ei.includes(i.protocol))throw Error(`Invalid redirect location`);let a=yn(i.pathname,n)!=null;if(i.origin===t.origin&&a)return kn(i.pathname)+i.search+i.hash}try{let t=r.createURL(e);if(ei.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function ni(e,t,n,r){let i=e.createURL(mi(t)).toString(),a={signal:n};if(r&&Oi(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=ii(r.formData):a.body=r.formData}return new Request(i,a)}function ri(e,t){let n=new URL(e.url),r=typeof t==`string`?zt(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function ii(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function ai(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function oi(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&xi(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(M(!Si(f),`Cannot handle redirect results in processLoaderData`),xi(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=ui(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=mr),c||(c=!0,s=Vn(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function si(e,t,n,r,i,a){let{loaderData:o,errors:s}=oi(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let o=a[n];if(M(o,`Did not find corresponding fetcher result`),xi(o)){let t=ui(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:o.error}),e.fetchers.delete(n)}else if(Si(o))M(!1,`Unhandled fetcher revalidation redirect`);else{let t=I(o.data);e.fetchers.set(n,t)}}),{loaderData:o,errors:s}}function ci(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==mr).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function li(e){return e?xi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ui(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function di(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function fi(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Bn(e||500,o,Error(s),!0)}function pi(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Si(r))return{key:n,result:r}}}function mi(e){return Rt({...typeof e==`string`?zt(e):e,hash:``})}function hi(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function gi(e){return Response.json(e.data,e.init??void 0)}function _i(e){return new Bn(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function vi(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&yi(t))}function yi(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function bi(e){return wi(e.result)&&sr.has(e.result.status)}function xi(e){return e.type===`error`}function Si(e){return(e&&e.type)===`redirect`}function Ci(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function wi(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Ti(e){return sr.has(e)}function Ei(e){return wi(e)&&Ti(e.status)&&e.headers.has(`Location`)}function Di(e){return or.has(e.toUpperCase())}function Oi(e){return ir.has(e.toUpperCase())}function ki(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Ai(e,t){let n=typeof t==`string`?zt(t).search:t.search;if(e[e.length-1].route.index&&ki(n||``))return e[e.length-1];let r=En(e);return r[r.length-1]}function ji(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Mi(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 Ni(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 Pi(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 Fi(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 I(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 Ii(e,t){try{let n=e.sessionStorage.getItem(pr);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function L(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(pr,JSON.stringify(n))}catch(e){Pt(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Li(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ri=E.createContext(null);Ri.displayName=`DataRouter`;var zi=E.createContext(null);zi.displayName=`DataRouterState`;var Bi=E.createContext(!1);function Vi(){return E.useContext(Bi)}var Hi=E.createContext({isTransitioning:!1});Hi.displayName=`ViewTransition`;var Ui=E.createContext(new Map);Ui.displayName=`Fetchers`;var Wi=E.createContext(null);Wi.displayName=`Await`;var Gi=e=>E.createElement(Wi.Provider,e),Ki=E.createContext(null);Ki.displayName=`Navigation`;var qi=E.createContext(null);qi.displayName=`Location`;var Ji=E.createContext({outlet:null,matches:[],isDataRoute:!1});Ji.displayName=`Route`;var Yi=E.createContext(null);Yi.displayName=`RouteError`;var Xi=`REACT_ROUTER_ERROR`,Zi=`REDIRECT`,Qi=`ROUTE_ERROR_RESPONSE`;function $i(e){if(e.startsWith(`${Xi}:${Zi}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ea(e){if(e.startsWith(`${Xi}:${Qi}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Bn(t.status,t.statusText,t.data)}catch{}}function ta(e,{relative:t}={}){M(na(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=E.useContext(Ki),{hash:i,pathname:a,search:o}=pa(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:An([n,a])),r.createHref({pathname:s,search:o,hash:i})}function na(){return E.useContext(qi)!=null}function R(){return M(na(),`useLocation() may be used only in the context of a <Router> component.`),E.useContext(qi).location}function ra(){return E.useContext(qi).navigationType}function ia(e){M(na(),`useMatch() may be used only in the context of a <Router> component.`);let{pathname:t}=R();return E.useMemo(()=>gn(e,vn(t)),[t,e])}var aa=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function oa(e){E.useContext(Ki).static||E.useLayoutEffect(e)}function sa(){let{isDataRoute:e}=E.useContext(Ji);return e?za():ca()}function ca(){M(na(),`useNavigate() may be used only in the context of a <Router> component.`);let e=E.useContext(Ri),{basename:t,navigator:n}=E.useContext(Ki),{matches:r}=E.useContext(Ji),{pathname:i}=R(),a=JSON.stringify(Dn(r)),o=E.useRef(!1);return oa(()=>{o.current=!0}),E.useCallback((r,s={})=>{if(Pt(o.current,aa),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=On(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:An([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var la=E.createContext(null);function ua(){return E.useContext(la)}function da(e){let t=E.useContext(Ji).outlet;return E.useMemo(()=>t&&E.createElement(la.Provider,{value:e},t),[t,e])}function fa(){let{matches:e}=E.useContext(Ji);return e[e.length-1]?.params??{}}function pa(e,{relative:t}={}){let{matches:n}=E.useContext(Ji),{pathname:r}=R(),i=JSON.stringify(Dn(n));return E.useMemo(()=>On(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function ma(e,t){return ha(e,t)}function ha(e,t,n){M(na(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=E.useContext(Ki),{matches:i}=E.useContext(Ji),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Va(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
13
+ `),e}je(()=>{C.current=void 0,b.current=void 0,v.current=E});let ee=O.useMemo(()=>O.createElement(e,{...E,ref:i}),[i,e,E]);return O.useMemo(()=>m?O.createElement(o.Provider,{value:_},ee):ee,[o,ee,_])}let h=O.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=O.forwardRef(function(e,t){return O.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,Ke(t,e)}return Ke(h,e)}}var rt=nt;function it(e){let{children:t,context:n,serverState:r,store:i}=e,a=O.useMemo(()=>({store:i,subscription:Oe(i),getServerState:r?()=>r:void 0}),[i,r]),o=O.useMemo(()=>i.getState(),[i]);je(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Xe;return O.createElement(s.Provider,{value:a},t)}var at=it;function ot(e=Xe){return function(){return O.useContext(e)}}var st=ot();function ct(e=Xe){let t=e===Xe?st:ot(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var lt=ct();function ut(e=Xe){let t=e===Xe?lt:ct(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var dt=ut(),ft=(e,t)=>e===t;function pt(e=Xe){let t=e===Xe?st:ot(e),n=(e,n={})=>{let{equalityFn:r=ft}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();O.useRef(!0);let s=O.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,te.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return O.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}var mt=pt(),ht=Te,gt=`modulepreload`,_t=function(e,t){return new URL(e,t).href},vt={},yt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=_t(t,n),t in vt)return;vt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:gt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},bt=c({Action:()=>Tt,Await:()=>so,AwaitContextProvider:()=>Ui,BrowserRouter:()=>tl,CRITICAL_CSS_DATA_ATTRIBUTE:()=>Pc,DataRouterContext:()=>Ii,DataRouterStateContext:()=>Li,ENABLE_DEV_WARNINGS:()=>!0,ErrorResponseImpl:()=>Rn,FetchersContext:()=>Vi,Form:()=>sl,FrameworkContext:()=>kc,HashRouter:()=>nl,HistoryRouter:()=>rl,IDLE_BLOCKER:()=>lr,IDLE_FETCHER:()=>cr,IDLE_NAVIGATION:()=>sr,Link:()=>al,Links:()=>Fc,LocationContext:()=>Gi,MemoryRouter:()=>to,Meta:()=>Bc,NO_BODY_STATUS_CODES:()=>ws,NavLink:()=>ol,Navigate:()=>no,NavigationContext:()=>Wi,Outlet:()=>ro,PrefetchPageLinks:()=>Ic,RSCRouterContext:()=>Ri,RemixErrorBoundary:()=>qc,Route:()=>io,RouteContext:()=>Ki,Router:()=>ao,RouterContextProvider:()=>Vt,RouterProvider:()=>Za,Routes:()=>oo,SINGLE_FETCH_REDIRECT_STATUS:()=>202,Scripts:()=>Wc,ScrollRestoration:()=>cl,SingleFetchRedirectSymbol:()=>Ss,StaticRouter:()=>Ol,StaticRouterProvider:()=>kl,StreamTransfer:()=>Ts,URL_LIMIT:()=>_c,ViewTransitionContext:()=>Bi,WithComponentProps:()=>mo,WithErrorBoundaryProps:()=>bo,WithHydrateFallbackProps:()=>_o,convertRoutesToDataRoutes:()=>qt,createBrowserHistory:()=>kt,createBrowserRouter:()=>Zc,createClientRoutes:()=>cc,createClientRoutesWithHMRRevalidationOptOut:()=>ac,createContext:()=>zt,createHashHistory:()=>At,createHashRouter:()=>Qc,createMemoryHistory:()=>Ot,createMemoryRouter:()=>Ya,createPath:()=>Ft,createRequestInit:()=>_s,createRouter:()=>vr,createRoutesFromChildren:()=>uo,createRoutesFromElements:()=>fo,createSearchParams:()=>Ao,createServerRoutes:()=>ic,createStaticHandler:()=>yr,createStaticHandler2:()=>Ml,createStaticRouter:()=>Nl,data:()=>Pn,decodeRedirectErrorDigest:()=>Zi,decodeRouteErrorResponseDigest:()=>Qi,decodeViaTurboStream:()=>Is,encode:()=>gs,escapeHtml:()=>bs,generatePath:()=>pn,getManifestPath:()=>Sc,getPatchRoutesOnNavigationFunction:()=>bc,getSingleFetchDataStrategyImpl:()=>Ds,getStaticContextFromError:()=>br,getTurboStreamSingleFetchDataStrategy:()=>Es,hydrationRouteProperties:()=>Ja,instrumentHandler:()=>Kn,invalidProtocols:()=>Qr,invariant:()=>F,isDataWithResponseInit:()=>xi,isMutationMethod:()=>Ei,isRedirectResponse:()=>wi,isRedirectStatusCode:()=>Ci,isResponse:()=>Si,isRouteErrorResponse:()=>zn,mapRouteProperties:()=>qa,matchPath:()=>mn,matchRoutes:()=>Yt,matchRoutesImpl:()=>Xt,noActionDefinedError:()=>sc,parsePath:()=>It,redirect:()=>Fn,redirectDocument:()=>In,renderMatches:()=>V,replace:()=>Ln,resolvePath:()=>xn,setIsHydrated:()=>Uc,shouldHydrateRouteLoader:()=>pc,singleFetchUrl:()=>Ps,stripBasename:()=>_n,stripIndexParam:()=>Ns,useActionData:()=>Na,useAsyncError:()=>Fa,useAsyncValue:()=>B,useBeforeUnload:()=>wl,useBlocker:()=>La,useFetcher:()=>vl,useFetchers:()=>yl,useFogOFWarDiscovery:()=>xc,useFormAction:()=>_l,useHref:()=>$i,useInRouterContext:()=>ea,useLinkClickHandler:()=>fl,useLoaderData:()=>ja,useLocation:()=>ta,useMatch:()=>ra,useMatches:()=>Aa,useNavigate:()=>oa,useNavigation:()=>Oa,useNavigationType:()=>na,useOutlet:()=>ua,useOutletContext:()=>la,useParams:()=>da,usePrompt:()=>El,useResolvedPath:()=>fa,useRevalidator:()=>ka,useRoute:()=>Va,useRouteError:()=>Pa,useRouteLoaderData:()=>Ma,useRoutes:()=>pa,useScrollRestoration:()=>Cl,useSearchParams:()=>pl,useSubmit:()=>gl,useViewTransitionState:()=>Dl,warnOnce:()=>Ua,withComponentProps:()=>ho,withErrorBoundaryProps:()=>xo,withHydrateFallbackProps:()=>vo}),xt=e=>{throw TypeError(e)},St=(e,t,n)=>t.has(e)||xt(`Cannot `+n),P=(e,t,n)=>(St(e,t,`read from private field`),n?n.call(e):t.get(e)),Ct=(e,t,n)=>t.has(e)?xt(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),wt=(e,t,n,r)=>(St(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Tt=(e=>(e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`,e))(Tt||{}),Et=`popstate`;function Dt(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Ot(e={}){let{initialEntries:t=[`/`],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((e,t)=>u(e,typeof e==`string`?null:e.state,t===0?`default`:void 0,typeof e==`string`?void 0:e.mask));let a=c(n??i.length-1),o=`POP`,s=null;function c(e){return Math.min(Math.max(e,0),i.length-1)}function l(){return i[a]}function u(e,t=null,n,r){let a=Pt(i?l().pathname:`/`,e,t,n,r);return jt(a.pathname.charAt(0)===`/`,`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),a}function d(e){return typeof e==`string`?e:Ft(e)}return{get index(){return a},get action(){return o},get location(){return l()},createHref:d,createURL(e){return new URL(d(e),`http://localhost`)},encodeLocation(e){let t=typeof e==`string`?It(e):e;return{pathname:t.pathname||``,search:t.search||``,hash:t.hash||``}},push(e,t){o=`PUSH`;let n=Dt(e)?e:u(e,t);a+=1,i.splice(a,i.length,n),r&&s&&s({action:o,location:n,delta:1})},replace(e,t){o=`REPLACE`;let n=Dt(e)?e:u(e,t);i[a]=n,r&&s&&s({action:o,location:n,delta:0})},go(e){o=`POP`;let t=c(a+e),n=i[t];a=t,s&&s({action:o,location:n,delta:e})},listen(e){return s=e,()=>{s=null}}}}function kt(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Pt(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Ft(t)}return Lt(t,n,null,e)}function At(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=It(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),Pt(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:Ft(t))}function r(e,t){jt(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return Lt(t,n,r,e)}function F(e,t){if(e===!1||e==null)throw Error(t)}function jt(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Mt(){return Math.random().toString(36).substring(2,10)}function Nt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Pt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?It(t):t,state:n,key:t&&t.key||r||Mt(),mask:i}}function Ft({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function It(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Lt(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Dt(e)?e:Pt(h.location,e,t);n&&n(r,e),l=u()+1;let d=Nt(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Dt(e)?e:Pt(h.location,e,t);n&&n(r,e),l=u();let i=Nt(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Rt(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Et,d),c=e,()=>{i.removeEventListener(Et,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Rt(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),F(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:Ft(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function zt(e){return{defaultValue:e}}var Bt,Vt=class{constructor(e){if(Ct(this,Bt,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(P(this,Bt).has(e))return P(this,Bt).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){P(this,Bt).set(e,t)}};Bt=new WeakMap;var Ht=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Ut(e){return Ht.has(e)}var Wt=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function Gt(e){return Wt.has(e)}function Kt(e){return e.index===!0}function qt(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(F(e.index!==!0||!e.children,`Cannot specify children on an index route`),F(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),Kt(e)){let n={...e,id:s};return r[s]=Jt(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=Jt(n,t(n)),e.children&&(n.children=qt(e.children,t,o,r,i)),n}})}function Jt(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Yt(e,t,n=`/`){return Xt(e,t,n,!1)}function Xt(e,t,n,r,i){let a=_n((typeof t==`string`?It(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Qt(e),s=null,c=gn(a);for(let e=0;s==null&&e<o.length;++e)s=fn(o[e],c,r);return s}function Zt(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Qt(e){let t=$t(e);return tn(t),t}function $t(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;F(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=On([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(F(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),$t(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:un(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of en(e.path))a(e,t,!0,n)}),t}function en(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=en(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function tn(e){e.sort((e,t)=>e.score===t.score?dn(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var nn=/^:[\w-]+$/,rn=3,an=2,on=1,sn=10,cn=-2,ln=e=>e===`*`;function un(e,t){let n=e.split(`/`),r=n.length;return n.some(ln)&&(r+=cn),t&&(r+=an),n.filter(e=>!ln(e)).reduce((e,t)=>e+(nn.test(t)?rn:t===``?on:sn),r)}function dn(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function fn(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=mn({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=mn({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:On([a,u.pathname]),pathnameBase:An(On([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=On([a,u.pathnameBase]))}return o}function pn(e,t={}){let n=e;n.endsWith(`*`)&&n!==`*`&&!n.endsWith(`/*`)&&(jt(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,`/*`)}".`),n=n.replace(/\*$/,`/*`));let r=n.startsWith(`/`)?`/`:``,i=e=>e==null?``:typeof e==`string`?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&e===`*`)return i(t[`*`]);let a=e.match(/^:([\w-]+)(\??)(.*)/);if(a){let[,e,n,r]=a,o=t[e];return F(n===`?`||o!=null,`Missing ":${e}" param`),encodeURIComponent(i(o))+r}return e.replace(/\?$/g,``)}).filter(e=>!!e).join(`/`)}function mn(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hn(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function hn(e,t=!1,n=!0){jt(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=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function gn(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return jt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _n(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 vn({basename:e,pathname:t}){return t===`/`?e:On([e,t])}var yn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bn=e=>yn.test(e);function xn(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?It(e):e,a;return n?(n=Dn(n),a=n.startsWith(`/`)?Sn(n.substring(1),`/`):Sn(n,t)):a=t,{pathname:a,search:jn(r),hash:Mn(i)}}function Sn(e,t){let n=kn(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Cn(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 <Link to="..."> and the router will parse it for you.`}function wn(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Tn(e){let t=wn(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function En(e,t,n,r=!1){let i;typeof e==`string`?i=It(e):(i={...e},F(!i.pathname||!i.pathname.includes(`?`),Cn(`?`,`pathname`,`search`,i)),F(!i.pathname||!i.pathname.includes(`#`),Cn(`#`,`pathname`,`hash`,i)),F(!i.search||!i.search.includes(`#`),Cn(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=xn(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Dn=e=>e.replace(/\/\/+/g,`/`),On=e=>Dn(e.join(`/`)),kn=e=>e.replace(/\/+$/,``),An=e=>kn(e).replace(/^\/*/,`/`),jn=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Mn=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Nn=class{constructor(e,t){this.type=`DataWithResponseInit`,this.data=e,this.init=t||null}};function Pn(e,t){return new Nn(e,typeof t==`number`?{status:t}:t)}var Fn=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},In=(e,t)=>{let n=Fn(e,t);return n.headers.set(`X-Remix-Reload-Document`,`true`),n},Ln=(e,t)=>{let n=Fn(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},Rn=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function zn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Bn(e){return On(e.map(e=>e.route.path).filter(Boolean))||`/`}var Vn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Hn(e,t){let n=e;if(typeof n!=`string`||!yn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Vn)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=_n(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{jt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Un=Symbol(`Uninstrumented`);function Wn(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=qn(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=qn(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Un]??i,a=qn(n[e],t,(...e)=>Yn(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Un]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Un]??e,r=qn(n.middleware,t,(...e)=>Yn(e[0]));return r?(r[Un]=t,r):e})),r}function Gn(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Un]??e.navigate,r=qn(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?Ft(n):`.`,...Xn(e,r??{})}});r&&(r[Un]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Un]??e.fetch,r=qn(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Xn(e,i??{})}});r&&(r[Un]=t,e.fetch=r)}return e}function Kn(e,t){let n={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}));let r=e;return n.request.length>0&&(r=qn(n.request,e,(...e)=>{let[t,n]=e;return{request:Zn(t),context:n==null?n:Qn(n)}})),r}function qn(e,t,n){return e.length===0?null:async(...r)=>{let i=await Jn(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function Jn(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=Jn(e,t,n,r-1),a=await o,F(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Yn(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:Zn(t),params:{...r},pattern:i,context:Qn(n)}}function Xn(e,t){return{currentUrl:Ft(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Zn(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Qn(e){if(er(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var $n=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function er(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===$n}var tr=[`POST`,`PUT`,`PATCH`,`DELETE`],nr=new Set(tr),rr=[`GET`,...tr],ir=new Set(rr),ar=new Set([301,302,303,307,308]),or=new Set([307,308]),sr={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cr={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lr={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},ur=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),dr=`remix-router-transitions`,fr=Symbol(`ResetLoaderData`),pr,mr,hr,gr,_r=class{constructor(e){Ct(this,pr),Ct(this,mr),Ct(this,hr),Ct(this,gr),wt(this,pr,e),wt(this,mr,Qt(e))}get stableRoutes(){return P(this,pr)}get activeRoutes(){return P(this,hr)??P(this,pr)}get branches(){return P(this,gr)??P(this,mr)}get hasHMRRoutes(){return P(this,hr)!=null}setRoutes(e){wt(this,pr,e),wt(this,mr,Qt(e))}setHmrRoutes(e){wt(this,hr,e),wt(this,gr,Qt(e))}commitHmrRoutes(){P(this,hr)&&(wt(this,pr,P(this,hr)),wt(this,mr,P(this,gr)),wt(this,hr,void 0),wt(this,gr,void 0))}};pr=new WeakMap,mr=new WeakMap,hr=new WeakMap,gr=new WeakMap;function vr(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;F(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||ur,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Wn(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new _r(qt(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Vr,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=e.hydrationData!=null,_=Xt(s.activeRoutes,e.history.location,c,!1,s.branches),v=!1,y=null,b,x;if(_==null&&!e.patchRoutesOnNavigation){let t=ui(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=li(s.activeRoutes);b=!0,x=!b,_=n,y={[r.id]:t}}else if(_&&!e.hydrationData&&Ye(_,s.activeRoutes,e.history.location.pathname).active&&(_=null),!_){b=!1,x=!b,_=[];let t=Ye(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(v=!0,_=t.matches)}else if(_.some(e=>e.route.lazy))b=!1,x=!b;else if(!_.some(e=>Dr(e.route)))b=!0,x=!b;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=_;if(n){let e=_.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}x=!1,b=!0,r.forEach(e=>{let r=Or(e.route,t,n);x||=r.renderFallback,b&&=!r.shouldLoad})}let S,C={historyAction:e.history.action,location:e.history.location,matches:_,initialized:b,renderFallback:x,navigation:sr,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},w=`POP`,T=null,E=!1,ee,D=!1,O=new Map,te=null,ne=!1,re=!1,ie=new Set,k=new Map,ae=0,A=-1,j=new Map,oe=new Set,se=new Map,ce=new Map,le=new Set,M=new Map,N,ue=null;function de(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(N){N(),N=void 0;return}jt(M.size===0||r!=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 i=Ue({currentLocation:C.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{N=e});e.history.go(r*-1),He(i,{state:`blocked`,location:n,proceed(){He(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(C.blockers);e.set(i,lr),me({blockers:e})}}),T?.resolve(),T=null;return}return ve(t,n)}),n){Pi(t,O);let e=()=>z(t,O);t.addEventListener(`pagehide`,e),te=()=>t.removeEventListener(`pagehide`,e)}return C.initialized||ve(`POP`,C.location,{initialHydration:!0}),S}function fe(){d&&d(),te&&te(),f.clear(),ee&&ee.abort(),C.fetchers.forEach((e,t)=>Pe(t)),C.blockers.forEach((e,t)=>Ve(t))}function pe(e){return f.add(e),()=>f.delete(e)}function me(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),C={...C,...e};let n=[],r=[];C.fetchers.forEach((e,t)=>{e.state===`idle`&&(le.has(t)?n.push(t):r.push(t))}),le.forEach(e=>{!C.fetchers.has(e)&&!k.has(e)&&n.push(e)}),[...f].forEach(r=>r(C,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Pe(e)),r.forEach(e=>C.fetchers.delete(e))}function he(t,n,{flushSync:r}={}){let i=C.actionData!=null&&C.navigation.formMethod!=null&&Ei(C.navigation.formMethod)&&C.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?C.actionData:null;let o=n.loaderData?oi(C.loaderData,n.loaderData,n.matches||[],n.errors):C.loaderData,c=C.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,lr)));let l=ne?!1:Je(t,n.matches||C.matches),u=E===!0||C.navigation.formMethod!=null&&Ei(C.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),ne||w===`POP`||(w===`PUSH`?e.history.push(t,t.state):w===`REPLACE`&&e.history.replace(t,t.state));let d;if(w===`POP`){let e=O.get(C.location.pathname);e&&e.has(t.pathname)?d={currentLocation:C.location,nextLocation:t}:O.has(t.pathname)&&(d={currentLocation:t,nextLocation:C.location})}else if(D){let e=O.get(C.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),O.set(C.location.pathname,e)),d={currentLocation:C.location,nextLocation:t}}me({...n,actionData:a,loaderData:o,historyAction:w,location:t,initialized:!0,renderFallback:!1,navigation:sr,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),w=`POP`,E=!1,D=!1,ne=!1,re=!1,T?.resolve(),T=null,ue?.resolve(),ue=null}async function ge(t,n){if(T?.resolve(),T=null,typeof t==`number`){T||=Fi();let n=T.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Tr(!1,wr(C.location,C.matches,c,t,n?.fromRouteId,n?.relative),n),o;n?.mask&&(o={pathname:``,search:``,hash:``,...typeof n.mask==`string`?It(n.mask):{...C.location.mask,...n.mask}});let s=C.location,l=Pt(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Ei(i.formMethod)&&i.formAction===C.location.pathname+C.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=Ue({currentLocation:s,nextLocation:l,historyAction:d});if(m){He(m,{state:`blocked`,location:l,proceed(){He(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),ge(t,n)},reset(){let e=new Map(C.blockers);e.set(m,lr),me({blockers:e})}});return}await ve(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function _e(){ue||=Fi(),ke(),me({revalidation:`loading`});let e=ue.promise;return C.navigation.state===`submitting`?e:C.navigation.state===`idle`?(ve(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),e):(ve(w||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:D===!0}),e)}async function ve(t,n,r){ee&&ee.abort(),ee=null,w=t,ne=(r&&r.startUninterruptedRevalidation)===!0,qe(C.location,C.matches),E=(r&&r.preventScrollReset)===!0,D=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r&&r.overrideNavigation,o=r?.initialHydration&&C.matches&&C.matches.length>0&&!v?C.matches:Xt(i,n,c,!1,s.branches),l=(r&&r.flushSync)===!0;if(o&&C.initialized&&!re&&pi(C.location,n)&&!(r&&r.submission&&Ei(r.submission.formMethod))){he(n,{matches:o},{flushSync:l});return}let u=Ye(o,i,n.pathname);if(u.active&&u.matches&&(o=u.matches),!o){let{error:e,notFoundMatches:t,route:r}=We(n.pathname);he(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l});return}ee=new AbortController;let d=ei(e.history,n,ee.signal,r&&r.submission),f=e.getContext?await e.getContext():new Vt,p;if(r&&r.pendingError)p=[ci(o).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Ei(r.submission.formMethod)){let t=await ye(d,n,r.submission,o,f,u.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(yi(r)&&zn(r.error)&&r.error.status===404){ee=null,he(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}o=t.matches||o,p=t.pendingActionResult,a=Ai(n,r.submission),l=!1,u.active=!1,d=ei(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_}=await be(d,n,o,f,u.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,l,p,r&&r.callSiteDefaultShouldRevalidate);m||(ee=null,he(n,{matches:h||o,...si(p),loaderData:g,errors:_}))}async function ye(t,n,i,l,u,d,f,p={}){if(ke(),me({navigation:ji(n,i)},{flushSync:p.flushSync===!0}),d){let e=await Xe(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=li(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=ci(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=We(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let m,h=Oi(l,n);if(!h.route.action&&!h.route.lazy)m={type:`error`,error:ui(405,{method:t.method,pathname:n.pathname,routeId:h.route.id})};else{let e=await De(t,n,Kr(a,o,t,n,l,h,f?[]:r,u),u,null);if(m=e[h.route.id],!m){for(let t of l)if(e[t.route.id]){m=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(bi(m)){let n;return n=p&&p.replace!=null?p.replace:$r(m.response.headers.get(`Location`),new URL(t.url),c,e.history)===C.location.pathname+C.location.search,await Ee(t,m,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(yi(m)){let e=ci(l,h.route.id);return(p&&p.replace)!==!0&&(w=`PUSH`),{matches:l,pendingActionResult:[e.route.id,m,h.route.id]}}return{matches:l,pendingActionResult:[h.route.id,m]}}async function be(t,n,i,l,u,d,f,p,m,h,g,_,v){let y=d||Ai(n,f),b=f||p||ki(y),x=!ne&&!h;if(u){if(x){let e=xe(_);me({navigation:y,...e===void 0?{}:{actionData:e}},{flushSync:g})}let e=await Xe(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=li(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=ci(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=We(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let S=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=Er(t,l,a,o,e.history,C,i,b,n,h?[]:r,h===!0,re,ie,le,se,oe,S,c,e.patchRoutesOnNavigation!=null,s.branches,_,v);if(A=++ae,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=Re();return he(n,{matches:i,loaderData:{},errors:_&&yi(_[1])?{[_[0]]:_[1].error}:null,...si(_),...e?{fetchers:new Map(C.fetchers)}:{}},{flushSync:g}),{shortCircuited:!0}}if(x){let e={};if(!u){e.navigation=y;let t=xe(_);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Se(T)),me(e,{flushSync:g})}T.forEach(e=>{Ie(e.key),e.controller&&k.set(e.key,e.controller)});let E=()=>T.forEach(e=>Ie(e.key));ee&&ee.signal.addEventListener(`abort`,E);let{loaderResults:D,fetcherResults:O}=await Oe(w,T,t,n,l);if(t.signal.aborted)return{shortCircuited:!0};ee&&ee.signal.removeEventListener(`abort`,E),T.forEach(e=>k.delete(e.key));let te=di(D);if(te)return await Ee(t,te.result,!0,{replace:m}),{shortCircuited:!0};if(te=di(O),te)return oe.add(te.key),await Ee(t,te.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:j,errors:ce}=ai(C,i,D,_,T,O);h&&C.errors&&(ce={...C.errors,...ce});let M=Re(),N=ze(A),ue=M||N||T.length>0;return{matches:i,loaderData:j,errors:ce,...ue?{fetchers:new Map(C.fetchers)}:{}}}function xe(e){if(e&&!yi(e[1]))return{[e[0]]:e[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Se(e){return e.forEach(e=>{let t=C.fetchers.get(e.key),n=Mi(void 0,t?t.data:void 0);C.fetchers.set(e.key,n)}),new Map(C.fetchers)}async function Ce(t,n,r,i){Ie(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=wr(C.location,C.matches,c,r,n,i?.relative),u=Xt(o,l,c,!1,s.branches),d=Ye(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){je(t,n,ui(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Tr(!0,l,i);if(m){je(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new Vt,g=(i&&i.preventScrollReset)===!0;if(p&&Ei(p.formMethod)){await we(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}se.set(t,{routeId:n,path:f}),await Te(t,n,f,u,h,d.active,a,g,p)}async function we(t,n,i,l,u,d,f,p,m,h){ke(),se.delete(t),Ae(t,Ni(m,C.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=ei(e.history,i,g.signal,m);if(d){let e=await Xe(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){je(t,n,e.error,{flushSync:f});return}else if(e.matches)l=e.matches;else{je(t,n,ui(404,{pathname:i}),{flushSync:f});return}}let v=Oi(l,i);if(!v.route.action&&!v.route.lazy){je(t,n,ui(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}k.set(t,g);let y=ae,b=Kr(a,o,_,i,l,v,r,u),x=await De(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){k.get(t)===g&&k.delete(t);return}if(le.has(t)){if(bi(S)||yi(S)){Ae(t,R(void 0));return}}else{if(bi(S))if(k.delete(t),A>y){Ae(t,R(void 0));return}else return oe.add(t),Ae(t,Mi(m)),Ee(_,S,!1,{fetcherSubmission:m,preventScrollReset:p});if(yi(S)){je(t,n,S.error);return}}let T=C.navigation.location||C.location,E=ei(e.history,T,g.signal),D=s.activeRoutes,O=C.navigation.state===`idle`?C.matches:Xt(D,C.navigation.location,c,!1,s.branches);F(O,`Didn't find any matches after fetcher action`);let te=++ae;j.set(t,te);let ne=Mi(m,S.data);C.fetchers.set(t,ne);let{dsMatches:ce,revalidatingFetchers:M}=Er(E,u,a,o,e.history,C,O,m,T,r,!1,re,ie,le,se,oe,D,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h);M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=C.fetchers.get(t),r=Mi(void 0,n?n.data:void 0);C.fetchers.set(t,r),Ie(t),e.controller&&k.set(t,e.controller)}),me({fetchers:new Map(C.fetchers)});let N=()=>M.forEach(e=>Ie(e.key));g.signal.addEventListener(`abort`,N);let{loaderResults:ue,fetcherResults:de}=await Oe(ce,M,E,T,u);if(g.signal.aborted)return;if(g.signal.removeEventListener(`abort`,N),j.delete(t),k.delete(t),M.forEach(e=>k.delete(e.key)),C.fetchers.has(t)){let e=R(S.data);C.fetchers.set(t,e)}let fe=di(ue);if(fe)return Ee(E,fe.result,!1,{preventScrollReset:p});if(fe=di(de),fe)return oe.add(fe.key),Ee(E,fe.result,!1,{preventScrollReset:p});let{loaderData:pe,errors:ge}=ai(C,O,ue,void 0,M,de);ze(te),C.navigation.state===`loading`&&te>A?(F(w,`Expected pending action`),ee&&ee.abort(),he(C.navigation.location,{matches:O,loaderData:pe,errors:ge,fetchers:new Map(C.fetchers)})):(me({errors:ge,loaderData:oi(C.loaderData,pe,O,ge),fetchers:new Map(C.fetchers)}),re=!1)}async function Te(t,n,i,s,c,l,u,d,f){let p=C.fetchers.get(t);Ae(t,Mi(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=ei(e.history,i,m.signal);if(l){let e=await Xe(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){je(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{je(t,n,ui(404,{pathname:i}),{flushSync:u});return}}let g=Oi(s,i);k.set(t,m);let _=ae,v=await De(h,i,Kr(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(k.get(t)===m&&k.delete(t),!h.signal.aborted){if(le.has(t)){Ae(t,R(void 0));return}if(bi(y))if(A>_){Ae(t,R(void 0));return}else{oe.add(t),await Ee(h,y,!1,{preventScrollReset:d});return}if(yi(y)){je(t,n,y.error);return}Ae(t,R(y.data))}}async function Ee(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(T?.resolve(),T=null),i.response.headers.has(`X-Remix-Revalidate`)&&(re=!0);let d=i.response.headers.get(`Location`);F(d,`Expected a Location header on the redirect Response`),d=$r(d,new URL(r.url),c,e.history);let f=Pt(C.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(bn(d)){let n=Rt(d,!0);e=n.origin!==t.location.origin||_n(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}ee=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=C.navigation;!o&&!s&&m&&h&&g&&(o=ki(C.navigation));let _=o||s;or.has(i.response.status)&&_&&Ei(_.formMethod)?await ve(p,f,{submission:{..._,formAction:d},preventScrollReset:l||E,enableViewTransition:a?D:void 0}):await ve(p,f,{overrideNavigation:Ai(f,o),fetcherSubmission:s,preventScrollReset:l||E,enableViewTransition:a?D:void 0})}async function De(e,t,n,r,i){let a,o={};try{a=await qr(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Ei(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!C.loaderData.hasOwnProperty(e.route.id)&&(!C.errors||!C.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(vi(r)){let i=r.result;o[t]={type:`redirect`,response:Zr(i,e,t,n,c)}}else o[t]=await Xr(r);return o}async function Oe(e,t,n,r,i){let a=De(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await De(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:ui(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function ke(){re=!0,se.forEach((e,t)=>{k.has(t)&&ie.add(t),Ie(t)})}function Ae(e,t,n={}){C.fetchers.set(e,t),me({fetchers:new Map(C.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function je(e,t,n,r={}){let i=ci(C.matches,t);Pe(e),me({errors:{[i.route.id]:n},fetchers:new Map(C.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function Me(e){return ce.set(e,(ce.get(e)||0)+1),le.has(e)&&le.delete(e),C.fetchers.get(e)||cr}function Ne(e,t){Ie(e,t?.reason),Ae(e,R(null))}function Pe(e){let t=C.fetchers.get(e);k.has(e)&&!(t&&t.state===`loading`&&j.has(e))&&Ie(e),se.delete(e),j.delete(e),oe.delete(e),le.delete(e),ie.delete(e),C.fetchers.delete(e)}function Fe(e){let t=(ce.get(e)||0)-1;t<=0?(ce.delete(e),le.add(e)):ce.set(e,t),me({fetchers:new Map(C.fetchers)})}function Ie(e,t){let n=k.get(e);n&&(n.abort(t),k.delete(e))}function Le(e){for(let t of e){let e=R(Me(t).data);C.fetchers.set(t,e)}}function Re(){let e=[],t=!1;for(let n of oe){let r=C.fetchers.get(n);F(r,`Expected fetcher: ${n}`),r.state===`loading`&&(oe.delete(n),e.push(n),t=!0)}return Le(e),t}function ze(e){let t=[];for(let[n,r]of j)if(r<e){let e=C.fetchers.get(n);F(e,`Expected fetcher: ${n}`),e.state===`loading`&&(Ie(n),j.delete(n),t.push(n))}return Le(t),t.length>0}function Be(e,t){let n=C.blockers.get(e)||lr;return M.get(e)!==t&&M.set(e,t),n}function Ve(e){C.blockers.delete(e),M.delete(e)}function He(e,t){let n=C.blockers.get(e)||lr;F(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(C.blockers);r.set(e,t),me({blockers:r})}function Ue({currentLocation:e,nextLocation:t,historyAction:n}){if(M.size===0)return;M.size>1&&jt(!1,`A router only supports one blocker at a time`);let r=Array.from(M.entries()),[i,a]=r[r.length-1],o=C.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function We(e){let t=ui(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=li(n);return{notFoundMatches:r,route:i,error:t}}function Ge(e,t,n){if(p=e,h=t,m=n||null,!g&&C.navigation===sr){g=!0;let e=Je(C.location,C.matches);e!=null&&me({restoreScrollPosition:e})}return()=>{p=null,h=null,m=null}}function Ke(e,t){return m&&m(e,t.map(e=>Zt(e,C.loaderData)))||e.key}function qe(e,t){if(p&&h){let n=Ke(e,t);p[n]=h()}}function Je(e,t){if(p){let n=Ke(e,t),r=p[n];if(typeof r==`number`)return r}return null}function Ye(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:Xt(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:Xt(n,r,c,!0,e)}}return{active:!1,matches:null}}async function Xe(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||Mr(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=Xt(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=Xt(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&Ze(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=Xt(s.activeRoutes,n,c,!0,u),!f||Ze(l,f))return{type:`success`,matches:null};l=f}}function Ze(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Qe(e){o={},s.setHmrRoutes(qt(e,a,void 0,o))}function $e(e,t,n=!1){Mr(e,t,s,o,a,n),s.hasHMRRoutes||me({})}return S={get basename(){return c},get future(){return u},get state(){return C},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:de,subscribe:pe,enableScrollRestoration:Ge,navigate:ge,fetch:Ce,revalidate:_e,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Me,resetFetcher:Ne,deleteFetcher:Fe,dispose:fe,getBlocker:Be,deleteBlocker:Ve,patchRoutes:$e,_internalFetchControllers:k,_internalSetRoutes:Qe,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){me(e)}},e.instrumentations&&(S=Gn(S,e.instrumentations.map(e=>e.router).filter(Boolean))),S}function yr(e,t){F(e.length>0,`You must provide a non-empty routes array to createStaticHandler`);let n={},r=(t?t.basename:null)||`/`,i=t?.mapRouteProperties||ur,a=i;if({...t?.future},t?.instrumentations){let e=t.instrumentations;a=t=>({...i(t),...Wn(e.map(e=>e.route).filter(Boolean),t)})}let o=qt(e,a,void 0,n),s=Qt(o);async function c(e,{requestContext:t,filterMatchesToLoad:i,skipLoaderErrorBubbling:c,skipRevalidation:l,dataStrategy:d,generateMiddlewareResponse:f,normalizePath:p}={}){let m=p||Cr,h=e.method,g=Pt(``,m(e),null,`default`),_=Xt(o,g,r,!1,s);if(t??=new Vt,!Ti(h)&&h!==`HEAD`){let e=ui(405,{method:h}),{matches:t,route:n}=li(o),i={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(i)):i}else if(!_){let e=ui(404,{pathname:g.pathname}),{matches:t,route:n}=li(o),i={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(i)):i}if(f){F(t instanceof Vt,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{await zr(_,n,a);let s,p=await I({request:e,url:ti(e,g),pattern:Bn(_),matches:_,params:_[0].params,context:t},async()=>await f(async(e,n={})=>{let a=await u(e,g,_,t,d||null,c===!0,null,`filterMatchesToLoad`in n?n.filterMatchesToLoad??null:i??null,l===!0);return Si(a)?a:(s={location:g,basename:r,...a},s)}),async(e,t)=>{if(wi(e))return e;if(Si(e))try{e=new Rn(e.status,e.statusText,await Yr(e))}catch(t){e=t}if(xi(e)&&(e=hi(e)),s){t in s.loaderData&&(s.loaderData[t]=void 0);let n=br(o,s,e,c?t:ci(_,t).route.id);return f(()=>Promise.resolve(n))}else{let n={matches:_,location:g,basename:r,loaderData:{},actionData:null,errors:{[c?t:ci(_,_.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id]:e},statusCode:zn(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return f(()=>Promise.resolve(n))}});return F(Si(p),`Expected a response in query()`),p}catch(e){if(Si(e))return e;throw e}}let v=await u(e,g,_,t,d||null,c===!0,null,i||null,l===!0);return Si(v)?v:{location:g,basename:r,...v}}async function l(e,{routeId:t,requestContext:i,dataStrategy:c,generateMiddlewareResponse:l,normalizePath:d}={}){let f=d||Cr,p=e.method,m=Pt(``,f(e),null,`default`),h=Xt(o,m,r,!1,s);if(i??=new Vt,!Ti(p)&&p!==`HEAD`&&p!==`OPTIONS`)throw ui(405,{method:p});if(!h)throw ui(404,{pathname:m.pathname});let g=t?h.find(e=>e.route.id===t):Oi(h,m);if(t&&!g)throw ui(403,{pathname:m.pathname,routeId:t});if(!g)throw ui(404,{pathname:m.pathname});if(l)return F(i instanceof Vt,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await zr(h,n,a),await I({request:e,url:ti(e,m),pattern:Bn(h),matches:h,params:h[0].params,context:i},async()=>await l(async e=>{let t=_(await u(e,m,h,i,c||null,!1,g,null,!1));return Si(t)?t:typeof t==`string`?new Response(t):Response.json(t)}),e=>{if(xi(e))return Promise.resolve(mi(e));if(Si(e))return Promise.resolve(e);throw e});return _(await u(e,m,h,i,c||null,!1,g,null,!1));function _(e){if(Si(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(t!==void 0)throw t;if(e.actionData)return Object.values(e.actionData)[0];if(e.loaderData)return Object.values(e.loaderData)[0]}}async function u(e,t,n,r,i,a,o,s,c){F(e.signal,`query()/queryRoute() requests must contain an AbortController signal`);try{if(Ei(e.method))return await d(e,t,n,o||Oi(n,t),r,i,a,o!=null,s,c);let l=await f(e,t,n,r,i,a,o,s);return Si(l)?l:{...l,actionData:null,actionHeaders:{}}}catch(e){if(_i(e)&&Si(e.result)){if(e.type===`error`)throw e.result;return e.result}if(wi(e))return e;throw e}}async function d(e,t,r,i,o,s,c,l,u,d){let m;if(!i.route.action&&!i.route.lazy){let t=ui(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:i.route.id});if(l)throw t;m={type:`error`,error:t}}else m=(await p(e,t,Kr(a,n,e,t,r,i,[],o),l,o,s))[i.route.id],e.signal.aborted&&xr(e,l);if(bi(m))throw new Response(null,{status:m.response.status,headers:{Location:m.response.headers.get(`Location`)}});if(l){if(yi(m))throw m.error;return{matches:[i],loaderData:{},actionData:{[i.route.id]:m.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(d)if(yi(m)){let e=c?i:ci(r,i.route.id);return{statusCode:zn(m.error)?m.error.status:m.statusCode==null?500:m.statusCode,actionData:null,actionHeaders:{...m.headers?{[i.route.id]:m.headers}:{}},matches:r,loaderData:{},errors:{[e.route.id]:m.error},loaderHeaders:{}}}else return{actionData:{[i.route.id]:m.data},actionHeaders:m.headers?{[i.route.id]:m.headers}:{},matches:r,loaderData:{},errors:null,statusCode:m.statusCode||200,loaderHeaders:{}};let h=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});return yi(m)?{...await f(h,t,r,o,s,c,null,u,[(c?i:ci(r,i.route.id)).route.id,m]),statusCode:zn(m.error)?m.error.status:m.statusCode==null?500:m.statusCode,actionData:null,actionHeaders:{...m.headers?{[i.route.id]:m.headers}:{}}}:{...await f(h,t,r,o,s,c,null,u),actionData:{[i.route.id]:m.data},...m.statusCode?{statusCode:m.statusCode}:{},actionHeaders:m.headers?{[i.route.id]:m.headers}:{}}}async function f(e,t,r,i,o,s,c,l,u){let d=c!=null;if(d&&!c?.route.loader&&!c?.route.lazy)throw ui(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:c?.route.id});let f;if(c)f=Kr(a,n,e,t,r,c,[],i);else{let o=u&&yi(u[1])?r.findIndex(e=>e.route.id===u[0])-1:void 0,s=Bn(r);f=r.map((r,c)=>o!=null&&c>o?Gr(a,n,e,t,s,r,[],i,!1):Gr(a,n,e,t,s,r,[],i,(r.route.loader||r.route.lazy)!=null&&(!l||l(r))))}if(!o&&!f.some(e=>e.shouldLoad))return{matches:r,loaderData:{},errors:u&&yi(u[1])?{[u[0]]:u[1].error}:null,statusCode:200,loaderHeaders:{}};let m=await p(e,t,f,d,i,o);return e.signal.aborted&&xr(e,d),{...ii(r,m,u,!0,s),matches:r}}async function p(e,t,n,i,a,o){let s=await qr(o||Br,e,t,n,null,a,!0),c={};return await Promise.all(n.map(async t=>{if(!(t.route.id in s))return;let a=s[t.route.id];if(vi(a)){let i=a.result;throw Zr(i,e,t.route.id,n,r)}if(i){if(Si(a.result))throw a;if(xi(a.result))throw mi(a.result)}c[t.route.id]=await Xr(a)})),c}return{dataRoutes:o,_internalRouteBranches:s,query:c,queryRoute:l}}function br(e,t,n,r){let i=r||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:zn(n)?n.status:500,errors:{[i]:n}}}function xr(e,t){throw e.signal.reason===void 0?Error(`${t?`queryRoute`:`query`}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`):e.signal.reason}function Sr(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Cr(e){let t=new URL(e.url);return{pathname:t.pathname,search:t.search,hash:t.hash}}function wr(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=En(r||`.`,Tn(o),_n(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Di(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=vn({basename:n,pathname:c.pathname})),Ft(c)}function Tr(e,t,n){if(!n||!Sr(n))return{path:t};if(n.formMethod&&!Ti(n.formMethod))return{path:t,error:ui(405,{method:n.formMethod})};let r=()=>({path:t,error:ui(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=fi(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Ei(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
14
+ `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!Ei(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}F(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=ni(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ni(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=ri(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=ri(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Ei(c.formMethod))return{path:t,submission:c};let l=It(t);return e&&l.search&&Di(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:Ft(l),submission:c}}function Er(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?yi(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&yi(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,ee=E&&E>=400,D={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},O=Bn(o),te=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!Dr(s))f=!1;else if(u){let{shouldLoad:e}=Or(s,a.loaderData,a.errors);f=e}else kr(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Gr(n,r,e,c,O,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:ee?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?Ar(a.matches[o],i)&&(p=!0):p=!0;let m={...D,defaultShouldRevalidate:p};return Gr(n,r,e,c,O,i,l,t,jr(i,m),m,x)}),ne=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=Xt(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;ne.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Oi(b,e.path),C=new AbortController,w=ei(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Kr(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Kr(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:ee?!1:d;let a={...D,defaultShouldRevalidate:i};jr(S,a)&&(T=Kr(n,r,w,e.path,b,S,l,t,a))}T&&ne.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:te,revalidatingFetchers:ne}}function Dr(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Or(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Dr(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function kr(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Ar(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function jr(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Mr(e,t,n,r,i,a){let o;if(e){let t=r[e];F(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Nr(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=qt(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=qt([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Nr(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Nr(e,t)))??!1:!1}var Pr=new WeakMap,Fr=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(F(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Pr.get(i);o||(o={},Pr.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=Ut(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)jt(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)jt(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Ir=new WeakMap;function Lr(e,t,n,r,i){let a=n[e.id];if(F(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Ir.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{F(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=Gt(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?jt(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?jt(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Ir.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Fr({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}function Rr(e){return e!==void 0}function zr(e,t,n){let r=e.map(({route:e})=>{if(!(typeof e.lazy!=`object`||!e.lazy.middleware))return Fr({key:`middleware`,route:e,manifest:t,mapRouteProperties:n})}).filter(Rr);return r.length>0?Promise.all(r):void 0}async function Br(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Vr(e){return e.matches.some(e=>e.route.middleware)?Hr(e,()=>Br(e)):Br(e)}function I(e,t,n){return Ur(e,t,r,Si,n);function r(e){return xi(e)?mi(e):e}}function Hr(e,t){return Ur(e,t,e=>{if(wi(e))throw e;return e},gi,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=ci(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function Ur(e,t,n,r,i){let{matches:a,...o}=e;return await Wr(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Wr(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Wr(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function L(e,t,n,r,i){let a=Fr({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Lr(r.route,Ei(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Gr(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=L(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?jr(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?jr(a,{...l,defaultShouldRevalidate:e}):jr(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Ei(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Ei(n.method)||!p)?Jr({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Kr(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Gr(e,t,n,r,Bn(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:L(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function qr(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:ti(t,n),pattern:Bn(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Hr(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Jr({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Ei(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:ti(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw ui(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw ui(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Yr(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Xr(e){let{result:t,type:n}=e;if(Si(t)){let e;try{e=await Yr(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Rn(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?xi(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:hi(t),statusCode:zn(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:zn(t)?t.status:void 0}:xi(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Zr(e,t,n,r,i){let a=e.headers.get(`Location`);if(F(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!bn(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=wr(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Qr=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function $r(e,t,n,r){if(bn(e)){let r=e,i=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(Qr.includes(i.protocol))throw Error(`Invalid redirect location`);let a=_n(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Dn(i.pathname)+i.search+i.hash}try{let t=r.createURL(e);if(Qr.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function ei(e,t,n,r){let i=e.createURL(fi(t)).toString(),a={signal:n};if(r&&Ei(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=ni(r.formData):a.body=r.formData}return new Request(i,a)}function ti(e,t){let n=new URL(e.url),r=typeof t==`string`?It(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function ni(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function ri(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ii(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&yi(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(F(!bi(f),`Cannot handle redirect results in processLoaderData`),yi(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=ci(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=fr),c||(c=!0,s=zn(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function ai(e,t,n,r,i,a){let{loaderData:o,errors:s}=ii(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let o=a[n];if(F(o,`Did not find corresponding fetcher result`),yi(o)){let t=ci(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:o.error}),e.fetchers.delete(n)}else if(bi(o))F(!1,`Unhandled fetcher revalidation redirect`);else{let t=R(o.data);e.fetchers.set(n,t)}}),{loaderData:o,errors:s}}function oi(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==fr).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function si(e){return e?yi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ci(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function li(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function ui(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Rn(e||500,o,Error(s),!0)}function di(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(bi(r))return{key:n,result:r}}}function fi(e){return Ft({...typeof e==`string`?It(e):e,hash:``})}function pi(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function mi(e){return Response.json(e.data,e.init??void 0)}function hi(e){return new Rn(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function gi(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&_i(t))}function _i(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function vi(e){return Si(e.result)&&ar.has(e.result.status)}function yi(e){return e.type===`error`}function bi(e){return(e&&e.type)===`redirect`}function xi(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Si(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Ci(e){return ar.has(e)}function wi(e){return Si(e)&&Ci(e.status)&&e.headers.has(`Location`)}function Ti(e){return ir.has(e.toUpperCase())}function Ei(e){return nr.has(e.toUpperCase())}function Di(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Oi(e,t){let n=typeof t==`string`?It(t).search:t.search;if(e[e.length-1].route.index&&Di(n||``))return e[e.length-1];let r=wn(e);return r[r.length-1]}function ki(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Ai(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 ji(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 Mi(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 Ni(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 R(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 Pi(e,t){try{let n=e.sessionStorage.getItem(dr);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function z(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(dr,JSON.stringify(n))}catch(e){jt(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Fi(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ii=O.createContext(null);Ii.displayName=`DataRouter`;var Li=O.createContext(null);Li.displayName=`DataRouterState`;var Ri=O.createContext(!1);function zi(){return O.useContext(Ri)}var Bi=O.createContext({isTransitioning:!1});Bi.displayName=`ViewTransition`;var Vi=O.createContext(new Map);Vi.displayName=`Fetchers`;var Hi=O.createContext(null);Hi.displayName=`Await`;var Ui=e=>O.createElement(Hi.Provider,e),Wi=O.createContext(null);Wi.displayName=`Navigation`;var Gi=O.createContext(null);Gi.displayName=`Location`;var Ki=O.createContext({outlet:null,matches:[],isDataRoute:!1});Ki.displayName=`Route`;var qi=O.createContext(null);qi.displayName=`RouteError`;var Ji=`REACT_ROUTER_ERROR`,Yi=`REDIRECT`,Xi=`ROUTE_ERROR_RESPONSE`;function Zi(e){if(e.startsWith(`${Ji}:${Yi}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Qi(e){if(e.startsWith(`${Ji}:${Xi}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Rn(t.status,t.statusText,t.data)}catch{}}function $i(e,{relative:t}={}){F(ea(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=O.useContext(Wi),{hash:i,pathname:a,search:o}=fa(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:On([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ea(){return O.useContext(Gi)!=null}function ta(){return F(ea(),`useLocation() may be used only in the context of a <Router> component.`),O.useContext(Gi).location}function na(){return O.useContext(Gi).navigationType}function ra(e){F(ea(),`useMatch() may be used only in the context of a <Router> component.`);let{pathname:t}=ta();return O.useMemo(()=>mn(e,gn(t)),[t,e])}var ia=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function aa(e){O.useContext(Wi).static||O.useLayoutEffect(e)}function oa(){let{isDataRoute:e}=O.useContext(Ki);return e?Ra():sa()}function sa(){F(ea(),`useNavigate() may be used only in the context of a <Router> component.`);let e=O.useContext(Ii),{basename:t,navigator:n}=O.useContext(Wi),{matches:r}=O.useContext(Ki),{pathname:i}=ta(),a=JSON.stringify(Tn(r)),o=O.useRef(!1);return aa(()=>{o.current=!0}),O.useCallback((r,s={})=>{if(jt(o.current,ia),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=En(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:On([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var ca=O.createContext(null);function la(){return O.useContext(ca)}function ua(e){let t=O.useContext(Ki).outlet;return O.useMemo(()=>t&&O.createElement(ca.Provider,{value:e},t),[t,e])}function da(){let{matches:e}=O.useContext(Ki);return e[e.length-1]?.params??{}}function fa(e,{relative:t}={}){let{matches:n}=O.useContext(Ki),{pathname:r}=ta(),i=JSON.stringify(Tn(n));return O.useMemo(()=>En(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function pa(e,t){return ma(e,t)}function ma(e,t,n){F(ea(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=O.useContext(Wi),{matches:i}=O.useContext(Ki),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Ba(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
15
15
 
16
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=R(),d;if(t){let e=typeof t==`string`?zt(t):t;M(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Qt(e,{pathname:p});Pt(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Pt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Sa(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:An([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:An([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?E.createElement(qi.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function ga(){let e=Fa(),t=Vn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=E.createElement(E.Fragment,null,E.createElement(`p`,null,`💿 Hey developer 👋`),E.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,E.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,E.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),E.createElement(E.Fragment,null,E.createElement(`h2`,null,`Unexpected Application Error!`),E.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?E.createElement(`pre`,{style:i},n):null,o)}var _a=E.createElement(ga,null),va=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ea(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:E.createElement(Ji.Provider,{value:this.props.routeContext},E.createElement(Yi.Provider,{value:e,children:this.props.component}));return this.context?E.createElement(ba,{error:e},t):t}};va.contextType=Bi;var ya=new WeakMap;function ba({children:e,error:t}){let{basename:n}=E.useContext(Ki);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=$i(t.digest);if(e){let r=ya.get(t);if(r)throw r;let i=Wn(e.location,n);if(Un&&!ya.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw ya.set(t,n),n}return E.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function xa({routeContext:e,match:t,children:n}){let r=E.useContext(Ri);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Ji.Provider,{value:e},n)}function Sa(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);M(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Hn(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||_a,o&&(s<0&&c===0?(Va(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?E.createElement(n.route.Component,null):n.route.element?n.route.element:e,E.createElement(xa,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?E.createElement(va,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Ca(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wa(e){let t=E.useContext(Ri);return M(t,Ca(e)),t}function Ta(e){let t=E.useContext(zi);return M(t,Ca(e)),t}function Ea(e){let t=E.useContext(Ji);return M(t,Ca(e)),t}function Da(e){let t=Ea(e),n=t.matches[t.matches.length-1];return M(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Oa(){return Da(`useRouteId`)}function ka(){return Ta(`useNavigation`).navigation}function Aa(){let e=wa(`useRevalidator`),t=Ta(`useRevalidator`),n=E.useCallback(async()=>{await e.router.revalidate()},[e.router]);return E.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function ja(){let{matches:e,loaderData:t}=Ta(`useMatches`);return E.useMemo(()=>e.map(e=>en(e,t)),[e,t])}function Ma(){let e=Ta(`useLoaderData`),t=Da(`useLoaderData`);return e.loaderData[t]}function Na(e){return Ta(`useRouteLoaderData`).loaderData[e]}function Pa(){let e=Ta(`useActionData`),t=Da(`useLoaderData`);return e.actionData?e.actionData[t]:void 0}function Fa(){let e=E.useContext(Yi),t=Ta(`useRouteError`),n=Da(`useRouteError`);return e===void 0?t.errors?.[n]:e}function z(){return E.useContext(Wi)?._data}function Ia(){return E.useContext(Wi)?._error}var La=0;function Ra(e){let{router:t,basename:n}=wa(`useBlocker`),r=Ta(`useBlocker`),[i,a]=E.useState(``),o=E.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:yn(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:yn(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return E.useEffect(()=>{let e=String(++La);return a(e),()=>t.deleteBlocker(e)},[t]),E.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):dr}function za(){let{router:e}=wa(`useNavigate`),t=Da(`useNavigate`),n=E.useRef(!1);return oa(()=>{n.current=!0}),E.useCallback(async(r,i={})=>{Pt(n.current,aa),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Ba={};function Va(e,t,n){!t&&!Ba[e]&&(Ba[e]=!0,Pt(!1,n))}function Ha(...e){let t=Da(`useRoute`),n=e[0]??t,r=Ta(`useRoute`),i=r.matches.find(({route:e})=>e.id===n);if(i!==void 0)return{handle:i.route.handle,loaderData:r.loaderData[n],actionData:r.actionData?.[n]}}var Ua={};function Wa(e,t){!e&&!Ua[t]&&(Ua[t]=!0,console.warn(t))}var Ga=E.useOptimistic,Ka=()=>void 0;function qa(e){return Ga?Ga(e):[e,Ka]}function Ja(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Pt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:E.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Pt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:E.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Pt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:E.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Ya=[`HydrateFallback`,`hydrateFallbackElement`];function Xa(e,t){return br({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:jt({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:Ya,mapRouteProperties:Ja,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,instrumentations:t?.instrumentations}).initialize()}var Za=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Qa({router:e,flushSync:t,onError:n,useTransitions:r}){r=Vi()||r;let[i,a]=E.useState(e.state),[o,s]=qa(i),[c,l]=E.useState(),[u,d]=E.useState({isTransitioning:!1}),[f,p]=E.useState(),[m,h]=E.useState(),[g,_]=E.useState(),v=E.useRef(new Map),y=E.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Hn(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),Wa(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Wa(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):E.startTransition(()=>{r===!0&&s(e=>$a(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);E.useLayoutEffect(()=>e.subscribe(y),[e,y]);let b=o.initialized;E.useLayoutEffect(()=>{!b&&e.state.initialized&&y(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})},[b,y,e.state]),E.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Za)},[u]),E.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):E.startTransition(()=>{r===!0&&s(e=>$a(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),E.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),E.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let x=E.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),S=e.basename||`/`,C=E.useMemo(()=>({router:e,navigator:x,static:!1,basename:S,onError:n}),[e,x,S,n]);return E.createElement(E.Fragment,null,E.createElement(Ri.Provider,{value:C},E.createElement(zi.Provider,{value:o},E.createElement(Ui.Provider,{value:v.current},E.createElement(Hi.Provider,{value:u},E.createElement(oo,{basename:S,location:o.location,navigationType:o.historyAction,navigator:x,useTransitions:r},E.createElement(eo,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function $a(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var eo=E.memo(to);function to({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return ha(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function no({basename:e,children:t,initialEntries:n,initialIndex:r,useTransitions:i}){let a=E.useRef();a.current??=jt({initialEntries:n,initialIndex:r,v5Compat:!0});let o=a.current,[s,c]=E.useState({action:o.action,location:o.location}),l=E.useCallback(e=>{i===!1?c(e):E.startTransition(()=>c(e))},[i]);return E.useLayoutEffect(()=>o.listen(l),[o,l]),E.createElement(oo,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,useTransitions:i})}function ro({to:e,replace:t,state:n,relative:r}){M(na(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=E.useContext(Ki);Pt(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=E.useContext(Ji),{pathname:o}=R(),s=sa(),c=On(e,Dn(a),o,r===`path`),l=JSON.stringify(c);return E.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function io(e){return da(e.context)}function ao(e){M(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function oo({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){M(!na(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=E.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=zt(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=E.useMemo(()=>{let e=yn(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return Pt(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:E.createElement(Ki.Provider,{value:c},E.createElement(qi.Provider,{children:t,value:h}))}function so({children:e,location:t}){return ma(fo(e),t)}function co({children:e,errorElement:t,resolve:n}){let r=E.useContext(Ri),i=E.useContext(zi),a=E.useCallback((e,t)=>{r&&r.onError&&i&&r.onError(e,{location:i.location,params:i.matches[0]?.params||{},pattern:Hn(i.matches),errorInfo:t})},[r,i]);return E.createElement(lo,{resolve:n,errorElement:t,onError:a},E.createElement(uo,null,e))}var lo=class extends E.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`<Await> caught the following error during render`,e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=0;if(!(n instanceof Promise))i=1,r=Promise.resolve(),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_data`,{get:()=>n});else if(this.state.error){i=2;let e=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_error`,{get:()=>e})}else n._tracked?(r=n,i=`_error`in r?2:+(`_data`in r)):(i=0,Object.defineProperty(n,`_tracked`,{get:()=>!0}),r=n.then(e=>Object.defineProperty(n,`_data`,{get:()=>e}),e=>{this.props.onError?.(e),Object.defineProperty(n,`_error`,{get:()=>e})}));if(i===2&&!t)throw r._error;if(i===2)return E.createElement(Wi.Provider,{value:r,children:t});if(i===1)return E.createElement(Wi.Provider,{value:r,children:e});throw r}};function uo({children:e}){let t=z(),n=typeof e==`function`?e(t):e;return E.createElement(E.Fragment,null,n)}function fo(e,t=[]){let n=[];return E.Children.forEach(e,(e,r)=>{if(!E.isValidElement(e))return;let i=[...t,r];if(e.type===E.Fragment){n.push.apply(n,fo(e.props.children,i));return}M(e.type===ao,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),M(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=fo(e.props.children,i)),n.push(a)}),n}var po=fo;function B(e){return Sa(e)}function mo(){return{params:fa(),loaderData:Ma(),actionData:Pa(),matches:ja()}}function ho({children:e}){let t=mo();return E.cloneElement(e,t)}function go(e){return function(){let t=mo();return E.createElement(e,t)}}function _o(){return{params:fa(),loaderData:Ma(),actionData:Pa()}}function vo({children:e}){let t=_o();return E.cloneElement(e,t)}function yo(e){return function(){let t=_o();return E.createElement(e,t)}}function bo(){return{params:fa(),loaderData:Ma(),actionData:Pa(),error:Fa()}}function xo({children:e}){let t=bo();return E.cloneElement(e,t)}function So(e){return function(){let t=bo();return E.createElement(e,t)}}var Co=`get`,wo=`application/x-www-form-urlencoded`;function To(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Eo(e){return To(e)&&e.tagName.toLowerCase()===`button`}function Do(e){return To(e)&&e.tagName.toLowerCase()===`form`}function Oo(e){return To(e)&&e.tagName.toLowerCase()===`input`}function ko(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ao(e,t){return e.button===0&&(!t||t===`_self`)&&!ko(e)}function jo(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Mo(e,t){let n=jo(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var No=null;function Po(){if(No===null)try{new FormData(document.createElement(`form`),0),No=!1}catch{No=!0}return No}var Fo=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Io(e){return e!=null&&!Fo.has(e)?(Pt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wo}"`),null):e}function Lo(e,t){let n,r,i,a,o;if(Do(e)){let o=e.getAttribute(`action`);r=o?yn(o,t):null,n=e.getAttribute(`method`)||Co,i=Io(e.getAttribute(`enctype`))||wo,a=new FormData(e)}else if(Eo(e)||Oo(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?yn(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Co,i=Io(e.getAttribute(`formenctype`))||Io(o.getAttribute(`enctype`))||wo,a=new FormData(o,e),!Po()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(To(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Co,r=null,i=wo,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var Ro=-1,zo=-2,Bo=-3,Vo=-4,Ho=-5,Uo=-6,Wo=-7,Go=`B`,Ko=`D`,qo=`E`,Jo=`M`,Yo=`N`,Xo=`P`,Zo=`R`,Qo=`S`,$o=`Y`,es=`U`,ts=`Z`,ns=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],rs=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function V(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
17
- `);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}var is=1,as=()=>Date.now(),os=()=>new Promise(e=>setTimeout(e,0));async function ss(e){let{indices:t}=this,n=t.get(e);if(n)return[n];if(e===void 0)return Wo;if(e===null)return Ho;if(Number.isNaN(e))return zo;if(e===1/0)return Uo;if(e===-1/0)return Bo;if(e===0&&1/e<0)return Vo;let r=this.index++;t.set(e,r);let i=[[e,r]];return await cs.call(this,i),r}async function cs(e){let{deferred:t,indices:n,plugins:r,postPlugins:i}=this,a=this.stringified,o=as(),s=t=>{let r=n.get(t);if(r)return[r];if(t===void 0)return Wo;if(t===null)return Ho;if(Number.isNaN(t))return zo;if(t===1/0)return Uo;if(t===-1/0)return Bo;if(t===0&&1/t<0)return Vo;let i=this.index++;return n.set(t,i),e.push([t,i]),i},c=0;for(;e.length>0;){let n=as();++c%6e3==0&&n-o>=is&&(await os(),o=as());let[l,u]=e.pop(),d=e=>Object.keys(e).map(t=>`"_${s(t)}":${s(e[t])}`).join(`,`),f=null;switch(typeof l){case`boolean`:case`number`:case`string`:a[u]=JSON.stringify(l);break;case`bigint`:a[u]=`["${Go}","${l}"]`;break;case`symbol`:{let e=Symbol.keyFor(l);e?a[u]=`["${$o}",${JSON.stringify(e)}]`:f=Error(`Cannot encode symbol unless created with Symbol.for()`);break}case`object`:{if(!l){a[u]=`${Ho}`;break}let e=Array.isArray(l),n=!1;if(!e&&r)for(let e of r){let t=e(l);if(Array.isArray(t)){n=!0;let[e,...r]=t;a[u]=`[${JSON.stringify(e)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}if(!n){let n=e?`[`:`{`;if(e){for(let e=0;e<l.length;e++)n+=(e?`,`:``)+(e in l?s(l[e]):Ro);a[u]=`${n}]`}else if(l instanceof Date){let e=l.getTime();a[u]=`["${Ko}",${Number.isNaN(e)?JSON.stringify(`invalid`):e}]`}else l instanceof URL?a[u]=`["${es}",${JSON.stringify(l.href)}]`:l instanceof RegExp?a[u]=`["${Zo}",${JSON.stringify(l.source)},${JSON.stringify(l.flags)}]`:l instanceof Set?l.size>0?a[u]=`["${Qo}",${[...l].map(e=>s(e)).join(`,`)}]`:a[u]=`["${Qo}"]`:l instanceof Map?l.size>0?a[u]=`["${Jo}",${[...l].flatMap(([e,t])=>[s(e),s(t)]).join(`,`)}]`:a[u]=`["${Jo}"]`:l instanceof Promise?(a[u]=`["${Xo}",${u}]`,t[u]=l):l instanceof Error?(a[u]=`["${qo}",${JSON.stringify(l.message)}`,l.name!==`Error`&&(a[u]+=`,${JSON.stringify(l.name)}`),a[u]+=`]`):Object.getPrototypeOf(l)===null?a[u]=`["${Yo}",{${d(l)}}]`:us(l)?a[u]=`{${d(l)}}`:f=Error(`Cannot encode object with prototype`)}break}default:{let e=Array.isArray(l),t=!1;if(!e&&r)for(let e of r){let n=e(l);if(Array.isArray(n)){t=!0;let[e,...r]=n;a[u]=`[${JSON.stringify(e)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}t||(f=Error(`Cannot encode function or unexpected type`))}}if(f){let e=!1;if(i)for(let t of i){let n=t(l);if(Array.isArray(n)){e=!0;let[t,...r]=n;a[u]=`[${JSON.stringify(t)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}if(!e)throw f}}}var ls=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function us(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===ls}var ds=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0;function fs(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return ps.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,ps.call(this,r)}function ps(e){let{hydrated:t,values:n,deferred:r,plugins:i}=this,a,o=[[e,e=>{a=e}]],s=[];for(;o.length>0;){let[e,a]=o.pop();switch(e){case Wo:a(void 0);continue;case Ho:a(null);continue;case zo:a(NaN);continue;case Uo:a(1/0);continue;case Bo:a(-1/0);continue;case Vo:a(-0);continue}if(t[e]){a(t[e]);continue}let c=n[e];if(!c||typeof c!=`object`){t[e]=c,a(c);continue}if(Array.isArray(c))if(typeof c[0]==`string`){let[n,l,u]=c;switch(n){case Ko:a(t[e]=new Date(l));continue;case es:a(t[e]=new URL(l));continue;case Go:a(t[e]=BigInt(l));continue;case Zo:a(t[e]=new RegExp(l,u));continue;case $o:a(t[e]=Symbol.for(l));continue;case Qo:let n=new Set;t[e]=n;for(let e=c.length-1;e>0;e--)o.push([c[e],e=>{n.add(e)}]);a(n);continue;case Jo:let d=new Map;t[e]=d;for(let e=c.length-2;e>0;e-=2){let t=[];o.push([c[e+1],e=>{t[1]=e}]),o.push([c[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}a(d);continue;case Yo:let f=Object.create(null);t[e]=f;for(let e of Object.keys(l).reverse()){let t=[];o.push([l[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}a(f);continue;case Xo:if(t[l])a(t[e]=t[l]);else{let n=new rs;r[l]=n,a(t[e]=n.promise)}continue;case qo:let[,p,m]=c,h=m&&ds&&ns.includes(m)&&m in ds&&typeof ds[m]==`function`?new ds[m](p):Error(p);t[e]=h,a(h);continue;case ts:a(t[e]=t[l]);continue;default:if(Array.isArray(i)){let n=[],r=c.slice(1);for(let e=0;e<r.length;e++){let t=r[e];o.push([t,t=>{n[e]=t}])}s.push(()=>{for(let r of i){let i=r(c[0],...n);if(i){a(t[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let n=[];t[e]=n;for(let e=0;e<c.length;e++){let t=c[e];t!==Ro&&o.push([t,t=>{n[e]=t}])}a(n);continue}else{let n={};t[e]=n;for(let e of Object.keys(c).reverse()){let t=[];o.push([c[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{n[t[0]]=t[1]})}a(n);continue}}for(;s.length>0;)s.pop()();return a}async function ms(e,t){let{plugins:n}=t??{},r=new rs,i=e.pipeThrough(V()).getReader(),a={values:[],hydrated:[],deferred:{},plugins:n},o=await hs.call(a,i),s=r.promise;return o.done?r.resolve():s=gs.call(a,i).then(r.resolve).catch(e=>{for(let t of Object.values(a.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>i.closed),value:o.value}}async function hs(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:fs.call(this,n)}}async function gs(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case Xo:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=fs.call(this,a);r.resolve(o);break}case qo:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=fs.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}function _s(e,t){let{onComplete:n,plugins:r,postPlugins:i,signal:a}=t??{},o={deferred:{},index:0,indices:new Map,stringified:[],plugins:r,postPlugins:i,signal:a},s=new TextEncoder,c=0;return new ReadableStream({async start(t){let r=await ss.call(o,e);if(Array.isArray(r))throw Error(`This should never happen`);r<0?t.enqueue(s.encode(`${r}
16
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ta(),d;if(t){let e=typeof t==`string`?It(t):t;F(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Yt(e,{pathname:p});jt(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),jt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=xa(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:On([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:On([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?O.createElement(Gi.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function ha(){let e=Pa(),t=zn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=O.createElement(O.Fragment,null,O.createElement(`p`,null,`💿 Hey developer 👋`),O.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,O.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,O.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),O.createElement(O.Fragment,null,O.createElement(`h2`,null,`Unexpected Application Error!`),O.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?O.createElement(`pre`,{style:i},n):null,o)}var ga=O.createElement(ha,null),_a=class extends O.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Qi(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:O.createElement(Ki.Provider,{value:this.props.routeContext},O.createElement(qi.Provider,{value:e,children:this.props.component}));return this.context?O.createElement(ya,{error:e},t):t}};_a.contextType=Ri;var va=new WeakMap;function ya({children:e,error:t}){let{basename:n}=O.useContext(Wi);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Zi(t.digest);if(e){let r=va.get(t);if(r)throw r;let i=Hn(e.location,n);if(Vn&&!va.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw va.set(t,n),n}return O.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function ba({routeContext:e,match:t,children:n}){let r=O.useContext(Ii);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(Ki.Provider,{value:e},n)}function xa(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);F(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Bn(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||ga,o&&(s<0&&c===0?(Ba(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?O.createElement(n.route.Component,null):n.route.element?n.route.element:e,O.createElement(ba,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?O.createElement(_a,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Sa(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ca(e){let t=O.useContext(Ii);return F(t,Sa(e)),t}function wa(e){let t=O.useContext(Li);return F(t,Sa(e)),t}function Ta(e){let t=O.useContext(Ki);return F(t,Sa(e)),t}function Ea(e){let t=Ta(e),n=t.matches[t.matches.length-1];return F(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Da(){return Ea(`useRouteId`)}function Oa(){return wa(`useNavigation`).navigation}function ka(){let e=Ca(`useRevalidator`),t=wa(`useRevalidator`),n=O.useCallback(async()=>{await e.router.revalidate()},[e.router]);return O.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function Aa(){let{matches:e,loaderData:t}=wa(`useMatches`);return O.useMemo(()=>e.map(e=>Zt(e,t)),[e,t])}function ja(){let e=wa(`useLoaderData`),t=Ea(`useLoaderData`);return e.loaderData[t]}function Ma(e){return wa(`useRouteLoaderData`).loaderData[e]}function Na(){let e=wa(`useActionData`),t=Ea(`useLoaderData`);return e.actionData?e.actionData[t]:void 0}function Pa(){let e=O.useContext(qi),t=wa(`useRouteError`),n=Ea(`useRouteError`);return e===void 0?t.errors?.[n]:e}function B(){return O.useContext(Hi)?._data}function Fa(){return O.useContext(Hi)?._error}var Ia=0;function La(e){let{router:t,basename:n}=Ca(`useBlocker`),r=wa(`useBlocker`),[i,a]=O.useState(``),o=O.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:_n(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:_n(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return O.useEffect(()=>{let e=String(++Ia);return a(e),()=>t.deleteBlocker(e)},[t]),O.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):lr}function Ra(){let{router:e}=Ca(`useNavigate`),t=Ea(`useNavigate`),n=O.useRef(!1);return aa(()=>{n.current=!0}),O.useCallback(async(r,i={})=>{jt(n.current,ia),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var za={};function Ba(e,t,n){!t&&!za[e]&&(za[e]=!0,jt(!1,n))}function Va(...e){let t=Ea(`useRoute`),n=e[0]??t,r=wa(`useRoute`),i=r.matches.find(({route:e})=>e.id===n);if(i!==void 0)return{handle:i.route.handle,loaderData:r.loaderData[n],actionData:r.actionData?.[n]}}var Ha={};function Ua(e,t){!e&&!Ha[t]&&(Ha[t]=!0,console.warn(t))}var Wa=O.useOptimistic,Ga=()=>void 0;function Ka(e){return Wa?Wa(e):[e,Ga]}function qa(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&jt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:O.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&jt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:O.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&jt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:O.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Ja=[`HydrateFallback`,`hydrateFallbackElement`];function Ya(e,t){return vr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Ot({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:Ja,mapRouteProperties:qa,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,instrumentations:t?.instrumentations}).initialize()}var Xa=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Za({router:e,flushSync:t,onError:n,useTransitions:r}){r=zi()||r;let[i,a]=O.useState(e.state),[o,s]=Ka(i),[c,l]=O.useState(),[u,d]=O.useState({isTransitioning:!1}),[f,p]=O.useState(),[m,h]=O.useState(),[g,_]=O.useState(),v=O.useRef(new Map),y=O.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Bn(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),Ua(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Ua(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):O.startTransition(()=>{r===!0&&s(e=>Qa(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);O.useLayoutEffect(()=>e.subscribe(y),[e,y]);let b=o.initialized;O.useLayoutEffect(()=>{!b&&e.state.initialized&&y(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})},[b,y,e.state]),O.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Xa)},[u]),O.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):O.startTransition(()=>{r===!0&&s(e=>Qa(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),O.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),O.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let x=O.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),S=e.basename||`/`,C=O.useMemo(()=>({router:e,navigator:x,static:!1,basename:S,onError:n}),[e,x,S,n]);return O.createElement(O.Fragment,null,O.createElement(Ii.Provider,{value:C},O.createElement(Li.Provider,{value:o},O.createElement(Vi.Provider,{value:v.current},O.createElement(Bi.Provider,{value:u},O.createElement(ao,{basename:S,location:o.location,navigationType:o.historyAction,navigator:x,useTransitions:r},O.createElement($a,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function Qa(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var $a=O.memo(eo);function eo({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return ma(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function to({basename:e,children:t,initialEntries:n,initialIndex:r,useTransitions:i}){let a=O.useRef();a.current??=Ot({initialEntries:n,initialIndex:r,v5Compat:!0});let o=a.current,[s,c]=O.useState({action:o.action,location:o.location}),l=O.useCallback(e=>{i===!1?c(e):O.startTransition(()=>c(e))},[i]);return O.useLayoutEffect(()=>o.listen(l),[o,l]),O.createElement(ao,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,useTransitions:i})}function no({to:e,replace:t,state:n,relative:r}){F(ea(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=O.useContext(Wi);jt(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=O.useContext(Ki),{pathname:o}=ta(),s=oa(),c=En(e,Tn(a),o,r===`path`),l=JSON.stringify(c);return O.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function ro(e){return ua(e.context)}function io(e){F(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function ao({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){F(!ea(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=O.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=It(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=O.useMemo(()=>{let e=_n(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return jt(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:O.createElement(Wi.Provider,{value:c},O.createElement(Gi.Provider,{children:t,value:h}))}function oo({children:e,location:t}){return pa(uo(e),t)}function so({children:e,errorElement:t,resolve:n}){let r=O.useContext(Ii),i=O.useContext(Li),a=O.useCallback((e,t)=>{r&&r.onError&&i&&r.onError(e,{location:i.location,params:i.matches[0]?.params||{},pattern:Bn(i.matches),errorInfo:t})},[r,i]);return O.createElement(co,{resolve:n,errorElement:t,onError:a},O.createElement(lo,null,e))}var co=class extends O.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`<Await> caught the following error during render`,e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=0;if(!(n instanceof Promise))i=1,r=Promise.resolve(),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_data`,{get:()=>n});else if(this.state.error){i=2;let e=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,`_tracked`,{get:()=>!0}),Object.defineProperty(r,`_error`,{get:()=>e})}else n._tracked?(r=n,i=`_error`in r?2:+(`_data`in r)):(i=0,Object.defineProperty(n,`_tracked`,{get:()=>!0}),r=n.then(e=>Object.defineProperty(n,`_data`,{get:()=>e}),e=>{this.props.onError?.(e),Object.defineProperty(n,`_error`,{get:()=>e})}));if(i===2&&!t)throw r._error;if(i===2)return O.createElement(Hi.Provider,{value:r,children:t});if(i===1)return O.createElement(Hi.Provider,{value:r,children:e});throw r}};function lo({children:e}){let t=B(),n=typeof e==`function`?e(t):e;return O.createElement(O.Fragment,null,n)}function uo(e,t=[]){let n=[];return O.Children.forEach(e,(e,r)=>{if(!O.isValidElement(e))return;let i=[...t,r];if(e.type===O.Fragment){n.push.apply(n,uo(e.props.children,i));return}F(e.type===io,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),F(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=uo(e.props.children,i)),n.push(a)}),n}var fo=uo;function V(e){return xa(e)}function po(){return{params:da(),loaderData:ja(),actionData:Na(),matches:Aa()}}function mo({children:e}){let t=po();return O.cloneElement(e,t)}function ho(e){return function(){let t=po();return O.createElement(e,t)}}function go(){return{params:da(),loaderData:ja(),actionData:Na()}}function _o({children:e}){let t=go();return O.cloneElement(e,t)}function vo(e){return function(){let t=go();return O.createElement(e,t)}}function yo(){return{params:da(),loaderData:ja(),actionData:Na(),error:Pa()}}function bo({children:e}){let t=yo();return O.cloneElement(e,t)}function xo(e){return function(){let t=yo();return O.createElement(e,t)}}var So=`get`,Co=`application/x-www-form-urlencoded`;function wo(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function To(e){return wo(e)&&e.tagName.toLowerCase()===`button`}function Eo(e){return wo(e)&&e.tagName.toLowerCase()===`form`}function Do(e){return wo(e)&&e.tagName.toLowerCase()===`input`}function Oo(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ko(e,t){return e.button===0&&(!t||t===`_self`)&&!Oo(e)}function Ao(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function jo(e,t){let n=Ao(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Mo=null;function No(){if(Mo===null)try{new FormData(document.createElement(`form`),0),Mo=!1}catch{Mo=!0}return Mo}var Po=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Fo(e){return e!=null&&!Po.has(e)?(jt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):e}function Io(e,t){let n,r,i,a,o;if(Eo(e)){let o=e.getAttribute(`action`);r=o?_n(o,t):null,n=e.getAttribute(`method`)||So,i=Fo(e.getAttribute(`enctype`))||Co,a=new FormData(e)}else if(To(e)||Do(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?_n(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||So,i=Fo(e.getAttribute(`formenctype`))||Fo(o.getAttribute(`enctype`))||Co,a=new FormData(o,e),!No()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(wo(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=So,r=null,i=Co,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var Lo=-1,Ro=-2,zo=-3,Bo=-4,Vo=-5,Ho=-6,Uo=-7,Wo=`B`,Go=`D`,Ko=`E`,qo=`M`,Jo=`N`,Yo=`P`,Xo=`R`,Zo=`S`,Qo=`Y`,$o=`U`,es=`Z`,ts=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],ns=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function H(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
17
+ `);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}var rs=1,is=()=>Date.now(),as=()=>new Promise(e=>setTimeout(e,0));async function os(e){let{indices:t}=this,n=t.get(e);if(n)return[n];if(e===void 0)return Uo;if(e===null)return Vo;if(Number.isNaN(e))return Ro;if(e===1/0)return Ho;if(e===-1/0)return zo;if(e===0&&1/e<0)return Bo;let r=this.index++;t.set(e,r);let i=[[e,r]];return await ss.call(this,i),r}async function ss(e){let{deferred:t,indices:n,plugins:r,postPlugins:i}=this,a=this.stringified,o=is(),s=t=>{let r=n.get(t);if(r)return[r];if(t===void 0)return Uo;if(t===null)return Vo;if(Number.isNaN(t))return Ro;if(t===1/0)return Ho;if(t===-1/0)return zo;if(t===0&&1/t<0)return Bo;let i=this.index++;return n.set(t,i),e.push([t,i]),i},c=0;for(;e.length>0;){let n=is();++c%6e3==0&&n-o>=rs&&(await as(),o=is());let[l,u]=e.pop(),d=e=>Object.keys(e).map(t=>`"_${s(t)}":${s(e[t])}`).join(`,`),f=null;switch(typeof l){case`boolean`:case`number`:case`string`:a[u]=JSON.stringify(l);break;case`bigint`:a[u]=`["${Wo}","${l}"]`;break;case`symbol`:{let e=Symbol.keyFor(l);e?a[u]=`["${Qo}",${JSON.stringify(e)}]`:f=Error(`Cannot encode symbol unless created with Symbol.for()`);break}case`object`:{if(!l){a[u]=`${Vo}`;break}let e=Array.isArray(l),n=!1;if(!e&&r)for(let e of r){let t=e(l);if(Array.isArray(t)){n=!0;let[e,...r]=t;a[u]=`[${JSON.stringify(e)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}if(!n){let n=e?`[`:`{`;if(e){for(let e=0;e<l.length;e++)n+=(e?`,`:``)+(e in l?s(l[e]):Lo);a[u]=`${n}]`}else if(l instanceof Date){let e=l.getTime();a[u]=`["${Go}",${Number.isNaN(e)?JSON.stringify(`invalid`):e}]`}else l instanceof URL?a[u]=`["${$o}",${JSON.stringify(l.href)}]`:l instanceof RegExp?a[u]=`["${Xo}",${JSON.stringify(l.source)},${JSON.stringify(l.flags)}]`:l instanceof Set?l.size>0?a[u]=`["${Zo}",${[...l].map(e=>s(e)).join(`,`)}]`:a[u]=`["${Zo}"]`:l instanceof Map?l.size>0?a[u]=`["${qo}",${[...l].flatMap(([e,t])=>[s(e),s(t)]).join(`,`)}]`:a[u]=`["${qo}"]`:l instanceof Promise?(a[u]=`["${Yo}",${u}]`,t[u]=l):l instanceof Error?(a[u]=`["${Ko}",${JSON.stringify(l.message)}`,l.name!==`Error`&&(a[u]+=`,${JSON.stringify(l.name)}`),a[u]+=`]`):Object.getPrototypeOf(l)===null?a[u]=`["${Jo}",{${d(l)}}]`:ls(l)?a[u]=`{${d(l)}}`:f=Error(`Cannot encode object with prototype`)}break}default:{let e=Array.isArray(l),t=!1;if(!e&&r)for(let e of r){let n=e(l);if(Array.isArray(n)){t=!0;let[e,...r]=n;a[u]=`[${JSON.stringify(e)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}t||(f=Error(`Cannot encode function or unexpected type`))}}if(f){let e=!1;if(i)for(let t of i){let n=t(l);if(Array.isArray(n)){e=!0;let[t,...r]=n;a[u]=`[${JSON.stringify(t)}`,r.length>0&&(a[u]+=`,${r.map(e=>s(e)).join(`,`)}`),a[u]+=`]`;break}}if(!e)throw f}}}var cs=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function ls(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===cs}var us=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0;function ds(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return fs.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,fs.call(this,r)}function fs(e){let{hydrated:t,values:n,deferred:r,plugins:i}=this,a,o=[[e,e=>{a=e}]],s=[];for(;o.length>0;){let[e,a]=o.pop();switch(e){case Uo:a(void 0);continue;case Vo:a(null);continue;case Ro:a(NaN);continue;case Ho:a(1/0);continue;case zo:a(-1/0);continue;case Bo:a(-0);continue}if(t[e]){a(t[e]);continue}let c=n[e];if(!c||typeof c!=`object`){t[e]=c,a(c);continue}if(Array.isArray(c))if(typeof c[0]==`string`){let[n,l,u]=c;switch(n){case Go:a(t[e]=new Date(l));continue;case $o:a(t[e]=new URL(l));continue;case Wo:a(t[e]=BigInt(l));continue;case Xo:a(t[e]=new RegExp(l,u));continue;case Qo:a(t[e]=Symbol.for(l));continue;case Zo:let n=new Set;t[e]=n;for(let e=c.length-1;e>0;e--)o.push([c[e],e=>{n.add(e)}]);a(n);continue;case qo:let d=new Map;t[e]=d;for(let e=c.length-2;e>0;e-=2){let t=[];o.push([c[e+1],e=>{t[1]=e}]),o.push([c[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}a(d);continue;case Jo:let f=Object.create(null);t[e]=f;for(let e of Object.keys(l).reverse()){let t=[];o.push([l[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}a(f);continue;case Yo:if(t[l])a(t[e]=t[l]);else{let n=new ns;r[l]=n,a(t[e]=n.promise)}continue;case Ko:let[,p,m]=c,h=m&&us&&ts.includes(m)&&m in us&&typeof us[m]==`function`?new us[m](p):Error(p);t[e]=h,a(h);continue;case es:a(t[e]=t[l]);continue;default:if(Array.isArray(i)){let n=[],r=c.slice(1);for(let e=0;e<r.length;e++){let t=r[e];o.push([t,t=>{n[e]=t}])}s.push(()=>{for(let r of i){let i=r(c[0],...n);if(i){a(t[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let n=[];t[e]=n;for(let e=0;e<c.length;e++){let t=c[e];t!==Lo&&o.push([t,t=>{n[e]=t}])}a(n);continue}else{let n={};t[e]=n;for(let e of Object.keys(c).reverse()){let t=[];o.push([c[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{n[t[0]]=t[1]})}a(n);continue}}for(;s.length>0;)s.pop()();return a}async function ps(e,t){let{plugins:n}=t??{},r=new ns,i=e.pipeThrough(H()).getReader(),a={values:[],hydrated:[],deferred:{},plugins:n},o=await ms.call(a,i),s=r.promise;return o.done?r.resolve():s=hs.call(a,i).then(r.resolve).catch(e=>{for(let t of Object.values(a.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>i.closed),value:o.value}}async function ms(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:ds.call(this,n)}}async function hs(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case Yo:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=ds.call(this,a);r.resolve(o);break}case Ko:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=ds.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}function gs(e,t){let{onComplete:n,plugins:r,postPlugins:i,signal:a}=t??{},o={deferred:{},index:0,indices:new Map,stringified:[],plugins:r,postPlugins:i,signal:a},s=new TextEncoder,c=0;return new ReadableStream({async start(t){let r=await os.call(o,e);if(Array.isArray(r))throw Error(`This should never happen`);r<0?t.enqueue(s.encode(`${r}
18
18
  `)):(t.enqueue(s.encode(`[${o.stringified.join(`,`)}]
19
- `)),c=o.stringified.length-1);let i=new WeakSet,l=Promise.resolve();if(Object.keys(o.deferred).length){let e,n=new Promise((t,n)=>{if(e=t,a){let e=()=>n(a.reason||Error(`Signal was aborted.`));a.aborted?e():a.addEventListener(`abort`,t=>{e()})}});for(;Object.keys(o.deferred).length>0;){for(let[e,r]of Object.entries(o.deferred))i.has(r)||i.add(o.deferred[Number(e)]=Promise.race([n,r]).then(n=>(l=l.then(async()=>{let r=await ss.call(o,n);if(Array.isArray(r))t.enqueue(s.encode(`${Xo}${e}:[["${ts}",${r[0]}]]
20
- `)),o.index++,c++;else if(r<0)t.enqueue(s.encode(`${Xo}${e}:${r}
21
- `));else{let n=o.stringified.slice(c+1).join(`,`);t.enqueue(s.encode(`${Xo}${e}:[${n}]
22
- `)),c=o.stringified.length-1}}),l),n=>(l=l.then(async()=>{(!n||typeof n!=`object`||!(n instanceof Error))&&(n=Error(`An unknown error occurred`));let r=await ss.call(o,n);if(Array.isArray(r))t.enqueue(s.encode(`${qo}${e}:[["${ts}",${r[0]}]]
23
- `)),o.index++,c++;else if(r<0)t.enqueue(s.encode(`${qo}${e}:${r}
24
- `));else{let n=o.stringified.slice(c+1).join(`,`);t.enqueue(s.encode(`${qo}${e}:[${n}]
25
- `)),c=o.stringified.length-1}}),l)).finally(()=>{delete o.deferred[Number(e)]}));await Promise.race(Object.values(o.deferred))}e()}await Promise.all(Object.values(o.deferred)),await l,t.close(),n?.()}})}async function vs(e){let t={signal:e.signal};if(e.method!==`GET`){t.method=e.method;let n=e.headers.get(`Content-Type`);n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var ys={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},bs=/[&><\u2028\u2029]/g;function xs(e){return e.replace(bs,e=>ys[e])}function Ss(e,t){if(e===!1||e==null)throw Error(t)}var Cs=Symbol(`SingleFetchRedirect`),ws=class extends Error{},Ts=new Set([100,101,204,205]);function Es({context:e,identifier:t,reader:n,textDecoder:r,nonce:i}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,o=a[t];if(o||=a[t]=n.read().then(e=>{a[t].result={done:e.done,value:r.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e}),o.error)throw o.error;if(o.result===void 0)throw o;let{done:s,value:c}=o.result,l=c?E.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${xs(JSON.stringify(c))});`}}):null;return s?E.createElement(E.Fragment,null,l,E.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.close();`}})):E.createElement(E.Fragment,null,l,E.createElement(E.Suspense,null,E.createElement(Es,{context:e,identifier:t+1,reader:n,textDecoder:r,nonce:i})))}function Ds(e,t,n,r,i,a){let o=Os(e,e=>{let n=t.routes[e.route.id];return Ss(n,`Route not found in manifest`),{hasLoader:n.hasLoader,hasClientLoader:n.hasClientLoader}},Is,r,i,a);return async e=>e.runClientMiddleware(o)}function Os(e,t,n,r,i,a,o=()=>!0){return async s=>{let{request:c,matches:l,fetcherKey:u}=s,d=e();if(c.method!==`GET`)return ks(s,n,i,a);let f=l.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return!r&&!f?As(s,t,n,i,a):u?Ns(s,n,i,a):js(s,d,t,n,r,i,a,o)}}async function ks(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());Ss(i,`No action match found`);let a,o=await i.resolve(async o=>await o(async()=>{let{data:o,status:s}=await t(e,n,r,[i.route.id]);return a=s,Rs(o,i.route.id)}));return wi(o.result)||Vn(o.result)||Ci(o.result)?{[i.route.id]:o}:{[i.route.id]:{type:o.type,result:In(o.result,a)}}}async function As(e,t,n,r,i){let a=e.matches.filter(e=>e.shouldCallHandler()),o={};return await Promise.all(a.map(a=>a.resolve(async s=>{try{let{hasClientLoader:c}=t(a),l=a.route.id,u=c?await s(async()=>{let{data:t}=await n(e,r,i,[l]);return Rs(t,l)}):await s();o[a.route.id]={type:`data`,result:u}}catch(e){o[a.route.id]={type:`error`,result:e}}}))),o}async function js(e,t,n,r,i,a,o,s=()=>!0){let c=new Set,l=!1,u=e.matches.map(()=>zs()),d=zs(),f={},p=Promise.all(e.matches.map(async(t,i)=>t.resolve(async p=>{u[i].resolve();let m=t.route.id,{hasLoader:h,hasClientLoader:g}=n(t),_=!t.shouldRevalidateArgs||t.shouldRevalidateArgs.actionStatus==null||t.shouldRevalidateArgs.actionStatus<400;if(!t.shouldCallHandler(_)){l||=t.shouldRevalidateArgs!=null&&h;return}if(s(t)&&g){h&&(l=!0);try{f[m]={type:`data`,result:await p(async()=>{let{data:t}=await r(e,a,o,[m]);return Rs(t,m)})}}catch(e){f[m]={type:`error`,result:e}}return}h&&c.add(m);try{f[m]={type:`data`,result:await p(async()=>Rs(await d.promise,m))}}catch(e){f[m]={type:`error`,result:e}}})));if(await Promise.all(u.map(e=>e.promise)),(!t.state.initialized&&t.state.navigation.state===`idle`||c.size===0)&&!window.__reactRouterHdrActive)d.resolve({routes:{}});else{let t=i&&l&&c.size>0?[...c.keys()]:void 0;try{let n=await r(e,a,o,t);d.resolve(n.data)}catch(e){d.reject(e)}}return await p,await Ms(d.promise,e.matches,c,f),f}async function Ms(e,t,n,r){try{let i,a=await e;if(`routes`in a){for(let e of t)if(e.route.id in a.routes){let t=a.routes[e.route.id];if(`error`in t){i=t.error,r[e.route.id]?.result??(r[e.route.id]={type:`error`,result:i});break}}}i!==void 0&&Array.from(n.values()).forEach(e=>{r[e].result instanceof ws&&(r[e].result=i)})}catch{}}async function Ns(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());Ss(i,`No fetcher match found`);let a=i.route.id,o=await i.resolve(async i=>i(async()=>{let{data:i}=await t(e,n,r,[a]);return Rs(i,a)}));return{[i.route.id]:o}}function Ps(e){let t=e.searchParams.getAll(`index`);e.searchParams.delete(`index`);let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append(`index`,t);return e}function Fs(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&yn(i.pathname,t)===`/`?i.pathname=`${jn(t)}/_root.${r}`:i.pathname=`${jn(i.pathname)}.${r}`,i}async function Is(e,t,n,r){let{request:i}=e,a=Fs(i.url,t,n,`data`);i.method===`GET`&&(a=Ps(a),r&&a.searchParams.set(`_routes`,r.join(`,`)));let o=await fetch(a,await vs(i));if(o.status>=400&&!o.headers.has(`X-Remix-Response`))throw new Bn(o.status,o.statusText,await o.text());if(o.status===204&&o.headers.has(`X-Remix-Redirect`))return{status:202,data:{redirect:{redirect:o.headers.get(`X-Remix-Redirect`),status:Number(o.headers.get(`X-Remix-Status`)||`302`),revalidate:o.headers.get(`X-Remix-Revalidate`)===`true`,reload:o.headers.get(`X-Remix-Reload-Document`)===`true`,replace:o.headers.get(`X-Remix-Replace`)===`true`}}};if(Ts.has(o.status)){let e={};return r&&i.method!==`GET`&&(e[r[0]]={data:void 0}),{status:o.status,data:{routes:e}}}Ss(o.body,`No response body to decode`);try{let e=await Ls(o.body,window),t;if(i.method===`GET`){let n=e.value;t=Cs in n?{redirect:n[Cs]}:{routes:n}}else{let n=e.value,i=r?.[0];Ss(i,`No routeId found for single fetch call decoding`),t=`redirect`in n?{redirect:n}:{routes:{[i]:n}}}return{status:o.status,data:t}}catch{throw Error(`Unable to decode turbo-stream response`)}}function Ls(e,t){return ms(e,{plugins:[(e,...n)=>{if(e===`SanitizedError`){let[e,r,i]=n,a=Error;e&&ns.includes(e)&&e in t&&typeof t[e]==`function`&&(a=t[e]);let o=new a(r);return o.stack=i,{value:o}}if(e===`ErrorResponse`){let[e,t,r]=n;return{value:new Bn(t,r,e)}}if(e===`SingleFetchRedirect`)return{value:{[Cs]:n[0]}};if(e===`SingleFetchClassInstance`)return{value:n[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}function Rs(e,t){if(`redirect`in e){let{redirect:t,revalidate:n,reload:r,replace:i,status:a}=e.redirect;throw Ln(t,{status:a,headers:{...n?{"X-Remix-Revalidate":`yes`}:null,...r?{"X-Remix-Reload-Document":`yes`}:null,...i?{"X-Remix-Replace":`yes`}:null}})}let n=e.routes[t];if(n==null)throw new ws(`No result found for routeId "${t}"`);if(`error`in n)throw n.error;if(`data`in n)return n.data;throw Error(`Invalid response found for routeId "${t}"`)}function zs(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}async function Bs(e,t){if(e.id in t)return t[e.id];try{let n=await St(()=>import(e.module),[],import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Vs(e,t,n){return $s(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),Xs(e,n))}function Hs(e){return e.css?e.css.map(e=>({rel:`stylesheet`,href:e})):[]}async function Us(e){if(!e.css)return;let t=Hs(e);await Promise.all(t.map(Gs))}async function Ws(e,t){if(!e.css&&!t.links||!tc())return;let n=[];if(e.css&&n.push(...Hs(e)),t.links&&n.push(...t.links()),n.length===0)return;let r=[];for(let e of n)!Ks(e)&&e.rel===`stylesheet`&&r.push({...e,rel:`preload`,as:`style`});await Promise.all(r.map(Gs))}async function Gs(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement(`link`);Object.assign(n,e);function r(){document.head.contains(n)&&document.head.removeChild(n)}n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function Ks(e){return e!=null&&typeof e.page==`string`}function qs(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Js(e,t,n){return $s((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Bs(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(qs).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Ys(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Xs(e,t,{includeHydrateFallback:n}={}){return Zs(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Zs(e){return[...new Set(e)]}function Qs(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function $s(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ks(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Qs(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var ec;function tc(){if(ec!==void 0)return ec;let e=document.createElement(`link`);return ec=e.relList.supports(`preload`),e=null,ec}function nc(){return E.createElement(Xc,{title:`Loading...`,renderScripts:!0},E.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
19
+ `)),c=o.stringified.length-1);let i=new WeakSet,l=Promise.resolve();if(Object.keys(o.deferred).length){let e,n=new Promise((t,n)=>{if(e=t,a){let e=()=>n(a.reason||Error(`Signal was aborted.`));a.aborted?e():a.addEventListener(`abort`,t=>{e()})}});for(;Object.keys(o.deferred).length>0;){for(let[e,r]of Object.entries(o.deferred))i.has(r)||i.add(o.deferred[Number(e)]=Promise.race([n,r]).then(n=>(l=l.then(async()=>{let r=await os.call(o,n);if(Array.isArray(r))t.enqueue(s.encode(`${Yo}${e}:[["${es}",${r[0]}]]
20
+ `)),o.index++,c++;else if(r<0)t.enqueue(s.encode(`${Yo}${e}:${r}
21
+ `));else{let n=o.stringified.slice(c+1).join(`,`);t.enqueue(s.encode(`${Yo}${e}:[${n}]
22
+ `)),c=o.stringified.length-1}}),l),n=>(l=l.then(async()=>{(!n||typeof n!=`object`||!(n instanceof Error))&&(n=Error(`An unknown error occurred`));let r=await os.call(o,n);if(Array.isArray(r))t.enqueue(s.encode(`${Ko}${e}:[["${es}",${r[0]}]]
23
+ `)),o.index++,c++;else if(r<0)t.enqueue(s.encode(`${Ko}${e}:${r}
24
+ `));else{let n=o.stringified.slice(c+1).join(`,`);t.enqueue(s.encode(`${Ko}${e}:[${n}]
25
+ `)),c=o.stringified.length-1}}),l)).finally(()=>{delete o.deferred[Number(e)]}));await Promise.race(Object.values(o.deferred))}e()}await Promise.all(Object.values(o.deferred)),await l,t.close(),n?.()}})}async function _s(e){let t={signal:e.signal};if(e.method!==`GET`){t.method=e.method;let n=e.headers.get(`Content-Type`);n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var vs={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},ys=/[&><\u2028\u2029]/g;function bs(e){return e.replace(ys,e=>vs[e])}function xs(e,t){if(e===!1||e==null)throw Error(t)}var Ss=Symbol(`SingleFetchRedirect`),Cs=class extends Error{},ws=new Set([100,101,204,205]);function Ts({context:e,identifier:t,reader:n,textDecoder:r,nonce:i}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,o=a[t];if(o||=a[t]=n.read().then(e=>{a[t].result={done:e.done,value:r.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e}),o.error)throw o.error;if(o.result===void 0)throw o;let{done:s,value:c}=o.result,l=c?O.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${bs(JSON.stringify(c))});`}}):null;return s?O.createElement(O.Fragment,null,l,O.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.close();`}})):O.createElement(O.Fragment,null,l,O.createElement(O.Suspense,null,O.createElement(Ts,{context:e,identifier:t+1,reader:n,textDecoder:r,nonce:i})))}function Es(e,t,n,r,i,a){let o=Ds(e,e=>{let n=t.routes[e.route.id];return xs(n,`Route not found in manifest`),{hasLoader:n.hasLoader,hasClientLoader:n.hasClientLoader}},Fs,r,i,a);return async e=>e.runClientMiddleware(o)}function Ds(e,t,n,r,i,a,o=()=>!0){return async s=>{let{request:c,matches:l,fetcherKey:u}=s,d=e();if(c.method!==`GET`)return Os(s,n,i,a);let f=l.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return!r&&!f?ks(s,t,n,i,a):u?Ms(s,n,i,a):As(s,d,t,n,r,i,a,o)}}async function Os(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());xs(i,`No action match found`);let a,o=await i.resolve(async o=>await o(async()=>{let{data:o,status:s}=await t(e,n,r,[i.route.id]);return a=s,Ls(o,i.route.id)}));return Si(o.result)||zn(o.result)||xi(o.result)?{[i.route.id]:o}:{[i.route.id]:{type:o.type,result:Pn(o.result,a)}}}async function ks(e,t,n,r,i){let a=e.matches.filter(e=>e.shouldCallHandler()),o={};return await Promise.all(a.map(a=>a.resolve(async s=>{try{let{hasClientLoader:c}=t(a),l=a.route.id,u=c?await s(async()=>{let{data:t}=await n(e,r,i,[l]);return Ls(t,l)}):await s();o[a.route.id]={type:`data`,result:u}}catch(e){o[a.route.id]={type:`error`,result:e}}}))),o}async function As(e,t,n,r,i,a,o,s=()=>!0){let c=new Set,l=!1,u=e.matches.map(()=>Rs()),d=Rs(),f={},p=Promise.all(e.matches.map(async(t,i)=>t.resolve(async p=>{u[i].resolve();let m=t.route.id,{hasLoader:h,hasClientLoader:g}=n(t),_=!t.shouldRevalidateArgs||t.shouldRevalidateArgs.actionStatus==null||t.shouldRevalidateArgs.actionStatus<400;if(!t.shouldCallHandler(_)){l||=t.shouldRevalidateArgs!=null&&h;return}if(s(t)&&g){h&&(l=!0);try{f[m]={type:`data`,result:await p(async()=>{let{data:t}=await r(e,a,o,[m]);return Ls(t,m)})}}catch(e){f[m]={type:`error`,result:e}}return}h&&c.add(m);try{f[m]={type:`data`,result:await p(async()=>Ls(await d.promise,m))}}catch(e){f[m]={type:`error`,result:e}}})));if(await Promise.all(u.map(e=>e.promise)),(!t.state.initialized&&t.state.navigation.state===`idle`||c.size===0)&&!window.__reactRouterHdrActive)d.resolve({routes:{}});else{let t=i&&l&&c.size>0?[...c.keys()]:void 0;try{let n=await r(e,a,o,t);d.resolve(n.data)}catch(e){d.reject(e)}}return await p,await js(d.promise,e.matches,c,f),f}async function js(e,t,n,r){try{let i,a=await e;if(`routes`in a){for(let e of t)if(e.route.id in a.routes){let t=a.routes[e.route.id];if(`error`in t){i=t.error,r[e.route.id]?.result??(r[e.route.id]={type:`error`,result:i});break}}}i!==void 0&&Array.from(n.values()).forEach(e=>{r[e].result instanceof Cs&&(r[e].result=i)})}catch{}}async function Ms(e,t,n,r){let i=e.matches.find(e=>e.shouldCallHandler());xs(i,`No fetcher match found`);let a=i.route.id,o=await i.resolve(async i=>i(async()=>{let{data:i}=await t(e,n,r,[a]);return Ls(i,a)}));return{[i.route.id]:o}}function Ns(e){let t=e.searchParams.getAll(`index`);e.searchParams.delete(`index`);let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append(`index`,t);return e}function Ps(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&_n(i.pathname,t)===`/`?i.pathname=`${kn(t)}/_root.${r}`:i.pathname=`${kn(i.pathname)}.${r}`,i}async function Fs(e,t,n,r){let{request:i}=e,a=Ps(i.url,t,n,`data`);i.method===`GET`&&(a=Ns(a),r&&a.searchParams.set(`_routes`,r.join(`,`)));let o=await fetch(a,await _s(i));if(o.status>=400&&!o.headers.has(`X-Remix-Response`))throw new Rn(o.status,o.statusText,await o.text());if(o.status===204&&o.headers.has(`X-Remix-Redirect`))return{status:202,data:{redirect:{redirect:o.headers.get(`X-Remix-Redirect`),status:Number(o.headers.get(`X-Remix-Status`)||`302`),revalidate:o.headers.get(`X-Remix-Revalidate`)===`true`,reload:o.headers.get(`X-Remix-Reload-Document`)===`true`,replace:o.headers.get(`X-Remix-Replace`)===`true`}}};if(ws.has(o.status)){let e={};return r&&i.method!==`GET`&&(e[r[0]]={data:void 0}),{status:o.status,data:{routes:e}}}xs(o.body,`No response body to decode`);try{let e=await Is(o.body,window),t;if(i.method===`GET`){let n=e.value;t=Ss in n?{redirect:n[Ss]}:{routes:n}}else{let n=e.value,i=r?.[0];xs(i,`No routeId found for single fetch call decoding`),t=`redirect`in n?{redirect:n}:{routes:{[i]:n}}}return{status:o.status,data:t}}catch{throw Error(`Unable to decode turbo-stream response`)}}function Is(e,t){return ps(e,{plugins:[(e,...n)=>{if(e===`SanitizedError`){let[e,r,i]=n,a=Error;e&&ts.includes(e)&&e in t&&typeof t[e]==`function`&&(a=t[e]);let o=new a(r);return o.stack=i,{value:o}}if(e===`ErrorResponse`){let[e,t,r]=n;return{value:new Rn(t,r,e)}}if(e===`SingleFetchRedirect`)return{value:{[Ss]:n[0]}};if(e===`SingleFetchClassInstance`)return{value:n[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}function Ls(e,t){if(`redirect`in e){let{redirect:t,revalidate:n,reload:r,replace:i,status:a}=e.redirect;throw Fn(t,{status:a,headers:{...n?{"X-Remix-Revalidate":`yes`}:null,...r?{"X-Remix-Reload-Document":`yes`}:null,...i?{"X-Remix-Replace":`yes`}:null}})}let n=e.routes[t];if(n==null)throw new Cs(`No result found for routeId "${t}"`);if(`error`in n)throw n.error;if(`data`in n)return n.data;throw Error(`Invalid response found for routeId "${t}"`)}function Rs(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}async function zs(e,t){if(e.id in t)return t[e.id];try{let n=await yt(()=>import(e.module),[],import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Bs(e,t,n){return Qs(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),Ys(e,n))}function Vs(e){return e.css?e.css.map(e=>({rel:`stylesheet`,href:e})):[]}async function Hs(e){if(!e.css)return;let t=Vs(e);await Promise.all(t.map(Ws))}async function Us(e,t){if(!e.css&&!t.links||!ec())return;let n=[];if(e.css&&n.push(...Vs(e)),t.links&&n.push(...t.links()),n.length===0)return;let r=[];for(let e of n)!Gs(e)&&e.rel===`stylesheet`&&r.push({...e,rel:`preload`,as:`style`});await Promise.all(r.map(Ws))}async function Ws(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement(`link`);Object.assign(n,e);function r(){document.head.contains(n)&&document.head.removeChild(n)}n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function Gs(e){return e!=null&&typeof e.page==`string`}function Ks(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function qs(e,t,n){return Qs((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await zs(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ks).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Js(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ys(e,t,{includeHydrateFallback:n}={}){return Xs(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Xs(e){return[...new Set(e)]}function Zs(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Qs(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Gs(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Zs(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var $s;function ec(){if($s!==void 0)return $s;let e=document.createElement(`link`);return $s=e.relList.supports(`preload`),e=null,$s}function tc(){return O.createElement(Yc,{title:`Loading...`,renderScripts:!0},O.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
26
26
  console.log(
27
27
  "💿 Hey developer 👋. You can provide a way better UX than this " +
28
28
  "when your app is loading JS modules and/or running \`clientLoader\` " +
29
29
  "functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +
30
30
  "for more information."
31
31
  );
32
- `}}))}function rc(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function ic(e,t,n){let r=pc(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?nc:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>E.createElement(Yc,{error:Fa()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:E.createElement(t.Layout,null,E.createElement(r,null))}:{Component:r},...a?{errorElement:E.createElement(t.Layout,null,E.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:E.createElement(t.Layout,null,E.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function ac(e,t,n,r,i=``,a=rc(e),o=Promise.resolve({Component:()=>null})){return(a[i]||[]).map(i=>{let s=t[i.id];Ss(s,"No `routeModule` available to create server routes");let c={...ic(i,s,r),caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:s.handle,lazy:r?()=>o:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0},l=ac(e,t,n,r,i.id,a,o);return l.length>0&&(c.children=l),c})}function oc(e,t,n,r,i,a){return lc(t,n,r,i,a,``,rc(t),e)}function sc(e,t){if(e===`loader`&&!t.hasLoader||e===`action`&&!t.hasAction){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new Bn(400,`Bad Request`,Error(n),!0)}}function cc(e,t){let n=e===`clientAction`?`a`:`an`,r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new Bn(405,`Method Not Allowed`,Error(r),!0)}function lc(e,t,n,r,i,a=``,o=rc(e),s){return(o[a]||[]).map(a=>{let c=t[a.id];function l(e){return Ss(typeof e==`function`,`No single fetch function available for route handler`),e()}function u(e){return a.hasLoader?l(e):Promise.resolve(null)}function d(e){if(!a.hasAction)throw cc(`action`,a.id);return l(e)}function f(e){St(()=>import(e),[],import.meta.url)}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function m(e){let n=t[a.id],r=n?Ws(a,n):Promise.resolve();try{return e()}finally{await r}}let h={id:a.id,index:a.index,path:a.path};if(c){Object.assign(h,{...h,...ic(a,c,i),middleware:c.clientMiddleware,handle:c.handle,shouldRevalidate:uc(h.path,c,a,r,s)});let e=n&&n.loaderData&&a.id in n.loaderData,t=e?n?.loaderData?.[a.id]:void 0,o=n&&n.errors&&a.id in n.errors,l=o?n?.errors?.[a.id]:void 0,f=s==null&&(c.clientLoader?.hydrate===!0||!a.hasLoader);h.loader=async({request:n,params:r,context:i,pattern:s,url:d},p)=>{try{return await m(async()=>(Ss(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:n,params:r,context:i,pattern:s,url:d,async serverLoader(){if(sc(`loader`,a),f){if(e)return t;if(o)throw l}return u(p)}}):u(p)))}finally{f=!1}},h.loader.hydrate=mc(a.id,c.clientLoader,a.hasLoader,i),h.action=({request:e,params:t,context:n,pattern:r,url:o},s)=>m(async()=>{if(Ss(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw cc(`clientAction`,a.id);return d(s)}return c.clientAction({request:e,params:t,context:n,pattern:r,url:o,async serverAction(){return sc(`action`,a),d(s)}})})}else{a.hasClientLoader||(h.loader=(e,t)=>m(()=>u(t))),a.hasClientAction||(h.action=(e,t)=>m(()=>{if(i)throw cc(`clientAction`,a.id);return d(t)}));let e;async function n(){return e||=(async()=>{(a.clientLoaderModule||a.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=fc(a,t);return p(a),await e})(),await e}h.lazy={loader:a.hasClientLoader?async()=>{let{clientLoader:e}=a.clientLoaderModule?await St(()=>import(a.clientLoaderModule),[],import.meta.url):await n();return Ss(e,"No `clientLoader` export found"),(t,n)=>e({...t,async serverLoader(){return sc(`loader`,a),u(n)}})}:void 0,action:a.hasClientAction?async()=>{let e=a.clientActionModule?St(()=>import(a.clientActionModule),[],import.meta.url):n();p(a);let{clientAction:t}=await e;return Ss(t,"No `clientAction` export found"),(e,n)=>t({...e,async serverAction(){return sc(`action`,a),d(n)}})}:void 0,middleware:a.hasClientMiddleware?async()=>{let{clientMiddleware:e}=a.clientMiddlewareModule?await St(()=>import(a.clientMiddlewareModule),[],import.meta.url):await n();return Ss(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await n();return uc(h.path,e,a,r,s)},handle:async()=>(await n()).handle,Component:async()=>(await n()).Component,ErrorBoundary:a.hasErrorBoundary?async()=>(await n()).ErrorBoundary:void 0}}let g=lc(e,t,n,r,i,a.id,o,s);return g.length>0&&(h.children=g),h})}function uc(e,t,n,r,i){if(i)return dc(n.id,t.shouldRevalidate,i);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?_n(e)[1].map(e=>e.paramName):[],r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}else return e=>r(e)}return t.shouldRevalidate}function dc(e,t,n){let r=!1;return i=>r?t?t(i):i.defaultShouldRevalidate:(r=!0,n.has(e))}async function fc(e,t){let n=Bs(e,t),r=Us(e),i=await n;return await Promise.all([r,Ws(e,i)]),{Component:pc(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}function pc(e){if(e.default!=null&&!(typeof e.default==`object`&&Object.keys(e.default).length===0))return e.default}function mc(e,t,n,r){return r&&e!==`root`||t!=null&&(t.hydrate===!0||n!==!0)}var hc=new Set,gc=1e3,_c=new Set,vc=7680;function yc(e,t){return e.mode===`lazy`&&t===!0}function bc({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=$t(n.routes,e,n.basename||`/`,!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function xc(e,t,n,r,i,a,o){if(yc(i,r))return async({path:s,patch:c,signal:l,fetcherKey:u})=>{if(_c.has(s))return;let{state:d}=e();await Tc([s],u?window.location.href:Rt(d.navigation.location||d.location),t,n,r,a,o,i.manifestPath,c,l)}}function Sc(e,t,n,r,i,a){E.useEffect(()=>{if(!yc(i,r)||window.navigator?.connection?.saveData===!0)return;function o(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;_c.has(n)||hc.add(n)}async function s(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(o);let s=Array.from(hc.keys()).filter(e=>_c.has(e)?(hc.delete(e),!1):!0);if(s.length!==0)try{await Tc(s,null,t,n,r,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let c=Dc(s,100);s();let l=new MutationObserver(()=>c());return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]}),()=>l.disconnect()},[r,a,t,n,e,i])}function Cc(e,t){let n=e||`/__manifest`;return t==null?n:An([t,n])}var wc=`react-router-manifest-version`;async function Tc(e,t,n,r,i,a,o,s,c,l){let u=new URLSearchParams;u.set(`paths`,e.sort().join(`,`)),u.set(`version`,n.version);let d=new URL(Cc(s,o),window.location.origin);if(d.search=u.toString(),d.toString().length>7680){hc.clear();return}let f;try{let e=await fetch(d,{signal:l});if(!e.ok)throw Error(`${e.status} ${e.statusText}`);if(e.status===204&&e.headers.has(`X-Remix-Reload-Document`)){if(!t){console.warn(`Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.`);return}try{if(sessionStorage.getItem(wc)===n.version){console.error(`Unable to discover routes due to manifest version mismatch.`);return}sessionStorage.setItem(wc,n.version)}catch{}window.location.href=t,console.warn(`Detected manifest version mismatch, reloading...`),await new Promise(()=>{})}else if(e.status>=400)throw Error(await e.text());try{sessionStorage.removeItem(wc)}catch{}f=await e.json()}catch(e){if(l?.aborted)return;throw e}let p=new Set(Object.keys(n.routes)),m=Object.values(f).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,m),e.forEach(e=>Ec(e,_c));let h=new Set;Object.values(m).forEach(e=>{e&&(!e.parentId||!m[e.parentId])&&h.add(e.parentId)}),h.forEach(e=>c(e||null,lc(m,r,null,i,a,e)))}function Ec(e,t){if(t.size>=gc){let e=t.values().next().value;t.delete(e)}t.add(e)}function Dc(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Oc(){let e=E.useContext(Ri);return Ss(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function kc(){let e=E.useContext(zi);return Ss(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Ac=E.createContext(void 0);Ac.displayName=`FrameworkContext`;function jc(){let e=E.useContext(Ac);return Ss(e,`You must render this element inside a <HydratedRouter> element`),e}function Mc(e,t){let n=E.useContext(Ac),[r,i]=E.useState(!1),[a,o]=E.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=E.useRef(null);E.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),E.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Nc(s,p),onBlur:Nc(c,m),onMouseEnter:Nc(l,p),onMouseLeave:Nc(u,m),onTouchStart:Nc(d,p)}]:[a,f,{}]:[!1,f,{}]}function Nc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Pc(e,t,n){if(n&&!Uc)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}var Fc=`data-react-router-critical-css`;function Ic({nonce:e,crossOrigin:t}){let{isSpaMode:n,manifest:r,routeModules:i,criticalCss:a}=jc(),{errors:o,matches:s}=kc(),c=Pc(s,o,n),l=E.useMemo(()=>Vs(c,i,r),[c,i,r]);return E.createElement(E.Fragment,null,typeof a==`string`?E.createElement(`style`,{[Fc]:``,nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,typeof a==`object`?E.createElement(`link`,{[Fc]:``,rel:`stylesheet`,href:a.href,nonce:e,crossOrigin:t}):null,l.map(({key:n,link:r})=>Ks(r)?E.createElement(Lc,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t}):E.createElement(`link`,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t})))}function Lc({page:e,...t}){let n=Vi(),{router:r}=Oc(),i=E.useMemo(()=>Qt(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?E.createElement(zc,{page:e,matches:i,...t}):E.createElement(Bc,{page:e,matches:i,...t}):null}function Rc(e){let{manifest:t,routeModules:n}=jc(),[r,i]=E.useState([]);return E.useEffect(()=>{let r=!1;return Js(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function zc({page:e,matches:t,...n}){let r=R(),{future:i}=jc(),{basename:a}=Oc(),o=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Fs(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return E.createElement(E.Fragment,null,o.map(e=>E.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Bc({page:e,matches:t,...n}){let r=R(),{future:i,manifest:a,routeModules:o}=jc(),{basename:s}=Oc(),{loaderData:c,matches:l}=kc(),u=E.useMemo(()=>Ys(e,t,l,a,r,`data`),[e,t,l,a,r]),d=E.useMemo(()=>Ys(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Fs(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=E.useMemo(()=>Xs(d,a),[d,a]),m=Rc(d);return E.createElement(E.Fragment,null,f.map(e=>E.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>E.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>E.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Vc(){let{isSpaMode:e,routeModules:t}=jc(),{errors:n,matches:r,loaderData:i}=kc(),a=R(),o=Pc(r,n,e),s=null;n&&(s=n[o[o.length-1].route.id]);let c=[],l=null,u=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,d=i[r],f=n.params,p=t[r],m=[],h={id:r,data:d,loaderData:d,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(u[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({data:d,loaderData:d,params:f,location:a,matches:u,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:l&&(m=[...l]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
32
+ `}}))}function nc(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function rc(e,t,n){let r=fc(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?tc:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>O.createElement(Jc,{error:Pa()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:O.createElement(t.Layout,null,O.createElement(r,null))}:{Component:r},...a?{errorElement:O.createElement(t.Layout,null,O.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:O.createElement(t.Layout,null,O.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function ic(e,t,n,r,i=``,a=nc(e),o=Promise.resolve({Component:()=>null})){return(a[i]||[]).map(i=>{let s=t[i.id];xs(s,"No `routeModule` available to create server routes");let c={...rc(i,s,r),caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:s.handle,lazy:r?()=>o:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0},l=ic(e,t,n,r,i.id,a,o);return l.length>0&&(c.children=l),c})}function ac(e,t,n,r,i,a){return cc(t,n,r,i,a,``,nc(t),e)}function oc(e,t){if(e===`loader`&&!t.hasLoader||e===`action`&&!t.hasAction){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new Rn(400,`Bad Request`,Error(n),!0)}}function sc(e,t){let n=e===`clientAction`?`a`:`an`,r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new Rn(405,`Method Not Allowed`,Error(r),!0)}function cc(e,t,n,r,i,a=``,o=nc(e),s){return(o[a]||[]).map(a=>{let c=t[a.id];function l(e){return xs(typeof e==`function`,`No single fetch function available for route handler`),e()}function u(e){return a.hasLoader?l(e):Promise.resolve(null)}function d(e){if(!a.hasAction)throw sc(`action`,a.id);return l(e)}function f(e){yt(()=>import(e),[],import.meta.url)}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function m(e){let n=t[a.id],r=n?Us(a,n):Promise.resolve();try{return e()}finally{await r}}let h={id:a.id,index:a.index,path:a.path};if(c){Object.assign(h,{...h,...rc(a,c,i),middleware:c.clientMiddleware,handle:c.handle,shouldRevalidate:lc(h.path,c,a,r,s)});let e=n&&n.loaderData&&a.id in n.loaderData,t=e?n?.loaderData?.[a.id]:void 0,o=n&&n.errors&&a.id in n.errors,l=o?n?.errors?.[a.id]:void 0,f=s==null&&(c.clientLoader?.hydrate===!0||!a.hasLoader);h.loader=async({request:n,params:r,context:i,pattern:s,url:d},p)=>{try{return await m(async()=>(xs(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:n,params:r,context:i,pattern:s,url:d,async serverLoader(){if(oc(`loader`,a),f){if(e)return t;if(o)throw l}return u(p)}}):u(p)))}finally{f=!1}},h.loader.hydrate=pc(a.id,c.clientLoader,a.hasLoader,i),h.action=({request:e,params:t,context:n,pattern:r,url:o},s)=>m(async()=>{if(xs(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw sc(`clientAction`,a.id);return d(s)}return c.clientAction({request:e,params:t,context:n,pattern:r,url:o,async serverAction(){return oc(`action`,a),d(s)}})})}else{a.hasClientLoader||(h.loader=(e,t)=>m(()=>u(t))),a.hasClientAction||(h.action=(e,t)=>m(()=>{if(i)throw sc(`clientAction`,a.id);return d(t)}));let e;async function n(){return e||=(async()=>{(a.clientLoaderModule||a.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=dc(a,t);return p(a),await e})(),await e}h.lazy={loader:a.hasClientLoader?async()=>{let{clientLoader:e}=a.clientLoaderModule?await yt(()=>import(a.clientLoaderModule),[],import.meta.url):await n();return xs(e,"No `clientLoader` export found"),(t,n)=>e({...t,async serverLoader(){return oc(`loader`,a),u(n)}})}:void 0,action:a.hasClientAction?async()=>{let e=a.clientActionModule?yt(()=>import(a.clientActionModule),[],import.meta.url):n();p(a);let{clientAction:t}=await e;return xs(t,"No `clientAction` export found"),(e,n)=>t({...e,async serverAction(){return oc(`action`,a),d(n)}})}:void 0,middleware:a.hasClientMiddleware?async()=>{let{clientMiddleware:e}=a.clientMiddlewareModule?await yt(()=>import(a.clientMiddlewareModule),[],import.meta.url):await n();return xs(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await n();return lc(h.path,e,a,r,s)},handle:async()=>(await n()).handle,Component:async()=>(await n()).Component,ErrorBoundary:a.hasErrorBoundary?async()=>(await n()).ErrorBoundary:void 0}}let g=cc(e,t,n,r,i,a.id,o,s);return g.length>0&&(h.children=g),h})}function lc(e,t,n,r,i){if(i)return uc(n.id,t.shouldRevalidate,i);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?hn(e)[1].map(e=>e.paramName):[],r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}else return e=>r(e)}return t.shouldRevalidate}function uc(e,t,n){let r=!1;return i=>r?t?t(i):i.defaultShouldRevalidate:(r=!0,n.has(e))}async function dc(e,t){let n=zs(e,t),r=Hs(e),i=await n;return await Promise.all([r,Us(e,i)]),{Component:fc(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}function fc(e){if(e.default!=null&&!(typeof e.default==`object`&&Object.keys(e.default).length===0))return e.default}function pc(e,t,n,r){return r&&e!==`root`||t!=null&&(t.hydrate===!0||n!==!0)}var mc=new Set,hc=1e3,gc=new Set,_c=7680;function vc(e,t){return e.mode===`lazy`&&t===!0}function yc({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=Xt(n.routes,e,n.basename||`/`,!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function bc(e,t,n,r,i,a,o){if(vc(i,r))return async({path:s,patch:c,signal:l,fetcherKey:u})=>{if(gc.has(s))return;let{state:d}=e();await wc([s],u?window.location.href:Ft(d.navigation.location||d.location),t,n,r,a,o,i.manifestPath,c,l)}}function xc(e,t,n,r,i,a){O.useEffect(()=>{if(!vc(i,r)||window.navigator?.connection?.saveData===!0)return;function o(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;gc.has(n)||mc.add(n)}async function s(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(o);let s=Array.from(mc.keys()).filter(e=>gc.has(e)?(mc.delete(e),!1):!0);if(s.length!==0)try{await wc(s,null,t,n,r,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let c=Ec(s,100);s();let l=new MutationObserver(()=>c());return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]}),()=>l.disconnect()},[r,a,t,n,e,i])}function Sc(e,t){let n=e||`/__manifest`;return t==null?n:On([t,n])}var Cc=`react-router-manifest-version`;async function wc(e,t,n,r,i,a,o,s,c,l){let u=new URLSearchParams;u.set(`paths`,e.sort().join(`,`)),u.set(`version`,n.version);let d=new URL(Sc(s,o),window.location.origin);if(d.search=u.toString(),d.toString().length>7680){mc.clear();return}let f;try{let e=await fetch(d,{signal:l});if(!e.ok)throw Error(`${e.status} ${e.statusText}`);if(e.status===204&&e.headers.has(`X-Remix-Reload-Document`)){if(!t){console.warn(`Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.`);return}try{if(sessionStorage.getItem(Cc)===n.version){console.error(`Unable to discover routes due to manifest version mismatch.`);return}sessionStorage.setItem(Cc,n.version)}catch{}window.location.href=t,console.warn(`Detected manifest version mismatch, reloading...`),await new Promise(()=>{})}else if(e.status>=400)throw Error(await e.text());try{sessionStorage.removeItem(Cc)}catch{}f=await e.json()}catch(e){if(l?.aborted)return;throw e}let p=new Set(Object.keys(n.routes)),m=Object.values(f).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,m),e.forEach(e=>Tc(e,gc));let h=new Set;Object.values(m).forEach(e=>{e&&(!e.parentId||!m[e.parentId])&&h.add(e.parentId)}),h.forEach(e=>c(e||null,cc(m,r,null,i,a,e)))}function Tc(e,t){if(t.size>=hc){let e=t.values().next().value;t.delete(e)}t.add(e)}function Ec(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Dc(){let e=O.useContext(Ii);return xs(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Oc(){let e=O.useContext(Li);return xs(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var kc=O.createContext(void 0);kc.displayName=`FrameworkContext`;function Ac(){let e=O.useContext(kc);return xs(e,`You must render this element inside a <HydratedRouter> element`),e}function jc(e,t){let n=O.useContext(kc),[r,i]=O.useState(!1),[a,o]=O.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=O.useRef(null);O.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),O.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Mc(s,p),onBlur:Mc(c,m),onMouseEnter:Mc(l,p),onMouseLeave:Mc(u,m),onTouchStart:Mc(d,p)}]:[a,f,{}]:[!1,f,{}]}function Mc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Nc(e,t,n){if(n&&!Hc)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}var Pc=`data-react-router-critical-css`;function Fc({nonce:e,crossOrigin:t}){let{isSpaMode:n,manifest:r,routeModules:i,criticalCss:a}=Ac(),{errors:o,matches:s}=Oc(),c=Nc(s,o,n),l=O.useMemo(()=>Bs(c,i,r),[c,i,r]);return O.createElement(O.Fragment,null,typeof a==`string`?O.createElement(`style`,{[Pc]:``,nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,typeof a==`object`?O.createElement(`link`,{[Pc]:``,rel:`stylesheet`,href:a.href,nonce:e,crossOrigin:t}):null,l.map(({key:n,link:r})=>Gs(r)?O.createElement(Ic,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t}):O.createElement(`link`,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t})))}function Ic({page:e,...t}){let n=zi(),{router:r}=Dc(),i=O.useMemo(()=>Yt(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?O.createElement(Rc,{page:e,matches:i,...t}):O.createElement(zc,{page:e,matches:i,...t}):null}function Lc(e){let{manifest:t,routeModules:n}=Ac(),[r,i]=O.useState([]);return O.useEffect(()=>{let r=!1;return qs(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Rc({page:e,matches:t,...n}){let r=ta(),{future:i}=Ac(),{basename:a}=Dc(),o=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Ps(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return O.createElement(O.Fragment,null,o.map(e=>O.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function zc({page:e,matches:t,...n}){let r=ta(),{future:i,manifest:a,routeModules:o}=Ac(),{basename:s}=Dc(),{loaderData:c,matches:l}=Oc(),u=O.useMemo(()=>Js(e,t,l,a,r,`data`),[e,t,l,a,r]),d=O.useMemo(()=>Js(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Ps(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=O.useMemo(()=>Ys(d,a),[d,a]),m=Lc(d);return O.createElement(O.Fragment,null,f.map(e=>O.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>O.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>O.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Bc(){let{isSpaMode:e,routeModules:t}=Ac(),{errors:n,matches:r,loaderData:i}=Oc(),a=ta(),o=Nc(r,n,e),s=null;n&&(s=n[o[o.length-1].route.id]);let c=[],l=null,u=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,d=i[r],f=n.params,p=t[r],m=[],h={id:r,data:d,loaderData:d,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(u[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({data:d,loaderData:d,params:f,location:a,matches:u,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:l&&(m=[...l]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
33
33
 
34
- To reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta`);h.meta=m,u[e]=h,c=[...m],l=c}return E.createElement(E.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!Hc(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return E.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return E.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?E.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return E.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:xs(t)}})}catch{return null}return E.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function Hc(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}var Uc=!1;function Wc(){Uc=!0}function Gc(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o}=jc(),{router:s,static:c,staticContext:l}=Oc(),{matches:u}=kc(),d=Vi(),f=yc(a,o);i&&(i.didRenderScripts=!0);let p=Pc(u,null,r);E.useEffect(()=>{Wc()},[]);let m=E.useMemo(()=>{if(d)return null;let r=l?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${f?``:`import ${JSON.stringify(t.url)}`};
35
- ${p.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];Ss(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
34
+ To reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta`);h.meta=m,u[e]=h,c=[...m],l=c}return O.createElement(O.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!Vc(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return O.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return O.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?O.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return O.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:bs(t)}})}catch{return null}return O.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function Vc(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}var Hc=!1;function Uc(){Hc=!0}function Wc(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o}=Ac(),{router:s,static:c,staticContext:l}=Dc(),{matches:u}=Oc(),d=zi(),f=vc(a,o);i&&(i.didRenderScripts=!0);let p=Nc(u,null,r);O.useEffect(()=>{Uc()},[]);let m=O.useMemo(()=>{if(d)return null;let r=l?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${f?``:`import ${JSON.stringify(t.url)}`};
35
+ ${p.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];xs(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
36
36
  `),`const ${r} = {${u.map(e=>`...${e.varName}`).join(`,`)}};`].join(`
37
37
  `)}).join(`
38
38
  `)}
39
- ${f?`window.__reactRouterManifest = ${JSON.stringify(bc(t,s),null,2)};`:``}
39
+ ${f?`window.__reactRouterManifest = ${JSON.stringify(yc(t,s),null,2)};`:``}
40
40
  window.__reactRouterRouteModules = {${p.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(`,`)}};
41
41
 
42
- import(${JSON.stringify(t.entry.module)});`:` `;return E.createElement(E.Fragment,null,E.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),E.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),h=Uc||d?[]:Kc(t.entry.imports.concat(Xs(p,t,{includeHydrateFallback:!0}))),g=typeof t.sri==`object`?t.sri:{};return Wa(!d,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),Uc||d?null:E.createElement(E.Fragment,null,typeof t.sri==`object`?E.createElement(`script`,{...e,"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:g})}}):null,f?null:E.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:g[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),E.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:g[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),h.map(t=>E.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:g[t],nonce:e.nonce,suppressHydrationWarning:!0})),m)}function Kc(e){return[...new Set(e)]}function qc(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Jc=class extends E.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?E.createElement(Yc,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function Yc({error:e,isOutsideRemixApp:t}){console.error(e);let n=E.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
42
+ import(${JSON.stringify(t.entry.module)});`:` `;return O.createElement(O.Fragment,null,O.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),O.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),h=Hc||d?[]:Gc(t.entry.imports.concat(Ys(p,t,{includeHydrateFallback:!0}))),g=typeof t.sri==`object`?t.sri:{};return Ua(!d,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),Hc||d?null:O.createElement(O.Fragment,null,typeof t.sri==`object`?O.createElement(`script`,{...e,"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:g})}}):null,f?null:O.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:g[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),O.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:g[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),h.map(t=>O.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:g[t],nonce:e.nonce,suppressHydrationWarning:!0})),m)}function Gc(e){return[...new Set(e)]}function Kc(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var qc=class extends O.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?O.createElement(Jc,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function Jc({error:e,isOutsideRemixApp:t}){console.error(e);let n=O.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
43
43
  console.log(
44
44
  "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
45
45
  );
46
- `}});if(Vn(e))return E.createElement(Xc,{title:`Unhandled Thrown Response!`},E.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),n);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return E.createElement(Xc,{title:`Application Error!`,isOutsideRemixApp:t},E.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),E.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function Xc({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=jc();return i.root?.Layout&&!n?r:E.createElement(`html`,{lang:`en`},E.createElement(`head`,null,E.createElement(`meta`,{charSet:`utf-8`}),E.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),E.createElement(`title`,null,e)),E.createElement(`body`,null,E.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?E.createElement(Gc,null):null)))}var Zc=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Zc&&(window.__reactRouterVersion=`7.15.0`)}catch{}function Qc(e,t){return br({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Mt({window:t?.window}),hydrationData:t?.hydrationData||el(),routes:e,mapRouteProperties:Ja,hydrationRouteProperties:Ya,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function $c(e,t){return br({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Nt({window:t?.window}),hydrationData:t?.hydrationData||el(),routes:e,mapRouteProperties:Ja,hydrationRouteProperties:Ya,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function el(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:tl(e.errors)}),e}function tl(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Bn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function nl({basename:e,children:t,useTransitions:n,window:r}){let i=E.useRef();i.current??=Mt({window:r,v5Compat:!0});let a=i.current,[o,s]=E.useState({action:a.action,location:a.location}),c=E.useCallback(e=>{n===!1?s(e):E.startTransition(()=>s(e))},[n]);return E.useLayoutEffect(()=>a.listen(c),[a,c]),E.createElement(oo,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function rl({basename:e,children:t,useTransitions:n,window:r}){let i=E.useRef();i.current??=Nt({window:r,v5Compat:!0});let a=i.current,[o,s]=E.useState({action:a.action,location:a.location}),c=E.useCallback(e=>{n===!1?s(e):E.startTransition(()=>s(e))},[n]);return E.useLayoutEffect(()=>a.listen(c),[a,c]),E.createElement(oo,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function il({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=E.useState({action:n.action,location:n.location}),o=E.useCallback(e=>{r===!1?a(e):E.startTransition(()=>a(e))},[r]);return E.useLayoutEffect(()=>n.listen(o),[n,o]),E.createElement(oo,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}il.displayName=`unstable_HistoryRouter`;var al=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ol=E.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=E.useContext(Ki),v=typeof l==`string`&&al.test(l),y=Wn(l,h);l=y.to;let b=ta(l,{relative:r}),x=R(),S=null;if(o){let e=On(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:An([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Mc(n,p),ee=pl(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function te(t){e&&e(t),t.defaultPrevented||ee(t)}let ne=!(y.isExternal||i),re=E.createElement(`a`,{...p,...T,href:(ne?S:void 0)||y.absoluteURL||b,onClick:ne?te:e,ref:qc(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?E.createElement(E.Fragment,null,re,E.createElement(Lc,{page:b})):re});ol.displayName=`Link`;var sl=E.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=pa(a,{relative:c.relative}),d=R(),f=E.useContext(zi),{navigator:p,basename:m}=E.useContext(Ki),h=f!=null&&Ol(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=yn(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return E.createElement(ol,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});sl.displayName=`NavLink`;var cl=E.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Co,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=E.useContext(Ki),g=_l(),_=vl(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&al.test(s);return E.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?E.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});cl.displayName=`Form`;function ll({getKey:e,storageKey:t,...n}){let r=E.useContext(Ac),{basename:i}=E.useContext(Ki),a=R(),o=ja();wl({getKey:e,storageKey:t});let s=E.useMemo(()=>{if(!r||!e)return null;let t=Cl(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return E.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${xs(JSON.stringify(t||xl))}, ${xs(JSON.stringify(s))})`}})}ll.displayName=`ScrollRestoration`;function ul(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dl(e){let t=E.useContext(Ri);return M(t,ul(e)),t}function fl(e){let t=E.useContext(zi);return M(t,ul(e)),t}function pl(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=sa(),d=R(),f=pa(e,{relative:o});return E.useCallback(p=>{if(Ao(p,t)){p.preventDefault();let t=n===void 0?Rt(d)===Rt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?E.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function ml(e){Pt(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(jo(e)),n=E.useRef(!1),r=R(),i=E.useMemo(()=>Mo(r.search,n.current?null:t.current),[r.search]),a=sa();return[i,E.useCallback((e,t)=>{let r=jo(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var hl=0,gl=()=>`__${String(++hl)}__`;function _l(){let{router:e}=dl(`useSubmit`),{basename:t}=E.useContext(Ki),n=Oa(),r=e.fetch,i=e.navigate;return E.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Lo(e,t);a.navigate===!1?await r(a.fetcherKey||gl(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function vl(e,{relative:t}={}){let{basename:n}=E.useContext(Ki),r=E.useContext(Ji);M(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...pa(e||`.`,{relative:t})},o=R();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:An([n,a.pathname])),Rt(a)}function yl({key:e}={}){let{router:t}=dl(`useFetcher`),n=fl(`useFetcher`),r=E.useContext(Ui),i=E.useContext(Ji),a=i.matches[i.matches.length-1]?.route.id;M(r,`useFetcher must be used inside a FetchersContext`),M(i,`useFetcher must be used inside a RouteContext`),M(a!=null,`useFetcher can only be used on routes that contain a unique "id"`);let o=E.useId(),[s,c]=E.useState(e||o);e&&e!==s&&c(e);let{deleteFetcher:l,getFetcher:u,resetFetcher:d,fetch:f}=t;E.useEffect(()=>(u(s),()=>l(s)),[l,u,s]);let p=E.useCallback(async(e,t)=>{M(a,`No routeId available for fetcher.load()`),await f(s,a,e,t)},[s,a,f]),m=_l(),h=E.useCallback(async(e,t)=>{await m(e,{...t,navigate:!1,fetcherKey:s})},[s,m]),g=E.useCallback(e=>d(s,e),[d,s]),_=E.useMemo(()=>{let e=E.forwardRef((e,t)=>E.createElement(cl,{...e,navigate:!1,fetcherKey:s,ref:t}));return e.displayName=`fetcher.Form`,e},[s]),v=n.fetchers.get(s)||ur,y=r.get(s);return E.useMemo(()=>({Form:_,submit:h,load:p,reset:g,...v,data:y}),[_,h,p,g,v,y])}function bl(){let e=fl(`useFetchers`);return Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e}))}var xl=`react-router-scroll-positions`,Sl={};function Cl(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:yn(e.pathname,n)||e.pathname},t)),i??=e.key,i}function wl({getKey:e,storageKey:t}={}){let{router:n}=dl(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=fl(`useScrollRestoration`),{basename:a}=E.useContext(Ki),o=R(),s=ja(),c=ka();E.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),El(E.useCallback(()=>{if(c.state===`idle`){let t=Cl(o,s,a,e);Sl[t]=window.scrollY}try{sessionStorage.setItem(t||xl,JSON.stringify(Sl))}catch(e){Pt(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(E.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||xl);e&&(Sl=JSON.parse(e))}catch{}},[t]),E.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Sl,()=>window.scrollY,e?(t,n)=>Cl(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),E.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{Pt(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Tl(e,t){let{capture:n}=t||{};E.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function El(e,t){let{capture:n}=t||{};E.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Dl({when:e,message:t}){let n=Ra(e);E.useEffect(()=>{n.state===`blocked`&&(window.confirm(t)?setTimeout(n.proceed,0):n.reset())},[n,t]),E.useEffect(()=>{n.state===`blocked`&&!e&&n.reset()},[n,e])}function Ol(e,{relative:t}={}){let n=E.useContext(Hi);M(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dl(`useViewTransitionState`),i=pa(e,{relative:t});if(!n.isTransitioning)return!1;let a=yn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=yn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return gn(i.pathname,o)!=null||gn(i.pathname,a)!=null}function kl({basename:e,children:t,location:n=`/`}){typeof n==`string`&&(n=zt(n));let r={pathname:n.pathname||`/`,search:n.search||``,hash:n.hash||``,state:n.state==null?null:n.state,key:n.key||`default`,mask:void 0},i=Ml();return E.createElement(oo,{basename:e,children:t,location:r,navigationType:`POP`,navigator:i,static:!0,useTransitions:!1})}function Al({context:e,router:t,hydrate:n=!0,nonce:r}){M(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:Ml(),static:!0,staticContext:e,basename:e.basename||`/`},a=new Map,o=``;if(n!==!1){let t={loaderData:e.loaderData,actionData:e.actionData,errors:jl(e.errors)};o=`window.__staticRouterHydrationData = JSON.parse(${xs(JSON.stringify(JSON.stringify(t)))});`}let{state:s}=i.router;return E.createElement(E.Fragment,null,E.createElement(Ri.Provider,{value:i},E.createElement(zi.Provider,{value:s},E.createElement(Ui.Provider,{value:a},E.createElement(Hi.Provider,{value:{isTransitioning:!1}},E.createElement(oo,{basename:i.basename,location:s.location,navigationType:s.historyAction,navigator:i.navigator,static:i.static,useTransitions:!1},E.createElement(to,{manifest:t.manifest,routes:t.routes,future:t.future,state:s,isStatic:!0})))))),o?E.createElement(`script`,{suppressHydrationWarning:!0,nonce:r,dangerouslySetInnerHTML:{__html:o}}):null)}function jl(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)Vn(r)?n[e]={...r,__type:`RouteErrorResponse`}:r instanceof Error?n[e]={message:r.message,__type:`Error`,...r.name===`Error`?{}:{__subType:r.name}}:n[e]=r;return n}function Ml(){return{createHref:Fl,encodeLocation:Il,push(e){throw Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw Error(`You cannot use navigator.back() on the server because it is a stateless environment.`)},forward(){throw Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`)}}}function Nl(e,t){return xr(e,{...t,mapRouteProperties:Ja})}function Pl(e,t,n={}){let r={},i=Xt(e,Ja,void 0,r),a=t.matches.map(e=>{let t=r[e.route.id]||e.route;return{...e,route:t}}),o=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,v8_passThroughRequests:!1,...n?.future}},get state(){return{historyAction:`POP`,location:t.location,matches:a,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:lr,restoreScrollPosition:null,preventScrollReset:!1,revalidation:`idle`,fetchers:new Map,blockers:new Map}},get routes(){return i},get branches(){return n.branches},get manifest(){return r},get window(){},initialize(){throw o(`initialize`)},subscribe(){throw o(`subscribe`)},enableScrollRestoration(){throw o(`enableScrollRestoration`)},navigate(){throw o(`navigate`)},fetch(){throw o(`fetch`)},revalidate(){throw o(`revalidate`)},createHref:Fl,encodeLocation:Il,getFetcher(){return ur},deleteFetcher(){throw o(`deleteFetcher`)},resetFetcher(){throw o(`resetFetcher`)},dispose(){throw o(`dispose`)},getBlocker(){return dr},deleteBlocker(){throw o(`deleteBlocker`)},patchRoutes(){throw o(`patchRoutes`)},_internalFetchControllers:new Map,_internalSetRoutes(){throw o(`_internalSetRoutes`)},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw o(`_internalSetStateDoNotUseOrYouWillBreakYourApp`)}}}function Fl(e){return typeof e==`string`?e:Rt(e)}function Il(e){let t=typeof e==`string`?e:Rt(e);t=t.replace(/ $/,`%20`);let n=Ll.test(t)?new URL(t):new URL(t,`http://localhost`);return{pathname:n.pathname,search:n.search,hash:n.hash}}var Ll=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseCookie=c,e.parse=c,e.stringifyCookie=l,e.stringifySetCookie=u,e.serialize=u,e.parseSetCookie=d,e.stringifySetCookie=u,e.serialize=u;var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=/^-?\d+$/,o=Object.prototype.toString,s=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function c(e,t){let n=new s,r=e.length;if(r<2)return n;let i=t?.decode||h,a=0;do{let t=p(e,a,r);if(t===-1)break;let o=f(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=m(e,a,t);n[s]===void 0&&(n[s]=i(m(e,t+1,o))),a=o+1}while(a<r);return n}function l(e,r){let i=r?.encode||encodeURIComponent,a=[];for(let r of Object.keys(e)){let o=e[r];if(o===void 0)continue;if(!t.test(r))throw TypeError(`cookie name is invalid: ${r}`);let s=i(o);if(!n.test(s))throw TypeError(`cookie val is invalid: ${o}`);a.push(`${r}=${s}`)}return a.join(`; `)}function u(e,a,o){let s=typeof e==`object`?e:{...o,name:e,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!t.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!n.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge}if(s.domain){if(!r.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain}if(s.path){if(!i.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path}if(s.expires){if(!g(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString()}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function d(e,t){let n=t?.decode||h,r=e.length,i=f(e,0,r),o=p(e,0,i),s=o===-1?{name:``,value:n(m(e,0,i))}:{name:m(e,0,o),value:n(m(e,o+1,i))},c=i+1;for(;c<r;){let t=f(e,c,r),n=p(e,c,t),i=n===-1?m(e,c,t):m(e,c,n),o=n===-1?void 0:m(e,n+1,t);switch(i.toLowerCase()){case`httponly`:s.httpOnly=!0;break;case`secure`:s.secure=!0;break;case`partitioned`:s.partitioned=!0;break;case`domain`:s.domain=o;break;case`path`:s.path=o;break;case`max-age`:o&&a.test(o)&&(s.maxAge=Number(o));break;case`expires`:if(!o)break;let e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case`priority`:if(!o)break;let t=o.toLowerCase();(t===`low`||t===`medium`||t===`high`)&&(s.priority=t);break;case`samesite`:if(!o)break;let n=o.toLowerCase();(n===`lax`||n===`strict`||n===`none`)&&(s.sameSite=n);break}c=t+1}return s}function f(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function p(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function m(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}function h(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function g(e){return o.call(e)===`[object Date]`}})),zl=s(((e,t)=>{var n={decodeValues:!0,map:!1,silent:!1};function r(e){return typeof e!=`string`||e in{}}function i(){return Object.create(null)}function a(e){return typeof e==`string`&&!!e.trim()}function o(e,t){var o=e.split(`;`).filter(a),c=s(o.shift()),l=c.name,u=c.value;if(t=t?Object.assign({},n,t):n,r(l))return null;try{u=t.decodeValues?decodeURIComponent(u):u}catch(e){console.error(`set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.`,e)}var d=i();return d.name=l,d.value=u,o.forEach(function(e){var t=e.split(`=`),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var i=t.join(`=`);if(n===`expires`)d.expires=new Date(i);else if(n===`max-age`){var a=parseInt(i,10);Number.isNaN(a)||(d.maxAge=a)}else n===`secure`?d.secure=!0:n===`httponly`?d.httpOnly=!0:n===`samesite`?d.sameSite=i:n===`partitioned`?d.partitioned=!0:n&&(d[n]=i)}}),d}function s(e){var t=``,n=``,r=e.split(`=`);return r.length>1?(t=r.shift(),n=r.join(`=`)):n=e,{name:t,value:n}}function c(e,t){if(t=t?Object.assign({},n,t):n,!e)return t.map?i():[];if(e.headers)if(typeof e.headers.getSetCookie==`function`)e=e.headers.getSetCookie();else if(e.headers[`set-cookie`])e=e.headers[`set-cookie`];else{var s=e.headers[Object.keys(e.headers).find(function(e){return e.toLowerCase()===`set-cookie`})];!s&&e.headers.cookie&&!t.silent&&console.warn(`Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.`),e=s}if(Array.isArray(e)||(e=[e]),t.map){var c=i();return e.filter(a).reduce(function(e,n){var i=o(n,t);return i&&!r(i.name)&&(e[i.name]=i),e},c)}else return e.filter(a).map(function(e){return o(e,t)}).filter(Boolean)}function l(e){if(Array.isArray(e))return e;if(typeof e!=`string`)return[];var t=[],n=0,r,i,a,o,s;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}function l(){return i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`}for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.substring(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.substring(r,e.length))}return t}t.exports=c,t.exports.parse=c,t.exports.parseString=o,t.exports.splitCookiesString=l})),Bl=c({RSCDefaultRootErrorBoundary:()=>sd,RSCRouterGlobalErrorBoundary:()=>ad,RSCStaticRouter:()=>hd,ServerMode:()=>au,ServerRouter:()=>H,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createMemorySessionStorage:()=>Zu,createRequestHandler:()=>Lu,createRoutesStub:()=>Ul,createSession:()=>Ku,createSessionStorage:()=>Ju,deserializeErrors:()=>vd,getHydrationData:()=>yd,href:()=>Qu,isCookie:()=>Yl,isSession:()=>qu,populateRSCRouteModules:()=>ld,routeRSCServerRequest:()=>md,setDevServerHooks:()=>_u}),Vl=u(Rl(),1),Hl=u(zl(),1);function H({context:e,url:t,nonce:n}){typeof t==`string`&&(t=new URL(t));let{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o}=e,s=ac(r.routes,i,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let n=t.route.id,r=i[n],a=e.manifest.routes[n];r&&a&&mc(n,r.clientLoader,a.hasLoader,e.isSpaMode)&&(r.HydrateFallback||!a.hasLoader)&&delete e.staticHandlerContext.loaderData[n]}let c=Pl(s,e.staticHandlerContext,{branches:e.branches});return E.createElement(E.Fragment,null,E.createElement(Ac.Provider,{value:{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,serializeError:e.serializeError,renderMeta:e.renderMeta}},E.createElement(Jc,{location:c.state.location},E.createElement(Al,{router:c,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?E.createElement(E.Suspense,null,E.createElement(Es,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:n})):null)}function Ul(e,t){return function({initialEntries:n,initialIndex:r,hydrationData:i,future:a}){let o=E.useRef(),s=E.useRef();return o.current??=(s.current={future:{v8_passThroughRequests:a?.v8_passThroughRequests===!0,v8_middleware:a?.v8_middleware===!0,unstable_trailingSlashAwareDataRequests:a?.unstable_trailingSlashAwareDataRequests===!0},manifest:{routes:{},entry:{imports:[],module:``},url:``,version:``},routeModules:{},ssr:!1,isSpaMode:!1,routeDiscovery:{mode:`lazy`,manifestPath:`/__manifest`}},Xa(U(Xt(e,e=>e),t===void 0?a?.v8_middleware?new Wt:{}:t,s.current.manifest,s.current.routeModules),{initialEntries:n,initialIndex:r,hydrationData:i})),E.createElement(Ac.Provider,{value:s.current},E.createElement(Qa,{router:o.current}))}}function U(e,t,n,r,i){return e.map(e=>{if(!e.id)throw Error(`Expected a route.id in react-router processRoutes() function`);let a={id:e.id,path:e.path,index:e.index,Component:e.Component?go(e.Component):void 0,HydrateFallback:e.HydrateFallback?yo(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?So(e.ErrorBoundary):void 0,action:e.action?n=>e.action({...n,context:t}):void 0,loader:e.loader?n=>e.loader({...n,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...n)=>e({...n[0],context:t},n[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},o={id:e.id,path:e.path,index:e.index,parentId:i,hasAction:e.action!=null,hasLoader:e.loader!=null,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasErrorBoundary:e.ErrorBoundary!=null,module:`build/stub-path-to-module.js`,clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0};return n.routes[a.id]=o,r[e.id]={default:a.Component||io,ErrorBoundary:a.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(a.children=U(e.children,t,n,r,a.id)),a})}var W=new TextEncoder,Wl=async(e,t)=>{let n=W.encode(e),r=await Kl(t,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n),a=btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=+$/,``);return e+`.`+a},Gl=async(e,t)=>{let n=e.lastIndexOf(`.`),r=e.slice(0,n),i=e.slice(n+1),a=W.encode(r),o=await Kl(t,[`verify`]);try{let e=ql(atob(i));return await crypto.subtle.verify(`HMAC`,o,e,a)?r:!1}catch{return!1}},Kl=async(e,t)=>crypto.subtle.importKey(`raw`,W.encode(e),{name:`HMAC`,hash:`SHA-256`},!1,t);function ql(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}var Jl=(e,t={})=>{let{secrets:n=[],...r}={path:`/`,sameSite:`lax`,...t};return ru(e,r.expires),{get name(){return e},get isSigned(){return n.length>0},get expires(){return r.maxAge===void 0?r.expires:new Date(Date.now()+r.maxAge*1e3)},async parse(t,i){if(!t)return null;let a=(0,Vl.parse)(t,{...r,...i});if(e in a){let t=a[e];return typeof t==`string`&&t!==``?await Zl(t,n):``}else return null},async serialize(t,i){return(0,Vl.serialize)(e,t===``?``:await Xl(t,n),{...r,...i})}}},Yl=e=>e!=null&&typeof e.name==`string`&&typeof e.isSigned==`boolean`&&typeof e.parse==`function`&&typeof e.serialize==`function`;async function Xl(e,t){let n=Ql(e);return t.length>0&&(n=await Wl(n,t[0])),n}async function Zl(e,t){if(t.length>0){for(let n of t){let t=await Gl(e,n);if(t!==!1)return $l(t)}return null}return $l(e)}function Ql(e){return btoa(nu(encodeURIComponent(JSON.stringify(e))))}function $l(e){try{return JSON.parse(decodeURIComponent(eu(atob(e))))}catch{return{}}}function eu(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;)i=t.charAt(r++),/[\w*+\-./@]/.exec(i)?n+=i:(a=i.charCodeAt(0),a<256?n+=`%`+tu(a,2):n+=`%u`+tu(a,4).toUpperCase());return n}function tu(e,t){let n=e.toString(16);for(;n.length<t;)n=`0`+n;return n}function nu(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;){if(i=t.charAt(r++),i===`%`){if(t.charAt(r)===`u`){if(a=t.slice(r+1,r+5),/^[\da-f]{4}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=5;continue}}else if(a=t.slice(r,r+2),/^[\da-f]{2}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=2;continue}}n+=i}return n}function ru(e,t){Wa(!t,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}function iu(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r&&(t[n]=r.module),t},{})}var au=(e=>(e.Development=`development`,e.Production=`production`,e.Test=`test`,e))(au||{});function ou(e){return e===`development`||e===`production`||e===`test`}function su(e,t){if(e instanceof Error&&t!==`development`){let e=Error(`Unexpected Server Error`);return e.stack=void 0,e}return e}function cu(e,t){return Object.entries(e).reduce((e,[n,r])=>Object.assign(e,{[n]:su(r,t)}),{})}function lu(e,t){let n=su(e,t);return{message:n.message,stack:n.stack}}function uu(e,t){if(!e)return null;let n=Object.entries(e),r={};for(let[e,i]of n)if(Vn(i))r[e]={...i,__type:`RouteErrorResponse`};else if(i instanceof Error){let n=su(i,t);r[e]={message:n.message,stack:n.stack,__type:`Error`,...n.name===`Error`?{}:{__subType:n.name}}}else r[e]=i;return r}function du(e,t){if(e===!1||e==null)throw console.error(`The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose`),Error(t)}function fu(e,t,n,r,i){let a=$t(t,r,i??`/`,!1,n);return a?a.map(t=>{let n=e[t.route.id];return du(n,`Route with id "${t.route.id}" not found in manifest.`),{params:t.params,pathname:t.pathname,route:n}}):null}async function pu(e,t,n){let r=await e({request:n.v8_passThroughRequests?t.request:hu(mu(t.request)),url:t.url,params:t.params,context:t.context,pattern:t.pattern});if(Ci(r)&&r.init&&r.init.status&&Ti(r.init.status))throw new Response(null,r.init);return r}function mu(e){let t=new URL(e.url),n=t.searchParams.getAll(`index`);t.searchParams.delete(`index`);let r=[];for(let e of n)e&&r.push(e);for(let e of r)t.searchParams.append(`index`,e);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex=`half`),new Request(t.href,i)}function hu(e){let t=new URL(e.url);t.searchParams.delete(`_routes`);let n={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return n.body&&(n.duplex=`half`),new Request(t.href,n)}var gu=`__reactRouterDevServerHooks`;function _u(e){globalThis[gu]=e}function G(){return globalThis[gu]}function vu(e,t){if(typeof process<`u`)try{if({}.hasOwnProperty(`IS_RR_BUILD_REQUEST`)&&{}.IS_RR_BUILD_REQUEST===`yes`)return e.headers.get(t)}catch{}return null}function yu(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function K(e,t,n=``,r=yu(e)){return(r[n]||[]).map(n=>{let i={hasErrorBoundary:n.id===`root`||n.module.ErrorBoundary!=null,id:n.id,path:n.path,middleware:n.module.middleware,loader:n.module.loader?async e=>{let r=vu(e.request,`X-React-Router-Prerender-Data`);if(r!=null){let e=r&&decodeURI(r);du(e,`Missing prerendered data for route`);let t=new TextEncoder().encode(e),i=(await Ls(new ReadableStream({start(e){e.enqueue(t),e.close()}}),global)).value;if(i&&Cs in i){let e=i[Cs],t={status:e.status};throw e.reload?Rn(e.redirect,t):e.replace?zn(e.redirect,t):Ln(e.redirect,t)}else{du(i&&n.id in i,`Unable to decode prerendered data`);let e=i[n.id];return du(`data`in e,`Unable to process prerendered data`),e.data}}return await pu(n.module.loader,e,t)}:void 0,action:n.module.action?e=>pu(n.module.action,e,t):void 0,handle:n.module.handle};return n.index?{index:!0,...i}:{caseSensitive:n.caseSensitive,children:K(e,t,n.id,r),...i}})}function bu(e){return xs(JSON.stringify(e))}function xu(e,t){return Su(e,e=>{let n=t.routes[e.route.id];return du(n,`Route with id "${e.route.id}" not found in build`),n.module.headers})}function Su(e,t,n){let r=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,i=r>=0?e.matches.slice(0,r+1):e.matches,a;if(r>=0){let{actionHeaders:t,actionData:n,loaderHeaders:i,loaderData:o}=e;e.matches.slice(r).some(e=>{let r=e.route.id;return t[r]&&(!n||!n.hasOwnProperty(r))?a=t[r]:i[r]&&!o.hasOwnProperty(r)&&(a=i[r]),a!=null})}let o=new Headers(n);return i.reduce((n,r,o)=>{let{id:s}=r.route,c=e.loaderHeaders[s]||new Headers,l=e.actionHeaders[s]||new Headers,u=a!=null&&o===i.length-1,d=u&&a!==c&&a!==l,f=t(r);if(f==null){let e=new Headers(n);return d&&Cu(a,e),Cu(l,e),Cu(c,e),e}let p=new Headers(typeof f==`function`?f({loaderHeaders:c,parentHeaders:n,actionHeaders:l,errorHeaders:u?a:void 0}):f);return d&&Cu(a,p),Cu(l,p),Cu(c,p),Cu(n,p),p},new Headers(o))}function Cu(e,t){let n=e.get(`Set-Cookie`);if(n){let e=(0,Hl.splitCookiesString)(n),r=new Set(t.getSetCookie());e.forEach(e=>{r.has(e)||t.append(`Set-Cookie`,e)})}}function wu(e,t){let n=e.get(`origin`),r=null;try{r=typeof n==`string`&&n!==`null`?new URL(n).host:n}catch{throw Error("`origin` header is not a valid URL. Aborting the action.")}let i=Du(e);if(r&&(!i||r!==i.value)&&!Eu(r,t))throw Error(i?`${i.type} header does not match \`origin\` header from a forwarded action request. Aborting the action.`:"`x-forwarded-host` or `host` headers are not provided. One of these is needed to compare the `origin` header from a forwarded action request. Aborting the action.")}function Tu(e,t){let n=e.split(`.`),r=t.split(`.`);if(r.length<1||n.length<r.length)return!1;for(;r.length;){let e=r.pop(),t=n.pop();switch(e){case``:return!1;case`*`:if(t)continue;return!1;case`**`:return r.length>0?!1:t!==void 0;case void 0:default:if(t!==e)return!1}}return n.length===0}function Eu(e,t=[]){return t.some(t=>t&&(t===e||Tu(e,t)))}function Du(e){let t=e.get(`x-forwarded-host`)?.split(`,`)[0]?.trim(),n=e.get(`host`);return t?{type:`x-forwarded-host`,value:t}:n?{type:`host`,value:n}:void 0}function Ou(e,t,n){t||=`/`;let r=new URL(e.url),i=r.pathname;n?.unstable_trailingSlashAwareDataRequests?i=i.endsWith(`/_.data`)?i.replace(/_\.data$/,``):i.replace(/\.data$/,``):(yn(i,t)===`/_root.data`?i=t:i.endsWith(`.data`)&&(i=i.replace(/\.data$/,``)),yn(i,t)!==`/`&&i.endsWith(`/`)&&(i=i.slice(0,-1)));let a=new URLSearchParams(r.search);a.delete(`_routes`);let o=a.toString();return o&&=`?${o}`,{pathname:i,search:o,hash:``}}var ku=new Set([...Ts,304]);async function Au(e,t,n,r,i,a,o){try{try{wu(r.headers,Array.isArray(e.allowedActionOrigins)?e.allowedActionOrigins:[])}catch{return c(Error(`Bad Request`),400)}let t=e.future.v8_passThroughRequests?r:new Request(i,{method:r.method,body:r.body,headers:r.headers,signal:r.signal,...r.body?{duplex:`half`}:void 0});return s(await n.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return s(await e(t))}catch(e){return c(e)}}:void 0,normalizePath:t=>Ou(t,e.basename,e.future)}))}catch(e){return c(e)}function s(e){return wi(e)?e:l(e)}function c(n,i=500){return o(n),Mu(r,e,t,{result:{error:n},headers:new Headers,status:i})}function l(n){let i=xu(n,e);if(Ti(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!Vn(e)||e.error)&&o(e)}),cu(n.errors,t));let a;return a=n.errors?{error:Object.values(n.errors)[0]}:{data:Object.values(n.actionData||{})[0]},Mu(r,e,t,{result:a,headers:i,status:n.statusCode})}}async function ju(e,t,n,r,i,a,o){let s=new URL(r.url).searchParams.get(`_routes`),c=s?new Set(s.split(`,`)):null;try{let t=e.future.v8_passThroughRequests?r:new Request(i,{headers:r.headers,signal:r.signal});return l(await n.query(t,{requestContext:a,filterMatchesToLoad:e=>!c||c.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return l(await e(t))}catch(e){return u(e)}}:void 0,normalizePath:t=>Ou(t,e.basename,e.future)}))}catch(e){return u(e)}function l(e){return wi(e)?e:d(e)}function u(n){return o(n),Mu(r,e,t,{result:{error:n},headers:new Headers,status:500})}function d(n){let i=xu(n,e);if(Ti(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!Vn(e)||e.error)&&o(e)}),cu(n.errors,t));let a={},s=new Set(n.matches.filter(e=>c?c.has(e.route.id):e.route.loader!=null).map(e=>e.route.id));if(n.errors)for(let[e,t]of Object.entries(n.errors))a[e]={error:t};for(let[e,t]of Object.entries(n.loaderData))!(e in a)&&s.has(e)&&(a[e]={data:t});return Mu(r,e,t,{result:a,headers:i,status:n.statusCode})}}function Mu(e,t,n,{result:r,headers:i,status:a}){let o=new Headers(i);return o.set(`X-Remix-Response`,`yes`),ku.has(a)?new Response(null,{status:a,headers:o}):(o.set(`Content-Type`,`text/x-script`),o.delete(`Content-Length`),new Response(Fu(r,e.signal,t.entry.module.streamTimeout,n),{status:a||200,headers:o}))}function Nu(e,t,n,r){let i=Pu(e.status,e.headers,n.basename),a=new Headers(e.headers);return a.delete(`Location`),a.set(`Content-Type`,`text/x-script`),Mu(t,n,r,{result:t.method===`GET`?{[Cs]:i}:i,headers:a,status:202})}function Pu(e,t,n){let r=t.get(`Location`);return n&&(r=yn(r,n)||r),{redirect:r,status:e,revalidate:t.has(`X-Remix-Revalidate`)||t.has(`Set-Cookie`),reload:t.has(`X-Remix-Reload-Document`),replace:t.has(`X-Remix-Replace`)}}function Fu(e,t,n,r){let i=new AbortController,a=setTimeout(()=>{i.abort(Error(`Server Timeout`)),s()},typeof n==`number`?n:4950),o=()=>{i.abort(t.reason),s()};t.addEventListener(`abort`,o);let s=()=>{clearTimeout(a),t.removeEventListener(`abort`,o)};return _s(e,{signal:i.signal,onComplete:s,plugins:[e=>{if(e instanceof Error){let{name:t,message:n,stack:i}=r===`production`?su(e,r):e;return[`SanitizedError`,t,n,i]}if(e instanceof Bn){let{data:t,status:n,statusText:r}=e;return[`ErrorResponse`,t,n,r]}if(e&&typeof e==`object`&&Cs in e)return[`SingleFetchRedirect`,e[Cs]]}],postPlugins:[e=>{if(e&&typeof e==`object`)return[`SingleFetchClassInstance`,Object.fromEntries(Object.entries(e))]},()=>[`SingleFetchFallback`]]})}function Iu(e,t){let n=K(e.routes,e.future),r=ou(t)?t:`production`,i=xr(n,{basename:e.basename,instrumentations:e.entry.module.instrumentations,future:e.future}),a=e.entry.module.handleError||((e,{request:t})=>{r!==`test`&&!t.signal.aborted&&console.error(Vn(e)&&e.error?e.error:e)}),o=async(n,o)=>{let s={},c,l=e=>{t===`development`&&G()?.processRequestError?.(e),a(e,{context:c,params:s,request:n})};if(e.future.v8_middleware){if(o&&!(o instanceof Wt)){let e=Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return l(e),Uu(e,r)}c=o||new Wt}else c=o||{};let u=new URL(n.url),d=Ou(n,e.basename,e.future).pathname,f=vu(n,`X-React-Router-SPA-Mode`)===`yes`;if(!e.ssr){let t=decodeURI(d);if(e.basename&&e.basename!==`/`){let r=yn(t,e.basename);if(r==null)return a(new Bn(404,`Not Found`,`Refusing to prerender the \`${t}\` path because it does not start with the basename \`${e.basename}\``),{context:c,params:s,request:n}),new Response(`Not Found`,{status:404,statusText:`Not Found`});t=r}if(e.prerender.length===0)f=!0;else if(!e.prerender.includes(t)&&!e.prerender.includes(t+`/`)){if(u.pathname.endsWith(`.data`))return a(new Bn(404,`Not Found`,`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:c,params:s,request:n}),new Response(`Not Found`,{status:404,statusText:`Not Found`});f=!0}}let p=Cc(e.routeDiscovery.manifestPath,e.basename);if(u.pathname===p)try{return await Ru(e,i.dataRoutes,i._internalRouteBranches,u)}catch(e){return l(e),new Response(`Unknown Server Error`,{status:500})}let m=fu(e.routes,i.dataRoutes,i._internalRouteBranches,d,e.basename);m&&m.length>0&&Object.assign(s,m[0].params);let h;if(u.pathname.endsWith(`.data`))h=await zu(r,e,i,n,d,c,l),Ei(h)&&(h=Nu(h,n,e,r)),e.entry.module.handleDataRequest&&(h=await e.entry.module.handleDataRequest(h,{context:c,params:m?m[0].params:{},request:n}),Ei(h)&&(h=Nu(h,n,e,r)));else if(!f&&m&&m[m.length-1].route.module.default==null&&m[m.length-1].route.module.ErrorBoundary==null)h=await Vu(r,e,i,m.slice(-1)[0].route.id,n,c,l);else{let{pathname:a}=u,o;e.unstable_getCriticalCss?o=await e.unstable_getCriticalCss({pathname:a}):t===`development`&&G()?.getCriticalCss&&(o=await G()?.getCriticalCss?.(a)),h=await Bu(r,e,i,n,c,l,f,o)}return n.method===`HEAD`?new Response(null,{headers:h.headers,status:h.status,statusText:h.statusText}):h};return e.entry.module.instrumentations&&(o=Jn(o,e.entry.module.instrumentations.map(e=>e.handler).filter(Boolean))),{serverMode:r,staticHandler:i,errorHandler:a,requestHandler:o}}var Lu=(e,t)=>{let n,r,i,a,o;return async function(s,c){if(n=typeof e==`function`?await e():e,typeof e==`function`){let e=Iu(n,t);r=e.serverMode,i=e.staticHandler,a=e.errorHandler,o=e.requestHandler}else if(!r||!i||!a||!o){let e=Iu(n,t);r=e.serverMode,i=e.staticHandler,a=e.errorHandler,o=e.requestHandler}return o(s,c)}};async function Ru(e,t,n,r){if(e.assets.version!==r.searchParams.get(`version`))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":`true`}});if(r.toString().length>7680)return new Response(null,{statusText:`Bad Request`,status:400});let i={};if(r.searchParams.has(`paths`)){let a=new Set;(r.searchParams.get(`paths`)||``).split(`,`).filter(Boolean).forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);let t=e.split(`/`).slice(1);t.forEach((e,n)=>{let r=t.slice(0,n+1).join(`/`);a.add(`/${r}`)})});for(let r of a){let a=fu(e.routes,t,n,r,e.basename);if(a)for(let t of a){let n=t.route.id,r=e.assets.routes[n];r&&(i[n]=r)}}return Response.json(i,{headers:{"Cache-Control":`public, max-age=31536000, immutable`}})}return new Response(`Invalid Request`,{status:400})}async function zu(e,t,n,r,i,a,o){let s=new URL(r.url);return s.pathname=i,r.method===`GET`?await ju(t,e,n,r,s,a,o):await Au(t,e,n,r,s,a,o)}async function Bu(e,t,n,r,i,a,o,s){try{if(r.method===`POST`)try{wu(r.headers,Array.isArray(t.allowedActionOrigins)?t.allowedActionOrigins:[])}catch(e){return a(e),new Response(`Bad Request`,{status:400})}let e=await n.query(r,{requestContext:i,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(r);return wi(t)||(t=await c(t,o)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0,normalizePath:e=>Ou(e,t.basename,t.future)});return wi(e)||(e=await c(e,o)),e}catch(e){return a(e),new Response(null,{status:500})}async function c(o,c){let l=xu(o,t);if(ku.has(o.statusCode))return new Response(null,{status:o.statusCode,headers:l});o.errors&&(Object.values(o.errors).forEach(e=>{(!Vn(e)||e.error)&&a(e)}),o.errors=cu(o.errors,e));let u={loaderData:o.loaderData,actionData:o.actionData,errors:uu(o.errors,e)},d={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.ssr,isSpaMode:c},f={manifest:t.assets,branches:n._internalRouteBranches,routeModules:iu(t.routes),staticHandlerContext:o,criticalCss:s,serverHandoffString:bu({...d,criticalCss:s}),serverHandoffStream:Fu(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>lu(t,e)},p=t.entry.module.default;try{return await p(r,o.statusCode,l,f,i)}catch(s){a(s);let c=s;if(wi(s))try{let e=await Wu(s);c=new Bn(s.status,s.statusText,e)}catch{}o=Sr(n.dataRoutes,o,c),o.errors&&=cu(o.errors,e);let u={loaderData:o.loaderData,actionData:o.actionData,errors:uu(o.errors,e)};f={...f,staticHandlerContext:o,serverHandoffString:bu(d),serverHandoffStream:Fu(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await p(r,o.statusCode,l,f,i)}catch(t){return a(t),Uu(t,e)}}}}async function Vu(e,t,n,r,i,a,o){try{return s(await n.queryRoute(i,{routeId:r,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return s(await e(i))}catch(e){return c(e)}}:void 0,normalizePath:e=>Ou(e,t.basename,t.future)}))}catch(e){return c(e)}function s(e){return wi(e)?e:typeof e==`string`?new Response(e):Response.json(e)}function c(t){if(wi(t))return t;if(Vn(t))return o(t),Hu(t,e);if(t instanceof Error&&t.message===`Expected a response from queryRoute`){let t=Error(`Expected a Response to be returned from resource route handler`);return o(t),Uu(t,e)}return o(t),Uu(t,e)}}function Hu(e,t){return Response.json(lu(e.error||Error(`Unexpected Server Error`),t),{status:e.status,statusText:e.statusText})}function Uu(e,t){let n=`Unexpected Server Error`;return t!==`production`&&(n+=`
46
+ `}});if(zn(e))return O.createElement(Yc,{title:`Unhandled Thrown Response!`},O.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),n);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return O.createElement(Yc,{title:`Application Error!`,isOutsideRemixApp:t},O.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),O.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function Yc({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=Ac();return i.root?.Layout&&!n?r:O.createElement(`html`,{lang:`en`},O.createElement(`head`,null,O.createElement(`meta`,{charSet:`utf-8`}),O.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),O.createElement(`title`,null,e)),O.createElement(`body`,null,O.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?O.createElement(Wc,null):null)))}var Xc=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Xc&&(window.__reactRouterVersion=`7.15.0`)}catch{}function Zc(e,t){return vr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:kt({window:t?.window}),hydrationData:t?.hydrationData||$c(),routes:e,mapRouteProperties:qa,hydrationRouteProperties:Ja,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Qc(e,t){return vr({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:At({window:t?.window}),hydrationData:t?.hydrationData||$c(),routes:e,mapRouteProperties:qa,hydrationRouteProperties:Ja,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function $c(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:el(e.errors)}),e}function el(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Rn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function tl({basename:e,children:t,useTransitions:n,window:r}){let i=O.useRef();i.current??=kt({window:r,v5Compat:!0});let a=i.current,[o,s]=O.useState({action:a.action,location:a.location}),c=O.useCallback(e=>{n===!1?s(e):O.startTransition(()=>s(e))},[n]);return O.useLayoutEffect(()=>a.listen(c),[a,c]),O.createElement(ao,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function nl({basename:e,children:t,useTransitions:n,window:r}){let i=O.useRef();i.current??=At({window:r,v5Compat:!0});let a=i.current,[o,s]=O.useState({action:a.action,location:a.location}),c=O.useCallback(e=>{n===!1?s(e):O.startTransition(()=>s(e))},[n]);return O.useLayoutEffect(()=>a.listen(c),[a,c]),O.createElement(ao,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function rl({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=O.useState({action:n.action,location:n.location}),o=O.useCallback(e=>{r===!1?a(e):O.startTransition(()=>a(e))},[r]);return O.useLayoutEffect(()=>n.listen(o),[n,o]),O.createElement(ao,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}rl.displayName=`unstable_HistoryRouter`;var il=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,al=O.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=O.useContext(Wi),v=typeof l==`string`&&il.test(l),y=Hn(l,h);l=y.to;let b=$i(l,{relative:r}),x=ta(),S=null;if(o){let e=En(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:On([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=jc(n,p),E=fl(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function ee(t){e&&e(t),t.defaultPrevented||E(t)}let D=!(y.isExternal||i),te=O.createElement(`a`,{...p,...T,href:(D?S:void 0)||y.absoluteURL||b,onClick:D?ee:e,ref:Kc(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?O.createElement(O.Fragment,null,te,O.createElement(Ic,{page:b})):te});al.displayName=`Link`;var ol=O.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=fa(a,{relative:c.relative}),d=ta(),f=O.useContext(Li),{navigator:p,basename:m}=O.useContext(Wi),h=f!=null&&Dl(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=_n(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return O.createElement(al,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});ol.displayName=`NavLink`;var sl=O.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=So,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=O.useContext(Wi),g=gl(),_=_l(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&il.test(s);return O.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?O.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});sl.displayName=`Form`;function cl({getKey:e,storageKey:t,...n}){let r=O.useContext(kc),{basename:i}=O.useContext(Wi),a=ta(),o=Aa();Cl({getKey:e,storageKey:t});let s=O.useMemo(()=>{if(!r||!e)return null;let t=Sl(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return O.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${bs(JSON.stringify(t||bl))}, ${bs(JSON.stringify(s))})`}})}cl.displayName=`ScrollRestoration`;function ll(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ul(e){let t=O.useContext(Ii);return F(t,ll(e)),t}function dl(e){let t=O.useContext(Li);return F(t,ll(e)),t}function fl(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=oa(),d=ta(),f=fa(e,{relative:o});return O.useCallback(p=>{if(ko(p,t)){p.preventDefault();let t=n===void 0?Ft(d)===Ft(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?O.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function pl(e){jt(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=O.useRef(Ao(e)),n=O.useRef(!1),r=ta(),i=O.useMemo(()=>jo(r.search,n.current?null:t.current),[r.search]),a=oa();return[i,O.useCallback((e,t)=>{let r=Ao(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var ml=0,hl=()=>`__${String(++ml)}__`;function gl(){let{router:e}=ul(`useSubmit`),{basename:t}=O.useContext(Wi),n=Da(),r=e.fetch,i=e.navigate;return O.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Io(e,t);a.navigate===!1?await r(a.fetcherKey||hl(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function _l(e,{relative:t}={}){let{basename:n}=O.useContext(Wi),r=O.useContext(Ki);F(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...fa(e||`.`,{relative:t})},o=ta();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:On([n,a.pathname])),Ft(a)}function vl({key:e}={}){let{router:t}=ul(`useFetcher`),n=dl(`useFetcher`),r=O.useContext(Vi),i=O.useContext(Ki),a=i.matches[i.matches.length-1]?.route.id;F(r,`useFetcher must be used inside a FetchersContext`),F(i,`useFetcher must be used inside a RouteContext`),F(a!=null,`useFetcher can only be used on routes that contain a unique "id"`);let o=O.useId(),[s,c]=O.useState(e||o);e&&e!==s&&c(e);let{deleteFetcher:l,getFetcher:u,resetFetcher:d,fetch:f}=t;O.useEffect(()=>(u(s),()=>l(s)),[l,u,s]);let p=O.useCallback(async(e,t)=>{F(a,`No routeId available for fetcher.load()`),await f(s,a,e,t)},[s,a,f]),m=gl(),h=O.useCallback(async(e,t)=>{await m(e,{...t,navigate:!1,fetcherKey:s})},[s,m]),g=O.useCallback(e=>d(s,e),[d,s]),_=O.useMemo(()=>{let e=O.forwardRef((e,t)=>O.createElement(sl,{...e,navigate:!1,fetcherKey:s,ref:t}));return e.displayName=`fetcher.Form`,e},[s]),v=n.fetchers.get(s)||cr,y=r.get(s);return O.useMemo(()=>({Form:_,submit:h,load:p,reset:g,...v,data:y}),[_,h,p,g,v,y])}function yl(){let e=dl(`useFetchers`);return Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e}))}var bl=`react-router-scroll-positions`,xl={};function Sl(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:_n(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Cl({getKey:e,storageKey:t}={}){let{router:n}=ul(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=dl(`useScrollRestoration`),{basename:a}=O.useContext(Wi),o=ta(),s=Aa(),c=Oa();O.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Tl(O.useCallback(()=>{if(c.state===`idle`){let t=Sl(o,s,a,e);xl[t]=window.scrollY}try{sessionStorage.setItem(t||bl,JSON.stringify(xl))}catch(e){jt(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(O.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||bl);e&&(xl=JSON.parse(e))}catch{}},[t]),O.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(xl,()=>window.scrollY,e?(t,n)=>Sl(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),O.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{jt(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function wl(e,t){let{capture:n}=t||{};O.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function Tl(e,t){let{capture:n}=t||{};O.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function El({when:e,message:t}){let n=La(e);O.useEffect(()=>{n.state===`blocked`&&(window.confirm(t)?setTimeout(n.proceed,0):n.reset())},[n,t]),O.useEffect(()=>{n.state===`blocked`&&!e&&n.reset()},[n,e])}function Dl(e,{relative:t}={}){let n=O.useContext(Bi);F(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ul(`useViewTransitionState`),i=fa(e,{relative:t});if(!n.isTransitioning)return!1;let a=_n(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=_n(n.nextLocation.pathname,r)||n.nextLocation.pathname;return mn(i.pathname,o)!=null||mn(i.pathname,a)!=null}function Ol({basename:e,children:t,location:n=`/`}){typeof n==`string`&&(n=It(n));let r={pathname:n.pathname||`/`,search:n.search||``,hash:n.hash||``,state:n.state==null?null:n.state,key:n.key||`default`,mask:void 0},i=jl();return O.createElement(ao,{basename:e,children:t,location:r,navigationType:`POP`,navigator:i,static:!0,useTransitions:!1})}function kl({context:e,router:t,hydrate:n=!0,nonce:r}){F(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:jl(),static:!0,staticContext:e,basename:e.basename||`/`},a=new Map,o=``;if(n!==!1){let t={loaderData:e.loaderData,actionData:e.actionData,errors:Al(e.errors)};o=`window.__staticRouterHydrationData = JSON.parse(${bs(JSON.stringify(JSON.stringify(t)))});`}let{state:s}=i.router;return O.createElement(O.Fragment,null,O.createElement(Ii.Provider,{value:i},O.createElement(Li.Provider,{value:s},O.createElement(Vi.Provider,{value:a},O.createElement(Bi.Provider,{value:{isTransitioning:!1}},O.createElement(ao,{basename:i.basename,location:s.location,navigationType:s.historyAction,navigator:i.navigator,static:i.static,useTransitions:!1},O.createElement(eo,{manifest:t.manifest,routes:t.routes,future:t.future,state:s,isStatic:!0})))))),o?O.createElement(`script`,{suppressHydrationWarning:!0,nonce:r,dangerouslySetInnerHTML:{__html:o}}):null)}function Al(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)zn(r)?n[e]={...r,__type:`RouteErrorResponse`}:r instanceof Error?n[e]={message:r.message,__type:`Error`,...r.name===`Error`?{}:{__subType:r.name}}:n[e]=r;return n}function jl(){return{createHref:Pl,encodeLocation:Fl,push(e){throw Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw Error(`You cannot use navigator.back() on the server because it is a stateless environment.`)},forward(){throw Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`)}}}function Ml(e,t){return yr(e,{...t,mapRouteProperties:qa})}function Nl(e,t,n={}){let r={},i=qt(e,qa,void 0,r),a=t.matches.map(e=>{let t=r[e.route.id]||e.route;return{...e,route:t}}),o=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,v8_passThroughRequests:!1,...n?.future}},get state(){return{historyAction:`POP`,location:t.location,matches:a,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:sr,restoreScrollPosition:null,preventScrollReset:!1,revalidation:`idle`,fetchers:new Map,blockers:new Map}},get routes(){return i},get branches(){return n.branches},get manifest(){return r},get window(){},initialize(){throw o(`initialize`)},subscribe(){throw o(`subscribe`)},enableScrollRestoration(){throw o(`enableScrollRestoration`)},navigate(){throw o(`navigate`)},fetch(){throw o(`fetch`)},revalidate(){throw o(`revalidate`)},createHref:Pl,encodeLocation:Fl,getFetcher(){return cr},deleteFetcher(){throw o(`deleteFetcher`)},resetFetcher(){throw o(`resetFetcher`)},dispose(){throw o(`dispose`)},getBlocker(){return lr},deleteBlocker(){throw o(`deleteBlocker`)},patchRoutes(){throw o(`patchRoutes`)},_internalFetchControllers:new Map,_internalSetRoutes(){throw o(`_internalSetRoutes`)},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw o(`_internalSetStateDoNotUseOrYouWillBreakYourApp`)}}}function Pl(e){return typeof e==`string`?e:Ft(e)}function Fl(e){let t=typeof e==`string`?e:Ft(e);t=t.replace(/ $/,`%20`);let n=Il.test(t)?new URL(t):new URL(t,`http://localhost`);return{pathname:n.pathname,search:n.search,hash:n.hash}}var Il=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ll=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseCookie=c,e.parse=c,e.stringifyCookie=l,e.stringifySetCookie=u,e.serialize=u,e.parseSetCookie=d,e.stringifySetCookie=u,e.serialize=u;var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=/^-?\d+$/,o=Object.prototype.toString,s=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function c(e,t){let n=new s,r=e.length;if(r<2)return n;let i=t?.decode||h,a=0;do{let t=p(e,a,r);if(t===-1)break;let o=f(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=m(e,a,t);n[s]===void 0&&(n[s]=i(m(e,t+1,o))),a=o+1}while(a<r);return n}function l(e,r){let i=r?.encode||encodeURIComponent,a=[];for(let r of Object.keys(e)){let o=e[r];if(o===void 0)continue;if(!t.test(r))throw TypeError(`cookie name is invalid: ${r}`);let s=i(o);if(!n.test(s))throw TypeError(`cookie val is invalid: ${o}`);a.push(`${r}=${s}`)}return a.join(`; `)}function u(e,a,o){let s=typeof e==`object`?e:{...o,name:e,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!t.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!n.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge}if(s.domain){if(!r.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain}if(s.path){if(!i.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path}if(s.expires){if(!g(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString()}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function d(e,t){let n=t?.decode||h,r=e.length,i=f(e,0,r),o=p(e,0,i),s=o===-1?{name:``,value:n(m(e,0,i))}:{name:m(e,0,o),value:n(m(e,o+1,i))},c=i+1;for(;c<r;){let t=f(e,c,r),n=p(e,c,t),i=n===-1?m(e,c,t):m(e,c,n),o=n===-1?void 0:m(e,n+1,t);switch(i.toLowerCase()){case`httponly`:s.httpOnly=!0;break;case`secure`:s.secure=!0;break;case`partitioned`:s.partitioned=!0;break;case`domain`:s.domain=o;break;case`path`:s.path=o;break;case`max-age`:o&&a.test(o)&&(s.maxAge=Number(o));break;case`expires`:if(!o)break;let e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case`priority`:if(!o)break;let t=o.toLowerCase();(t===`low`||t===`medium`||t===`high`)&&(s.priority=t);break;case`samesite`:if(!o)break;let n=o.toLowerCase();(n===`lax`||n===`strict`||n===`none`)&&(s.sameSite=n);break}c=t+1}return s}function f(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function p(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function m(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}function h(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function g(e){return o.call(e)===`[object Date]`}})),Rl=s(((e,t)=>{var n={decodeValues:!0,map:!1,silent:!1};function r(e){return typeof e!=`string`||e in{}}function i(){return Object.create(null)}function a(e){return typeof e==`string`&&!!e.trim()}function o(e,t){var o=e.split(`;`).filter(a),c=s(o.shift()),l=c.name,u=c.value;if(t=t?Object.assign({},n,t):n,r(l))return null;try{u=t.decodeValues?decodeURIComponent(u):u}catch(e){console.error(`set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.`,e)}var d=i();return d.name=l,d.value=u,o.forEach(function(e){var t=e.split(`=`),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var i=t.join(`=`);if(n===`expires`)d.expires=new Date(i);else if(n===`max-age`){var a=parseInt(i,10);Number.isNaN(a)||(d.maxAge=a)}else n===`secure`?d.secure=!0:n===`httponly`?d.httpOnly=!0:n===`samesite`?d.sameSite=i:n===`partitioned`?d.partitioned=!0:n&&(d[n]=i)}}),d}function s(e){var t=``,n=``,r=e.split(`=`);return r.length>1?(t=r.shift(),n=r.join(`=`)):n=e,{name:t,value:n}}function c(e,t){if(t=t?Object.assign({},n,t):n,!e)return t.map?i():[];if(e.headers)if(typeof e.headers.getSetCookie==`function`)e=e.headers.getSetCookie();else if(e.headers[`set-cookie`])e=e.headers[`set-cookie`];else{var s=e.headers[Object.keys(e.headers).find(function(e){return e.toLowerCase()===`set-cookie`})];!s&&e.headers.cookie&&!t.silent&&console.warn(`Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.`),e=s}if(Array.isArray(e)||(e=[e]),t.map){var c=i();return e.filter(a).reduce(function(e,n){var i=o(n,t);return i&&!r(i.name)&&(e[i.name]=i),e},c)}else return e.filter(a).map(function(e){return o(e,t)}).filter(Boolean)}function l(e){if(Array.isArray(e))return e;if(typeof e!=`string`)return[];var t=[],n=0,r,i,a,o,s;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}function l(){return i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`}for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.substring(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.substring(r,e.length))}return t}t.exports=c,t.exports.parse=c,t.exports.parseString=o,t.exports.splitCookiesString=l})),zl=c({RSCDefaultRootErrorBoundary:()=>sd,RSCRouterGlobalErrorBoundary:()=>ad,RSCStaticRouter:()=>hd,ServerMode:()=>au,ServerRouter:()=>Hl,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createMemorySessionStorage:()=>Zu,createRequestHandler:()=>Lu,createRoutesStub:()=>Ul,createSession:()=>Ku,createSessionStorage:()=>Ju,deserializeErrors:()=>vd,getHydrationData:()=>yd,href:()=>Qu,isCookie:()=>Yl,isSession:()=>qu,populateRSCRouteModules:()=>ld,routeRSCServerRequest:()=>md,setDevServerHooks:()=>_u}),Bl=u(Ll(),1),Vl=u(Rl(),1);function Hl({context:e,url:t,nonce:n}){typeof t==`string`&&(t=new URL(t));let{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o}=e,s=ic(r.routes,i,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let n=t.route.id,r=i[n],a=e.manifest.routes[n];r&&a&&pc(n,r.clientLoader,a.hasLoader,e.isSpaMode)&&(r.HydrateFallback||!a.hasLoader)&&delete e.staticHandlerContext.loaderData[n]}let c=Nl(s,e.staticHandlerContext,{branches:e.branches});return O.createElement(O.Fragment,null,O.createElement(kc.Provider,{value:{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,serializeError:e.serializeError,renderMeta:e.renderMeta}},O.createElement(qc,{location:c.state.location},O.createElement(kl,{router:c,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?O.createElement(O.Suspense,null,O.createElement(Ts,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:n})):null)}function Ul(e,t){return function({initialEntries:n,initialIndex:r,hydrationData:i,future:a}){let o=O.useRef(),s=O.useRef();return o.current??=(s.current={future:{v8_passThroughRequests:a?.v8_passThroughRequests===!0,v8_middleware:a?.v8_middleware===!0,unstable_trailingSlashAwareDataRequests:a?.unstable_trailingSlashAwareDataRequests===!0},manifest:{routes:{},entry:{imports:[],module:``},url:``,version:``},routeModules:{},ssr:!1,isSpaMode:!1,routeDiscovery:{mode:`lazy`,manifestPath:`/__manifest`}},Ya(U(qt(e,e=>e),t===void 0?a?.v8_middleware?new Vt:{}:t,s.current.manifest,s.current.routeModules),{initialEntries:n,initialIndex:r,hydrationData:i})),O.createElement(kc.Provider,{value:s.current},O.createElement(Za,{router:o.current}))}}function U(e,t,n,r,i){return e.map(e=>{if(!e.id)throw Error(`Expected a route.id in react-router processRoutes() function`);let a={id:e.id,path:e.path,index:e.index,Component:e.Component?ho(e.Component):void 0,HydrateFallback:e.HydrateFallback?vo(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?xo(e.ErrorBoundary):void 0,action:e.action?n=>e.action({...n,context:t}):void 0,loader:e.loader?n=>e.loader({...n,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...n)=>e({...n[0],context:t},n[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},o={id:e.id,path:e.path,index:e.index,parentId:i,hasAction:e.action!=null,hasLoader:e.loader!=null,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasErrorBoundary:e.ErrorBoundary!=null,module:`build/stub-path-to-module.js`,clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0};return n.routes[a.id]=o,r[e.id]={default:a.Component||ro,ErrorBoundary:a.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(a.children=U(e.children,t,n,r,a.id)),a})}var W=new TextEncoder,Wl=async(e,t)=>{let n=W.encode(e),r=await Kl(t,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n),a=btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=+$/,``);return e+`.`+a},Gl=async(e,t)=>{let n=e.lastIndexOf(`.`),r=e.slice(0,n),i=e.slice(n+1),a=W.encode(r),o=await Kl(t,[`verify`]);try{let e=ql(atob(i));return await crypto.subtle.verify(`HMAC`,o,e,a)?r:!1}catch{return!1}},Kl=async(e,t)=>crypto.subtle.importKey(`raw`,W.encode(e),{name:`HMAC`,hash:`SHA-256`},!1,t);function ql(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}var Jl=(e,t={})=>{let{secrets:n=[],...r}={path:`/`,sameSite:`lax`,...t};return ru(e,r.expires),{get name(){return e},get isSigned(){return n.length>0},get expires(){return r.maxAge===void 0?r.expires:new Date(Date.now()+r.maxAge*1e3)},async parse(t,i){if(!t)return null;let a=(0,Bl.parse)(t,{...r,...i});if(e in a){let t=a[e];return typeof t==`string`&&t!==``?await Zl(t,n):``}else return null},async serialize(t,i){return(0,Bl.serialize)(e,t===``?``:await Xl(t,n),{...r,...i})}}},Yl=e=>e!=null&&typeof e.name==`string`&&typeof e.isSigned==`boolean`&&typeof e.parse==`function`&&typeof e.serialize==`function`;async function Xl(e,t){let n=Ql(e);return t.length>0&&(n=await Wl(n,t[0])),n}async function Zl(e,t){if(t.length>0){for(let n of t){let t=await Gl(e,n);if(t!==!1)return $l(t)}return null}return $l(e)}function Ql(e){return btoa(nu(encodeURIComponent(JSON.stringify(e))))}function $l(e){try{return JSON.parse(decodeURIComponent(eu(atob(e))))}catch{return{}}}function eu(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;)i=t.charAt(r++),/[\w*+\-./@]/.exec(i)?n+=i:(a=i.charCodeAt(0),a<256?n+=`%`+tu(a,2):n+=`%u`+tu(a,4).toUpperCase());return n}function tu(e,t){let n=e.toString(16);for(;n.length<t;)n=`0`+n;return n}function nu(e){let t=e.toString(),n=``,r=0,i,a;for(;r<t.length;){if(i=t.charAt(r++),i===`%`){if(t.charAt(r)===`u`){if(a=t.slice(r+1,r+5),/^[\da-f]{4}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=5;continue}}else if(a=t.slice(r,r+2),/^[\da-f]{2}$/i.exec(a)){n+=String.fromCharCode(parseInt(a,16)),r+=2;continue}}n+=i}return n}function ru(e,t){Ua(!t,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}function iu(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r&&(t[n]=r.module),t},{})}var au=(e=>(e.Development=`development`,e.Production=`production`,e.Test=`test`,e))(au||{});function ou(e){return e===`development`||e===`production`||e===`test`}function su(e,t){if(e instanceof Error&&t!==`development`){let e=Error(`Unexpected Server Error`);return e.stack=void 0,e}return e}function cu(e,t){return Object.entries(e).reduce((e,[n,r])=>Object.assign(e,{[n]:su(r,t)}),{})}function lu(e,t){let n=su(e,t);return{message:n.message,stack:n.stack}}function uu(e,t){if(!e)return null;let n=Object.entries(e),r={};for(let[e,i]of n)if(zn(i))r[e]={...i,__type:`RouteErrorResponse`};else if(i instanceof Error){let n=su(i,t);r[e]={message:n.message,stack:n.stack,__type:`Error`,...n.name===`Error`?{}:{__subType:n.name}}}else r[e]=i;return r}function du(e,t){if(e===!1||e==null)throw console.error(`The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose`),Error(t)}function fu(e,t,n,r,i){let a=Xt(t,r,i??`/`,!1,n);return a?a.map(t=>{let n=e[t.route.id];return du(n,`Route with id "${t.route.id}" not found in manifest.`),{params:t.params,pathname:t.pathname,route:n}}):null}async function pu(e,t,n){let r=await e({request:n.v8_passThroughRequests?t.request:hu(mu(t.request)),url:t.url,params:t.params,context:t.context,pattern:t.pattern});if(xi(r)&&r.init&&r.init.status&&Ci(r.init.status))throw new Response(null,r.init);return r}function mu(e){let t=new URL(e.url),n=t.searchParams.getAll(`index`);t.searchParams.delete(`index`);let r=[];for(let e of n)e&&r.push(e);for(let e of r)t.searchParams.append(`index`,e);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex=`half`),new Request(t.href,i)}function hu(e){let t=new URL(e.url);t.searchParams.delete(`_routes`);let n={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return n.body&&(n.duplex=`half`),new Request(t.href,n)}var gu=`__reactRouterDevServerHooks`;function _u(e){globalThis[gu]=e}function G(){return globalThis[gu]}function vu(e,t){if(typeof process<`u`)try{if({}.hasOwnProperty(`IS_RR_BUILD_REQUEST`)&&{}.IS_RR_BUILD_REQUEST===`yes`)return e.headers.get(t)}catch{}return null}function yu(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function K(e,t,n=``,r=yu(e)){return(r[n]||[]).map(n=>{let i={hasErrorBoundary:n.id===`root`||n.module.ErrorBoundary!=null,id:n.id,path:n.path,middleware:n.module.middleware,loader:n.module.loader?async e=>{let r=vu(e.request,`X-React-Router-Prerender-Data`);if(r!=null){let e=r&&decodeURI(r);du(e,`Missing prerendered data for route`);let t=new TextEncoder().encode(e),i=(await Is(new ReadableStream({start(e){e.enqueue(t),e.close()}}),global)).value;if(i&&Ss in i){let e=i[Ss],t={status:e.status};throw e.reload?In(e.redirect,t):e.replace?Ln(e.redirect,t):Fn(e.redirect,t)}else{du(i&&n.id in i,`Unable to decode prerendered data`);let e=i[n.id];return du(`data`in e,`Unable to process prerendered data`),e.data}}return await pu(n.module.loader,e,t)}:void 0,action:n.module.action?e=>pu(n.module.action,e,t):void 0,handle:n.module.handle};return n.index?{index:!0,...i}:{caseSensitive:n.caseSensitive,children:K(e,t,n.id,r),...i}})}function bu(e){return bs(JSON.stringify(e))}function xu(e,t){return Su(e,e=>{let n=t.routes[e.route.id];return du(n,`Route with id "${e.route.id}" not found in build`),n.module.headers})}function Su(e,t,n){let r=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,i=r>=0?e.matches.slice(0,r+1):e.matches,a;if(r>=0){let{actionHeaders:t,actionData:n,loaderHeaders:i,loaderData:o}=e;e.matches.slice(r).some(e=>{let r=e.route.id;return t[r]&&(!n||!n.hasOwnProperty(r))?a=t[r]:i[r]&&!o.hasOwnProperty(r)&&(a=i[r]),a!=null})}let o=new Headers(n);return i.reduce((n,r,o)=>{let{id:s}=r.route,c=e.loaderHeaders[s]||new Headers,l=e.actionHeaders[s]||new Headers,u=a!=null&&o===i.length-1,d=u&&a!==c&&a!==l,f=t(r);if(f==null){let e=new Headers(n);return d&&Cu(a,e),Cu(l,e),Cu(c,e),e}let p=new Headers(typeof f==`function`?f({loaderHeaders:c,parentHeaders:n,actionHeaders:l,errorHeaders:u?a:void 0}):f);return d&&Cu(a,p),Cu(l,p),Cu(c,p),Cu(n,p),p},new Headers(o))}function Cu(e,t){let n=e.get(`Set-Cookie`);if(n){let e=(0,Vl.splitCookiesString)(n),r=new Set(t.getSetCookie());e.forEach(e=>{r.has(e)||t.append(`Set-Cookie`,e)})}}function wu(e,t){let n=e.get(`origin`),r=null;try{r=typeof n==`string`&&n!==`null`?new URL(n).host:n}catch{throw Error("`origin` header is not a valid URL. Aborting the action.")}let i=Du(e);if(r&&(!i||r!==i.value)&&!Eu(r,t))throw Error(i?`${i.type} header does not match \`origin\` header from a forwarded action request. Aborting the action.`:"`x-forwarded-host` or `host` headers are not provided. One of these is needed to compare the `origin` header from a forwarded action request. Aborting the action.")}function Tu(e,t){let n=e.split(`.`),r=t.split(`.`);if(r.length<1||n.length<r.length)return!1;for(;r.length;){let e=r.pop(),t=n.pop();switch(e){case``:return!1;case`*`:if(t)continue;return!1;case`**`:return r.length>0?!1:t!==void 0;case void 0:default:if(t!==e)return!1}}return n.length===0}function Eu(e,t=[]){return t.some(t=>t&&(t===e||Tu(e,t)))}function Du(e){let t=e.get(`x-forwarded-host`)?.split(`,`)[0]?.trim(),n=e.get(`host`);return t?{type:`x-forwarded-host`,value:t}:n?{type:`host`,value:n}:void 0}function Ou(e,t,n){t||=`/`;let r=new URL(e.url),i=r.pathname;n?.unstable_trailingSlashAwareDataRequests?i=i.endsWith(`/_.data`)?i.replace(/_\.data$/,``):i.replace(/\.data$/,``):(_n(i,t)===`/_root.data`?i=t:i.endsWith(`.data`)&&(i=i.replace(/\.data$/,``)),_n(i,t)!==`/`&&i.endsWith(`/`)&&(i=i.slice(0,-1)));let a=new URLSearchParams(r.search);a.delete(`_routes`);let o=a.toString();return o&&=`?${o}`,{pathname:i,search:o,hash:``}}var ku=new Set([...ws,304]);async function Au(e,t,n,r,i,a,o){try{try{wu(r.headers,Array.isArray(e.allowedActionOrigins)?e.allowedActionOrigins:[])}catch{return c(Error(`Bad Request`),400)}let t=e.future.v8_passThroughRequests?r:new Request(i,{method:r.method,body:r.body,headers:r.headers,signal:r.signal,...r.body?{duplex:`half`}:void 0});return s(await n.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return s(await e(t))}catch(e){return c(e)}}:void 0,normalizePath:t=>Ou(t,e.basename,e.future)}))}catch(e){return c(e)}function s(e){return Si(e)?e:l(e)}function c(n,i=500){return o(n),Mu(r,e,t,{result:{error:n},headers:new Headers,status:i})}function l(n){let i=xu(n,e);if(Ci(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!zn(e)||e.error)&&o(e)}),cu(n.errors,t));let a;return a=n.errors?{error:Object.values(n.errors)[0]}:{data:Object.values(n.actionData||{})[0]},Mu(r,e,t,{result:a,headers:i,status:n.statusCode})}}async function ju(e,t,n,r,i,a,o){let s=new URL(r.url).searchParams.get(`_routes`),c=s?new Set(s.split(`,`)):null;try{let t=e.future.v8_passThroughRequests?r:new Request(i,{headers:r.headers,signal:r.signal});return l(await n.query(t,{requestContext:a,filterMatchesToLoad:e=>!c||c.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return l(await e(t))}catch(e){return u(e)}}:void 0,normalizePath:t=>Ou(t,e.basename,e.future)}))}catch(e){return u(e)}function l(e){return Si(e)?e:d(e)}function u(n){return o(n),Mu(r,e,t,{result:{error:n},headers:new Headers,status:500})}function d(n){let i=xu(n,e);if(Ci(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!zn(e)||e.error)&&o(e)}),cu(n.errors,t));let a={},s=new Set(n.matches.filter(e=>c?c.has(e.route.id):e.route.loader!=null).map(e=>e.route.id));if(n.errors)for(let[e,t]of Object.entries(n.errors))a[e]={error:t};for(let[e,t]of Object.entries(n.loaderData))!(e in a)&&s.has(e)&&(a[e]={data:t});return Mu(r,e,t,{result:a,headers:i,status:n.statusCode})}}function Mu(e,t,n,{result:r,headers:i,status:a}){let o=new Headers(i);return o.set(`X-Remix-Response`,`yes`),ku.has(a)?new Response(null,{status:a,headers:o}):(o.set(`Content-Type`,`text/x-script`),o.delete(`Content-Length`),new Response(Fu(r,e.signal,t.entry.module.streamTimeout,n),{status:a||200,headers:o}))}function Nu(e,t,n,r){let i=Pu(e.status,e.headers,n.basename),a=new Headers(e.headers);return a.delete(`Location`),a.set(`Content-Type`,`text/x-script`),Mu(t,n,r,{result:t.method===`GET`?{[Ss]:i}:i,headers:a,status:202})}function Pu(e,t,n){let r=t.get(`Location`);return n&&(r=_n(r,n)||r),{redirect:r,status:e,revalidate:t.has(`X-Remix-Revalidate`)||t.has(`Set-Cookie`),reload:t.has(`X-Remix-Reload-Document`),replace:t.has(`X-Remix-Replace`)}}function Fu(e,t,n,r){let i=new AbortController,a=setTimeout(()=>{i.abort(Error(`Server Timeout`)),s()},typeof n==`number`?n:4950),o=()=>{i.abort(t.reason),s()};t.addEventListener(`abort`,o);let s=()=>{clearTimeout(a),t.removeEventListener(`abort`,o)};return gs(e,{signal:i.signal,onComplete:s,plugins:[e=>{if(e instanceof Error){let{name:t,message:n,stack:i}=r===`production`?su(e,r):e;return[`SanitizedError`,t,n,i]}if(e instanceof Rn){let{data:t,status:n,statusText:r}=e;return[`ErrorResponse`,t,n,r]}if(e&&typeof e==`object`&&Ss in e)return[`SingleFetchRedirect`,e[Ss]]}],postPlugins:[e=>{if(e&&typeof e==`object`)return[`SingleFetchClassInstance`,Object.fromEntries(Object.entries(e))]},()=>[`SingleFetchFallback`]]})}function Iu(e,t){let n=K(e.routes,e.future),r=ou(t)?t:`production`,i=yr(n,{basename:e.basename,instrumentations:e.entry.module.instrumentations,future:e.future}),a=e.entry.module.handleError||((e,{request:t})=>{r!==`test`&&!t.signal.aborted&&console.error(zn(e)&&e.error?e.error:e)}),o=async(n,o)=>{let s={},c,l=e=>{t===`development`&&G()?.processRequestError?.(e),a(e,{context:c,params:s,request:n})};if(e.future.v8_middleware){if(o&&!(o instanceof Vt)){let e=Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return l(e),Uu(e,r)}c=o||new Vt}else c=o||{};let u=new URL(n.url),d=Ou(n,e.basename,e.future).pathname,f=vu(n,`X-React-Router-SPA-Mode`)===`yes`;if(!e.ssr){let t=decodeURI(d);if(e.basename&&e.basename!==`/`){let r=_n(t,e.basename);if(r==null)return a(new Rn(404,`Not Found`,`Refusing to prerender the \`${t}\` path because it does not start with the basename \`${e.basename}\``),{context:c,params:s,request:n}),new Response(`Not Found`,{status:404,statusText:`Not Found`});t=r}if(e.prerender.length===0)f=!0;else if(!e.prerender.includes(t)&&!e.prerender.includes(t+`/`)){if(u.pathname.endsWith(`.data`))return a(new Rn(404,`Not Found`,`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:c,params:s,request:n}),new Response(`Not Found`,{status:404,statusText:`Not Found`});f=!0}}let p=Sc(e.routeDiscovery.manifestPath,e.basename);if(u.pathname===p)try{return await Ru(e,i.dataRoutes,i._internalRouteBranches,u)}catch(e){return l(e),new Response(`Unknown Server Error`,{status:500})}let m=fu(e.routes,i.dataRoutes,i._internalRouteBranches,d,e.basename);m&&m.length>0&&Object.assign(s,m[0].params);let h;if(u.pathname.endsWith(`.data`))h=await zu(r,e,i,n,d,c,l),wi(h)&&(h=Nu(h,n,e,r)),e.entry.module.handleDataRequest&&(h=await e.entry.module.handleDataRequest(h,{context:c,params:m?m[0].params:{},request:n}),wi(h)&&(h=Nu(h,n,e,r)));else if(!f&&m&&m[m.length-1].route.module.default==null&&m[m.length-1].route.module.ErrorBoundary==null)h=await Vu(r,e,i,m.slice(-1)[0].route.id,n,c,l);else{let{pathname:a}=u,o;e.unstable_getCriticalCss?o=await e.unstable_getCriticalCss({pathname:a}):t===`development`&&G()?.getCriticalCss&&(o=await G()?.getCriticalCss?.(a)),h=await Bu(r,e,i,n,c,l,f,o)}return n.method===`HEAD`?new Response(null,{headers:h.headers,status:h.status,statusText:h.statusText}):h};return e.entry.module.instrumentations&&(o=Kn(o,e.entry.module.instrumentations.map(e=>e.handler).filter(Boolean))),{serverMode:r,staticHandler:i,errorHandler:a,requestHandler:o}}var Lu=(e,t)=>{let n,r,i,a,o;return async function(s,c){if(n=typeof e==`function`?await e():e,typeof e==`function`){let e=Iu(n,t);r=e.serverMode,i=e.staticHandler,a=e.errorHandler,o=e.requestHandler}else if(!r||!i||!a||!o){let e=Iu(n,t);r=e.serverMode,i=e.staticHandler,a=e.errorHandler,o=e.requestHandler}return o(s,c)}};async function Ru(e,t,n,r){if(e.assets.version!==r.searchParams.get(`version`))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":`true`}});if(r.toString().length>7680)return new Response(null,{statusText:`Bad Request`,status:400});let i={};if(r.searchParams.has(`paths`)){let a=new Set;(r.searchParams.get(`paths`)||``).split(`,`).filter(Boolean).forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);let t=e.split(`/`).slice(1);t.forEach((e,n)=>{let r=t.slice(0,n+1).join(`/`);a.add(`/${r}`)})});for(let r of a){let a=fu(e.routes,t,n,r,e.basename);if(a)for(let t of a){let n=t.route.id,r=e.assets.routes[n];r&&(i[n]=r)}}return Response.json(i,{headers:{"Cache-Control":`public, max-age=31536000, immutable`}})}return new Response(`Invalid Request`,{status:400})}async function zu(e,t,n,r,i,a,o){let s=new URL(r.url);return s.pathname=i,r.method===`GET`?await ju(t,e,n,r,s,a,o):await Au(t,e,n,r,s,a,o)}async function Bu(e,t,n,r,i,a,o,s){try{if(r.method===`POST`)try{wu(r.headers,Array.isArray(t.allowedActionOrigins)?t.allowedActionOrigins:[])}catch(e){return a(e),new Response(`Bad Request`,{status:400})}let e=await n.query(r,{requestContext:i,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(r);return Si(t)||(t=await c(t,o)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0,normalizePath:e=>Ou(e,t.basename,t.future)});return Si(e)||(e=await c(e,o)),e}catch(e){return a(e),new Response(null,{status:500})}async function c(o,c){let l=xu(o,t);if(ku.has(o.statusCode))return new Response(null,{status:o.statusCode,headers:l});o.errors&&(Object.values(o.errors).forEach(e=>{(!zn(e)||e.error)&&a(e)}),o.errors=cu(o.errors,e));let u={loaderData:o.loaderData,actionData:o.actionData,errors:uu(o.errors,e)},d={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.ssr,isSpaMode:c},f={manifest:t.assets,branches:n._internalRouteBranches,routeModules:iu(t.routes),staticHandlerContext:o,criticalCss:s,serverHandoffString:bu({...d,criticalCss:s}),serverHandoffStream:Fu(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>lu(t,e)},p=t.entry.module.default;try{return await p(r,o.statusCode,l,f,i)}catch(s){a(s);let c=s;if(Si(s))try{let e=await Wu(s);c=new Rn(s.status,s.statusText,e)}catch{}o=br(n.dataRoutes,o,c),o.errors&&=cu(o.errors,e);let u={loaderData:o.loaderData,actionData:o.actionData,errors:uu(o.errors,e)};f={...f,staticHandlerContext:o,serverHandoffString:bu(d),serverHandoffStream:Fu(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await p(r,o.statusCode,l,f,i)}catch(t){return a(t),Uu(t,e)}}}}async function Vu(e,t,n,r,i,a,o){try{return s(await n.queryRoute(i,{routeId:r,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return s(await e(i))}catch(e){return c(e)}}:void 0,normalizePath:e=>Ou(e,t.basename,t.future)}))}catch(e){return c(e)}function s(e){return Si(e)?e:typeof e==`string`?new Response(e):Response.json(e)}function c(t){if(Si(t))return t;if(zn(t))return o(t),Hu(t,e);if(t instanceof Error&&t.message===`Expected a response from queryRoute`){let t=Error(`Expected a Response to be returned from resource route handler`);return o(t),Uu(t,e)}return o(t),Uu(t,e)}}function Hu(e,t){return Response.json(lu(e.error||Error(`Unexpected Server Error`),t),{status:e.status,statusText:e.statusText})}function Uu(e,t){let n=`Unexpected Server Error`;return t!==`production`&&(n+=`
47
47
 
48
- ${String(e)}`),new Response(n,{status:500,headers:{"Content-Type":`text/plain`}})}function Wu(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}function Gu(e){return`__flash_${e}__`}var Ku=(e={},t=``)=>{let n=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(n)},has(e){return n.has(e)||n.has(Gu(e))},get(e){if(n.has(e))return n.get(e);let t=Gu(e);if(n.has(t)){let e=n.get(t);return n.delete(t),e}},set(e,t){n.set(e,t)},flash(e,t){n.set(Gu(e),t)},unset(e){n.delete(e)}}},qu=e=>e!=null&&typeof e.id==`string`&&e.data!==void 0&&typeof e.has==`function`&&typeof e.get==`function`&&typeof e.set==`function`&&typeof e.flash==`function`&&typeof e.unset==`function`;function Ju({cookie:e,createData:t,readData:n,updateData:r,deleteData:i}){let a=Yl(e)?e:Jl(e?.name||`__session`,e);return Yu(a),{async getSession(e,t){let r=e&&await a.parse(e,t);return Ku(r&&await n(r)||{},r||``)},async commitSession(e,n){let{id:i,data:o}=e,s=n?.maxAge==null?n?.expires==null?a.expires:n.expires:new Date(Date.now()+n.maxAge*1e3);return i?await r(i,o,s):i=await t(o,s),a.serialize(i,n)},async destroySession(e,t){return await i(e.id),a.serialize(``,{...t,maxAge:void 0,expires:new Date(0)})}}}function Yu(e){Wa(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`)}function Xu({cookie:e}={}){let t=Yl(e)?e:Jl(e?.name||`__session`,e);return Yu(t),{async getSession(e,n){return Ku(e&&await t.parse(e,n)||{})},async commitSession(e,n){let r=await t.serialize(e.data,n);if(r.length>4096)throw Error(`Cookie length will exceed browser maximum. Length: `+r.length);return r},async destroySession(e,n){return t.serialize(``,{...n,maxAge:void 0,expires:new Date(0)})}}}function Zu({cookie:e}={}){let t=new Map;return Ju({cookie:e,async createData(e,n){let r=Math.random().toString(36).substring(2,10);return t.set(r,{data:e,expires:n}),r},async readData(e){if(t.has(e)){let{data:n,expires:r}=t.get(e);if(!r||r>new Date)return n;r&&t.delete(e)}return null},async updateData(e,n,r){t.set(e,{data:n,expires:r})},async deleteData(e){t.delete(e)}})}function Qu(e,...t){let n=t[0],r=$u(e).replace(/\/:([\w-]+)(\?)?/g,(t,r,i)=>{let a=i===void 0,o=n?.[r];if(a&&o===void 0)throw Error(`Path '${e}' requires param '${r}' but it was not provided`);return o===void 0?``:`/`+o});if(e.endsWith(`*`)){let e=n?.[`*`];e!==void 0&&(r+=`/`+e)}return r||`/`}function $u(e){let t=e.length-1,n=e[t];if(n!==`*`&&n!==`/`)return e;for(t--;t>=0&&e[t]===`/`;t--);return e.slice(0,t+1)}var ed=new TextEncoder,td=`</body></html>`;function q(e){let t=new TextDecoder,n,r=new Promise(e=>n=e),i=!1,a=[],o=null;function s(e){for(let n of a){let r=t.decode(n,{stream:!0});r.endsWith(td)&&(r=r.slice(0,-td.length)),e.enqueue(ed.encode(r))}a.length=0,o=null}return new TransformStream({transform(t,r){a.push(t),!o&&(o=setTimeout(async()=>{s(r),i||(i=!0,nd(e,r).catch(e=>r.error(e)).then(n))},0))},async flush(e){await r,o&&(clearTimeout(o),s(e)),e.enqueue(ed.encode(`</body></html>`))}})}async function nd(e,t){let n=new TextDecoder(`utf-8`,{fatal:!0}),r=e.getReader();try{let e;for(;(e=await r.read())&&!e.done;){let r=e.value;try{rd(JSON.stringify(n.decode(r,{stream:!0})),t)}catch{rd(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...r)))}), m => m.codePointAt(0))`,t)}}}finally{r.releaseLock()}let i=n.decode();i.length&&rd(JSON.stringify(i),t)}function rd(e,t){t.enqueue(ed.encode(`<script>${id(`(self.__FLIGHT_DATA||=[]).push(${e})`)}<\/script>`))}function id(e){return e.replace(/<!--/g,`<\\!--`).replace(/<\/(script)/gi,`</\\$1`)}var ad=class extends E.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:t.error,location:t.location}:{error:null,location:e.location}}render(){return this.state.error?E.createElement(od,{error:this.state.error,renderAppShell:!0}):this.props.children}};function J({renderAppShell:e,title:t,children:n}){return e?E.createElement(`html`,{lang:`en`},E.createElement(`head`,null,E.createElement(`meta`,{charSet:`utf-8`}),E.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),E.createElement(`title`,null,t)),E.createElement(`body`,null,E.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},n))):n}function od({error:e,renderAppShell:t}){console.error(e);let n=E.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
48
+ ${String(e)}`),new Response(n,{status:500,headers:{"Content-Type":`text/plain`}})}function Wu(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}function Gu(e){return`__flash_${e}__`}var Ku=(e={},t=``)=>{let n=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(n)},has(e){return n.has(e)||n.has(Gu(e))},get(e){if(n.has(e))return n.get(e);let t=Gu(e);if(n.has(t)){let e=n.get(t);return n.delete(t),e}},set(e,t){n.set(e,t)},flash(e,t){n.set(Gu(e),t)},unset(e){n.delete(e)}}},qu=e=>e!=null&&typeof e.id==`string`&&e.data!==void 0&&typeof e.has==`function`&&typeof e.get==`function`&&typeof e.set==`function`&&typeof e.flash==`function`&&typeof e.unset==`function`;function Ju({cookie:e,createData:t,readData:n,updateData:r,deleteData:i}){let a=Yl(e)?e:Jl(e?.name||`__session`,e);return Yu(a),{async getSession(e,t){let r=e&&await a.parse(e,t);return Ku(r&&await n(r)||{},r||``)},async commitSession(e,n){let{id:i,data:o}=e,s=n?.maxAge==null?n?.expires==null?a.expires:n.expires:new Date(Date.now()+n.maxAge*1e3);return i?await r(i,o,s):i=await t(o,s),a.serialize(i,n)},async destroySession(e,t){return await i(e.id),a.serialize(``,{...t,maxAge:void 0,expires:new Date(0)})}}}function Yu(e){Ua(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`)}function Xu({cookie:e}={}){let t=Yl(e)?e:Jl(e?.name||`__session`,e);return Yu(t),{async getSession(e,n){return Ku(e&&await t.parse(e,n)||{})},async commitSession(e,n){let r=await t.serialize(e.data,n);if(r.length>4096)throw Error(`Cookie length will exceed browser maximum. Length: `+r.length);return r},async destroySession(e,n){return t.serialize(``,{...n,maxAge:void 0,expires:new Date(0)})}}}function Zu({cookie:e}={}){let t=new Map;return Ju({cookie:e,async createData(e,n){let r=Math.random().toString(36).substring(2,10);return t.set(r,{data:e,expires:n}),r},async readData(e){if(t.has(e)){let{data:n,expires:r}=t.get(e);if(!r||r>new Date)return n;r&&t.delete(e)}return null},async updateData(e,n,r){t.set(e,{data:n,expires:r})},async deleteData(e){t.delete(e)}})}function Qu(e,...t){let n=t[0],r=$u(e).replace(/\/:([\w-]+)(\?)?/g,(t,r,i)=>{let a=i===void 0,o=n?.[r];if(a&&o===void 0)throw Error(`Path '${e}' requires param '${r}' but it was not provided`);return o===void 0?``:`/`+o});if(e.endsWith(`*`)){let e=n?.[`*`];e!==void 0&&(r+=`/`+e)}return r||`/`}function $u(e){let t=e.length-1,n=e[t];if(n!==`*`&&n!==`/`)return e;for(t--;t>=0&&e[t]===`/`;t--);return e.slice(0,t+1)}var ed=new TextEncoder,td=`</body></html>`;function q(e){let t=new TextDecoder,n,r=new Promise(e=>n=e),i=!1,a=[],o=null;function s(e){for(let n of a){let r=t.decode(n,{stream:!0});r.endsWith(td)&&(r=r.slice(0,-td.length)),e.enqueue(ed.encode(r))}a.length=0,o=null}return new TransformStream({transform(t,r){a.push(t),!o&&(o=setTimeout(async()=>{s(r),i||(i=!0,nd(e,r).catch(e=>r.error(e)).then(n))},0))},async flush(e){await r,o&&(clearTimeout(o),s(e)),e.enqueue(ed.encode(`</body></html>`))}})}async function nd(e,t){let n=new TextDecoder(`utf-8`,{fatal:!0}),r=e.getReader();try{let e;for(;(e=await r.read())&&!e.done;){let r=e.value;try{rd(JSON.stringify(n.decode(r,{stream:!0})),t)}catch{rd(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...r)))}), m => m.codePointAt(0))`,t)}}}finally{r.releaseLock()}let i=n.decode();i.length&&rd(JSON.stringify(i),t)}function rd(e,t){t.enqueue(ed.encode(`<script>${id(`(self.__FLIGHT_DATA||=[]).push(${e})`)}<\/script>`))}function id(e){return e.replace(/<!--/g,`<\\!--`).replace(/<\/(script)/gi,`</\\$1`)}var ad=class extends O.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:t.error,location:t.location}:{error:null,location:e.location}}render(){return this.state.error?O.createElement(od,{error:this.state.error,renderAppShell:!0}):this.props.children}};function J({renderAppShell:e,title:t,children:n}){return e?O.createElement(`html`,{lang:`en`},O.createElement(`head`,null,O.createElement(`meta`,{charSet:`utf-8`}),O.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),O.createElement(`title`,null,t)),O.createElement(`body`,null,O.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},n))):n}function od({error:e,renderAppShell:t}){console.error(e);let n=O.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
49
49
  console.log(
50
50
  "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
51
51
  );
52
- `}});if(Vn(e))return E.createElement(J,{renderAppShell:t,title:`Unhandled Thrown Response!`},E.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),n);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return E.createElement(J,{renderAppShell:t,title:`Application Error!`},E.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),E.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function sd({hasRootLayout:e}){let t=Fa();if(e===void 0)throw Error(`Missing 'hasRootLayout' prop`);return E.createElement(od,{renderAppShell:!e,error:t})}function cd(e){let t={};for(let n of e.matches)ld(t,n);return t}function ld(e,t){t=Array.isArray(t)?t:[t];for(let n of t)e[n.id]={links:n.links,meta:n.meta,default:ud}}var ud=()=>null,dd=`/__manifest`,fd=E.use;function pd(e){if(fd)return fd(e);throw Error(`React Router v7 requires React 19+ for RSC features.`)}async function md({request:e,serverResponse:t,createFromReadableStream:n,renderHTML:r,hydrate:i=!0}){let a=new URL(e.url);if(gd(a)||_d(a)||e.headers.has(`rsc-action-id`)||t.headers.get(`React-Router-Resource`)===`true`)return t;if(!t.body)throw Error(`Missing body in server response`);let o=t.clone(),s=null;i&&(s=t.clone());let c=t.body,l,u=[],d=()=>l?new ReadableStream({start(e){l.forEach(t=>e.enqueue(t)),u.push(e)}}):(l=[],c.pipeThrough(new TransformStream({transform(e,t){l.push(e),t.enqueue(e),u.forEach(t=>t.enqueue(e))},flush(){u.forEach(e=>e.close()),u=[]}}))),f=null,p=()=>{let e=Promise.resolve(n(d()));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return e.then(e=>e.type===`render`?e.formState:void 0)}}})},m,h;try{if(!o.body)throw Error(`Failed to clone server response`);let e=await n(o.body);if(t.status===202&&e.type===`redirect`){let n=new Headers(t.headers);return n.delete(`Content-Encoding`),n.delete(`Content-Length`),n.delete(`Content-Type`),n.delete(`X-Remix-Response`),n.set(`Location`,e.location),new Response(s?.body||``,{headers:n,status:e.status,statusText:t.statusText})}let a=new Headers,c=t.status,l=t.statusText,u=await r(p,{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(m=$i(e.digest),m)return e.digest;let t=ea(e.digest);if(t)return h=t,c=t.status,l=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)a.append(t,n)}}),d=new Headers(a);for(let[e,n]of t.headers)d.append(e,n);if(d.set(`Content-Type`,`text/html; charset=utf-8`),m)return d.set(`Location`,m.location),new Response(u,{status:m.status,headers:d});let f=new TransformStream({flush(e){m&&e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${xs(m.location)}"/>`))}});if(!i)return new Response(u.pipeThrough(f),{status:c,statusText:l,headers:d});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(q(s.body)).pipeThrough(f);return new Response(g,{status:c,statusText:l,headers:d})}catch(e){if(e instanceof Response)return e;if(m)return new Response(`Redirect: ${m.location}`,{status:m.status,headers:{Location:m.location}});try{e=h??e;let[a,o]=Vn(e)?[e.status,e.statusText]:[500,``],c,l=new Headers,u=await r(()=>{let t=Promise.resolve(n(d())).then(t=>Object.assign(t,{status:a,errors:f?{[f]:e}:{}}));return Object.defineProperties(t,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return t.then(e=>e.type===`render`?e.formState:void 0)}}})},{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(c=$i(e.digest),c)return e.digest;let t=ea(e.digest);if(t)return a=t.status,o=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)l.append(t,n)}}),p=new Headers(l);for(let[e,n]of t.headers)p.append(e,n);if(p.set(`Content-Type`,`text/html; charset=utf-8`),c)return p.set(`Location`,c.location),new Response(u,{status:c.status,headers:p});let m=new TransformStream({flush(e){c&&e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${xs(c.location)}"/>`))}});if(!i)return new Response(u.pipeThrough(m),{status:a,statusText:o,headers:p});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(q(s.body)).pipeThrough(m);return new Response(g,{status:a,statusText:o,headers:p})}catch{}throw e}}function hd({getPayload:e}){let t=e(),n=pd(t);if(n.type===`redirect`)throw new Response(null,{status:n.status,headers:{Location:n.location}});if(n.type!==`render`)return null;let r={...n.loaderData};for(let e of n.matches)mc(e.id,e.clientLoader,e.hasLoader,!1)&&(e.hydrateFallbackElement||!e.hasLoader)&&delete r[e.id];let i={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:n.actionData,actionHeaders:{},basename:n.basename,errors:n.errors,loaderData:r,loaderHeaders:{},location:n.location,statusCode:200,matches:n.matches.map(e=>({params:e.params,pathname:e.pathname,pathnameBase:e.pathnameBase,route:{id:e.id,action:e.hasAction||!!e.clientAction,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,loader:e.hasLoader||!!e.clientLoader,index:e.index,path:e.path,shouldRevalidate:e.shouldRevalidate}}))},a=Pl(n.matches.reduceRight((e,t)=>{let n={id:t.id,action:t.hasAction||!!t.clientAction,element:t.element,errorElement:t.errorElement,handle:t.handle,hasErrorBoundary:!!t.errorElement,hydrateFallbackElement:t.hydrateFallbackElement,index:t.index,loader:t.hasLoader||!!t.clientLoader,path:t.path,shouldRevalidate:t.shouldRevalidate};return e.length>0&&(n.children=e),[n]},[]),i),o={future:{v8_middleware:!1,unstable_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:``,manifest:{routes:{},version:`1`,url:``,entry:{module:``,imports:[]}},routeDiscovery:n.routeDiscovery.mode===`initial`?{mode:`initial`,manifestPath:dd}:{mode:`lazy`,manifestPath:n.routeDiscovery.manifestPath||dd},routeModules:cd(n)};return E.createElement(Bi.Provider,{value:!0},E.createElement(ad,{location:n.location},E.createElement(Ac.Provider,{value:o},E.createElement(Al,{context:i,router:a,hydrate:!1,nonce:n.nonce}))))}function gd(e){return e.pathname.endsWith(`.rsc`)}function _d(e){return e.pathname.endsWith(`.manifest`)}function vd(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Bn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=r.stack,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=r.stack,n[e]=t}}else n[e]=r;return n}function yd({state:e,routes:t,getRouteInfo:n,location:r,basename:i,isSpaMode:a}){let o={...e,loaderData:{...e.loaderData}},s=Qt(t,r,i);if(s)for(let e of s){let t=e.route.id,r=n(t);mc(t,r.clientLoader,r.hasLoader,a)&&(r.hasHydrateFallback||!r.hasLoader)?delete o.loaderData[t]:r.hasLoader||(o.loaderData[t]=null)}return o}var bd=c({HydratedRouter:()=>Ed,RouterProvider:()=>Sd,unstable_RSCHydratedRouter:()=>Nd,unstable_createCallServer:()=>Od,unstable_getRSCStream:()=>Jd}),xd=u(b(),1);function Sd(e){return E.createElement(Qa,{flushSync:xd.flushSync,...e})}var Y=null,Cd=null;function wd(){if(!Y&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){let e=document.querySelector(`script[rr-importmap]`);if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error(`Failed to parse import map`,e)}}Y={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function Td({getContext:e,instrumentations:t}){if(wd(),!Y)throw Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=Y;if(!Y.stateDecodingPromise){let e=Y.context.stream;M(e,`No stream found for single fetch decoding`),Y.context.stream=void 0,Y.stateDecodingPromise=Ls(e,window).then(e=>{Y.context.state=e.value,n.stateDecodingPromise.value=!0}).catch(e=>{n.stateDecodingPromise.error=e})}if(Y.stateDecodingPromise.error)throw Y.stateDecodingPromise.error;if(!Y.stateDecodingPromise.value)throw Y.stateDecodingPromise;let r=lc(Y.manifest.routes,Y.routeModules,Y.context.state,Y.context.ssr,Y.context.isSpaMode),i;if(Y.context.isSpaMode){let{loaderData:e}=Y.context.state;Y.manifest.routes.root?.hasLoader&&e&&`root`in e&&(i={loaderData:{root:e.root}})}else i=yd({state:Y.context.state,routes:r,getRouteInfo:e=>({clientLoader:Y.routeModules[e]?.clientLoader,hasLoader:Y.manifest.routes[e]?.hasLoader===!0,hasHydrateFallback:Y.routeModules[e]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:Y.context.isSpaMode}),i&&i.errors&&(i.errors=vd(i.errors));window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},``);let a=br({routes:r,history:Mt(),basename:Y.context.basename,getContext:e,hydrationData:i,hydrationRouteProperties:Ya,instrumentations:t,mapRouteProperties:Ja,future:{v8_passThroughRequests:Y.context.future.v8_passThroughRequests},dataStrategy:Ds(()=>a,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.basename,Y.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:xc(()=>a,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.routeDiscovery,Y.context.isSpaMode,Y.context.basename)});return Y.router=a,a.state.initialized&&(Y.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=oc,window.__reactRouterDataRouter=a,a}function Ed(e){Cd||=Td({getContext:e.getContext,instrumentations:e.instrumentations});let[t,n]=E.useState(void 0);E.useEffect(()=>{},[]),E.useEffect(()=>{},[t]);let[r,i]=E.useState(Cd.state.location);return E.useLayoutEffect(()=>{Y&&Y.router&&!Y.routerInitialized&&(Y.routerInitialized=!0,Y.router.initialize())},[]),E.useLayoutEffect(()=>{if(Y&&Y.router)return Y.router.subscribe(e=>{e.location!==r&&i(e.location)})},[r]),M(Y,`ssrInfo unavailable for HydratedRouter`),Sc(Cd,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.routeDiscovery,Y.context.isSpaMode),E.createElement(E.Fragment,null,E.createElement(Ac.Provider,{value:{manifest:Y.manifest,routeModules:Y.routeModules,future:Y.context.future,criticalCss:t,ssr:Y.context.ssr,isSpaMode:Y.context.isSpaMode,routeDiscovery:Y.context.routeDiscovery}},E.createElement(Jc,{location:r},E.createElement(Sd,{router:Cd,useTransitions:e.useTransitions,onError:e.onError}))),E.createElement(E.Fragment,null))}var Dd=`/__manifest`;function Od({createFromReadableStream:e,createTemporaryReferenceSet:t,encodeReply:n,fetch:r=fetch}){let i=window;return async(a,o)=>{let s=i.__routerActionID=(i.__routerActionID??=0)+1,c=t(),l=r(new Request(location.href,{body:await n(o,{temporaryReferences:c}),method:`POST`,headers:{Accept:`text/x-component`,"rsc-action-id":a}})).then(t=>{if(!t.body)throw Error(`No response body`);return e(t.body,{temporaryReferences:c})});return E.startTransition(()=>Promise.resolve(l).then(async e=>{if(e.type===`redirect`){if(e.reload||Wd(e.location)){if(Gd(e.location))throw Error(`Invalid redirect location`);window.location.href=e.location;return}E.startTransition(()=>{i.__reactRouterDataRouter.navigate(e.location,{replace:e.replace})});return}if(e.type!==`action`)throw Error(`Unexpected payload type`);let t=await e.rerender;if(t&&0<s&&i.__routerActionID<=s){if(t.type===`redirect`){if(t.reload||Wd(t.location)){if(Gd(t.location))throw Error(`Invalid redirect location`);window.location.href=t.location;return}E.startTransition(()=>{i.__reactRouterDataRouter.navigate(t.location,{replace:t.replace})});return}E.startTransition(()=>{let e;for(let n of t.matches)i.__reactRouterDataRouter.patchRoutes(e?.id??null,[Pd(n)],!0),e=n;window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp({loaderData:Object.assign({},i.__reactRouterDataRouter.state.loaderData,t.loaderData),errors:t.errors?Object.assign({},i.__reactRouterDataRouter.state.errors,t.errors):null})})}}).catch(()=>{})),l.then(e=>{if(e.type!==`action`&&e.type!==`redirect`)throw Error(`Unexpected payload type`);return e.actionResult})}}function kd({fetchImplementation:e,createFromReadableStream:t,getContext:n,payload:r}){let i=window;if(i.__reactRouterDataRouter&&i.__reactRouterRouteModules)return{router:i.__reactRouterDataRouter,routeModules:i.__reactRouterRouteModules};if(r.type!==`render`)throw Error(`Invalid payload type`);i.__reactRouterRouteModules=i.__reactRouterRouteModules??{},ld(i.__reactRouterRouteModules,r.matches);let a=r.matches.reduceRight((e,t)=>{let n=Pd(t,r);return e.length>0?n.children=e:n.index||(n.children=[]),[n]},[]),o;return i.__reactRouterDataRouter=br({routes:a,getContext:n,basename:r.basename,history:Mt(),hydrationData:yd({state:{loaderData:r.loaderData,actionData:r.actionData,errors:r.errors},routes:a,getRouteInfo:e=>{let t=r.matches.find(t=>t.id===e);return M(t,`Route not found in payload`),{clientLoader:t.clientLoader,hasLoader:t.hasLoader,hasHydrateFallback:t.hydrateFallbackElement!=null}},location:r.location,basename:r.basename,isSpaMode:!1}),async patchRoutesOnNavigation({path:n,signal:i}){if(r.routeDiscovery.mode===`initial`){o||=(async()=>{if(!r.patches)return;let e=await r.patches;E.startTransition(()=>{e.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[Pd(e)])})})})(),await o;return}zd.has(n)||await Vd([n],t,e,i)},dataStrategy:jd(()=>i.__reactRouterDataRouter,!0,r.basename,t,e)}),i.__reactRouterDataRouter.state.initialized?(i.__routerInitialized=!0,i.__reactRouterDataRouter.initialize()):i.__routerInitialized=!1,i.__reactRouterDataRouter.subscribe(({loaderData:e,actionData:t})=>{e!==void 0&&(i.__routerActionID=(i.__routerActionID??=0)+1)}),i.__reactRouterDataRouter._updateRoutesForHMR=e=>{let t=window.__reactRouterDataRouter.routes,n=[];function r(t,n){return t.map(t=>{let i=e.get(t.id);if(i){let{routeModule:e,hasAction:a,hasComponent:o,hasErrorBoundary:s,hasLoader:c}=i,l=Pd({clientAction:e.clientAction,clientLoader:e.clientLoader,element:t.element,errorElement:t.errorElement,handle:t.handle,hasAction:a,hasComponent:o,hasErrorBoundary:s,hasLoader:c,hydrateFallbackElement:t.hydrateFallbackElement,id:t.id,index:t.index,links:e.links,meta:e.meta,parentId:n,path:t.path,shouldRevalidate:e.shouldRevalidate});return t.children&&(l.children=r(t.children,t.id)),l}let a={...t};return t.children&&(a.children=r(t.children,t.id)),a})}n.push(...r(t,void 0)),window.__reactRouterDataRouter._internalSetRoutes(n)},{router:i.__reactRouterDataRouter,routeModules:i.__reactRouterRouteModules}}var Ad=Ht();function jd(e,t,n,r,i){let a=Os(e,e=>{let t=e;return{hasLoader:t.route.hasLoader,hasClientLoader:t.route.hasClientLoader,hasComponent:t.route.hasComponent,hasAction:t.route.hasAction,hasClientAction:t.route.hasClientAction}},Md(r,i),t,n,!0,e=>{let t=e;return t.route.hasComponent&&!t.route.element});return async e=>e.runClientMiddleware(async()=>{let t=e.context;t.set(Ad,[]);let n=await a(e),r=new Map;for(let e of t.get(Ad))r.has(e.id)||r.set(e.id,[]),r.get(e.id).push(e);return E.startTransition(()=>{for(let t of e.matches){let e=r.get(t.route.id);if(e)for(let t of e)window.__reactRouterDataRouter.patchRoutes(t.parentId??null,[Pd(t)],!0)}}),n})}function Md(e,t){return async(n,r,i,a)=>{let{request:o,context:s}=n,c=Fs(o.url,r,i,`rsc`);o.method===`GET`&&(c=Ps(c),a&&c.searchParams.set(`_routes`,a.join(`,`)));let l=await t(new Request(c,await vs(o)));if(l.status>=400&&!l.headers.has(`X-Remix-Response`))throw new Bn(l.status,l.statusText,await l.text());M(l.body,`No response body to decode`);try{let t=await e(l.body,{temporaryReferences:void 0});if(t.type===`redirect`)return{status:l.status,data:{redirect:{redirect:t.location,reload:t.reload,replace:t.replace,revalidate:!1,status:t.status}}};if(t.type!==`render`)throw Error(`Unexpected payload type`);s.get(Ad).push(...t.matches);let n={routes:{}},r=Oi(o.method)?`actionData`:`loaderData`;for(let[e,i]of Object.entries(t[r]||{}))n.routes[e]={data:i};if(t.errors)for(let[e,r]of Object.entries(t.errors))n.routes[e]={error:r};return{status:l.status,data:n}}catch(e){throw Error(`Unable to decode RSC response`,{cause:e})}}}function Nd({createFromReadableStream:e,fetch:t=fetch,payload:n,getContext:r}){if(n.type!==`render`)throw Error(`Invalid payload type`);let{routeDiscovery:i}=n,{router:a,routeModules:o}=E.useMemo(()=>kd({payload:n,fetchImplementation:t,getContext:r,createFromReadableStream:e}),[e,n,t,r]);E.useEffect(()=>{Wc()},[]),E.useLayoutEffect(()=>{let e=window;e.__routerInitialized||(e.__routerInitialized=!0,e.__reactRouterDataRouter.initialize())},[]);let[{routes:s,state:c},l]=E.useState(()=>({routes:Kd(a.routes),state:a.state}));E.useLayoutEffect(()=>a.subscribe(e=>{qd(a.routes,s)&&E.startTransition(()=>{l({routes:Kd(a.routes),state:e})})}),[a.subscribe,s,a]);let u=E.useMemo(()=>({...a,state:c,routes:s}),[a,s,c]);E.useEffect(()=>{if(i.mode===`initial`||window.navigator?.connection?.saveData===!0)return;function n(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;zd.has(n)||Ld.add(n)}async function r(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(n);let r=Array.from(Ld.keys()).filter(e=>zd.has(e)?(Ld.delete(e),!1):!0);if(r.length!==0)try{await Vd(r,e,t)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let a=Ud(r,100);r(),new MutationObserver(()=>a()).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]})},[i,e,t]);let d={future:{v8_middleware:!1,unstable_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:``,manifest:{routes:{},version:`1`,url:``,entry:{module:``,imports:[]}},routeDiscovery:n.routeDiscovery.mode===`initial`?{mode:`initial`,manifestPath:Dd}:{mode:`lazy`,manifestPath:n.routeDiscovery.manifestPath||Dd},routeModules:o};return E.createElement(Bi.Provider,{value:!0},E.createElement(ad,{location:c.location},E.createElement(Ac.Provider,{value:d},E.createElement(Qa,{router:u,flushSync:xd.flushSync}))))}function Pd(e,t){let n=t&&e.id in t.loaderData,r=t?.loaderData[e.id],i=t?.errors&&e.id in t.errors,a=t?.errors?.[e.id],o=e.clientLoader?.hydrate===!0||!e.hasLoader||e.hasComponent&&!e.element;M(window.__reactRouterRouteModules),ld(window.__reactRouterRouteModules,e);let s={id:e.id,element:e.element,errorElement:e.errorElement,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,hydrateFallbackElement:e.hydrateFallbackElement,index:e.index,loader:e.clientLoader?async(t,s)=>{try{return await e.clientLoader({...t,serverLoader:()=>{if(Id(`loader`,e.id,e.hasLoader),o){if(n)return r;if(i)throw a}return Fd(s)}})}finally{o=!1}}:((e,t)=>Fd(t)),action:e.clientAction?(t,n)=>e.clientAction({...t,serverAction:async()=>(Id(`action`,e.id,e.hasLoader),await Fd(n))}):e.hasAction?(e,t)=>Fd(t):()=>{throw cc(`action`,e.id)},path:e.path,shouldRevalidate:e.shouldRevalidate,hasLoader:!0,hasClientLoader:e.clientLoader!=null,hasAction:e.hasAction,hasClientAction:e.clientAction!=null};return typeof s.loader==`function`&&(s.loader.hydrate=mc(e.id,e.clientLoader,e.hasLoader,!1)),s}function Fd(e){return M(typeof e==`function`,`Invalid singleFetch parameter`),e()}function Id(e,t,n){if(!n){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t}")`;throw console.error(n),new Bn(400,`Bad Request`,Error(n),!0)}}var Ld=new Set,Rd=1e3,zd=new Set;function Bd(e){if(e.length===0)return null;if(e.length===1)return new URL(`${e[0]}.manifest`,window.location.origin);let t=(window.__reactRouterDataRouter.basename??``).replace(/^\/|\/$/g,``),n=new URL(`${t}/.manifest`,window.location.origin);return n.searchParams.set(`paths`,e.sort().join(`,`)),n}async function Vd(e,t,n,r){let i=Bd(e);if(i==null)return;if(i.toString().length>7680){Ld.clear();return}let a=await n(new Request(i,{signal:r}));if(!a.body||a.status<200||a.status>=300)throw Error(`Unable to fetch new route matches from the server`);let o=await t(a.body,{temporaryReferences:void 0});if(o.type!==`manifest`)throw Error(`Failed to patch routes`);e.forEach(e=>Hd(e,zd));let s=await o.patches;E.startTransition(()=>{s.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[Pd(e)])})})}function Hd(e,t){if(t.size>=Rd){let e=t.values().next().value;typeof e==`string`&&t.delete(e)}t.add(e)}function Ud(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Wd(e){return new URL(e,window.location.href).origin!==window.location.origin}function Gd(e){try{return ei.includes(new URL(e).protocol)}catch{return!1}}function Kd(e){if(e)return e.map(e=>({...e,children:Kd(e.children)}))}function qd(e,t){return e.length===t.length?e.some((e,n)=>e.element!==t[n].element||e.errorElement!==t[n].errorElement||e.hydrateFallbackElement!==t[n].hydrateFallbackElement||e.hasErrorBoundary!==t[n].hasErrorBoundary||e.hasLoader!==t[n].hasLoader||e.hasClientLoader!==t[n].hasClientLoader||e.hasAction!==t[n].hasAction||e.hasClientAction!==t[n].hasClientAction?!0:qd(e.children||[],t[n].children||[])):!0}function Jd(){let e=new TextEncoder,t=null,n=new ReadableStream({start(n){if(typeof window>`u`)return;let r=t=>{typeof t==`string`?n.enqueue(e.encode(t)):n.enqueue(t)};window.__FLIGHT_DATA||(window.__FLIGHT_DATA=[]),window.__FLIGHT_DATA.forEach(r),window.__FLIGHT_DATA.push=e=>(r(e),0),t=n}});return typeof document<`u`&&document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>{t?.close()}):t?.close(),n}var Yd=c({Await:()=>co,BrowserRouter:()=>nl,Form:()=>cl,HashRouter:()=>rl,IDLE_BLOCKER:()=>dr,IDLE_FETCHER:()=>ur,IDLE_NAVIGATION:()=>lr,Link:()=>ol,Links:()=>Ic,MemoryRouter:()=>no,Meta:()=>Vc,NavLink:()=>sl,Navigate:()=>ro,NavigationType:()=>Ot,Outlet:()=>io,PrefetchPageLinks:()=>Lc,Route:()=>ao,Router:()=>oo,RouterContextProvider:()=>Wt,RouterProvider:()=>Qa,Routes:()=>so,Scripts:()=>Gc,ScrollRestoration:()=>ll,ServerRouter:()=>H,StaticRouter:()=>kl,StaticRouterProvider:()=>Al,UNSAFE_AwaitContextProvider:()=>Gi,UNSAFE_DataRouterContext:()=>Ri,UNSAFE_DataRouterStateContext:()=>zi,UNSAFE_ErrorResponseImpl:()=>Bn,UNSAFE_FetchersContext:()=>Ui,UNSAFE_FrameworkContext:()=>Ac,UNSAFE_LocationContext:()=>qi,UNSAFE_NavigationContext:()=>Ki,UNSAFE_RSCDefaultRootErrorBoundary:()=>sd,UNSAFE_RemixErrorBoundary:()=>Jc,UNSAFE_RouteContext:()=>Ji,UNSAFE_ServerMode:()=>au,UNSAFE_SingleFetchRedirectSymbol:()=>Cs,UNSAFE_ViewTransitionContext:()=>Hi,UNSAFE_WithComponentProps:()=>ho,UNSAFE_WithErrorBoundaryProps:()=>xo,UNSAFE_WithHydrateFallbackProps:()=>vo,UNSAFE_createBrowserHistory:()=>Mt,UNSAFE_createClientRoutes:()=>lc,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>oc,UNSAFE_createHashHistory:()=>Nt,UNSAFE_createMemoryHistory:()=>jt,UNSAFE_createRouter:()=>br,UNSAFE_decodeViaTurboStream:()=>Ls,UNSAFE_deserializeErrors:()=>vd,UNSAFE_getHydrationData:()=>yd,UNSAFE_getPatchRoutesOnNavigationFunction:()=>xc,UNSAFE_getTurboStreamSingleFetchDataStrategy:()=>Ds,UNSAFE_hydrationRouteProperties:()=>Ya,UNSAFE_invariant:()=>M,UNSAFE_mapRouteProperties:()=>Ja,UNSAFE_shouldHydrateRouteLoader:()=>mc,UNSAFE_useFogOFWarDiscovery:()=>Sc,UNSAFE_useScrollRestoration:()=>wl,UNSAFE_withComponentProps:()=>go,UNSAFE_withErrorBoundaryProps:()=>So,UNSAFE_withHydrateFallbackProps:()=>yo,createBrowserRouter:()=>Qc,createContext:()=>Ht,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createHashRouter:()=>$c,createMemoryRouter:()=>Xa,createMemorySessionStorage:()=>Zu,createPath:()=>Rt,createRequestHandler:()=>Lu,createRoutesFromChildren:()=>fo,createRoutesFromElements:()=>po,createRoutesStub:()=>Ul,createSearchParams:()=>jo,createSession:()=>Ku,createSessionStorage:()=>Ju,createStaticHandler:()=>Nl,createStaticRouter:()=>Pl,data:()=>In,generatePath:()=>hn,href:()=>Qu,isCookie:()=>Yl,isRouteErrorResponse:()=>Vn,isSession:()=>qu,matchPath:()=>gn,matchRoutes:()=>Qt,parsePath:()=>zt,redirect:()=>Ln,redirectDocument:()=>Rn,renderMatches:()=>B,replace:()=>zn,resolvePath:()=>Cn,unstable_HistoryRouter:()=>il,unstable_RSCStaticRouter:()=>hd,unstable_routeRSCServerRequest:()=>md,unstable_setDevServerHooks:()=>_u,unstable_usePrompt:()=>Dl,unstable_useRoute:()=>Ha,useActionData:()=>Pa,useAsyncError:()=>Ia,useAsyncValue:()=>z,useBeforeUnload:()=>Tl,useBlocker:()=>Ra,useFetcher:()=>yl,useFetchers:()=>bl,useFormAction:()=>vl,useHref:()=>ta,useInRouterContext:()=>na,useLinkClickHandler:()=>pl,useLoaderData:()=>Ma,useLocation:()=>R,useMatch:()=>ia,useMatches:()=>ja,useNavigate:()=>sa,useNavigation:()=>ka,useNavigationType:()=>ra,useOutlet:()=>da,useOutletContext:()=>ua,useParams:()=>fa,useResolvedPath:()=>pa,useRevalidator:()=>Aa,useRouteError:()=>Fa,useRouteLoaderData:()=>Na,useRoutes:()=>ma,useSearchParams:()=>ml,useSubmit:()=>_l,useViewTransitionState:()=>Ol}),Xd=c({Await:()=>co,BrowserRouter:()=>nl,Form:()=>cl,HashRouter:()=>rl,HydratedRouter:()=>Ed,IDLE_BLOCKER:()=>dr,IDLE_FETCHER:()=>ur,IDLE_NAVIGATION:()=>lr,Link:()=>ol,Links:()=>Ic,MemoryRouter:()=>no,Meta:()=>Vc,NavLink:()=>sl,Navigate:()=>ro,NavigationType:()=>Ot,Outlet:()=>io,PrefetchPageLinks:()=>Lc,Route:()=>ao,Router:()=>oo,RouterContextProvider:()=>Wt,RouterProvider:()=>Sd,Routes:()=>so,Scripts:()=>Gc,ScrollRestoration:()=>ll,ServerRouter:()=>H,StaticRouter:()=>kl,StaticRouterProvider:()=>Al,UNSAFE_AwaitContextProvider:()=>Gi,UNSAFE_DataRouterContext:()=>Ri,UNSAFE_DataRouterStateContext:()=>zi,UNSAFE_ErrorResponseImpl:()=>Bn,UNSAFE_FetchersContext:()=>Ui,UNSAFE_FrameworkContext:()=>Ac,UNSAFE_LocationContext:()=>qi,UNSAFE_NavigationContext:()=>Ki,UNSAFE_RSCDefaultRootErrorBoundary:()=>sd,UNSAFE_RemixErrorBoundary:()=>Jc,UNSAFE_RouteContext:()=>Ji,UNSAFE_ServerMode:()=>au,UNSAFE_SingleFetchRedirectSymbol:()=>Cs,UNSAFE_ViewTransitionContext:()=>Hi,UNSAFE_WithComponentProps:()=>ho,UNSAFE_WithErrorBoundaryProps:()=>xo,UNSAFE_WithHydrateFallbackProps:()=>vo,UNSAFE_createBrowserHistory:()=>Mt,UNSAFE_createClientRoutes:()=>lc,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>oc,UNSAFE_createHashHistory:()=>Nt,UNSAFE_createMemoryHistory:()=>jt,UNSAFE_createRouter:()=>br,UNSAFE_decodeViaTurboStream:()=>Ls,UNSAFE_deserializeErrors:()=>vd,UNSAFE_getHydrationData:()=>yd,UNSAFE_getPatchRoutesOnNavigationFunction:()=>xc,UNSAFE_getTurboStreamSingleFetchDataStrategy:()=>Ds,UNSAFE_hydrationRouteProperties:()=>Ya,UNSAFE_invariant:()=>M,UNSAFE_mapRouteProperties:()=>Ja,UNSAFE_shouldHydrateRouteLoader:()=>mc,UNSAFE_useFogOFWarDiscovery:()=>Sc,UNSAFE_useScrollRestoration:()=>wl,UNSAFE_withComponentProps:()=>go,UNSAFE_withErrorBoundaryProps:()=>So,UNSAFE_withHydrateFallbackProps:()=>yo,createBrowserRouter:()=>Qc,createContext:()=>Ht,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createHashRouter:()=>$c,createMemoryRouter:()=>Xa,createMemorySessionStorage:()=>Zu,createPath:()=>Rt,createRequestHandler:()=>Lu,createRoutesFromChildren:()=>fo,createRoutesFromElements:()=>po,createRoutesStub:()=>Ul,createSearchParams:()=>jo,createSession:()=>Ku,createSessionStorage:()=>Ju,createStaticHandler:()=>Nl,createStaticRouter:()=>Pl,data:()=>In,generatePath:()=>hn,href:()=>Qu,isCookie:()=>Yl,isRouteErrorResponse:()=>Vn,isSession:()=>qu,matchPath:()=>gn,matchRoutes:()=>Qt,parsePath:()=>zt,redirect:()=>Ln,redirectDocument:()=>Rn,renderMatches:()=>B,replace:()=>zn,resolvePath:()=>Cn,unstable_HistoryRouter:()=>il,unstable_RSCStaticRouter:()=>hd,unstable_routeRSCServerRequest:()=>md,unstable_setDevServerHooks:()=>_u,unstable_usePrompt:()=>Dl,unstable_useRoute:()=>Ha,useActionData:()=>Pa,useAsyncError:()=>Ia,useAsyncValue:()=>z,useBeforeUnload:()=>Tl,useBlocker:()=>Ra,useFetcher:()=>yl,useFetchers:()=>bl,useFormAction:()=>vl,useHref:()=>ta,useInRouterContext:()=>na,useLinkClickHandler:()=>pl,useLoaderData:()=>Ma,useLocation:()=>R,useMatch:()=>ia,useMatches:()=>ja,useNavigate:()=>sa,useNavigation:()=>ka,useNavigationType:()=>ra,useOutlet:()=>da,useOutletContext:()=>ua,useParams:()=>fa,useResolvedPath:()=>pa,useRevalidator:()=>Aa,useRouteError:()=>Fa,useRouteLoaderData:()=>Na,useRoutes:()=>ma,useSearchParams:()=>ml,useSubmit:()=>_l,useViewTransitionState:()=>Ol}),Zd=u(s(((e,t)=>{(function(){var n,r=`4.18.1`,i=200,a=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,o=`Expected a function`,s="Invalid `variable` option passed into `_.template`",c="Invalid `imports` option passed into `_.template`",l=`__lodash_hash_undefined__`,u=500,d=`__lodash_placeholder__`,f=1,p=2,m=4,h=1,g=2,_=1,v=2,y=4,b=8,x=16,S=32,C=64,w=128,T=256,ee=512,te=30,ne=`...`,E=800,re=16,ie=1,ae=2,oe=3,se=1/0,ce=9007199254740991,D=17976931348623157e292,O=NaN,le=4294967295,ue=le-1,de=le>>>1,fe=[[`ary`,w],[`bind`,_],[`bindKey`,v],[`curry`,b],[`curryRight`,x],[`flip`,ee],[`partial`,S],[`partialRight`,C],[`rearg`,T]],k=`[object Arguments]`,A=`[object Array]`,pe=`[object AsyncFunction]`,me=`[object Boolean]`,he=`[object Date]`,ge=`[object DOMException]`,_e=`[object Error]`,ve=`[object Function]`,ye=`[object GeneratorFunction]`,be=`[object Map]`,xe=`[object Number]`,Se=`[object Null]`,Ce=`[object Object]`,we=`[object Promise]`,Te=`[object Proxy]`,Ee=`[object RegExp]`,De=`[object Set]`,Oe=`[object String]`,ke=`[object Symbol]`,Ae=`[object Undefined]`,je=`[object WeakMap]`,Me=`[object WeakSet]`,Ne=`[object ArrayBuffer]`,Pe=`[object DataView]`,Fe=`[object Float32Array]`,Ie=`[object Float64Array]`,Le=`[object Int8Array]`,Re=`[object Int16Array]`,ze=`[object Int32Array]`,Be=`[object Uint8Array]`,Ve=`[object Uint8ClampedArray]`,He=`[object Uint16Array]`,Ue=`[object Uint32Array]`,We=/\b__p \+= '';/g,Ge=/\b(__p \+=) '' \+/g,Ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qe=/&(?:amp|lt|gt|quot|#39);/g,Je=/[&<>"']/g,Ye=RegExp(qe.source),Xe=RegExp(Je.source),Ze=/<%-([\s\S]+?)%>/g,Qe=/<%([\s\S]+?)%>/g,$e=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tt=/^\w*$/,nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/[\\^$.*+?()[\]{}|]/g,it=RegExp(rt.source),at=/^\s+/,ot=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ct=/\{\n\/\* \[wrapped with (.+)\] \*/,lt=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mt=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,St=/['\n\r\u2028\u2029\\]/g,Ct=`\\ud800-\\udfff`,wt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Tt=`\\u2700-\\u27bf`,j=`a-z\\xdf-\\xf6\\xf8-\\xff`,Et=`\\xac\\xb1\\xd7\\xf7`,Dt=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Ot=`\\u2000-\\u206f`,kt=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,At=`A-Z\\xc0-\\xd6\\xd8-\\xde`,jt=`\\ufe0e\\ufe0f`,Mt=Et+Dt+Ot+kt,Nt=`['’]`,M=`[`+Ct+`]`,Pt=`[`+Mt+`]`,Ft=`[`+wt+`]`,It=`\\d+`,Lt=`[`+Tt+`]`,Rt=`[`+j+`]`,zt=`[^`+Ct+Mt+It+Tt+j+At+`]`,Bt=`\\ud83c[\\udffb-\\udfff]`,Vt=`(?:`+Ft+`|`+Bt+`)`,Ht=`[^`+Ct+`]`,Ut=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Wt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Gt=`[`+At+`]`,Kt=`\\u200d`,qt=`(?:`+Rt+`|`+zt+`)`,Jt=`(?:`+Gt+`|`+zt+`)`,Yt=`(?:`+Nt+`(?:d|ll|m|re|s|t|ve))?`,Xt=`(?:`+Nt+`(?:D|LL|M|RE|S|T|VE))?`,Zt=Vt+`?`,Qt=`[`+jt+`]?`,$t=`(?:`+Kt+`(?:`+[Ht,Ut,Wt].join(`|`)+`)`+Qt+Zt+`)*`,en=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,tn=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,nn=Qt+Zt+$t,rn=`(?:`+[Lt,Ut,Wt].join(`|`)+`)`+nn,an=`(?:`+[Ht+Ft+`?`,Ft,Ut,Wt,M].join(`|`)+`)`,on=RegExp(Nt,`g`),sn=RegExp(Ft,`g`),cn=RegExp(Bt+`(?=`+Bt+`)|`+an+nn,`g`),ln=RegExp([Gt+`?`+Rt+`+`+Yt+`(?=`+[Pt,Gt,`$`].join(`|`)+`)`,Jt+`+`+Xt+`(?=`+[Pt,Gt+qt,`$`].join(`|`)+`)`,Gt+`?`+qt+`+`+Yt,Gt+`+`+Xt,tn,en,It,rn].join(`|`),`g`),un=RegExp(`[`+Kt+Ct+wt+jt+`]`),dn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fn=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),pn=-1,mn={};mn[Fe]=mn[Ie]=mn[Le]=mn[Re]=mn[ze]=mn[Be]=mn[Ve]=mn[He]=mn[Ue]=!0,mn[k]=mn[A]=mn[Ne]=mn[me]=mn[Pe]=mn[he]=mn[_e]=mn[ve]=mn[be]=mn[xe]=mn[Ce]=mn[Ee]=mn[De]=mn[Oe]=mn[je]=!1;var N={};N[k]=N[A]=N[Ne]=N[Pe]=N[me]=N[he]=N[Fe]=N[Ie]=N[Le]=N[Re]=N[ze]=N[be]=N[xe]=N[Ce]=N[Ee]=N[De]=N[Oe]=N[ke]=N[Be]=N[Ve]=N[He]=N[Ue]=!0,N[_e]=N[ve]=N[je]=!1;var hn={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},gn={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},_n={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},vn={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},yn=parseFloat,bn=parseInt,xn=typeof global==`object`&&global&&global.Object===Object&&global,Sn=typeof self==`object`&&self&&self.Object===Object&&self,Cn=xn||Sn||Function(`return this`)(),wn=typeof e==`object`&&e&&!e.nodeType&&e,Tn=wn&&typeof t==`object`&&t&&!t.nodeType&&t,En=Tn&&Tn.exports===wn,Dn=En&&xn.process,On=function(){try{return Tn&&Tn.require&&Tn.require(`util`).types||Dn&&Dn.binding&&Dn.binding(`util`)}catch{}}(),kn=On&&On.isArrayBuffer,An=On&&On.isDate,jn=On&&On.isMap,Mn=On&&On.isRegExp,Nn=On&&On.isSet,Pn=On&&On.isTypedArray;function Fn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function In(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Ln(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Rn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function zn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Bn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Vn(e,t){return!!(e!=null&&e.length)&&$n(e,t,0)>-1}function Hn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Un(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Wn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Gn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Kn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function qn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Jn=rr(`length`);function Yn(e){return e.split(``)}function Xn(e){return e.match(ut)||[]}function Zn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Qn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function $n(e,t,n){return t===t?kr(e,t,n):Qn(e,tr,n)}function er(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function tr(e){return e!==e}function nr(e,t){var n=e==null?0:e.length;return n?sr(e,t)/n:O}function rr(e){return function(t){return t==null?n:t[e]}}function ir(e){return function(t){return e==null?n:e[t]}}function ar(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function or(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function sr(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function cr(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function lr(e,t){return Un(t,function(t){return[t,e[t]]})}function ur(e){return e&&e.slice(0,Nr(e)+1).replace(at,``)}function dr(e){return function(t){return e(t)}}function fr(e,t){return Un(t,function(t){return e[t]})}function pr(e,t){return e.has(t)}function mr(e,t){for(var n=-1,r=e.length;++n<r&&$n(t,e[n],0)>-1;);return n}function hr(e,t){for(var n=e.length;n--&&$n(t,e[n],0)>-1;);return n}function gr(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var _r=ir(hn),vr=ir(gn);function yr(e){return`\\`+vn[e]}function br(e,t){return e==null?n:e[t]}function xr(e){return un.test(e)}function Sr(e){return dn.test(e)}function Cr(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function wr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Tr(e,t){return function(n){return e(t(n))}}function Er(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===d)&&(e[n]=d,a[i++]=n)}return a}function Dr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Or(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function kr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Ar(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function jr(e){return xr(e)?Fr(e):Jn(e)}function Mr(e){return xr(e)?Ir(e):Yn(e)}function Nr(e){for(var t=e.length;t--&&ot.test(e.charAt(t)););return t}var Pr=ir(_n);function Fr(e){for(var t=cn.lastIndex=0;cn.test(e);)++t;return t}function Ir(e){return e.match(cn)||[]}function Lr(e){return e.match(ln)||[]}var Rr=(function e(t){t=t==null?Cn:Rr.defaults(Cn.Object(),t,Rr.pick(Cn,fn));var ot=t.Array,ut=t.Date,Ct=t.Error,wt=t.Function,Tt=t.Math,j=t.Object,Et=t.RegExp,Dt=t.String,Ot=t.TypeError,kt=ot.prototype,At=wt.prototype,jt=j.prototype,Mt=t[`__core-js_shared__`],Nt=At.toString,M=jt.hasOwnProperty,Pt=0,Ft=function(){var e=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),It=jt.toString,Lt=Nt.call(j),Rt=Cn._,zt=Et(`^`+Nt.call(M).replace(rt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Bt=En?t.Buffer:n,Vt=t.Symbol,Ht=t.Uint8Array,Ut=Bt?Bt.allocUnsafe:n,Wt=Tr(j.getPrototypeOf,j),Gt=j.create,Kt=jt.propertyIsEnumerable,qt=kt.splice,Jt=Vt?Vt.isConcatSpreadable:n,Yt=Vt?Vt.iterator:n,Xt=Vt?Vt.toStringTag:n,Zt=function(){try{var e=os(j,`defineProperty`);return e({},``,{}),e}catch{}}(),Qt=t.clearTimeout!==Cn.clearTimeout&&t.clearTimeout,$t=ut&&ut.now!==Cn.Date.now&&ut.now,en=t.setTimeout!==Cn.setTimeout&&t.setTimeout,tn=Tt.ceil,nn=Tt.floor,rn=j.getOwnPropertySymbols,an=Bt?Bt.isBuffer:n,cn=t.isFinite,ln=kt.join,un=Tr(j.keys,j),dn=Tt.max,hn=Tt.min,gn=ut.now,_n=t.parseInt,vn=Tt.random,xn=kt.reverse,Sn=os(t,`DataView`),wn=os(t,`Map`),Tn=os(t,`Promise`),Dn=os(t,`Set`),On=os(t,`WeakMap`),Jn=os(j,`create`),Yn=On&&new On,ir={},kr=Gs(Sn),Fr=Gs(wn),Ir=Gs(Tn),zr=Gs(Dn),Br=Gs(On),Vr=Vt?Vt.prototype:n,Hr=Vr?Vr.valueOf:n,Ur=Vr?Vr.toString:n;function P(e){if(Nu(e)&&!G(e)&&!(e instanceof F)){if(e instanceof Kr)return e;if(M.call(e,`__wrapped__`))return qs(e)}return new Kr(e)}var Wr=function(){function e(){}return function(t){if(!Mu(t))return{};if(Gt)return Gt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Gr(){}function Kr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}P.templateSettings={escape:Ze,evaluate:Qe,interpolate:$e,variable:``,imports:{_:P}},P.prototype=Gr.prototype,P.prototype.constructor=P,Kr.prototype=Wr(Gr.prototype),Kr.prototype.constructor=Kr;function F(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=le,this.__views__=[]}function qr(){var e=new F(this.__wrapped__);return e.__actions__=vo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=vo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=vo(this.__views__),e}function Jr(){if(this.__filtered__){var e=new F(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Yr(){var e=this.__wrapped__.value(),t=this.__dir__,n=G(e),r=t<0,i=n?e.length:0,a=ds(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=hn(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return $a(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==ae)g=b;else if(!b){if(y==ie)continue outer;break outer}}m[f++]=g}return m}F.prototype=Wr(Gr.prototype),F.prototype.constructor=F;function Xr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zr(){this.__data__=Jn?Jn(null):{},this.size=0}function Qr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function $r(e){var t=this.__data__;if(Jn){var r=t[e];return r===l?n:r}return M.call(t,e)?t[e]:n}function ei(e){var t=this.__data__;return Jn?t[e]!==n:M.call(t,e)}function ti(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Jn&&t===n?l:t,this}Xr.prototype.clear=Zr,Xr.prototype.delete=Qr,Xr.prototype.get=$r,Xr.prototype.has=ei,Xr.prototype.set=ti;function ni(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ri(){this.__data__=[],this.size=0}function ii(e){var t=this.__data__,n=ki(t,e);return n<0?!1:(n==t.length-1?t.pop():qt.call(t,n,1),--this.size,!0)}function ai(e){var t=this.__data__,r=ki(t,e);return r<0?n:t[r][1]}function oi(e){return ki(this.__data__,e)>-1}function si(e,t){var n=this.__data__,r=ki(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}ni.prototype.clear=ri,ni.prototype.delete=ii,ni.prototype.get=ai,ni.prototype.has=oi,ni.prototype.set=si;function ci(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function li(){this.size=0,this.__data__={hash:new Xr,map:new(wn||ni),string:new Xr}}function ui(e){var t=is(this,e).delete(e);return this.size-=+!!t,t}function di(e){return is(this,e).get(e)}function fi(e){return is(this,e).has(e)}function pi(e,t){var n=is(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}ci.prototype.clear=li,ci.prototype.delete=ui,ci.prototype.get=di,ci.prototype.has=fi,ci.prototype.set=pi;function mi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ci;++t<n;)this.add(e[t])}function hi(e){return this.__data__.set(e,l),this}function gi(e){return this.__data__.has(e)}mi.prototype.add=mi.prototype.push=hi,mi.prototype.has=gi;function _i(e){var t=this.__data__=new ni(e);this.size=t.size}function vi(){this.__data__=new ni,this.size=0}function yi(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function bi(e){return this.__data__.get(e)}function xi(e){return this.__data__.has(e)}function Si(e,t){var n=this.__data__;if(n instanceof ni){var r=n.__data__;if(!wn||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ci(r)}return n.set(e,t),this.size=n.size,this}_i.prototype.clear=vi,_i.prototype.delete=yi,_i.prototype.get=bi,_i.prototype.has=xi,_i.prototype.set=Si;function Ci(e,t){var n=G(e),r=!n&&_u(e),i=!n&&!r&&xu(e),a=!n&&!r&&!i&&Ju(e),o=n||r||i||a,s=o?cr(e.length,Dt):[],c=s.length;for(var l in e)(t||M.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||ys(l,c)))&&s.push(l);return s}function wi(e){var t=e.length;return t?e[Na(0,t-1)]:n}function Ti(e,t){return Hs(vo(e),Fi(t,0,e.length))}function Ei(e){return Hs(vo(e))}function Di(e,t,r){(r!==n&&!mu(e[t],r)||r===n&&!(t in e))&&Ni(e,t,r)}function Oi(e,t,r){var i=e[t];(!(M.call(e,t)&&mu(i,r))||r===n&&!(t in e))&&Ni(e,t,r)}function ki(e,t){for(var n=e.length;n--;)if(mu(e[n][0],t))return n;return-1}function Ai(e,t,n,r){return zi(e,function(e,i,a){t(r,e,n(e),a)}),r}function ji(e,t){return e&&yo(t,Dd(t),e)}function Mi(e,t){return e&&yo(t,Od(t),e)}function Ni(e,t,n){t==`__proto__`&&Zt?Zt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Pi(e,t){for(var r=-1,i=t.length,a=ot(i),o=e==null;++r<i;)a[r]=o?n:Sd(e,t[r]);return a}function Fi(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function I(e,t,r,i,a,o){var s,c=t&f,l=t&p,u=t&m;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Mu(e))return e;var d=G(e);if(d){if(s=ms(e),!c)return vo(e,s)}else{var h=us(e),g=h==ve||h==ye;if(xu(e))return co(e,c);if(h==Ce||h==k||g&&!a){if(s=l||g?{}:hs(e),!c)return l?xo(e,Mi(s,e)):bo(e,ji(s,e))}else{if(!N[h])return a?e:{};s=gs(e,h,c)}}o||=new _i;var _=o.get(e);if(_)return _;o.set(e,s),Gu(e)?e.forEach(function(n){s.add(I(n,t,r,n,e,o))}):Pu(e)&&e.forEach(function(n,i){s.set(i,I(n,t,r,i,e,o))});var v=d?n:(u?l?es:$o:l?Od:Dd)(e);return Ln(v||e,function(n,i){v&&(i=n,n=e[i]),Oi(s,i,I(n,t,r,i,e,o))}),s}function Ii(e){var t=Dd(e);return function(n){return L(n,e,t)}}function L(e,t,r){var i=r.length;if(e==null)return!i;for(e=j(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function Li(e,t,r){if(typeof e!=`function`)throw new Ot(o);return Rs(function(){e.apply(n,r)},t)}function Ri(e,t,n,r){var a=-1,o=Vn,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=Un(t,dr(n))),r?(o=Hn,s=!1):t.length>=i&&(o=pr,s=!1,t=new mi(t));outer:for(;++a<c;){var d=e[a],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,r)||l.push(d)}return l}var zi=wo(Ji),Bi=wo(Yi,!0);function Vi(e,t){var n=!0;return zi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Hi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!qu(s):r(s,c)))var c=s,l=o}return l}function Ui(e,t,r,i){var a=e.length;for(r=q(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:q(i),i<0&&(i+=a),i=r>i?0:nd(i);r<i;)e[r++]=t;return e}function Wi(e,t){var n=[];return zi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Gi(e,t,n,r,i){var a=-1,o=e.length;for(n||=vs,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Gi(s,t-1,n,r,i):Wn(i,s):r||(i[i.length]=s)}return i}var Ki=To(),qi=To(!0);function Ji(e,t){return e&&Ki(e,t,Dd)}function Yi(e,t){return e&&qi(e,t,Dd)}function Xi(e,t){return Bn(t,function(t){return ku(e[t])})}function Zi(e,t){t=io(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Ws(t[r++])];return r&&r==i?e:n}function Qi(e,t,n){var r=t(e);return G(e)?r:Wn(r,n(e))}function $i(e){return e==null?e===n?Ae:Se:Xt&&Xt in j(e)?ss(e):Ms(e)}function ea(e,t){return e>t}function ta(e,t){return e!=null&&M.call(e,t)}function na(e,t){return e!=null&&t in j(e)}function R(e,t,n){return e>=hn(t,n)&&e<dn(t,n)}function ra(e,t,r){for(var i=r?Hn:Vn,a=e[0].length,o=e.length,s=o,c=ot(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Un(d,dr(t))),l=hn(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new mi(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?pr(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?pr(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function ia(e,t,n,r){return Ji(e,function(e,i,a){t(r,n(e),i,a)}),r}function aa(e,t,r){t=io(t,e),e=Ps(e,t);var i=e==null?e:e[Ws(vc(t))];return i==null?n:Fn(i,e,r)}function oa(e){return Nu(e)&&$i(e)==k}function sa(e){return Nu(e)&&$i(e)==Ne}function ca(e){return Nu(e)&&$i(e)==he}function la(e,t,n,r,i){return e===t?!0:e==null||t==null||!Nu(e)&&!Nu(t)?e!==e&&t!==t:ua(e,t,n,r,la,i)}function ua(e,t,n,r,i,a){var o=G(e),s=G(t),c=o?A:us(e),l=s?A:us(t);c=c==k?Ce:c,l=l==k?Ce:l;var u=c==Ce,d=l==Ce,f=c==l;if(f&&xu(e)){if(!xu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new _i,o||Ju(e)?Yo(e,t,n,r,i,a):Xo(e,t,c,n,r,i,a);if(!(n&h)){var p=u&&M.call(e,`__wrapped__`),m=d&&M.call(t,`__wrapped__`);if(p||m){var g=p?e.value():e,_=m?t.value():t;return a||=new _i,i(g,_,n,r,a)}}return f?(a||=new _i,Zo(e,t,n,r,i,a)):!1}function da(e){return Nu(e)&&us(e)==be}function fa(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=j(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new _i;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?la(d,u,h|g,i,f):p))return!1}}return!0}function pa(e){return!Mu(e)||ws(e)?!1:(ku(e)?zt:_t).test(Gs(e))}function ma(e){return Nu(e)&&$i(e)==Ee}function ha(e){return Nu(e)&&us(e)==De}function ga(e){return Nu(e)&&ju(e.length)&&!!mn[$i(e)]}function _a(e){return typeof e==`function`?e:e==null?If:typeof e==`object`?G(e)?Ca(e[0],e[1]):Sa(e):Yf(e)}function va(e){if(!Es(e))return un(e);var t=[];for(var n in j(e))M.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ya(e){if(!Mu(e))return js(e);var t=Es(e),n=[];for(var r in e)r==`constructor`&&(t||!M.call(e,r))||n.push(r);return n}function ba(e,t){return e<t}function xa(e,t){var n=-1,r=yu(e)?ot(e.length):[];return zi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Sa(e){var t=as(e);return t.length==1&&t[0][2]?Os(t[0][0],t[0][1]):function(n){return n===e||fa(n,e,t)}}function Ca(e,t){return xs(e)&&Ds(t)?Os(Ws(e),t):function(r){var i=Sd(r,e);return i===n&&i===t?Cd(r,e):la(t,i,h|g)}}function wa(e,t,r,i,a){e!==t&&Ki(t,function(o,s){if(a||=new _i,Mu(o))Ta(e,t,s,r,wa,i,a);else{var c=i?i(Is(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Di(e,s,c)}},Od)}function Ta(e,t,r,i,a,o,s){var c=Is(e,r),l=Is(t,r),u=s.get(l);if(u){Di(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=G(l),m=!p&&xu(l),h=!p&&!m&&Ju(l);d=l,p||m||h?G(c)?d=c:K(c)?d=vo(c):m?(f=!1,d=co(l,!0)):h?(f=!1,d=B(l,!0)):d=[]:Hu(l)||_u(l)?(d=c,_u(c)?d=id(c):(!Mu(c)||ku(c))&&(d=hs(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Di(e,r,d)}function Ea(e,t){var r=e.length;if(r)return t+=t<0?r:0,ys(t,r)?e[t]:n}function Da(e,t,n){t=t.length?Un(t,function(e){return G(e)?function(t){return Zi(t,e.length===1?e[0]:e)}:e}):[If];var r=-1;return t=Un(t,dr(V())),or(xa(e,function(e,n,i){return{criteria:Un(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ho(e,t,n)})}function Oa(e,t){return ka(e,t,function(t,n){return Cd(e,n)})}function ka(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Zi(e,o);n(s,o)&&Ra(a,io(o,e),s)}return a}function Aa(e){return function(t){return Zi(t,e)}}function ja(e,t,n,r){var i=r?er:$n,a=-1,o=t.length,s=e;for(e===t&&(t=vo(t)),n&&(s=Un(e,dr(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&qt.call(s,c,1),qt.call(e,c,1);return e}function Ma(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ys(i)?qt.call(e,i,1):Xa(e,i)}}return e}function Na(e,t){return e+nn(vn()*(t-e+1))}function Pa(e,t,n,r){for(var i=-1,a=dn(tn((t-e)/(n||1)),0),o=ot(a);a--;)o[r?a:++i]=e,e+=n;return o}function Fa(e,t){var n=``;if(!e||t<1||t>ce)return n;do t%2&&(n+=e),t=nn(t/2),t&&(e+=e);while(t);return n}function z(e,t){return zs(Ns(e,t,If),e+``)}function Ia(e){return wi(Kd(e))}function La(e,t){var n=Kd(e);return Hs(n,Fi(t,0,n.length))}function Ra(e,t,r,i){if(!Mu(e))return e;t=io(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=Ws(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Mu(d)?d:ys(t[a+1])?[]:{})}Oi(c,l,u),c=c[l]}return e}var za=Yn?function(e,t){return Yn.set(e,t),e}:If,Ba=Zt?function(e,t){return Zt(e,`toString`,{configurable:!0,enumerable:!1,value:Mf(t),writable:!0})}:If;function Va(e){return Hs(Kd(e))}function Ha(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=ot(i);++r<i;)a[r]=e[r+t];return a}function Ua(e,t){var n;return zi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Wa(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=de){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!qu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Ga(e,t,If,n)}function Ga(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=qu(t),u=t===n;a<o;){var d=nn((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=qu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return hn(o,ue)}function Ka(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!mu(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function qa(e){return typeof e==`number`?e:qu(e)?O:+e}function Ja(e){if(typeof e==`string`)return e;if(G(e))return Un(e,Ja)+``;if(qu(e))return Ur?Ur.call(e):``;var t=e+``;return t==`0`&&1/e==-se?`-0`:t}function Ya(e,t,n){var r=-1,a=Vn,o=e.length,s=!0,c=[],l=c;if(n)s=!1,a=Hn;else if(o>=i){var u=t?null:Uo(e);if(u)return Dr(u);s=!1,a=pr,l=new mi}else l=t?[]:c;outer:for(;++r<o;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function Xa(e,t){t=io(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=Ws(t[n]);if(i===`__proto__`&&!M.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=Ps(e,t);return a==null||delete a[Ws(vc(t))]}function Za(e,t,n,r){return Ra(e,t,n(Zi(e,t)),r)}function Qa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Ha(e,r?0:a,r?a+1:i):Ha(e,r?a+1:0,r?i:a)}function $a(e,t){var n=e;return n instanceof F&&(n=n.value()),Gn(t,function(e,t){return t.func.apply(t.thisArg,Wn([e],t.args))},n)}function eo(e,t,n){var r=e.length;if(r<2)return r?Ya(e[0]):[];for(var i=-1,a=ot(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=Ri(a[i]||o,e[s],t,n));return Ya(Gi(a,1),t,n)}function to(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function no(e){return K(e)?e:[]}function ro(e){return typeof e==`function`?e:If}function io(e,t){return G(e)?e:xs(e,t)?[e]:Us(J(e))}var ao=z;function oo(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Ha(e,t,r)}var so=Qt||function(e){return Cn.clearTimeout(e)};function co(e,t){if(t)return e.slice();var n=e.length,r=Ut?Ut(n):new e.constructor(n);return e.copy(r),r}function lo(e){var t=new e.constructor(e.byteLength);return new Ht(t).set(new Ht(e)),t}function uo(e,t){var n=t?lo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function fo(e){var t=new e.constructor(e.source,mt.exec(e));return t.lastIndex=e.lastIndex,t}function po(e){return Hr?j(Hr.call(e)):{}}function B(e,t){var n=t?lo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mo(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=qu(e),s=t!==n,c=t===null,l=t===t,u=qu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function ho(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=mo(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function go(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=dn(a-o,0),u=ot(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function _o(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=dn(a-s,0),d=ot(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function vo(e,t){var n=-1,r=e.length;for(t||=ot(r);++n<r;)t[n]=e[n];return t}function yo(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?Ni(r,c,l):Oi(r,c,l)}return r}function bo(e,t){return yo(e,cs(e),t)}function xo(e,t){return yo(e,ls(e),t)}function So(e,t){return function(n,r){var i=G(n)?In:Ai,a=t?t():{};return i(n,e,V(r,2),a)}}function Co(e){return z(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&bs(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=j(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function wo(e,t){return function(n,r){if(n==null)return n;if(!yu(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=j(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function To(e){return function(t,n,r){for(var i=-1,a=j(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Eo(e,t,n){var r=t&_,i=ko(e);function a(){return(this&&this!==Cn&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Do(e){return function(t){t=J(t);var r=xr(t)?Mr(t):n,i=r?r[0]:t.charAt(0),a=r?oo(r,1).join(``):t.slice(1);return i[e]()+a}}function Oo(e){return function(t){return Gn(Df($d(t).replace(on,``)),e,``)}}function ko(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Wr(e.prototype),r=e.apply(n,t);return Mu(r)?r:n}}function Ao(e,t,r){var i=ko(e);function a(){for(var o=arguments.length,s=ot(o),c=o,l=rs(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Er(s,l);return o-=u.length,o<r?Vo(e,t,No,a.placeholder,n,s,u,n,n,r-o):Fn(this&&this!==Cn&&this instanceof a?i:e,this,s)}return a}function jo(e){return function(t,r,i){var a=j(t);if(!yu(t)){var o=V(r,3);t=Dd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function Mo(e){return Qo(function(t){var r=t.length,i=r,a=Kr.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!=`function`)throw new Ot(o);if(a&&!c&&ns(s)==`wrapper`)var c=new Kr([],!0)}for(i=c?i:r;++i<r;){s=t[i];var l=ns(s),u=l==`wrapper`?ts(s):n;c=u&&Cs(u[0])&&u[1]==(w|b|S|T)&&!u[4].length&&u[9]==1?c[ns(u[0])].apply(c,u[3]):s.length==1&&Cs(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&e.length==1&&G(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}})}function No(e,t,r,i,a,o,s,c,l,u){var d=t&w,f=t&_,p=t&v,m=t&(b|x),h=t&ee,g=p?n:ko(e);function y(){for(var n=arguments.length,_=ot(n),v=n;v--;)_[v]=arguments[v];if(m)var b=rs(y),x=gr(_,b);if(i&&(_=go(_,i,a,m)),o&&(_=_o(_,o,s,m)),n-=x,m&&n<u){var S=Er(_,b);return Vo(e,t,No,y.placeholder,r,_,S,c,l,u-n)}var C=f?r:this,w=p?C[e]:e;return n=_.length,c?_=Fs(_,c):h&&n>1&&_.reverse(),d&&l<n&&(_.length=l),this&&this!==Cn&&this instanceof y&&(w=g||ko(w)),w.apply(C,_)}return y}function Po(e,t){return function(n,r){return ia(n,e,t(r),{})}}function Fo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Ja(r),i=Ja(i)):(r=qa(r),i=qa(i)),a=e(r,i)}return a}}function Io(e){return Qo(function(t){return t=Un(t,dr(V())),z(function(n){var r=this;return e(t,function(e){return Fn(e,r,n)})})})}function Lo(e,t){t=t===n?` `:Ja(t);var r=t.length;if(r<2)return r?Fa(t,e):t;var i=Fa(t,tn(e/jr(t)));return xr(t)?oo(Mr(i),0,e).join(``):i.slice(0,e)}function Ro(e,t,n,r){var i=t&_,a=ko(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=ot(l+s),d=this&&this!==Cn&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return Fn(d,i?n:this,u)}return o}function zo(e){return function(t,r,i){return i&&typeof i!=`number`&&bs(t,r,i)&&(r=i=n),t=td(t),r===n?(r=t,t=0):r=td(r),i=i===n?t<r?1:-1:td(i),Pa(t,r,i,e)}}function Bo(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=rd(t),n=rd(n)),e(t,n)}}function Vo(e,t,r,i,a,o,s,c,l,u){var d=t&b,f=d?s:n,p=d?n:s,m=d?o:n,h=d?n:o;t|=d?S:C,t&=~(d?C:S),t&y||(t&=~(_|v));var g=[e,t,a,m,f,h,p,c,l,u],x=r.apply(n,g);return Cs(e)&&Ls(x,g),x.placeholder=i,Bs(x,e,t)}function Ho(e){var t=Tt[e];return function(e,n){if(e=rd(e),n=n==null?0:hn(q(n),292),n&&cn(e)){var r=(J(e)+`e`).split(`e`);return r=(J(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Uo=Dn&&1/Dr(new Dn([,-0]))[1]==se?function(e){return new Dn(e)}:Wf;function Wo(e){return function(t){var n=us(t);return n==be?wr(t):n==De?Or(t):lr(t,e(t))}}function Go(e,t,r,i,a,s,c,l){var u=t&v;if(!u&&typeof e!=`function`)throw new Ot(o);var d=i?i.length:0;if(d||(t&=~(S|C),i=a=n),c=c===n?c:dn(q(c),0),l=l===n?l:q(l),d-=a?a.length:0,t&C){var f=i,p=a;i=a=n}var m=u?n:ts(e),h=[e,t,r,i,a,f,p,s,c,l];if(m&&As(h,m),e=h[0],t=h[1],r=h[2],i=h[3],a=h[4],l=h[9]=h[9]===n?u?0:e.length:dn(h[9]-d,0),!l&&t&(b|x)&&(t&=~(b|x)),!t||t==_)var g=Eo(e,t,r);else g=t==b||t==x?Ao(e,t,l):(t==S||t==(_|S))&&!a.length?Ro(e,t,r,i):No.apply(n,h);return Bs((m?za:Ls)(g,h),e,t)}function Ko(e,t,r,i){return e===n||mu(e,jt[r])&&!M.call(i,r)?t:e}function qo(e,t,r,i,a,o){return Mu(e)&&Mu(t)&&(o.set(t,e),wa(e,t,n,qo,o),o.delete(t)),e}function Jo(e){return Hu(e)?n:e}function Yo(e,t,r,i,a,o){var s=r&h,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&g?new mi:n;for(o.set(e,t),o.set(t,e);++f<c;){var _=e[f],v=t[f];if(i)var y=s?i(v,_,f,t,e,o):i(_,v,f,e,t,o);if(y!==n){if(y)continue;p=!1;break}if(m){if(!qn(t,function(e,t){if(!pr(m,t)&&(_===e||a(_,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(_===v||a(_,v,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Xo(e,t,n,r,i,a,o){switch(n){case Pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ne:return!(e.byteLength!=t.byteLength||!a(new Ht(e),new Ht(t)));case me:case he:case xe:return mu(+e,+t);case _e:return e.name==t.name&&e.message==t.message;case Ee:case Oe:return e==t+``;case be:var s=wr;case De:var c=r&h;if(s||=Dr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=g,o.set(e,t);var u=Yo(s(e),s(t),r,i,a,o);return o.delete(e),u;case ke:if(Hr)return Hr.call(e)==Hr.call(t)}return!1}function Zo(e,t,r,i,a,o){var s=r&h,c=$o(e),l=c.length;if(l!=$o(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:M.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){d=c[u];var _=e[d],v=t[d];if(i)var y=s?i(v,_,d,t,e,o):i(_,v,d,e,t,o);if(!(y===n?_===v||a(_,v,r,i,o):y)){m=!1;break}g||=d==`constructor`}if(m&&!g){var b=e.constructor,x=t.constructor;b!=x&&`constructor`in e&&`constructor`in t&&!(typeof b==`function`&&b instanceof b&&typeof x==`function`&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}function Qo(e){return zs(Ns(e,n,sc),e+``)}function $o(e){return Qi(e,Dd,cs)}function es(e){return Qi(e,Od,ls)}var ts=Yn?function(e){return Yn.get(e)}:Wf;function ns(e){for(var t=e.name+``,n=ir[t],r=M.call(ir,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function rs(e){return(M.call(P,`placeholder`)?P:e).placeholder}function V(){var e=P.iteratee||Lf;return e=e===Lf?_a:e,arguments.length?e(arguments[0],arguments[1]):e}function is(e,t){var n=e.__data__;return Ss(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function as(e){for(var t=Dd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ds(i)]}return t}function os(e,t){var r=br(e,t);return pa(r)?r:n}function ss(e){var t=M.call(e,Xt),r=e[Xt];try{e[Xt]=n;var i=!0}catch{}var a=It.call(e);return i&&(t?e[Xt]=r:delete e[Xt]),a}var cs=rn?function(e){return e==null?[]:(e=j(e),Bn(rn(e),function(t){return Kt.call(e,t)}))}:$f,ls=rn?function(e){for(var t=[];e;)Wn(t,cs(e)),e=Wt(e);return t}:$f,us=$i;(Sn&&us(new Sn(new ArrayBuffer(1)))!=Pe||wn&&us(new wn)!=be||Tn&&us(Tn.resolve())!=we||Dn&&us(new Dn)!=De||On&&us(new On)!=je)&&(us=function(e){var t=$i(e),r=t==Ce?e.constructor:n,i=r?Gs(r):``;if(i)switch(i){case kr:return Pe;case Fr:return be;case Ir:return we;case zr:return De;case Br:return je}return t});function ds(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=hn(t,e+o);break;case`takeRight`:e=dn(e,t-o);break}}return{start:e,end:t}}function fs(e){var t=e.match(ct);return t?t[1].split(lt):[]}function ps(e,t,n){t=io(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Ws(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ju(i)&&ys(o,i)&&(G(e)||_u(e)))}function ms(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&M.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function hs(e){return typeof e.constructor==`function`&&!Es(e)?Wr(Wt(e)):{}}function gs(e,t,n){var r=e.constructor;switch(t){case Ne:return lo(e);case me:case he:return new r(+e);case Pe:return uo(e,n);case Fe:case Ie:case Le:case Re:case ze:case Be:case Ve:case He:case Ue:return B(e,n);case be:return new r;case xe:case Oe:return new r(e);case Ee:return fo(e);case De:return new r;case ke:return po(e)}}function _s(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(st,`{
52
+ `}});if(zn(e))return O.createElement(J,{renderAppShell:t,title:`Unhandled Thrown Response!`},O.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),n);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return O.createElement(J,{renderAppShell:t,title:`Application Error!`},O.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),O.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function sd({hasRootLayout:e}){let t=Pa();if(e===void 0)throw Error(`Missing 'hasRootLayout' prop`);return O.createElement(od,{renderAppShell:!e,error:t})}function cd(e){let t={};for(let n of e.matches)ld(t,n);return t}function ld(e,t){t=Array.isArray(t)?t:[t];for(let n of t)e[n.id]={links:n.links,meta:n.meta,default:ud}}var ud=()=>null,dd=`/__manifest`,fd=O.use;function pd(e){if(fd)return fd(e);throw Error(`React Router v7 requires React 19+ for RSC features.`)}async function md({request:e,serverResponse:t,createFromReadableStream:n,renderHTML:r,hydrate:i=!0}){let a=new URL(e.url);if(gd(a)||_d(a)||e.headers.has(`rsc-action-id`)||t.headers.get(`React-Router-Resource`)===`true`)return t;if(!t.body)throw Error(`Missing body in server response`);let o=t.clone(),s=null;i&&(s=t.clone());let c=t.body,l,u=[],d=()=>l?new ReadableStream({start(e){l.forEach(t=>e.enqueue(t)),u.push(e)}}):(l=[],c.pipeThrough(new TransformStream({transform(e,t){l.push(e),t.enqueue(e),u.forEach(t=>t.enqueue(e))},flush(){u.forEach(e=>e.close()),u=[]}}))),f=null,p=()=>{let e=Promise.resolve(n(d()));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return e.then(e=>e.type===`render`?e.formState:void 0)}}})},m,h;try{if(!o.body)throw Error(`Failed to clone server response`);let e=await n(o.body);if(t.status===202&&e.type===`redirect`){let n=new Headers(t.headers);return n.delete(`Content-Encoding`),n.delete(`Content-Length`),n.delete(`Content-Type`),n.delete(`X-Remix-Response`),n.set(`Location`,e.location),new Response(s?.body||``,{headers:n,status:e.status,statusText:t.statusText})}let a=new Headers,c=t.status,l=t.statusText,u=await r(p,{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(m=Zi(e.digest),m)return e.digest;let t=Qi(e.digest);if(t)return h=t,c=t.status,l=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)a.append(t,n)}}),d=new Headers(a);for(let[e,n]of t.headers)d.append(e,n);if(d.set(`Content-Type`,`text/html; charset=utf-8`),m)return d.set(`Location`,m.location),new Response(u,{status:m.status,headers:d});let f=new TransformStream({flush(e){m&&e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${bs(m.location)}"/>`))}});if(!i)return new Response(u.pipeThrough(f),{status:c,statusText:l,headers:d});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(q(s.body)).pipeThrough(f);return new Response(g,{status:c,statusText:l,headers:d})}catch(e){if(e instanceof Response)return e;if(m)return new Response(`Redirect: ${m.location}`,{status:m.status,headers:{Location:m.location}});try{e=h??e;let[a,o]=zn(e)?[e.status,e.statusText]:[500,``],c,l=new Headers,u=await r(()=>{let t=Promise.resolve(n(d())).then(t=>Object.assign(t,{status:a,errors:f?{[f]:e}:{}}));return Object.defineProperties(t,{_deepestRenderedBoundaryId:{get(){return f},set(e){f=e}},formState:{get(){return t.then(e=>e.type===`render`?e.formState:void 0)}}})},{onError(e){if(typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){if(c=Zi(e.digest),c)return e.digest;let t=Qi(e.digest);if(t)return a=t.status,o=t.statusText,e.digest}},onHeaders(e){for(let[t,n]of e)l.append(t,n)}}),p=new Headers(l);for(let[e,n]of t.headers)p.append(e,n);if(p.set(`Content-Type`,`text/html; charset=utf-8`),c)return p.set(`Location`,c.location),new Response(u,{status:c.status,headers:p});let m=new TransformStream({flush(e){c&&e.enqueue(new TextEncoder().encode(`<meta http-equiv="refresh" content="0;url=${bs(c.location)}"/>`))}});if(!i)return new Response(u.pipeThrough(m),{status:a,statusText:o,headers:p});if(!s?.body)throw Error(`Failed to clone server response`);let g=u.pipeThrough(q(s.body)).pipeThrough(m);return new Response(g,{status:a,statusText:o,headers:p})}catch{}throw e}}function hd({getPayload:e}){let t=e(),n=pd(t);if(n.type===`redirect`)throw new Response(null,{status:n.status,headers:{Location:n.location}});if(n.type!==`render`)return null;let r={...n.loaderData};for(let e of n.matches)pc(e.id,e.clientLoader,e.hasLoader,!1)&&(e.hydrateFallbackElement||!e.hasLoader)&&delete r[e.id];let i={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:n.actionData,actionHeaders:{},basename:n.basename,errors:n.errors,loaderData:r,loaderHeaders:{},location:n.location,statusCode:200,matches:n.matches.map(e=>({params:e.params,pathname:e.pathname,pathnameBase:e.pathnameBase,route:{id:e.id,action:e.hasAction||!!e.clientAction,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,loader:e.hasLoader||!!e.clientLoader,index:e.index,path:e.path,shouldRevalidate:e.shouldRevalidate}}))},a=Nl(n.matches.reduceRight((e,t)=>{let n={id:t.id,action:t.hasAction||!!t.clientAction,element:t.element,errorElement:t.errorElement,handle:t.handle,hasErrorBoundary:!!t.errorElement,hydrateFallbackElement:t.hydrateFallbackElement,index:t.index,loader:t.hasLoader||!!t.clientLoader,path:t.path,shouldRevalidate:t.shouldRevalidate};return e.length>0&&(n.children=e),[n]},[]),i),o={future:{v8_middleware:!1,unstable_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:``,manifest:{routes:{},version:`1`,url:``,entry:{module:``,imports:[]}},routeDiscovery:n.routeDiscovery.mode===`initial`?{mode:`initial`,manifestPath:dd}:{mode:`lazy`,manifestPath:n.routeDiscovery.manifestPath||dd},routeModules:cd(n)};return O.createElement(Ri.Provider,{value:!0},O.createElement(ad,{location:n.location},O.createElement(kc.Provider,{value:o},O.createElement(kl,{context:i,router:a,hydrate:!1,nonce:n.nonce}))))}function gd(e){return e.pathname.endsWith(`.rsc`)}function _d(e){return e.pathname.endsWith(`.manifest`)}function vd(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Rn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=r.stack,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=r.stack,n[e]=t}}else n[e]=r;return n}function yd({state:e,routes:t,getRouteInfo:n,location:r,basename:i,isSpaMode:a}){let o={...e,loaderData:{...e.loaderData}},s=Yt(t,r,i);if(s)for(let e of s){let t=e.route.id,r=n(t);pc(t,r.clientLoader,r.hasLoader,a)&&(r.hasHydrateFallback||!r.hasLoader)?delete o.loaderData[t]:r.hasLoader||(o.loaderData[t]=null)}return o}var bd=c({HydratedRouter:()=>Ed,RouterProvider:()=>Sd,unstable_RSCHydratedRouter:()=>Nd,unstable_createCallServer:()=>Od,unstable_getRSCStream:()=>Jd}),xd=u(b(),1);function Sd(e){return O.createElement(Za,{flushSync:xd.flushSync,...e})}var Y=null,Cd=null;function wd(){if(!Y&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){let e=document.querySelector(`script[rr-importmap]`);if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error(`Failed to parse import map`,e)}}Y={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function Td({getContext:e,instrumentations:t}){if(wd(),!Y)throw Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=Y;if(!Y.stateDecodingPromise){let e=Y.context.stream;F(e,`No stream found for single fetch decoding`),Y.context.stream=void 0,Y.stateDecodingPromise=Is(e,window).then(e=>{Y.context.state=e.value,n.stateDecodingPromise.value=!0}).catch(e=>{n.stateDecodingPromise.error=e})}if(Y.stateDecodingPromise.error)throw Y.stateDecodingPromise.error;if(!Y.stateDecodingPromise.value)throw Y.stateDecodingPromise;let r=cc(Y.manifest.routes,Y.routeModules,Y.context.state,Y.context.ssr,Y.context.isSpaMode),i;if(Y.context.isSpaMode){let{loaderData:e}=Y.context.state;Y.manifest.routes.root?.hasLoader&&e&&`root`in e&&(i={loaderData:{root:e.root}})}else i=yd({state:Y.context.state,routes:r,getRouteInfo:e=>({clientLoader:Y.routeModules[e]?.clientLoader,hasLoader:Y.manifest.routes[e]?.hasLoader===!0,hasHydrateFallback:Y.routeModules[e]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:Y.context.isSpaMode}),i&&i.errors&&(i.errors=vd(i.errors));window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},``);let a=vr({routes:r,history:kt(),basename:Y.context.basename,getContext:e,hydrationData:i,hydrationRouteProperties:Ja,instrumentations:t,mapRouteProperties:qa,future:{v8_passThroughRequests:Y.context.future.v8_passThroughRequests},dataStrategy:Es(()=>a,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.basename,Y.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:bc(()=>a,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.routeDiscovery,Y.context.isSpaMode,Y.context.basename)});return Y.router=a,a.state.initialized&&(Y.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=ac,window.__reactRouterDataRouter=a,a}function Ed(e){Cd||=Td({getContext:e.getContext,instrumentations:e.instrumentations});let[t,n]=O.useState(void 0);O.useEffect(()=>{},[]),O.useEffect(()=>{},[t]);let[r,i]=O.useState(Cd.state.location);return O.useLayoutEffect(()=>{Y&&Y.router&&!Y.routerInitialized&&(Y.routerInitialized=!0,Y.router.initialize())},[]),O.useLayoutEffect(()=>{if(Y&&Y.router)return Y.router.subscribe(e=>{e.location!==r&&i(e.location)})},[r]),F(Y,`ssrInfo unavailable for HydratedRouter`),xc(Cd,Y.manifest,Y.routeModules,Y.context.ssr,Y.context.routeDiscovery,Y.context.isSpaMode),O.createElement(O.Fragment,null,O.createElement(kc.Provider,{value:{manifest:Y.manifest,routeModules:Y.routeModules,future:Y.context.future,criticalCss:t,ssr:Y.context.ssr,isSpaMode:Y.context.isSpaMode,routeDiscovery:Y.context.routeDiscovery}},O.createElement(qc,{location:r},O.createElement(Sd,{router:Cd,useTransitions:e.useTransitions,onError:e.onError}))),O.createElement(O.Fragment,null))}var Dd=`/__manifest`;function Od({createFromReadableStream:e,createTemporaryReferenceSet:t,encodeReply:n,fetch:r=fetch}){let i=window;return async(a,o)=>{let s=i.__routerActionID=(i.__routerActionID??=0)+1,c=t(),l=r(new Request(location.href,{body:await n(o,{temporaryReferences:c}),method:`POST`,headers:{Accept:`text/x-component`,"rsc-action-id":a}})).then(t=>{if(!t.body)throw Error(`No response body`);return e(t.body,{temporaryReferences:c})});return O.startTransition(()=>Promise.resolve(l).then(async e=>{if(e.type===`redirect`){if(e.reload||Wd(e.location)){if(Gd(e.location))throw Error(`Invalid redirect location`);window.location.href=e.location;return}O.startTransition(()=>{i.__reactRouterDataRouter.navigate(e.location,{replace:e.replace})});return}if(e.type!==`action`)throw Error(`Unexpected payload type`);let t=await e.rerender;if(t&&0<s&&i.__routerActionID<=s){if(t.type===`redirect`){if(t.reload||Wd(t.location)){if(Gd(t.location))throw Error(`Invalid redirect location`);window.location.href=t.location;return}O.startTransition(()=>{i.__reactRouterDataRouter.navigate(t.location,{replace:t.replace})});return}O.startTransition(()=>{let e;for(let n of t.matches)i.__reactRouterDataRouter.patchRoutes(e?.id??null,[Pd(n)],!0),e=n;window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp({loaderData:Object.assign({},i.__reactRouterDataRouter.state.loaderData,t.loaderData),errors:t.errors?Object.assign({},i.__reactRouterDataRouter.state.errors,t.errors):null})})}}).catch(()=>{})),l.then(e=>{if(e.type!==`action`&&e.type!==`redirect`)throw Error(`Unexpected payload type`);return e.actionResult})}}function kd({fetchImplementation:e,createFromReadableStream:t,getContext:n,payload:r}){let i=window;if(i.__reactRouterDataRouter&&i.__reactRouterRouteModules)return{router:i.__reactRouterDataRouter,routeModules:i.__reactRouterRouteModules};if(r.type!==`render`)throw Error(`Invalid payload type`);i.__reactRouterRouteModules=i.__reactRouterRouteModules??{},ld(i.__reactRouterRouteModules,r.matches);let a=r.matches.reduceRight((e,t)=>{let n=Pd(t,r);return e.length>0?n.children=e:n.index||(n.children=[]),[n]},[]),o;return i.__reactRouterDataRouter=vr({routes:a,getContext:n,basename:r.basename,history:kt(),hydrationData:yd({state:{loaderData:r.loaderData,actionData:r.actionData,errors:r.errors},routes:a,getRouteInfo:e=>{let t=r.matches.find(t=>t.id===e);return F(t,`Route not found in payload`),{clientLoader:t.clientLoader,hasLoader:t.hasLoader,hasHydrateFallback:t.hydrateFallbackElement!=null}},location:r.location,basename:r.basename,isSpaMode:!1}),async patchRoutesOnNavigation({path:n,signal:i}){if(r.routeDiscovery.mode===`initial`){o||=(async()=>{if(!r.patches)return;let e=await r.patches;O.startTransition(()=>{e.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[Pd(e)])})})})(),await o;return}zd.has(n)||await Vd([n],t,e,i)},dataStrategy:jd(()=>i.__reactRouterDataRouter,!0,r.basename,t,e)}),i.__reactRouterDataRouter.state.initialized?(i.__routerInitialized=!0,i.__reactRouterDataRouter.initialize()):i.__routerInitialized=!1,i.__reactRouterDataRouter.subscribe(({loaderData:e,actionData:t})=>{e!==void 0&&(i.__routerActionID=(i.__routerActionID??=0)+1)}),i.__reactRouterDataRouter._updateRoutesForHMR=e=>{let t=window.__reactRouterDataRouter.routes,n=[];function r(t,n){return t.map(t=>{let i=e.get(t.id);if(i){let{routeModule:e,hasAction:a,hasComponent:o,hasErrorBoundary:s,hasLoader:c}=i,l=Pd({clientAction:e.clientAction,clientLoader:e.clientLoader,element:t.element,errorElement:t.errorElement,handle:t.handle,hasAction:a,hasComponent:o,hasErrorBoundary:s,hasLoader:c,hydrateFallbackElement:t.hydrateFallbackElement,id:t.id,index:t.index,links:e.links,meta:e.meta,parentId:n,path:t.path,shouldRevalidate:e.shouldRevalidate});return t.children&&(l.children=r(t.children,t.id)),l}let a={...t};return t.children&&(a.children=r(t.children,t.id)),a})}n.push(...r(t,void 0)),window.__reactRouterDataRouter._internalSetRoutes(n)},{router:i.__reactRouterDataRouter,routeModules:i.__reactRouterRouteModules}}var Ad=zt();function jd(e,t,n,r,i){let a=Ds(e,e=>{let t=e;return{hasLoader:t.route.hasLoader,hasClientLoader:t.route.hasClientLoader,hasComponent:t.route.hasComponent,hasAction:t.route.hasAction,hasClientAction:t.route.hasClientAction}},Md(r,i),t,n,!0,e=>{let t=e;return t.route.hasComponent&&!t.route.element});return async e=>e.runClientMiddleware(async()=>{let t=e.context;t.set(Ad,[]);let n=await a(e),r=new Map;for(let e of t.get(Ad))r.has(e.id)||r.set(e.id,[]),r.get(e.id).push(e);return O.startTransition(()=>{for(let t of e.matches){let e=r.get(t.route.id);if(e)for(let t of e)window.__reactRouterDataRouter.patchRoutes(t.parentId??null,[Pd(t)],!0)}}),n})}function Md(e,t){return async(n,r,i,a)=>{let{request:o,context:s}=n,c=Ps(o.url,r,i,`rsc`);o.method===`GET`&&(c=Ns(c),a&&c.searchParams.set(`_routes`,a.join(`,`)));let l=await t(new Request(c,await _s(o)));if(l.status>=400&&!l.headers.has(`X-Remix-Response`))throw new Rn(l.status,l.statusText,await l.text());F(l.body,`No response body to decode`);try{let t=await e(l.body,{temporaryReferences:void 0});if(t.type===`redirect`)return{status:l.status,data:{redirect:{redirect:t.location,reload:t.reload,replace:t.replace,revalidate:!1,status:t.status}}};if(t.type!==`render`)throw Error(`Unexpected payload type`);s.get(Ad).push(...t.matches);let n={routes:{}},r=Ei(o.method)?`actionData`:`loaderData`;for(let[e,i]of Object.entries(t[r]||{}))n.routes[e]={data:i};if(t.errors)for(let[e,r]of Object.entries(t.errors))n.routes[e]={error:r};return{status:l.status,data:n}}catch(e){throw Error(`Unable to decode RSC response`,{cause:e})}}}function Nd({createFromReadableStream:e,fetch:t=fetch,payload:n,getContext:r}){if(n.type!==`render`)throw Error(`Invalid payload type`);let{routeDiscovery:i}=n,{router:a,routeModules:o}=O.useMemo(()=>kd({payload:n,fetchImplementation:t,getContext:r,createFromReadableStream:e}),[e,n,t,r]);O.useEffect(()=>{Uc()},[]),O.useLayoutEffect(()=>{let e=window;e.__routerInitialized||(e.__routerInitialized=!0,e.__reactRouterDataRouter.initialize())},[]);let[{routes:s,state:c},l]=O.useState(()=>({routes:Kd(a.routes),state:a.state}));O.useLayoutEffect(()=>a.subscribe(e=>{qd(a.routes,s)&&O.startTransition(()=>{l({routes:Kd(a.routes),state:e})})}),[a.subscribe,s,a]);let u=O.useMemo(()=>({...a,state:c,routes:s}),[a,s,c]);O.useEffect(()=>{if(i.mode===`initial`||window.navigator?.connection?.saveData===!0)return;function n(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;zd.has(n)||Ld.add(n)}async function r(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(n);let r=Array.from(Ld.keys()).filter(e=>zd.has(e)?(Ld.delete(e),!1):!0);if(r.length!==0)try{await Vd(r,e,t)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let a=Ud(r,100);r(),new MutationObserver(()=>a()).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]})},[i,e,t]);let d={future:{v8_middleware:!1,unstable_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:``,manifest:{routes:{},version:`1`,url:``,entry:{module:``,imports:[]}},routeDiscovery:n.routeDiscovery.mode===`initial`?{mode:`initial`,manifestPath:Dd}:{mode:`lazy`,manifestPath:n.routeDiscovery.manifestPath||Dd},routeModules:o};return O.createElement(Ri.Provider,{value:!0},O.createElement(ad,{location:c.location},O.createElement(kc.Provider,{value:d},O.createElement(Za,{router:u,flushSync:xd.flushSync}))))}function Pd(e,t){let n=t&&e.id in t.loaderData,r=t?.loaderData[e.id],i=t?.errors&&e.id in t.errors,a=t?.errors?.[e.id],o=e.clientLoader?.hydrate===!0||!e.hasLoader||e.hasComponent&&!e.element;F(window.__reactRouterRouteModules),ld(window.__reactRouterRouteModules,e);let s={id:e.id,element:e.element,errorElement:e.errorElement,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,hydrateFallbackElement:e.hydrateFallbackElement,index:e.index,loader:e.clientLoader?async(t,s)=>{try{return await e.clientLoader({...t,serverLoader:()=>{if(Id(`loader`,e.id,e.hasLoader),o){if(n)return r;if(i)throw a}return Fd(s)}})}finally{o=!1}}:((e,t)=>Fd(t)),action:e.clientAction?(t,n)=>e.clientAction({...t,serverAction:async()=>(Id(`action`,e.id,e.hasLoader),await Fd(n))}):e.hasAction?(e,t)=>Fd(t):()=>{throw sc(`action`,e.id)},path:e.path,shouldRevalidate:e.shouldRevalidate,hasLoader:!0,hasClientLoader:e.clientLoader!=null,hasAction:e.hasAction,hasClientAction:e.clientAction!=null};return typeof s.loader==`function`&&(s.loader.hydrate=pc(e.id,e.clientLoader,e.hasLoader,!1)),s}function Fd(e){return F(typeof e==`function`,`Invalid singleFetch parameter`),e()}function Id(e,t,n){if(!n){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t}")`;throw console.error(n),new Rn(400,`Bad Request`,Error(n),!0)}}var Ld=new Set,Rd=1e3,zd=new Set;function Bd(e){if(e.length===0)return null;if(e.length===1)return new URL(`${e[0]}.manifest`,window.location.origin);let t=(window.__reactRouterDataRouter.basename??``).replace(/^\/|\/$/g,``),n=new URL(`${t}/.manifest`,window.location.origin);return n.searchParams.set(`paths`,e.sort().join(`,`)),n}async function Vd(e,t,n,r){let i=Bd(e);if(i==null)return;if(i.toString().length>7680){Ld.clear();return}let a=await n(new Request(i,{signal:r}));if(!a.body||a.status<200||a.status>=300)throw Error(`Unable to fetch new route matches from the server`);let o=await t(a.body,{temporaryReferences:void 0});if(o.type!==`manifest`)throw Error(`Failed to patch routes`);e.forEach(e=>Hd(e,zd));let s=await o.patches;O.startTransition(()=>{s.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[Pd(e)])})})}function Hd(e,t){if(t.size>=Rd){let e=t.values().next().value;typeof e==`string`&&t.delete(e)}t.add(e)}function Ud(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Wd(e){return new URL(e,window.location.href).origin!==window.location.origin}function Gd(e){try{return Qr.includes(new URL(e).protocol)}catch{return!1}}function Kd(e){if(e)return e.map(e=>({...e,children:Kd(e.children)}))}function qd(e,t){return e.length===t.length?e.some((e,n)=>e.element!==t[n].element||e.errorElement!==t[n].errorElement||e.hydrateFallbackElement!==t[n].hydrateFallbackElement||e.hasErrorBoundary!==t[n].hasErrorBoundary||e.hasLoader!==t[n].hasLoader||e.hasClientLoader!==t[n].hasClientLoader||e.hasAction!==t[n].hasAction||e.hasClientAction!==t[n].hasClientAction?!0:qd(e.children||[],t[n].children||[])):!0}function Jd(){let e=new TextEncoder,t=null,n=new ReadableStream({start(n){if(typeof window>`u`)return;let r=t=>{typeof t==`string`?n.enqueue(e.encode(t)):n.enqueue(t)};window.__FLIGHT_DATA||(window.__FLIGHT_DATA=[]),window.__FLIGHT_DATA.forEach(r),window.__FLIGHT_DATA.push=e=>(r(e),0),t=n}});return typeof document<`u`&&document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>{t?.close()}):t?.close(),n}var Yd=c({Await:()=>so,BrowserRouter:()=>tl,Form:()=>sl,HashRouter:()=>nl,IDLE_BLOCKER:()=>lr,IDLE_FETCHER:()=>cr,IDLE_NAVIGATION:()=>sr,Link:()=>al,Links:()=>Fc,MemoryRouter:()=>to,Meta:()=>Bc,NavLink:()=>ol,Navigate:()=>no,NavigationType:()=>Tt,Outlet:()=>ro,PrefetchPageLinks:()=>Ic,Route:()=>io,Router:()=>ao,RouterContextProvider:()=>Vt,RouterProvider:()=>Za,Routes:()=>oo,Scripts:()=>Wc,ScrollRestoration:()=>cl,ServerRouter:()=>Hl,StaticRouter:()=>Ol,StaticRouterProvider:()=>kl,UNSAFE_AwaitContextProvider:()=>Ui,UNSAFE_DataRouterContext:()=>Ii,UNSAFE_DataRouterStateContext:()=>Li,UNSAFE_ErrorResponseImpl:()=>Rn,UNSAFE_FetchersContext:()=>Vi,UNSAFE_FrameworkContext:()=>kc,UNSAFE_LocationContext:()=>Gi,UNSAFE_NavigationContext:()=>Wi,UNSAFE_RSCDefaultRootErrorBoundary:()=>sd,UNSAFE_RemixErrorBoundary:()=>qc,UNSAFE_RouteContext:()=>Ki,UNSAFE_ServerMode:()=>au,UNSAFE_SingleFetchRedirectSymbol:()=>Ss,UNSAFE_ViewTransitionContext:()=>Bi,UNSAFE_WithComponentProps:()=>mo,UNSAFE_WithErrorBoundaryProps:()=>bo,UNSAFE_WithHydrateFallbackProps:()=>_o,UNSAFE_createBrowserHistory:()=>kt,UNSAFE_createClientRoutes:()=>cc,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>ac,UNSAFE_createHashHistory:()=>At,UNSAFE_createMemoryHistory:()=>Ot,UNSAFE_createRouter:()=>vr,UNSAFE_decodeViaTurboStream:()=>Is,UNSAFE_deserializeErrors:()=>vd,UNSAFE_getHydrationData:()=>yd,UNSAFE_getPatchRoutesOnNavigationFunction:()=>bc,UNSAFE_getTurboStreamSingleFetchDataStrategy:()=>Es,UNSAFE_hydrationRouteProperties:()=>Ja,UNSAFE_invariant:()=>F,UNSAFE_mapRouteProperties:()=>qa,UNSAFE_shouldHydrateRouteLoader:()=>pc,UNSAFE_useFogOFWarDiscovery:()=>xc,UNSAFE_useScrollRestoration:()=>Cl,UNSAFE_withComponentProps:()=>ho,UNSAFE_withErrorBoundaryProps:()=>xo,UNSAFE_withHydrateFallbackProps:()=>vo,createBrowserRouter:()=>Zc,createContext:()=>zt,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createHashRouter:()=>Qc,createMemoryRouter:()=>Ya,createMemorySessionStorage:()=>Zu,createPath:()=>Ft,createRequestHandler:()=>Lu,createRoutesFromChildren:()=>uo,createRoutesFromElements:()=>fo,createRoutesStub:()=>Ul,createSearchParams:()=>Ao,createSession:()=>Ku,createSessionStorage:()=>Ju,createStaticHandler:()=>Ml,createStaticRouter:()=>Nl,data:()=>Pn,generatePath:()=>pn,href:()=>Qu,isCookie:()=>Yl,isRouteErrorResponse:()=>zn,isSession:()=>qu,matchPath:()=>mn,matchRoutes:()=>Yt,parsePath:()=>It,redirect:()=>Fn,redirectDocument:()=>In,renderMatches:()=>V,replace:()=>Ln,resolvePath:()=>xn,unstable_HistoryRouter:()=>rl,unstable_RSCStaticRouter:()=>hd,unstable_routeRSCServerRequest:()=>md,unstable_setDevServerHooks:()=>_u,unstable_usePrompt:()=>El,unstable_useRoute:()=>Va,useActionData:()=>Na,useAsyncError:()=>Fa,useAsyncValue:()=>B,useBeforeUnload:()=>wl,useBlocker:()=>La,useFetcher:()=>vl,useFetchers:()=>yl,useFormAction:()=>_l,useHref:()=>$i,useInRouterContext:()=>ea,useLinkClickHandler:()=>fl,useLoaderData:()=>ja,useLocation:()=>ta,useMatch:()=>ra,useMatches:()=>Aa,useNavigate:()=>oa,useNavigation:()=>Oa,useNavigationType:()=>na,useOutlet:()=>ua,useOutletContext:()=>la,useParams:()=>da,useResolvedPath:()=>fa,useRevalidator:()=>ka,useRouteError:()=>Pa,useRouteLoaderData:()=>Ma,useRoutes:()=>pa,useSearchParams:()=>pl,useSubmit:()=>gl,useViewTransitionState:()=>Dl}),Xd=c({Await:()=>so,BrowserRouter:()=>tl,Form:()=>sl,HashRouter:()=>nl,HydratedRouter:()=>Ed,IDLE_BLOCKER:()=>lr,IDLE_FETCHER:()=>cr,IDLE_NAVIGATION:()=>sr,Link:()=>al,Links:()=>Fc,MemoryRouter:()=>to,Meta:()=>Bc,NavLink:()=>ol,Navigate:()=>no,NavigationType:()=>Tt,Outlet:()=>ro,PrefetchPageLinks:()=>Ic,Route:()=>io,Router:()=>ao,RouterContextProvider:()=>Vt,RouterProvider:()=>Sd,Routes:()=>oo,Scripts:()=>Wc,ScrollRestoration:()=>cl,ServerRouter:()=>Hl,StaticRouter:()=>Ol,StaticRouterProvider:()=>kl,UNSAFE_AwaitContextProvider:()=>Ui,UNSAFE_DataRouterContext:()=>Ii,UNSAFE_DataRouterStateContext:()=>Li,UNSAFE_ErrorResponseImpl:()=>Rn,UNSAFE_FetchersContext:()=>Vi,UNSAFE_FrameworkContext:()=>kc,UNSAFE_LocationContext:()=>Gi,UNSAFE_NavigationContext:()=>Wi,UNSAFE_RSCDefaultRootErrorBoundary:()=>sd,UNSAFE_RemixErrorBoundary:()=>qc,UNSAFE_RouteContext:()=>Ki,UNSAFE_ServerMode:()=>au,UNSAFE_SingleFetchRedirectSymbol:()=>Ss,UNSAFE_ViewTransitionContext:()=>Bi,UNSAFE_WithComponentProps:()=>mo,UNSAFE_WithErrorBoundaryProps:()=>bo,UNSAFE_WithHydrateFallbackProps:()=>_o,UNSAFE_createBrowserHistory:()=>kt,UNSAFE_createClientRoutes:()=>cc,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:()=>ac,UNSAFE_createHashHistory:()=>At,UNSAFE_createMemoryHistory:()=>Ot,UNSAFE_createRouter:()=>vr,UNSAFE_decodeViaTurboStream:()=>Is,UNSAFE_deserializeErrors:()=>vd,UNSAFE_getHydrationData:()=>yd,UNSAFE_getPatchRoutesOnNavigationFunction:()=>bc,UNSAFE_getTurboStreamSingleFetchDataStrategy:()=>Es,UNSAFE_hydrationRouteProperties:()=>Ja,UNSAFE_invariant:()=>F,UNSAFE_mapRouteProperties:()=>qa,UNSAFE_shouldHydrateRouteLoader:()=>pc,UNSAFE_useFogOFWarDiscovery:()=>xc,UNSAFE_useScrollRestoration:()=>Cl,UNSAFE_withComponentProps:()=>ho,UNSAFE_withErrorBoundaryProps:()=>xo,UNSAFE_withHydrateFallbackProps:()=>vo,createBrowserRouter:()=>Zc,createContext:()=>zt,createCookie:()=>Jl,createCookieSessionStorage:()=>Xu,createHashRouter:()=>Qc,createMemoryRouter:()=>Ya,createMemorySessionStorage:()=>Zu,createPath:()=>Ft,createRequestHandler:()=>Lu,createRoutesFromChildren:()=>uo,createRoutesFromElements:()=>fo,createRoutesStub:()=>Ul,createSearchParams:()=>Ao,createSession:()=>Ku,createSessionStorage:()=>Ju,createStaticHandler:()=>Ml,createStaticRouter:()=>Nl,data:()=>Pn,generatePath:()=>pn,href:()=>Qu,isCookie:()=>Yl,isRouteErrorResponse:()=>zn,isSession:()=>qu,matchPath:()=>mn,matchRoutes:()=>Yt,parsePath:()=>It,redirect:()=>Fn,redirectDocument:()=>In,renderMatches:()=>V,replace:()=>Ln,resolvePath:()=>xn,unstable_HistoryRouter:()=>rl,unstable_RSCStaticRouter:()=>hd,unstable_routeRSCServerRequest:()=>md,unstable_setDevServerHooks:()=>_u,unstable_usePrompt:()=>El,unstable_useRoute:()=>Va,useActionData:()=>Na,useAsyncError:()=>Fa,useAsyncValue:()=>B,useBeforeUnload:()=>wl,useBlocker:()=>La,useFetcher:()=>vl,useFetchers:()=>yl,useFormAction:()=>_l,useHref:()=>$i,useInRouterContext:()=>ea,useLinkClickHandler:()=>fl,useLoaderData:()=>ja,useLocation:()=>ta,useMatch:()=>ra,useMatches:()=>Aa,useNavigate:()=>oa,useNavigation:()=>Oa,useNavigationType:()=>na,useOutlet:()=>ua,useOutletContext:()=>la,useParams:()=>da,useResolvedPath:()=>fa,useRevalidator:()=>ka,useRouteError:()=>Pa,useRouteLoaderData:()=>Ma,useRoutes:()=>pa,useSearchParams:()=>pl,useSubmit:()=>gl,useViewTransitionState:()=>Dl}),Zd=u(s(((e,t)=>{(function(){var n,r=`4.18.1`,i=200,a=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,o=`Expected a function`,s="Invalid `variable` option passed into `_.template`",c="Invalid `imports` option passed into `_.template`",l=`__lodash_hash_undefined__`,u=500,d=`__lodash_placeholder__`,f=1,p=2,m=4,h=1,g=2,_=1,v=2,y=4,b=8,x=16,S=32,C=64,w=128,T=256,E=512,ee=30,D=`...`,O=800,te=16,ne=1,re=2,ie=3,k=1/0,ae=9007199254740991,A=17976931348623157e292,j=NaN,oe=4294967295,se=oe-1,ce=oe>>>1,le=[[`ary`,w],[`bind`,_],[`bindKey`,v],[`curry`,b],[`curryRight`,x],[`flip`,E],[`partial`,S],[`partialRight`,C],[`rearg`,T]],M=`[object Arguments]`,N=`[object Array]`,ue=`[object AsyncFunction]`,de=`[object Boolean]`,fe=`[object Date]`,pe=`[object DOMException]`,me=`[object Error]`,he=`[object Function]`,ge=`[object GeneratorFunction]`,_e=`[object Map]`,ve=`[object Number]`,ye=`[object Null]`,be=`[object Object]`,xe=`[object Promise]`,Se=`[object Proxy]`,Ce=`[object RegExp]`,we=`[object Set]`,Te=`[object String]`,Ee=`[object Symbol]`,De=`[object Undefined]`,Oe=`[object WeakMap]`,ke=`[object WeakSet]`,Ae=`[object ArrayBuffer]`,je=`[object DataView]`,Me=`[object Float32Array]`,Ne=`[object Float64Array]`,Pe=`[object Int8Array]`,Fe=`[object Int16Array]`,Ie=`[object Int32Array]`,Le=`[object Uint8Array]`,Re=`[object Uint8ClampedArray]`,ze=`[object Uint16Array]`,Be=`[object Uint32Array]`,Ve=/\b__p \+= '';/g,He=/\b(__p \+=) '' \+/g,Ue=/(__e\(.*?\)|\b__t\)) \+\n'';/g,We=/&(?:amp|lt|gt|quot|#39);/g,Ge=/[&<>"']/g,Ke=RegExp(We.source),qe=RegExp(Ge.source),Je=/<%-([\s\S]+?)%>/g,Ye=/<%([\s\S]+?)%>/g,Xe=/<%=([\s\S]+?)%>/g,Ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qe=/^\w*$/,$e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(et.source),nt=/^\s+/,rt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,ht=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,yt=/['\n\r\u2028\u2029\\]/g,bt=`\\ud800-\\udfff`,xt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,St=`\\u2700-\\u27bf`,P=`a-z\\xdf-\\xf6\\xf8-\\xff`,Ct=`\\xac\\xb1\\xd7\\xf7`,wt=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Tt=`\\u2000-\\u206f`,Et=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Dt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Ot=`\\ufe0e\\ufe0f`,kt=Ct+wt+Tt+Et,At=`['’]`,F=`[`+bt+`]`,jt=`[`+kt+`]`,Mt=`[`+xt+`]`,Nt=`\\d+`,Pt=`[`+St+`]`,Ft=`[`+P+`]`,It=`[^`+bt+kt+Nt+St+P+Dt+`]`,Lt=`\\ud83c[\\udffb-\\udfff]`,Rt=`(?:`+Mt+`|`+Lt+`)`,zt=`[^`+bt+`]`,Bt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Vt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Ht=`[`+Dt+`]`,Ut=`\\u200d`,Wt=`(?:`+Ft+`|`+It+`)`,Gt=`(?:`+Ht+`|`+It+`)`,Kt=`(?:`+At+`(?:d|ll|m|re|s|t|ve))?`,qt=`(?:`+At+`(?:D|LL|M|RE|S|T|VE))?`,Jt=Rt+`?`,Yt=`[`+Ot+`]?`,Xt=`(?:`+Ut+`(?:`+[zt,Bt,Vt].join(`|`)+`)`+Yt+Jt+`)*`,Zt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Qt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,$t=Yt+Jt+Xt,en=`(?:`+[Pt,Bt,Vt].join(`|`)+`)`+$t,tn=`(?:`+[zt+Mt+`?`,Mt,Bt,Vt,F].join(`|`)+`)`,nn=RegExp(At,`g`),rn=RegExp(Mt,`g`),an=RegExp(Lt+`(?=`+Lt+`)|`+tn+$t,`g`),on=RegExp([Ht+`?`+Ft+`+`+Kt+`(?=`+[jt,Ht,`$`].join(`|`)+`)`,Gt+`+`+qt+`(?=`+[jt,Ht+Wt,`$`].join(`|`)+`)`,Ht+`?`+Wt+`+`+Kt,Ht+`+`+qt,Qt,Zt,Nt,en].join(`|`),`g`),sn=RegExp(`[`+Ut+bt+xt+Ot+`]`),cn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ln=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),un=-1,dn={};dn[Me]=dn[Ne]=dn[Pe]=dn[Fe]=dn[Ie]=dn[Le]=dn[Re]=dn[ze]=dn[Be]=!0,dn[M]=dn[N]=dn[Ae]=dn[de]=dn[je]=dn[fe]=dn[me]=dn[he]=dn[_e]=dn[ve]=dn[be]=dn[Ce]=dn[we]=dn[Te]=dn[Oe]=!1;var fn={};fn[M]=fn[N]=fn[Ae]=fn[je]=fn[de]=fn[fe]=fn[Me]=fn[Ne]=fn[Pe]=fn[Fe]=fn[Ie]=fn[_e]=fn[ve]=fn[be]=fn[Ce]=fn[we]=fn[Te]=fn[Ee]=fn[Le]=fn[Re]=fn[ze]=fn[Be]=!0,fn[me]=fn[he]=fn[Oe]=!1;var pn={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},mn={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},hn={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},gn={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},_n=parseFloat,vn=parseInt,yn=typeof global==`object`&&global&&global.Object===Object&&global,bn=typeof self==`object`&&self&&self.Object===Object&&self,xn=yn||bn||Function(`return this`)(),Sn=typeof e==`object`&&e&&!e.nodeType&&e,Cn=Sn&&typeof t==`object`&&t&&!t.nodeType&&t,wn=Cn&&Cn.exports===Sn,Tn=wn&&yn.process,En=function(){try{return Cn&&Cn.require&&Cn.require(`util`).types||Tn&&Tn.binding&&Tn.binding(`util`)}catch{}}(),Dn=En&&En.isArrayBuffer,On=En&&En.isDate,kn=En&&En.isMap,An=En&&En.isRegExp,jn=En&&En.isSet,Mn=En&&En.isTypedArray;function Nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Pn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Fn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function In(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function Ln(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Rn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function zn(e,t){return!!(e!=null&&e.length)&&Zn(e,t,0)>-1}function Bn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Vn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Hn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Un(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Wn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Gn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Kn=tr(`length`);function qn(e){return e.split(``)}function Jn(e){return e.match(st)||[]}function Yn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Xn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Zn(e,t,n){return t===t?Dr(e,t,n):Xn(e,$n,n)}function Qn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function $n(e){return e!==e}function er(e,t){var n=e==null?0:e.length;return n?ar(e,t)/n:j}function tr(e){return function(t){return t==null?n:t[e]}}function nr(e){return function(t){return e==null?n:e[t]}}function rr(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function ir(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ar(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function or(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function sr(e,t){return Vn(t,function(t){return[t,e[t]]})}function cr(e){return e&&e.slice(0,jr(e)+1).replace(nt,``)}function lr(e){return function(t){return e(t)}}function ur(e,t){return Vn(t,function(t){return e[t]})}function dr(e,t){return e.has(t)}function fr(e,t){for(var n=-1,r=e.length;++n<r&&Zn(t,e[n],0)>-1;);return n}function pr(e,t){for(var n=e.length;n--&&Zn(t,e[n],0)>-1;);return n}function mr(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var hr=nr(pn),gr=nr(mn);function _r(e){return`\\`+gn[e]}function vr(e,t){return e==null?n:e[t]}function yr(e){return sn.test(e)}function br(e){return cn.test(e)}function xr(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Sr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Cr(e,t){return function(n){return e(t(n))}}function wr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===d)&&(e[n]=d,a[i++]=n)}return a}function Tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Er(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Dr(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Or(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function kr(e){return yr(e)?Nr(e):Kn(e)}function Ar(e){return yr(e)?Pr(e):qn(e)}function jr(e){for(var t=e.length;t--&&rt.test(e.charAt(t)););return t}var Mr=nr(hn);function Nr(e){for(var t=an.lastIndex=0;an.test(e);)++t;return t}function Pr(e){return e.match(an)||[]}function Fr(e){return e.match(on)||[]}var Ir=(function e(t){t=t==null?xn:Ir.defaults(xn.Object(),t,Ir.pick(xn,ln));var rt=t.Array,st=t.Date,bt=t.Error,xt=t.Function,St=t.Math,P=t.Object,Ct=t.RegExp,wt=t.String,Tt=t.TypeError,Et=rt.prototype,Dt=xt.prototype,Ot=P.prototype,kt=t[`__core-js_shared__`],At=Dt.toString,F=Ot.hasOwnProperty,jt=0,Mt=function(){var e=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Nt=Ot.toString,Pt=At.call(P),Ft=xn._,It=Ct(`^`+At.call(F).replace(et,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Lt=wn?t.Buffer:n,Rt=t.Symbol,zt=t.Uint8Array,Bt=Lt?Lt.allocUnsafe:n,Vt=Cr(P.getPrototypeOf,P),Ht=P.create,Ut=Ot.propertyIsEnumerable,Wt=Et.splice,Gt=Rt?Rt.isConcatSpreadable:n,Kt=Rt?Rt.iterator:n,qt=Rt?Rt.toStringTag:n,Jt=function(){try{var e=as(P,`defineProperty`);return e({},``,{}),e}catch{}}(),Yt=t.clearTimeout!==xn.clearTimeout&&t.clearTimeout,Xt=st&&st.now!==xn.Date.now&&st.now,Zt=t.setTimeout!==xn.setTimeout&&t.setTimeout,Qt=St.ceil,$t=St.floor,en=P.getOwnPropertySymbols,tn=Lt?Lt.isBuffer:n,an=t.isFinite,on=Et.join,sn=Cr(P.keys,P),cn=St.max,pn=St.min,mn=st.now,hn=t.parseInt,gn=St.random,yn=Et.reverse,bn=as(t,`DataView`),Sn=as(t,`Map`),Cn=as(t,`Promise`),Tn=as(t,`Set`),En=as(t,`WeakMap`),Kn=as(P,`create`),qn=En&&new En,nr={},Dr=Ws(bn),Nr=Ws(Sn),Pr=Ws(Cn),Lr=Ws(Tn),Rr=Ws(En),zr=Rt?Rt.prototype:n,Br=zr?zr.valueOf:n,Vr=zr?zr.toString:n;function I(e){if(Nu(e)&&!G(e)&&!(e instanceof L)){if(e instanceof Wr)return e;if(F.call(e,`__wrapped__`))return Ks(e)}return new Wr(e)}var Hr=function(){function e(){}return function(t){if(!Mu(t))return{};if(Ht)return Ht(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Ur(){}function Wr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}I.templateSettings={escape:Je,evaluate:Ye,interpolate:Xe,variable:``,imports:{_:I}},I.prototype=Ur.prototype,I.prototype.constructor=I,Wr.prototype=Hr(Ur.prototype),Wr.prototype.constructor=Wr;function L(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function Gr(){var e=new L(this.__wrapped__);return e.__actions__=_o(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_o(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_o(this.__views__),e}function Kr(){if(this.__filtered__){var e=new L(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function qr(){var e=this.__wrapped__.value(),t=this.__dir__,n=G(e),r=t<0,i=n?e.length:0,a=us(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=pn(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Qa(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==re)g=b;else if(!b){if(y==ne)continue outer;break outer}}m[f++]=g}return m}L.prototype=Hr(Ur.prototype),L.prototype.constructor=L;function Jr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yr(){this.__data__=Kn?Kn(null):{},this.size=0}function Xr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Zr(e){var t=this.__data__;if(Kn){var r=t[e];return r===l?n:r}return F.call(t,e)?t[e]:n}function Qr(e){var t=this.__data__;return Kn?t[e]!==n:F.call(t,e)}function $r(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Kn&&t===n?l:t,this}Jr.prototype.clear=Yr,Jr.prototype.delete=Xr,Jr.prototype.get=Zr,Jr.prototype.has=Qr,Jr.prototype.set=$r;function ei(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ti(){this.__data__=[],this.size=0}function ni(e){var t=this.__data__,n=Di(t,e);return n<0?!1:(n==t.length-1?t.pop():Wt.call(t,n,1),--this.size,!0)}function ri(e){var t=this.__data__,r=Di(t,e);return r<0?n:t[r][1]}function ii(e){return Di(this.__data__,e)>-1}function ai(e,t){var n=this.__data__,r=Di(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}ei.prototype.clear=ti,ei.prototype.delete=ni,ei.prototype.get=ri,ei.prototype.has=ii,ei.prototype.set=ai;function oi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function si(){this.size=0,this.__data__={hash:new Jr,map:new(Sn||ei),string:new Jr}}function ci(e){var t=rs(this,e).delete(e);return this.size-=+!!t,t}function li(e){return rs(this,e).get(e)}function ui(e){return rs(this,e).has(e)}function di(e,t){var n=rs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}oi.prototype.clear=si,oi.prototype.delete=ci,oi.prototype.get=li,oi.prototype.has=ui,oi.prototype.set=di;function fi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oi;++t<n;)this.add(e[t])}function pi(e){return this.__data__.set(e,l),this}function mi(e){return this.__data__.has(e)}fi.prototype.add=fi.prototype.push=pi,fi.prototype.has=mi;function hi(e){var t=this.__data__=new ei(e);this.size=t.size}function gi(){this.__data__=new ei,this.size=0}function _i(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function vi(e){return this.__data__.get(e)}function yi(e){return this.__data__.has(e)}function bi(e,t){var n=this.__data__;if(n instanceof ei){var r=n.__data__;if(!Sn||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new oi(r)}return n.set(e,t),this.size=n.size,this}hi.prototype.clear=gi,hi.prototype.delete=_i,hi.prototype.get=vi,hi.prototype.has=yi,hi.prototype.set=bi;function xi(e,t){var n=G(e),r=!n&&_u(e),i=!n&&!r&&xu(e),a=!n&&!r&&!i&&Ju(e),o=n||r||i||a,s=o?or(e.length,wt):[],c=s.length;for(var l in e)(t||F.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||vs(l,c)))&&s.push(l);return s}function Si(e){var t=e.length;return t?e[Ma(0,t-1)]:n}function Ci(e,t){return Vs(_o(e),Ni(t,0,e.length))}function wi(e){return Vs(_o(e))}function Ti(e,t,r){(r!==n&&!mu(e[t],r)||r===n&&!(t in e))&&ji(e,t,r)}function Ei(e,t,r){var i=e[t];(!(F.call(e,t)&&mu(i,r))||r===n&&!(t in e))&&ji(e,t,r)}function Di(e,t){for(var n=e.length;n--;)if(mu(e[n][0],t))return n;return-1}function Oi(e,t,n,r){return Li(e,function(e,i,a){t(r,e,n(e),a)}),r}function ki(e,t){return e&&vo(t,Dd(t),e)}function Ai(e,t){return e&&vo(t,Od(t),e)}function ji(e,t,n){t==`__proto__`&&Jt?Jt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Mi(e,t){for(var r=-1,i=t.length,a=rt(i),o=e==null;++r<i;)a[r]=o?n:Sd(e,t[r]);return a}function Ni(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function R(e,t,r,i,a,o){var s,c=t&f,l=t&p,u=t&m;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Mu(e))return e;var d=G(e);if(d){if(s=ps(e),!c)return _o(e,s)}else{var h=ls(e),g=h==he||h==ge;if(xu(e))return so(e,c);if(h==be||h==M||g&&!a){if(s=l||g?{}:ms(e),!c)return l?bo(e,Ai(s,e)):yo(e,ki(s,e))}else{if(!fn[h])return a?e:{};s=hs(e,h,c)}}o||=new hi;var _=o.get(e);if(_)return _;o.set(e,s),Gu(e)?e.forEach(function(n){s.add(R(n,t,r,n,e,o))}):Pu(e)&&e.forEach(function(n,i){s.set(i,R(n,t,r,i,e,o))});var v=d?n:(u?l?$o:Qo:l?Od:Dd)(e);return Fn(v||e,function(n,i){v&&(i=n,n=e[i]),Ei(s,i,R(n,t,r,i,e,o))}),s}function Pi(e){var t=Dd(e);return function(n){return z(n,e,t)}}function z(e,t,r){var i=r.length;if(e==null)return!i;for(e=P(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function Fi(e,t,r){if(typeof e!=`function`)throw new Tt(o);return Ls(function(){e.apply(n,r)},t)}function Ii(e,t,n,r){var a=-1,o=zn,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=Vn(t,lr(n))),r?(o=Bn,s=!1):t.length>=i&&(o=dr,s=!1,t=new fi(t));outer:for(;++a<c;){var d=e[a],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,r)||l.push(d)}return l}var Li=Co(Ki),Ri=Co(qi,!0);function zi(e,t){var n=!0;return Li(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Bi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!qu(s):r(s,c)))var c=s,l=o}return l}function Vi(e,t,r,i){var a=e.length;for(r=q(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:q(i),i<0&&(i+=a),i=r>i?0:nd(i);r<i;)e[r++]=t;return e}function Hi(e,t){var n=[];return Li(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ui(e,t,n,r,i){var a=-1,o=e.length;for(n||=_s,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Ui(s,t-1,n,r,i):Hn(i,s):r||(i[i.length]=s)}return i}var Wi=wo(),Gi=wo(!0);function Ki(e,t){return e&&Wi(e,t,Dd)}function qi(e,t){return e&&Gi(e,t,Dd)}function Ji(e,t){return Rn(t,function(t){return ku(e[t])})}function Yi(e,t){t=ro(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Us(t[r++])];return r&&r==i?e:n}function Xi(e,t,n){var r=t(e);return G(e)?r:Hn(r,n(e))}function Zi(e){return e==null?e===n?De:ye:qt&&qt in P(e)?os(e):js(e)}function Qi(e,t){return e>t}function $i(e,t){return e!=null&&F.call(e,t)}function ea(e,t){return e!=null&&t in P(e)}function ta(e,t,n){return e>=pn(t,n)&&e<cn(t,n)}function na(e,t,r){for(var i=r?Bn:zn,a=e[0].length,o=e.length,s=o,c=rt(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Vn(d,lr(t))),l=pn(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new fi(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?dr(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?dr(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function ra(e,t,n,r){return Ki(e,function(e,i,a){t(r,n(e),i,a)}),r}function ia(e,t,r){t=ro(t,e),e=Ns(e,t);var i=e==null?e:e[Us(_c(t))];return i==null?n:Nn(i,e,r)}function aa(e){return Nu(e)&&Zi(e)==M}function oa(e){return Nu(e)&&Zi(e)==Ae}function sa(e){return Nu(e)&&Zi(e)==fe}function ca(e,t,n,r,i){return e===t?!0:e==null||t==null||!Nu(e)&&!Nu(t)?e!==e&&t!==t:la(e,t,n,r,ca,i)}function la(e,t,n,r,i,a){var o=G(e),s=G(t),c=o?N:ls(e),l=s?N:ls(t);c=c==M?be:c,l=l==M?be:l;var u=c==be,d=l==be,f=c==l;if(f&&xu(e)){if(!xu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new hi,o||Ju(e)?Jo(e,t,n,r,i,a):Yo(e,t,c,n,r,i,a);if(!(n&h)){var p=u&&F.call(e,`__wrapped__`),m=d&&F.call(t,`__wrapped__`);if(p||m){var g=p?e.value():e,_=m?t.value():t;return a||=new hi,i(g,_,n,r,a)}}return f?(a||=new hi,Xo(e,t,n,r,i,a)):!1}function ua(e){return Nu(e)&&ls(e)==_e}function da(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=P(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new hi;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?ca(d,u,h|g,i,f):p))return!1}}return!0}function fa(e){return!Mu(e)||Cs(e)?!1:(ku(e)?It:mt).test(Ws(e))}function pa(e){return Nu(e)&&Zi(e)==Ce}function ma(e){return Nu(e)&&ls(e)==we}function ha(e){return Nu(e)&&ju(e.length)&&!!dn[Zi(e)]}function ga(e){return typeof e==`function`?e:e==null?If:typeof e==`object`?G(e)?Sa(e[0],e[1]):xa(e):Yf(e)}function _a(e){if(!Ts(e))return sn(e);var t=[];for(var n in P(e))F.call(e,n)&&n!=`constructor`&&t.push(n);return t}function va(e){if(!Mu(e))return As(e);var t=Ts(e),n=[];for(var r in e)r==`constructor`&&(t||!F.call(e,r))||n.push(r);return n}function ya(e,t){return e<t}function ba(e,t){var n=-1,r=yu(e)?rt(e.length):[];return Li(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function xa(e){var t=is(e);return t.length==1&&t[0][2]?Ds(t[0][0],t[0][1]):function(n){return n===e||da(n,e,t)}}function Sa(e,t){return bs(e)&&Es(t)?Ds(Us(e),t):function(r){var i=Sd(r,e);return i===n&&i===t?Cd(r,e):ca(t,i,h|g)}}function Ca(e,t,r,i,a){e!==t&&Wi(t,function(o,s){if(a||=new hi,Mu(o))wa(e,t,s,r,Ca,i,a);else{var c=i?i(Fs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Ti(e,s,c)}},Od)}function wa(e,t,r,i,a,o,s){var c=Fs(e,r),l=Fs(t,r),u=s.get(l);if(u){Ti(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=G(l),m=!p&&xu(l),h=!p&&!m&&Ju(l);d=l,p||m||h?G(c)?d=c:K(c)?d=_o(c):m?(f=!1,d=so(l,!0)):h?(f=!1,d=V(l,!0)):d=[]:Hu(l)||_u(l)?(d=c,_u(c)?d=id(c):(!Mu(c)||ku(c))&&(d=ms(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Ti(e,r,d)}function Ta(e,t){var r=e.length;if(r)return t+=t<0?r:0,vs(t,r)?e[t]:n}function Ea(e,t,n){t=t.length?Vn(t,function(e){return G(e)?function(t){return Yi(t,e.length===1?e[0]:e)}:e}):[If];var r=-1;return t=Vn(t,lr(H())),ir(ba(e,function(e,n,i){return{criteria:Vn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return mo(e,t,n)})}function Da(e,t){return Oa(e,t,function(t,n){return Cd(e,n)})}function Oa(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Yi(e,o);n(s,o)&&La(a,ro(o,e),s)}return a}function ka(e){return function(t){return Yi(t,e)}}function Aa(e,t,n,r){var i=r?Qn:Zn,a=-1,o=t.length,s=e;for(e===t&&(t=_o(t)),n&&(s=Vn(e,lr(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Wt.call(s,c,1),Wt.call(e,c,1);return e}function ja(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;vs(i)?Wt.call(e,i,1):Ya(e,i)}}return e}function Ma(e,t){return e+$t(gn()*(t-e+1))}function Na(e,t,n,r){for(var i=-1,a=cn(Qt((t-e)/(n||1)),0),o=rt(a);a--;)o[r?a:++i]=e,e+=n;return o}function Pa(e,t){var n=``;if(!e||t<1||t>ae)return n;do t%2&&(n+=e),t=$t(t/2),t&&(e+=e);while(t);return n}function B(e,t){return Rs(Ms(e,t,If),e+``)}function Fa(e){return Si(Kd(e))}function Ia(e,t){var n=Kd(e);return Vs(n,Ni(t,0,n.length))}function La(e,t,r,i){if(!Mu(e))return e;t=ro(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=Us(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Mu(d)?d:vs(t[a+1])?[]:{})}Ei(c,l,u),c=c[l]}return e}var Ra=qn?function(e,t){return qn.set(e,t),e}:If,za=Jt?function(e,t){return Jt(e,`toString`,{configurable:!0,enumerable:!1,value:Mf(t),writable:!0})}:If;function Ba(e){return Vs(Kd(e))}function Va(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=rt(i);++r<i;)a[r]=e[r+t];return a}function Ha(e,t){var n;return Li(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Ua(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=ce){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!qu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Wa(e,t,If,n)}function Wa(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=qu(t),u=t===n;a<o;){var d=$t((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=qu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return pn(o,se)}function Ga(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!mu(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Ka(e){return typeof e==`number`?e:qu(e)?j:+e}function qa(e){if(typeof e==`string`)return e;if(G(e))return Vn(e,qa)+``;if(qu(e))return Vr?Vr.call(e):``;var t=e+``;return t==`0`&&1/e==-k?`-0`:t}function Ja(e,t,n){var r=-1,a=zn,o=e.length,s=!0,c=[],l=c;if(n)s=!1,a=Bn;else if(o>=i){var u=t?null:Ho(e);if(u)return Tr(u);s=!1,a=dr,l=new fi}else l=t?[]:c;outer:for(;++r<o;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function Ya(e,t){t=ro(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=Us(t[n]);if(i===`__proto__`&&!F.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=Ns(e,t);return a==null||delete a[Us(_c(t))]}function Xa(e,t,n,r){return La(e,t,n(Yi(e,t)),r)}function Za(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Va(e,r?0:a,r?a+1:i):Va(e,r?a+1:0,r?i:a)}function Qa(e,t){var n=e;return n instanceof L&&(n=n.value()),Un(t,function(e,t){return t.func.apply(t.thisArg,Hn([e],t.args))},n)}function $a(e,t,n){var r=e.length;if(r<2)return r?Ja(e[0]):[];for(var i=-1,a=rt(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=Ii(a[i]||o,e[s],t,n));return Ja(Ui(a,1),t,n)}function eo(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function to(e){return K(e)?e:[]}function no(e){return typeof e==`function`?e:If}function ro(e,t){return G(e)?e:bs(e,t)?[e]:Hs(J(e))}var io=B;function ao(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Va(e,t,r)}var oo=Yt||function(e){return xn.clearTimeout(e)};function so(e,t){if(t)return e.slice();var n=e.length,r=Bt?Bt(n):new e.constructor(n);return e.copy(r),r}function co(e){var t=new e.constructor(e.byteLength);return new zt(t).set(new zt(e)),t}function lo(e,t){var n=t?co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function uo(e){var t=new e.constructor(e.source,dt.exec(e));return t.lastIndex=e.lastIndex,t}function fo(e){return Br?P(Br.call(e)):{}}function V(e,t){var n=t?co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function po(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=qu(e),s=t!==n,c=t===null,l=t===t,u=qu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function mo(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=po(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function ho(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=cn(a-o,0),u=rt(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function go(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=cn(a-s,0),d=rt(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function _o(e,t){var n=-1,r=e.length;for(t||=rt(r);++n<r;)t[n]=e[n];return t}function vo(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?ji(r,c,l):Ei(r,c,l)}return r}function yo(e,t){return vo(e,ss(e),t)}function bo(e,t){return vo(e,cs(e),t)}function xo(e,t){return function(n,r){var i=G(n)?Pn:Oi,a=t?t():{};return i(n,e,H(r,2),a)}}function So(e){return B(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&ys(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=P(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Co(e,t){return function(n,r){if(n==null)return n;if(!yu(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=P(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function wo(e){return function(t,n,r){for(var i=-1,a=P(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function To(e,t,n){var r=t&_,i=Oo(e);function a(){return(this&&this!==xn&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Eo(e){return function(t){t=J(t);var r=yr(t)?Ar(t):n,i=r?r[0]:t.charAt(0),a=r?ao(r,1).join(``):t.slice(1);return i[e]()+a}}function Do(e){return function(t){return Un(Df($d(t).replace(nn,``)),e,``)}}function Oo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hr(e.prototype),r=e.apply(n,t);return Mu(r)?r:n}}function ko(e,t,r){var i=Oo(e);function a(){for(var o=arguments.length,s=rt(o),c=o,l=ns(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:wr(s,l);return o-=u.length,o<r?Bo(e,t,Mo,a.placeholder,n,s,u,n,n,r-o):Nn(this&&this!==xn&&this instanceof a?i:e,this,s)}return a}function Ao(e){return function(t,r,i){var a=P(t);if(!yu(t)){var o=H(r,3);t=Dd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function jo(e){return Zo(function(t){var r=t.length,i=r,a=Wr.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!=`function`)throw new Tt(o);if(a&&!c&&ts(s)==`wrapper`)var c=new Wr([],!0)}for(i=c?i:r;++i<r;){s=t[i];var l=ts(s),u=l==`wrapper`?es(s):n;c=u&&Ss(u[0])&&u[1]==(w|b|S|T)&&!u[4].length&&u[9]==1?c[ts(u[0])].apply(c,u[3]):s.length==1&&Ss(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&e.length==1&&G(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}})}function Mo(e,t,r,i,a,o,s,c,l,u){var d=t&w,f=t&_,p=t&v,m=t&(b|x),h=t&E,g=p?n:Oo(e);function y(){for(var n=arguments.length,_=rt(n),v=n;v--;)_[v]=arguments[v];if(m)var b=ns(y),x=mr(_,b);if(i&&(_=ho(_,i,a,m)),o&&(_=go(_,o,s,m)),n-=x,m&&n<u){var S=wr(_,b);return Bo(e,t,Mo,y.placeholder,r,_,S,c,l,u-n)}var C=f?r:this,w=p?C[e]:e;return n=_.length,c?_=Ps(_,c):h&&n>1&&_.reverse(),d&&l<n&&(_.length=l),this&&this!==xn&&this instanceof y&&(w=g||Oo(w)),w.apply(C,_)}return y}function No(e,t){return function(n,r){return ra(n,e,t(r),{})}}function Po(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=qa(r),i=qa(i)):(r=Ka(r),i=Ka(i)),a=e(r,i)}return a}}function Fo(e){return Zo(function(t){return t=Vn(t,lr(H())),B(function(n){var r=this;return e(t,function(e){return Nn(e,r,n)})})})}function Io(e,t){t=t===n?` `:qa(t);var r=t.length;if(r<2)return r?Pa(t,e):t;var i=Pa(t,Qt(e/kr(t)));return yr(t)?ao(Ar(i),0,e).join(``):i.slice(0,e)}function Lo(e,t,n,r){var i=t&_,a=Oo(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=rt(l+s),d=this&&this!==xn&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return Nn(d,i?n:this,u)}return o}function Ro(e){return function(t,r,i){return i&&typeof i!=`number`&&ys(t,r,i)&&(r=i=n),t=td(t),r===n?(r=t,t=0):r=td(r),i=i===n?t<r?1:-1:td(i),Na(t,r,i,e)}}function zo(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=rd(t),n=rd(n)),e(t,n)}}function Bo(e,t,r,i,a,o,s,c,l,u){var d=t&b,f=d?s:n,p=d?n:s,m=d?o:n,h=d?n:o;t|=d?S:C,t&=~(d?C:S),t&y||(t&=~(_|v));var g=[e,t,a,m,f,h,p,c,l,u],x=r.apply(n,g);return Ss(e)&&Is(x,g),x.placeholder=i,zs(x,e,t)}function Vo(e){var t=St[e];return function(e,n){if(e=rd(e),n=n==null?0:pn(q(n),292),n&&an(e)){var r=(J(e)+`e`).split(`e`);return r=(J(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Ho=Tn&&1/Tr(new Tn([,-0]))[1]==k?function(e){return new Tn(e)}:Wf;function Uo(e){return function(t){var n=ls(t);return n==_e?Sr(t):n==we?Er(t):sr(t,e(t))}}function Wo(e,t,r,i,a,s,c,l){var u=t&v;if(!u&&typeof e!=`function`)throw new Tt(o);var d=i?i.length:0;if(d||(t&=~(S|C),i=a=n),c=c===n?c:cn(q(c),0),l=l===n?l:q(l),d-=a?a.length:0,t&C){var f=i,p=a;i=a=n}var m=u?n:es(e),h=[e,t,r,i,a,f,p,s,c,l];if(m&&ks(h,m),e=h[0],t=h[1],r=h[2],i=h[3],a=h[4],l=h[9]=h[9]===n?u?0:e.length:cn(h[9]-d,0),!l&&t&(b|x)&&(t&=~(b|x)),!t||t==_)var g=To(e,t,r);else g=t==b||t==x?ko(e,t,l):(t==S||t==(_|S))&&!a.length?Lo(e,t,r,i):Mo.apply(n,h);return zs((m?Ra:Is)(g,h),e,t)}function Go(e,t,r,i){return e===n||mu(e,Ot[r])&&!F.call(i,r)?t:e}function Ko(e,t,r,i,a,o){return Mu(e)&&Mu(t)&&(o.set(t,e),Ca(e,t,n,Ko,o),o.delete(t)),e}function qo(e){return Hu(e)?n:e}function Jo(e,t,r,i,a,o){var s=r&h,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&g?new fi:n;for(o.set(e,t),o.set(t,e);++f<c;){var _=e[f],v=t[f];if(i)var y=s?i(v,_,f,t,e,o):i(_,v,f,e,t,o);if(y!==n){if(y)continue;p=!1;break}if(m){if(!Gn(t,function(e,t){if(!dr(m,t)&&(_===e||a(_,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(_===v||a(_,v,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Yo(e,t,n,r,i,a,o){switch(n){case je:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ae:return!(e.byteLength!=t.byteLength||!a(new zt(e),new zt(t)));case de:case fe:case ve:return mu(+e,+t);case me:return e.name==t.name&&e.message==t.message;case Ce:case Te:return e==t+``;case _e:var s=Sr;case we:var c=r&h;if(s||=Tr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=g,o.set(e,t);var u=Jo(s(e),s(t),r,i,a,o);return o.delete(e),u;case Ee:if(Br)return Br.call(e)==Br.call(t)}return!1}function Xo(e,t,r,i,a,o){var s=r&h,c=Qo(e),l=c.length;if(l!=Qo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:F.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){d=c[u];var _=e[d],v=t[d];if(i)var y=s?i(v,_,d,t,e,o):i(_,v,d,e,t,o);if(!(y===n?_===v||a(_,v,r,i,o):y)){m=!1;break}g||=d==`constructor`}if(m&&!g){var b=e.constructor,x=t.constructor;b!=x&&`constructor`in e&&`constructor`in t&&!(typeof b==`function`&&b instanceof b&&typeof x==`function`&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}function Zo(e){return Rs(Ms(e,n,oc),e+``)}function Qo(e){return Xi(e,Dd,ss)}function $o(e){return Xi(e,Od,cs)}var es=qn?function(e){return qn.get(e)}:Wf;function ts(e){for(var t=e.name+``,n=nr[t],r=F.call(nr,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function ns(e){return(F.call(I,`placeholder`)?I:e).placeholder}function H(){var e=I.iteratee||Lf;return e=e===Lf?ga:e,arguments.length?e(arguments[0],arguments[1]):e}function rs(e,t){var n=e.__data__;return xs(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function is(e){for(var t=Dd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Es(i)]}return t}function as(e,t){var r=vr(e,t);return fa(r)?r:n}function os(e){var t=F.call(e,qt),r=e[qt];try{e[qt]=n;var i=!0}catch{}var a=Nt.call(e);return i&&(t?e[qt]=r:delete e[qt]),a}var ss=en?function(e){return e==null?[]:(e=P(e),Rn(en(e),function(t){return Ut.call(e,t)}))}:$f,cs=en?function(e){for(var t=[];e;)Hn(t,ss(e)),e=Vt(e);return t}:$f,ls=Zi;(bn&&ls(new bn(new ArrayBuffer(1)))!=je||Sn&&ls(new Sn)!=_e||Cn&&ls(Cn.resolve())!=xe||Tn&&ls(new Tn)!=we||En&&ls(new En)!=Oe)&&(ls=function(e){var t=Zi(e),r=t==be?e.constructor:n,i=r?Ws(r):``;if(i)switch(i){case Dr:return je;case Nr:return _e;case Pr:return xe;case Lr:return we;case Rr:return Oe}return t});function us(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=pn(t,e+o);break;case`takeRight`:e=cn(e,t-o);break}}return{start:e,end:t}}function ds(e){var t=e.match(at);return t?t[1].split(ot):[]}function fs(e,t,n){t=ro(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Us(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ju(i)&&vs(o,i)&&(G(e)||_u(e)))}function ps(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&F.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function ms(e){return typeof e.constructor==`function`&&!Ts(e)?Hr(Vt(e)):{}}function hs(e,t,n){var r=e.constructor;switch(t){case Ae:return co(e);case de:case fe:return new r(+e);case je:return lo(e,n);case Me:case Ne:case Pe:case Fe:case Ie:case Le:case Re:case ze:case Be:return V(e,n);case _e:return new r;case ve:case Te:return new r(e);case Ce:return uo(e);case we:return new r;case Ee:return fo(e)}}function gs(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(it,`{
53
53
  /* [wrapped with `+t+`] */
54
- `)}function vs(e){return G(e)||_u(e)||!!(Jt&&e&&e[Jt])}function ys(e,t){var n=typeof e;return t??=ce,!!t&&(n==`number`||n!=`symbol`&&yt.test(e))&&e>-1&&e%1==0&&e<t}function bs(e,t,n){if(!Mu(n))return!1;var r=typeof t;return(r==`number`?yu(n)&&ys(t,n.length):r==`string`&&t in n)?mu(n[t],e):!1}function xs(e,t){if(G(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||qu(e)?!0:tt.test(e)||!et.test(e)||t!=null&&e in j(t)}function Ss(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Cs(e){var t=ns(e),n=P[t];if(typeof n!=`function`||!(t in F.prototype))return!1;if(e===n)return!0;var r=ts(n);return!!r&&e===r[0]}function ws(e){return!!Ft&&Ft in e}var Ts=Mt?ku:ep;function Es(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||jt)}function Ds(e){return e===e&&!Mu(e)}function Os(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in j(r))}}function ks(e){var t=Xl(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}function As(e,t){var n=e[1],r=t[1],i=n|r,a=i<(_|v|w),o=r==w&&n==b||r==w&&n==T&&e[7].length<=t[8]||r==(w|T)&&t[7].length<=t[8]&&n==b;if(!(a||o))return e;r&_&&(e[2]=t[2],i|=n&_?0:y);var s=t[3];if(s){var c=e[3];e[3]=c?go(c,s,t[4]):s,e[4]=c?Er(e[3],d):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?_o(c,s,t[6]):s,e[6]=c?Er(e[5],d):t[6]),s=t[7],s&&(e[7]=s),r&w&&(e[8]=e[8]==null?t[8]:hn(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function js(e){var t=[];if(e!=null)for(var n in j(e))t.push(n);return t}function Ms(e){return It.call(e)}function Ns(e,t,r){return t=dn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=dn(n.length-t,0),o=ot(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=ot(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Fn(e,this,s)}}function Ps(e,t){return t.length<2?e:Zi(e,Ha(t,0,-1))}function Fs(e,t){for(var r=e.length,i=hn(t.length,r),a=vo(e);i--;){var o=t[i];e[i]=ys(o,r)?a[o]:n}return e}function Is(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Ls=Vs(za),Rs=en||function(e,t){return Cn.setTimeout(e,t)},zs=Vs(Ba);function Bs(e,t,n){var r=t+``;return zs(e,_s(r,Ks(fs(r),n)))}function Vs(e){var t=0,r=0;return function(){var i=gn(),a=re-(i-r);if(r=i,a>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Hs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Na(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Us=ks(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(nt,function(e,n,r,i){t.push(r?i.replace(ft,`$1`):n||e)}),t});function Ws(e){if(typeof e==`string`||qu(e))return e;var t=e+``;return t==`0`&&1/e==-se?`-0`:t}function Gs(e){if(e!=null){try{return Nt.call(e)}catch{}try{return e+``}catch{}}return``}function Ks(e,t){return Ln(fe,function(n){var r=`_.`+n[0];t&n[1]&&!Vn(e,r)&&e.push(r)}),e.sort()}function qs(e){if(e instanceof F)return e.clone();var t=new Kr(e.__wrapped__,e.__chain__);return t.__actions__=vo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Js(e,t,r){t=(r?bs(e,t,r):t===n)?1:dn(q(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=ot(tn(i/t));a<i;)s[o++]=Ha(e,a,a+=t);return s}function Ys(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Xs(){var e=arguments.length;if(!e)return[];for(var t=ot(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Wn(G(n)?vo(n):[n],Gi(t,1))}var Zs=z(function(e,t){return K(e)?Ri(e,Gi(t,1,K,!0)):[]}),Qs=z(function(e,t){var r=vc(t);return K(r)&&(r=n),K(e)?Ri(e,Gi(t,1,K,!0),V(r,2)):[]}),$s=z(function(e,t){var r=vc(t);return K(r)&&(r=n),K(e)?Ri(e,Gi(t,1,K,!0),n,r):[]});function ec(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),Ha(e,t<0?0:t,i)):[]}function tc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),t=i-t,Ha(e,0,t<0?0:t)):[]}function nc(e,t){return e&&e.length?Qa(e,V(t,3),!0,!0):[]}function rc(e,t){return e&&e.length?Qa(e,V(t,3),!0):[]}function ic(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&bs(e,t,n)&&(n=0,r=i),Ui(e,t,n,r)):[]}function ac(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:q(n);return i<0&&(i=dn(r+i,0)),Qn(e,V(t,3),i)}function oc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=q(r),a=r<0?dn(i+a,0):hn(a,i-1)),Qn(e,V(t,3),a,!0)}function sc(e){return e!=null&&e.length?Gi(e,1):[]}function cc(e){return e!=null&&e.length?Gi(e,se):[]}function lc(e,t){return e!=null&&e.length?(t=t===n?1:q(t),Gi(e,t)):[]}function uc(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];Ni(r,i[0],i[1])}return r}function dc(e){return e&&e.length?e[0]:n}function fc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:q(n);return i<0&&(i=dn(r+i,0)),$n(e,t,i)}function pc(e){return e!=null&&e.length?Ha(e,0,-1):[]}var mc=z(function(e){var t=Un(e,no);return t.length&&t[0]===e[0]?ra(t):[]}),hc=z(function(e){var t=vc(e),r=Un(e,no);return t===vc(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ra(r,V(t,2)):[]}),gc=z(function(e){var t=vc(e),r=Un(e,no);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?ra(r,n,t):[]});function _c(e,t){return e==null?``:ln.call(e,t)}function vc(e){var t=e==null?0:e.length;return t?e[t-1]:n}function yc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=q(r),a=a<0?dn(i+a,0):hn(a,i-1)),t===t?Ar(e,t,a):Qn(e,tr,a,!0)}function bc(e,t){return e&&e.length?Ea(e,q(t)):n}var xc=z(Sc);function Sc(e,t){return e&&e.length&&t&&t.length?ja(e,t):e}function Cc(e,t,n){return e&&e.length&&t&&t.length?ja(e,t,V(n,2)):e}function wc(e,t,r){return e&&e.length&&t&&t.length?ja(e,t,n,r):e}var Tc=Qo(function(e,t){var n=e==null?0:e.length,r=Pi(e,t);return Ma(e,Un(t,function(e){return ys(e,n)?+e:e}).sort(mo)),r});function Ec(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=V(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Ma(e,i),n}function Dc(e){return e==null?e:xn.call(e)}function Oc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&bs(e,t,r)?(t=0,r=i):(t=t==null?0:q(t),r=r===n?i:q(r)),Ha(e,t,r)):[]}function kc(e,t){return Wa(e,t)}function Ac(e,t,n){return Ga(e,t,V(n,2))}function jc(e,t){var n=e==null?0:e.length;if(n){var r=Wa(e,t);if(r<n&&mu(e[r],t))return r}return-1}function Mc(e,t){return Wa(e,t,!0)}function Nc(e,t,n){return Ga(e,t,V(n,2),!0)}function Pc(e,t){if(e!=null&&e.length){var n=Wa(e,t,!0)-1;if(mu(e[n],t))return n}return-1}function Fc(e){return e&&e.length?Ka(e):[]}function Ic(e,t){return e&&e.length?Ka(e,V(t,2)):[]}function Lc(e){var t=e==null?0:e.length;return t?Ha(e,1,t):[]}function Rc(e,t,r){return e&&e.length?(t=r||t===n?1:q(t),Ha(e,0,t<0?0:t)):[]}function zc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),t=i-t,Ha(e,t<0?0:t,i)):[]}function Bc(e,t){return e&&e.length?Qa(e,V(t,3),!1,!0):[]}function Vc(e,t){return e&&e.length?Qa(e,V(t,3)):[]}var Hc=z(function(e){return Ya(Gi(e,1,K,!0))}),Uc=z(function(e){var t=vc(e);return K(t)&&(t=n),Ya(Gi(e,1,K,!0),V(t,2))}),Wc=z(function(e){var t=vc(e);return t=typeof t==`function`?t:n,Ya(Gi(e,1,K,!0),n,t)});function Gc(e){return e&&e.length?Ya(e):[]}function Kc(e,t){return e&&e.length?Ya(e,V(t,2)):[]}function qc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ya(e,n,t):[]}function Jc(e){if(!(e&&e.length))return[];var t=0;return e=Bn(e,function(e){if(K(e))return t=dn(e.length,t),!0}),cr(t,function(t){return Un(e,rr(t))})}function Yc(e,t){if(!(e&&e.length))return[];var r=Jc(e);return t==null?r:Un(r,function(e){return Fn(t,n,e)})}var Xc=z(function(e,t){return K(e)?Ri(e,t):[]}),Zc=z(function(e){return eo(Bn(e,K))}),Qc=z(function(e){var t=vc(e);return K(t)&&(t=n),eo(Bn(e,K),V(t,2))}),$c=z(function(e){var t=vc(e);return t=typeof t==`function`?t:n,eo(Bn(e,K),n,t)}),el=z(Jc);function tl(e,t){return to(e||[],t||[],Oi)}function nl(e,t){return to(e||[],t||[],Ra)}var rl=z(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Yc(e,r)});function il(e){var t=P(e);return t.__chain__=!0,t}function al(e,t){return t(e),e}function ol(e,t){return t(e)}var sl=Qo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return Pi(t,e)};return t>1||this.__actions__.length||!(i instanceof F)||!ys(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:ol,args:[a],thisArg:n}),new Kr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function cl(){return il(this)}function ll(){return new Kr(this.value(),this.__chain__)}function ul(){this.__values__===n&&(this.__values__=ed(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function dl(){return this}function fl(e){for(var t,r=this;r instanceof Gr;){var i=qs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function pl(){var e=this.__wrapped__;if(e instanceof F){var t=e;return this.__actions__.length&&(t=new F(this)),t=t.reverse(),t.__actions__.push({func:ol,args:[Dc],thisArg:n}),new Kr(t,this.__chain__)}return this.thru(Dc)}function ml(){return $a(this.__wrapped__,this.__actions__)}var hl=So(function(e,t,n){M.call(e,n)?++e[n]:Ni(e,n,1)});function gl(e,t,r){var i=G(e)?zn:Vi;return r&&bs(e,t,r)&&(t=n),i(e,V(t,3))}function _l(e,t){return(G(e)?Bn:Wi)(e,V(t,3))}var vl=jo(ac),yl=jo(oc);function bl(e,t){return Gi(kl(e,t),1)}function xl(e,t){return Gi(kl(e,t),se)}function Sl(e,t,r){return r=r===n?1:q(r),Gi(kl(e,t),r)}function Cl(e,t){return(G(e)?Ln:zi)(e,V(t,3))}function wl(e,t){return(G(e)?Rn:Bi)(e,V(t,3))}var Tl=So(function(e,t,n){M.call(e,n)?e[n].push(t):Ni(e,n,[t])});function El(e,t,n,r){e=yu(e)?e:Kd(e),n=n&&!r?q(n):0;var i=e.length;return n<0&&(n=dn(i+n,0)),Ku(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&$n(e,t,n)>-1}var Dl=z(function(e,t,n){var r=-1,i=typeof t==`function`,a=yu(e)?ot(e.length):[];return zi(e,function(e){a[++r]=i?Fn(t,e,n):aa(e,t,n)}),a}),Ol=So(function(e,t,n){Ni(e,n,t)});function kl(e,t){return(G(e)?Un:xa)(e,V(t,3))}function Al(e,t,r,i){return e==null?[]:(G(t)||(t=t==null?[]:[t]),r=i?n:r,G(r)||(r=r==null?[]:[r]),Da(e,t,r))}var jl=So(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function Ml(e,t,n){var r=G(e)?Gn:ar,i=arguments.length<3;return r(e,V(t,4),n,i,zi)}function Nl(e,t,n){var r=G(e)?Kn:ar,i=arguments.length<3;return r(e,V(t,4),n,i,Bi)}function Pl(e,t){return(G(e)?Bn:Wi)(e,Zl(V(t,3)))}function Fl(e){return(G(e)?wi:Ia)(e)}function Il(e,t,r){return t=(r?bs(e,t,r):t===n)?1:q(t),(G(e)?Ti:La)(e,t)}function Ll(e){return(G(e)?Ei:Va)(e)}function Rl(e){if(e==null)return 0;if(yu(e))return Ku(e)?jr(e):e.length;var t=us(e);return t==be||t==De?e.size:va(e).length}function zl(e,t,r){var i=G(e)?qn:Ua;return r&&bs(e,t,r)&&(t=n),i(e,V(t,3))}var Bl=z(function(e,t){if(e==null)return[];var n=t.length;return n>1&&bs(e,t[0],t[1])?t=[]:n>2&&bs(t[0],t[1],t[2])&&(t=[t[0]]),Da(e,Gi(t,1),[])}),Vl=$t||function(){return Cn.Date.now()};function Hl(e,t){if(typeof t!=`function`)throw new Ot(o);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function H(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Go(e,w,n,n,n,n,t)}function Ul(e,t){var r;if(typeof t!=`function`)throw new Ot(o);return e=q(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var U=z(function(e,t,n){var r=_;if(n.length){var i=Er(n,rs(U));r|=S}return Go(e,r,t,n,i)}),W=z(function(e,t,n){var r=_|v;if(n.length){var i=Er(n,rs(W));r|=S}return Go(t,r,e,n,i)});function Wl(e,t,r){t=r?n:t;var i=Go(e,b,n,n,n,n,n,t);return i.placeholder=Wl.placeholder,i}function Gl(e,t,r){t=r?n:t;var i=Go(e,x,n,n,n,n,n,t);return i.placeholder=Gl.placeholder,i}function Kl(e,t,r){var i,a,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new Ot(o);t=rd(t)||0,Mu(r)&&(f=!!r.leading,p=`maxWait`in r,s=p?dn(rd(r.maxWait)||0,t):s,m=`trailing`in r?!!r.trailing:m);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r),c}function g(e){return d=e,l=Rs(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?hn(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=Vl();if(v(e))return b(e);l=Rs(y,_(e))}function b(e){return l=n,m&&i?h(e):(i=a=n,c)}function x(){l!==n&&so(l),d=0,i=u=a=l=n}function S(){return l===n?c:b(Vl())}function C(){var e=Vl(),r=v(e);if(i=arguments,a=this,u=e,r){if(l===n)return g(u);if(p)return so(l),l=Rs(y,t),h(u)}return l===n&&(l=Rs(y,t)),c}return C.cancel=x,C.flush=S,C}var ql=z(function(e,t){return Li(e,1,t)}),Jl=z(function(e,t,n){return Li(e,rd(t)||0,n)});function Yl(e){return Go(e,ee)}function Xl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new Ot(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Xl.Cache||ci),n}Xl.Cache=ci;function Zl(e){if(typeof e!=`function`)throw new Ot(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ql(e){return Ul(2,e)}var $l=ao(function(e,t){t=t.length==1&&G(t[0])?Un(t[0],dr(V())):Un(Gi(t,1),dr(V()));var n=t.length;return z(function(r){for(var i=-1,a=hn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Fn(e,this,r)})}),eu=z(function(e,t){return Go(e,S,n,t,Er(t,rs(eu)))}),tu=z(function(e,t){return Go(e,C,n,t,Er(t,rs(tu)))}),nu=Qo(function(e,t){return Go(e,T,n,n,n,t)});function ru(e,t){if(typeof e!=`function`)throw new Ot(o);return t=t===n?t:q(t),z(e,t)}function iu(e,t){if(typeof e!=`function`)throw new Ot(o);return t=t==null?0:dn(q(t),0),z(function(n){var r=n[t],i=oo(n,0,t);return r&&Wn(i,r),Fn(e,this,i)})}function au(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw new Ot(o);return Mu(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Kl(e,t,{leading:r,maxWait:t,trailing:i})}function ou(e){return H(e,1)}function su(e,t){return eu(ro(t),e)}function cu(){if(!arguments.length)return[];var e=arguments[0];return G(e)?e:[e]}function lu(e){return I(e,m)}function uu(e,t){return t=typeof t==`function`?t:n,I(e,m,t)}function du(e){return I(e,f|m)}function fu(e,t){return t=typeof t==`function`?t:n,I(e,f|m,t)}function pu(e,t){return t==null||L(e,t,Dd(t))}function mu(e,t){return e===t||e!==e&&t!==t}var hu=Bo(ea),gu=Bo(function(e,t){return e>=t}),_u=oa(function(){return arguments}())?oa:function(e){return Nu(e)&&M.call(e,`callee`)&&!Kt.call(e,`callee`)},G=ot.isArray,vu=kn?dr(kn):sa;function yu(e){return e!=null&&ju(e.length)&&!ku(e)}function K(e){return Nu(e)&&yu(e)}function bu(e){return e===!0||e===!1||Nu(e)&&$i(e)==me}var xu=an||ep,Su=An?dr(An):ca;function Cu(e){return Nu(e)&&e.nodeType===1&&!Hu(e)}function wu(e){if(e==null)return!0;if(yu(e)&&(G(e)||typeof e==`string`||typeof e.splice==`function`||xu(e)||Ju(e)||_u(e)))return!e.length;var t=us(e);if(t==be||t==De)return!e.size;if(Es(e))return!va(e).length;for(var n in e)if(M.call(e,n))return!1;return!0}function Tu(e,t){return la(e,t)}function Eu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?la(e,t,n,r):!!i}function Du(e){if(!Nu(e))return!1;var t=$i(e);return t==_e||t==ge||typeof e.message==`string`&&typeof e.name==`string`&&!Hu(e)}function Ou(e){return typeof e==`number`&&cn(e)}function ku(e){if(!Mu(e))return!1;var t=$i(e);return t==ve||t==ye||t==pe||t==Te}function Au(e){return typeof e==`number`&&e==q(e)}function ju(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=ce}function Mu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Nu(e){return typeof e==`object`&&!!e}var Pu=jn?dr(jn):da;function Fu(e,t){return e===t||fa(e,t,as(t))}function Iu(e,t,r){return r=typeof r==`function`?r:n,fa(e,t,as(t),r)}function Lu(e){return Vu(e)&&e!=+e}function Ru(e){if(Ts(e))throw new Ct(a);return pa(e)}function zu(e){return e===null}function Bu(e){return e==null}function Vu(e){return typeof e==`number`||Nu(e)&&$i(e)==xe}function Hu(e){if(!Nu(e)||$i(e)!=Ce)return!1;var t=Wt(e);if(t===null)return!0;var n=M.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Nt.call(n)==Lt}var Uu=Mn?dr(Mn):ma;function Wu(e){return Au(e)&&e>=-ce&&e<=ce}var Gu=Nn?dr(Nn):ha;function Ku(e){return typeof e==`string`||!G(e)&&Nu(e)&&$i(e)==Oe}function qu(e){return typeof e==`symbol`||Nu(e)&&$i(e)==ke}var Ju=Pn?dr(Pn):ga;function Yu(e){return e===n}function Xu(e){return Nu(e)&&us(e)==je}function Zu(e){return Nu(e)&&$i(e)==Me}var Qu=Bo(ba),$u=Bo(function(e,t){return e<=t});function ed(e){if(!e)return[];if(yu(e))return Ku(e)?Mr(e):vo(e);if(Yt&&e[Yt])return Cr(e[Yt]());var t=us(e);return(t==be?wr:t==De?Dr:Kd)(e)}function td(e){return e?(e=rd(e),e===se||e===-se?(e<0?-1:1)*D:e===e?e:0):e===0?e:0}function q(e){var t=td(e),n=t%1;return t===t?n?t-n:t:0}function nd(e){return e?Fi(q(e),0,le):0}function rd(e){if(typeof e==`number`)return e;if(qu(e))return O;if(Mu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Mu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=ur(e);var n=gt.test(e);return n||vt.test(e)?bn(e.slice(2),n?2:8):ht.test(e)?O:+e}function id(e){return yo(e,Od(e))}function ad(e){return e?Fi(q(e),-ce,ce):e===0?e:0}function J(e){return e==null?``:Ja(e)}var od=Co(function(e,t){if(Es(t)||yu(t)){yo(t,Dd(t),e);return}for(var n in t)M.call(t,n)&&Oi(e,n,t[n])}),sd=Co(function(e,t){yo(t,Od(t),e)}),cd=Co(function(e,t,n,r){yo(t,Od(t),e,r)}),ld=Co(function(e,t,n,r){yo(t,Dd(t),e,r)}),ud=Qo(Pi);function dd(e,t){var n=Wr(e);return t==null?n:ji(n,t)}var fd=z(function(e,t){e=j(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&bs(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Od(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||mu(d,jt[u])&&!M.call(e,u))&&(e[u]=o[u])}return e}),pd=z(function(e){return e.push(n,qo),Fn(Md,n,e)});function md(e,t){return Zn(e,V(t,3),Ji)}function hd(e,t){return Zn(e,V(t,3),Yi)}function gd(e,t){return e==null?e:Ki(e,V(t,3),Od)}function _d(e,t){return e==null?e:qi(e,V(t,3),Od)}function vd(e,t){return e&&Ji(e,V(t,3))}function yd(e,t){return e&&Yi(e,V(t,3))}function bd(e){return e==null?[]:Xi(e,Dd(e))}function xd(e){return e==null?[]:Xi(e,Od(e))}function Sd(e,t,r){var i=e==null?n:Zi(e,t);return i===n?r:i}function Y(e,t){return e!=null&&ps(e,t,ta)}function Cd(e,t){return e!=null&&ps(e,t,na)}var wd=Po(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=It.call(t)),e[t]=n},Mf(If)),Td=Po(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=It.call(t)),M.call(e,t)?e[t].push(n):e[t]=[n]},V),Ed=z(aa);function Dd(e){return yu(e)?Ci(e):va(e)}function Od(e){return yu(e)?Ci(e,!0):ya(e)}function kd(e,t){var n={};return t=V(t,3),Ji(e,function(e,r,i){Ni(n,t(e,r,i),e)}),n}function Ad(e,t){var n={};return t=V(t,3),Ji(e,function(e,r,i){Ni(n,r,t(e,r,i))}),n}var jd=Co(function(e,t,n){wa(e,t,n)}),Md=Co(function(e,t,n,r){wa(e,t,n,r)}),Nd=Qo(function(e,t){var n={};if(e==null)return n;var r=!1;t=Un(t,function(t){return t=io(t,e),r||=t.length>1,t}),yo(e,es(e),n),r&&(n=I(n,f|p|m,Jo));for(var i=t.length;i--;)Xa(n,t[i]);return n});function Pd(e,t){return Id(e,Zl(V(t)))}var Fd=Qo(function(e,t){return e==null?{}:Oa(e,t)});function Id(e,t){if(e==null)return{};var n=Un(es(e),function(e){return[e]});return t=V(t),ka(e,n,function(e,n){return t(e,n[0])})}function Ld(e,t,r){t=io(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[Ws(t[i])];o===n&&(i=a,o=r),e=ku(o)?o.call(e):o}return e}function Rd(e,t,n){return e==null?e:Ra(e,t,n)}function zd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Ra(e,t,r,i)}var Bd=Wo(Dd),Vd=Wo(Od);function Hd(e,t,n){var r=G(e),i=r||xu(e)||Ju(e);if(t=V(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Mu(e)&&ku(a)?Wr(Wt(e)):{}}return(i?Ln:Ji)(e,function(e,r,i){return t(n,e,r,i)}),n}function Ud(e,t){return e==null?!0:Xa(e,t)}function Wd(e,t,n){return e==null?e:Za(e,t,ro(n))}function Gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Za(e,t,ro(r),i)}function Kd(e){return e==null?[]:fr(e,Dd(e))}function qd(e){return e==null?[]:fr(e,Od(e))}function Jd(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=rd(r),r=r===r?r:0),t!==n&&(t=rd(t),t=t===t?t:0),Fi(rd(e),t,r)}function Yd(e,t,r){return t=td(t),r===n?(r=t,t=0):r=td(r),e=rd(e),R(e,t,r)}function Xd(e,t,r){if(r&&typeof r!=`boolean`&&bs(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=td(e),t===n?(t=e,e=0):t=td(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=vn();return hn(e+a*(t-e+yn(`1e-`+((a+``).length-1))),t)}return Na(e,t)}var Zd=Oo(function(e,t,n){return t=t.toLowerCase(),e+(n?Qd(t):t)});function Qd(e){return Ef(J(e).toLowerCase())}function $d(e){return e=J(e),e&&e.replace(bt,_r).replace(sn,``)}function ef(e,t,r){e=J(e),t=Ja(t);var i=e.length;r=r===n?i:Fi(q(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function tf(e){return e=J(e),e&&Xe.test(e)?e.replace(Je,vr):e}function nf(e){return e=J(e),e&&it.test(e)?e.replace(rt,`\\$&`):e}var rf=Oo(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),af=Oo(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),of=Do(`toLowerCase`);function sf(e,t,n){e=J(e),t=q(t);var r=t?jr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Lo(nn(i),n)+e+Lo(tn(i),n)}function cf(e,t,n){e=J(e),t=q(t);var r=t?jr(e):0;return t&&r<t?e+Lo(t-r,n):e}function lf(e,t,n){e=J(e),t=q(t);var r=t?jr(e):0;return t&&r<t?Lo(t-r,n)+e:e}function uf(e,t,n){return n||t==null?t=0:t&&=+t,_n(J(e).replace(at,``),t||0)}function df(e,t,r){return t=(r?bs(e,t,r):t===n)?1:q(t),Fa(J(e),t)}function ff(){var e=arguments,t=J(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var pf=Oo(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function mf(e,t,r){return r&&typeof r!=`number`&&bs(e,t,r)&&(t=r=n),r=r===n?le:r>>>0,r?(e=J(e),e&&(typeof t==`string`||t!=null&&!Uu(t))&&(t=Ja(t),!t&&xr(e))?oo(Mr(e),0,r):e.split(t,r)):[]}var hf=Oo(function(e,t,n){return e+(n?` `:``)+Ef(t)});function gf(e,t,n){return e=J(e),n=n==null?0:Fi(q(n),0,e.length),t=Ja(t),e.slice(n,n+t.length)==t}function _f(e,t,r){var i=P.templateSettings;r&&bs(e,t,r)&&(t=n),e=J(e),t=ld({},t,i,Ko);var a=ld({},t.imports,i.imports,Ko),o=Dd(a),l=fr(a,o);Ln(o,function(e){if(dt.test(e))throw new Ct(c)});var u,d,f=0,p=t.interpolate||xt,m=`__p += '`,h=Et((t.escape||xt).source+`|`+p.source+`|`+(p===$e?pt:xt).source+`|`+(t.evaluate||xt).source+`|$`,`g`),g=`//# sourceURL=`+(M.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++pn+`]`)+`
55
- `;e.replace(h,function(t,n,r,i,a,o){return r||=i,m+=e.slice(f,o).replace(St,yr),n&&(u=!0,m+=`' +
54
+ `)}function _s(e){return G(e)||_u(e)||!!(Gt&&e&&e[Gt])}function vs(e,t){var n=typeof e;return t??=ae,!!t&&(n==`number`||n!=`symbol`&&gt.test(e))&&e>-1&&e%1==0&&e<t}function ys(e,t,n){if(!Mu(n))return!1;var r=typeof t;return(r==`number`?yu(n)&&vs(t,n.length):r==`string`&&t in n)?mu(n[t],e):!1}function bs(e,t){if(G(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||qu(e)?!0:Qe.test(e)||!Ze.test(e)||t!=null&&e in P(t)}function xs(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ss(e){var t=ts(e),n=I[t];if(typeof n!=`function`||!(t in L.prototype))return!1;if(e===n)return!0;var r=es(n);return!!r&&e===r[0]}function Cs(e){return!!Mt&&Mt in e}var ws=kt?ku:ep;function Ts(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ot)}function Es(e){return e===e&&!Mu(e)}function Ds(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in P(r))}}function Os(e){var t=Xl(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}function ks(e,t){var n=e[1],r=t[1],i=n|r,a=i<(_|v|w),o=r==w&&n==b||r==w&&n==T&&e[7].length<=t[8]||r==(w|T)&&t[7].length<=t[8]&&n==b;if(!(a||o))return e;r&_&&(e[2]=t[2],i|=n&_?0:y);var s=t[3];if(s){var c=e[3];e[3]=c?ho(c,s,t[4]):s,e[4]=c?wr(e[3],d):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?go(c,s,t[6]):s,e[6]=c?wr(e[5],d):t[6]),s=t[7],s&&(e[7]=s),r&w&&(e[8]=e[8]==null?t[8]:pn(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function As(e){var t=[];if(e!=null)for(var n in P(e))t.push(n);return t}function js(e){return Nt.call(e)}function Ms(e,t,r){return t=cn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=cn(n.length-t,0),o=rt(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=rt(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Nn(e,this,s)}}function Ns(e,t){return t.length<2?e:Yi(e,Va(t,0,-1))}function Ps(e,t){for(var r=e.length,i=pn(t.length,r),a=_o(e);i--;){var o=t[i];e[i]=vs(o,r)?a[o]:n}return e}function Fs(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Is=Bs(Ra),Ls=Zt||function(e,t){return xn.setTimeout(e,t)},Rs=Bs(za);function zs(e,t,n){var r=t+``;return Rs(e,gs(r,Gs(ds(r),n)))}function Bs(e){var t=0,r=0;return function(){var i=mn(),a=te-(i-r);if(r=i,a>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Vs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=Ma(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Hs=Os(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace($e,function(e,n,r,i){t.push(r?i.replace(lt,`$1`):n||e)}),t});function Us(e){if(typeof e==`string`||qu(e))return e;var t=e+``;return t==`0`&&1/e==-k?`-0`:t}function Ws(e){if(e!=null){try{return At.call(e)}catch{}try{return e+``}catch{}}return``}function Gs(e,t){return Fn(le,function(n){var r=`_.`+n[0];t&n[1]&&!zn(e,r)&&e.push(r)}),e.sort()}function Ks(e){if(e instanceof L)return e.clone();var t=new Wr(e.__wrapped__,e.__chain__);return t.__actions__=_o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qs(e,t,r){t=(r?ys(e,t,r):t===n)?1:cn(q(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=rt(Qt(i/t));a<i;)s[o++]=Va(e,a,a+=t);return s}function Js(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ys(){var e=arguments.length;if(!e)return[];for(var t=rt(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Hn(G(n)?_o(n):[n],Ui(t,1))}var Xs=B(function(e,t){return K(e)?Ii(e,Ui(t,1,K,!0)):[]}),Zs=B(function(e,t){var r=_c(t);return K(r)&&(r=n),K(e)?Ii(e,Ui(t,1,K,!0),H(r,2)):[]}),Qs=B(function(e,t){var r=_c(t);return K(r)&&(r=n),K(e)?Ii(e,Ui(t,1,K,!0),n,r):[]});function $s(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),Va(e,t<0?0:t,i)):[]}function ec(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),t=i-t,Va(e,0,t<0?0:t)):[]}function tc(e,t){return e&&e.length?Za(e,H(t,3),!0,!0):[]}function nc(e,t){return e&&e.length?Za(e,H(t,3),!0):[]}function rc(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&ys(e,t,n)&&(n=0,r=i),Vi(e,t,n,r)):[]}function ic(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:q(n);return i<0&&(i=cn(r+i,0)),Xn(e,H(t,3),i)}function ac(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=q(r),a=r<0?cn(i+a,0):pn(a,i-1)),Xn(e,H(t,3),a,!0)}function oc(e){return e!=null&&e.length?Ui(e,1):[]}function sc(e){return e!=null&&e.length?Ui(e,k):[]}function cc(e,t){return e!=null&&e.length?(t=t===n?1:q(t),Ui(e,t)):[]}function lc(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];ji(r,i[0],i[1])}return r}function uc(e){return e&&e.length?e[0]:n}function dc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:q(n);return i<0&&(i=cn(r+i,0)),Zn(e,t,i)}function fc(e){return e!=null&&e.length?Va(e,0,-1):[]}var pc=B(function(e){var t=Vn(e,to);return t.length&&t[0]===e[0]?na(t):[]}),mc=B(function(e){var t=_c(e),r=Vn(e,to);return t===_c(r)?t=n:r.pop(),r.length&&r[0]===e[0]?na(r,H(t,2)):[]}),hc=B(function(e){var t=_c(e),r=Vn(e,to);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?na(r,n,t):[]});function gc(e,t){return e==null?``:on.call(e,t)}function _c(e){var t=e==null?0:e.length;return t?e[t-1]:n}function vc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=q(r),a=a<0?cn(i+a,0):pn(a,i-1)),t===t?Or(e,t,a):Xn(e,$n,a,!0)}function yc(e,t){return e&&e.length?Ta(e,q(t)):n}var bc=B(xc);function xc(e,t){return e&&e.length&&t&&t.length?Aa(e,t):e}function Sc(e,t,n){return e&&e.length&&t&&t.length?Aa(e,t,H(n,2)):e}function Cc(e,t,r){return e&&e.length&&t&&t.length?Aa(e,t,n,r):e}var wc=Zo(function(e,t){var n=e==null?0:e.length,r=Mi(e,t);return ja(e,Vn(t,function(e){return vs(e,n)?+e:e}).sort(po)),r});function Tc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=H(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ja(e,i),n}function Ec(e){return e==null?e:yn.call(e)}function Dc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&ys(e,t,r)?(t=0,r=i):(t=t==null?0:q(t),r=r===n?i:q(r)),Va(e,t,r)):[]}function Oc(e,t){return Ua(e,t)}function kc(e,t,n){return Wa(e,t,H(n,2))}function Ac(e,t){var n=e==null?0:e.length;if(n){var r=Ua(e,t);if(r<n&&mu(e[r],t))return r}return-1}function jc(e,t){return Ua(e,t,!0)}function Mc(e,t,n){return Wa(e,t,H(n,2),!0)}function Nc(e,t){if(e!=null&&e.length){var n=Ua(e,t,!0)-1;if(mu(e[n],t))return n}return-1}function Pc(e){return e&&e.length?Ga(e):[]}function Fc(e,t){return e&&e.length?Ga(e,H(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Va(e,1,t):[]}function Lc(e,t,r){return e&&e.length?(t=r||t===n?1:q(t),Va(e,0,t<0?0:t)):[]}function Rc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:q(t),t=i-t,Va(e,t<0?0:t,i)):[]}function zc(e,t){return e&&e.length?Za(e,H(t,3),!1,!0):[]}function Bc(e,t){return e&&e.length?Za(e,H(t,3)):[]}var Vc=B(function(e){return Ja(Ui(e,1,K,!0))}),Hc=B(function(e){var t=_c(e);return K(t)&&(t=n),Ja(Ui(e,1,K,!0),H(t,2))}),Uc=B(function(e){var t=_c(e);return t=typeof t==`function`?t:n,Ja(Ui(e,1,K,!0),n,t)});function Wc(e){return e&&e.length?Ja(e):[]}function Gc(e,t){return e&&e.length?Ja(e,H(t,2)):[]}function Kc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ja(e,n,t):[]}function qc(e){if(!(e&&e.length))return[];var t=0;return e=Rn(e,function(e){if(K(e))return t=cn(e.length,t),!0}),or(t,function(t){return Vn(e,tr(t))})}function Jc(e,t){if(!(e&&e.length))return[];var r=qc(e);return t==null?r:Vn(r,function(e){return Nn(t,n,e)})}var Yc=B(function(e,t){return K(e)?Ii(e,t):[]}),Xc=B(function(e){return $a(Rn(e,K))}),Zc=B(function(e){var t=_c(e);return K(t)&&(t=n),$a(Rn(e,K),H(t,2))}),Qc=B(function(e){var t=_c(e);return t=typeof t==`function`?t:n,$a(Rn(e,K),n,t)}),$c=B(qc);function el(e,t){return eo(e||[],t||[],Ei)}function tl(e,t){return eo(e||[],t||[],La)}var nl=B(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Jc(e,r)});function rl(e){var t=I(e);return t.__chain__=!0,t}function il(e,t){return t(e),e}function al(e,t){return t(e)}var ol=Zo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return Mi(t,e)};return t>1||this.__actions__.length||!(i instanceof L)||!vs(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:al,args:[a],thisArg:n}),new Wr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function sl(){return rl(this)}function cl(){return new Wr(this.value(),this.__chain__)}function ll(){this.__values__===n&&(this.__values__=ed(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function ul(){return this}function dl(e){for(var t,r=this;r instanceof Ur;){var i=Ks(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function fl(){var e=this.__wrapped__;if(e instanceof L){var t=e;return this.__actions__.length&&(t=new L(this)),t=t.reverse(),t.__actions__.push({func:al,args:[Ec],thisArg:n}),new Wr(t,this.__chain__)}return this.thru(Ec)}function pl(){return Qa(this.__wrapped__,this.__actions__)}var ml=xo(function(e,t,n){F.call(e,n)?++e[n]:ji(e,n,1)});function hl(e,t,r){var i=G(e)?Ln:zi;return r&&ys(e,t,r)&&(t=n),i(e,H(t,3))}function gl(e,t){return(G(e)?Rn:Hi)(e,H(t,3))}var _l=Ao(ic),vl=Ao(ac);function yl(e,t){return Ui(Ol(e,t),1)}function bl(e,t){return Ui(Ol(e,t),k)}function xl(e,t,r){return r=r===n?1:q(r),Ui(Ol(e,t),r)}function Sl(e,t){return(G(e)?Fn:Li)(e,H(t,3))}function Cl(e,t){return(G(e)?In:Ri)(e,H(t,3))}var wl=xo(function(e,t,n){F.call(e,n)?e[n].push(t):ji(e,n,[t])});function Tl(e,t,n,r){e=yu(e)?e:Kd(e),n=n&&!r?q(n):0;var i=e.length;return n<0&&(n=cn(i+n,0)),Ku(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Zn(e,t,n)>-1}var El=B(function(e,t,n){var r=-1,i=typeof t==`function`,a=yu(e)?rt(e.length):[];return Li(e,function(e){a[++r]=i?Nn(t,e,n):ia(e,t,n)}),a}),Dl=xo(function(e,t,n){ji(e,n,t)});function Ol(e,t){return(G(e)?Vn:ba)(e,H(t,3))}function kl(e,t,r,i){return e==null?[]:(G(t)||(t=t==null?[]:[t]),r=i?n:r,G(r)||(r=r==null?[]:[r]),Ea(e,t,r))}var Al=xo(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function jl(e,t,n){var r=G(e)?Un:rr,i=arguments.length<3;return r(e,H(t,4),n,i,Li)}function Ml(e,t,n){var r=G(e)?Wn:rr,i=arguments.length<3;return r(e,H(t,4),n,i,Ri)}function Nl(e,t){return(G(e)?Rn:Hi)(e,Zl(H(t,3)))}function Pl(e){return(G(e)?Si:Fa)(e)}function Fl(e,t,r){return t=(r?ys(e,t,r):t===n)?1:q(t),(G(e)?Ci:Ia)(e,t)}function Il(e){return(G(e)?wi:Ba)(e)}function Ll(e){if(e==null)return 0;if(yu(e))return Ku(e)?kr(e):e.length;var t=ls(e);return t==_e||t==we?e.size:_a(e).length}function Rl(e,t,r){var i=G(e)?Gn:Ha;return r&&ys(e,t,r)&&(t=n),i(e,H(t,3))}var zl=B(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ys(e,t[0],t[1])?t=[]:n>2&&ys(t[0],t[1],t[2])&&(t=[t[0]]),Ea(e,Ui(t,1),[])}),Bl=Xt||function(){return xn.Date.now()};function Vl(e,t){if(typeof t!=`function`)throw new Tt(o);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Hl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Wo(e,w,n,n,n,n,t)}function Ul(e,t){var r;if(typeof t!=`function`)throw new Tt(o);return e=q(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var U=B(function(e,t,n){var r=_;if(n.length){var i=wr(n,ns(U));r|=S}return Wo(e,r,t,n,i)}),W=B(function(e,t,n){var r=_|v;if(n.length){var i=wr(n,ns(W));r|=S}return Wo(t,r,e,n,i)});function Wl(e,t,r){t=r?n:t;var i=Wo(e,b,n,n,n,n,n,t);return i.placeholder=Wl.placeholder,i}function Gl(e,t,r){t=r?n:t;var i=Wo(e,x,n,n,n,n,n,t);return i.placeholder=Gl.placeholder,i}function Kl(e,t,r){var i,a,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new Tt(o);t=rd(t)||0,Mu(r)&&(f=!!r.leading,p=`maxWait`in r,s=p?cn(rd(r.maxWait)||0,t):s,m=`trailing`in r?!!r.trailing:m);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r),c}function g(e){return d=e,l=Ls(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?pn(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=Bl();if(v(e))return b(e);l=Ls(y,_(e))}function b(e){return l=n,m&&i?h(e):(i=a=n,c)}function x(){l!==n&&oo(l),d=0,i=u=a=l=n}function S(){return l===n?c:b(Bl())}function C(){var e=Bl(),r=v(e);if(i=arguments,a=this,u=e,r){if(l===n)return g(u);if(p)return oo(l),l=Ls(y,t),h(u)}return l===n&&(l=Ls(y,t)),c}return C.cancel=x,C.flush=S,C}var ql=B(function(e,t){return Fi(e,1,t)}),Jl=B(function(e,t,n){return Fi(e,rd(t)||0,n)});function Yl(e){return Wo(e,E)}function Xl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new Tt(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Xl.Cache||oi),n}Xl.Cache=oi;function Zl(e){if(typeof e!=`function`)throw new Tt(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ql(e){return Ul(2,e)}var $l=io(function(e,t){t=t.length==1&&G(t[0])?Vn(t[0],lr(H())):Vn(Ui(t,1),lr(H()));var n=t.length;return B(function(r){for(var i=-1,a=pn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Nn(e,this,r)})}),eu=B(function(e,t){return Wo(e,S,n,t,wr(t,ns(eu)))}),tu=B(function(e,t){return Wo(e,C,n,t,wr(t,ns(tu)))}),nu=Zo(function(e,t){return Wo(e,T,n,n,n,t)});function ru(e,t){if(typeof e!=`function`)throw new Tt(o);return t=t===n?t:q(t),B(e,t)}function iu(e,t){if(typeof e!=`function`)throw new Tt(o);return t=t==null?0:cn(q(t),0),B(function(n){var r=n[t],i=ao(n,0,t);return r&&Hn(i,r),Nn(e,this,i)})}function au(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw new Tt(o);return Mu(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Kl(e,t,{leading:r,maxWait:t,trailing:i})}function ou(e){return Hl(e,1)}function su(e,t){return eu(no(t),e)}function cu(){if(!arguments.length)return[];var e=arguments[0];return G(e)?e:[e]}function lu(e){return R(e,m)}function uu(e,t){return t=typeof t==`function`?t:n,R(e,m,t)}function du(e){return R(e,f|m)}function fu(e,t){return t=typeof t==`function`?t:n,R(e,f|m,t)}function pu(e,t){return t==null||z(e,t,Dd(t))}function mu(e,t){return e===t||e!==e&&t!==t}var hu=zo(Qi),gu=zo(function(e,t){return e>=t}),_u=aa(function(){return arguments}())?aa:function(e){return Nu(e)&&F.call(e,`callee`)&&!Ut.call(e,`callee`)},G=rt.isArray,vu=Dn?lr(Dn):oa;function yu(e){return e!=null&&ju(e.length)&&!ku(e)}function K(e){return Nu(e)&&yu(e)}function bu(e){return e===!0||e===!1||Nu(e)&&Zi(e)==de}var xu=tn||ep,Su=On?lr(On):sa;function Cu(e){return Nu(e)&&e.nodeType===1&&!Hu(e)}function wu(e){if(e==null)return!0;if(yu(e)&&(G(e)||typeof e==`string`||typeof e.splice==`function`||xu(e)||Ju(e)||_u(e)))return!e.length;var t=ls(e);if(t==_e||t==we)return!e.size;if(Ts(e))return!_a(e).length;for(var n in e)if(F.call(e,n))return!1;return!0}function Tu(e,t){return ca(e,t)}function Eu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?ca(e,t,n,r):!!i}function Du(e){if(!Nu(e))return!1;var t=Zi(e);return t==me||t==pe||typeof e.message==`string`&&typeof e.name==`string`&&!Hu(e)}function Ou(e){return typeof e==`number`&&an(e)}function ku(e){if(!Mu(e))return!1;var t=Zi(e);return t==he||t==ge||t==ue||t==Se}function Au(e){return typeof e==`number`&&e==q(e)}function ju(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=ae}function Mu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Nu(e){return typeof e==`object`&&!!e}var Pu=kn?lr(kn):ua;function Fu(e,t){return e===t||da(e,t,is(t))}function Iu(e,t,r){return r=typeof r==`function`?r:n,da(e,t,is(t),r)}function Lu(e){return Vu(e)&&e!=+e}function Ru(e){if(ws(e))throw new bt(a);return fa(e)}function zu(e){return e===null}function Bu(e){return e==null}function Vu(e){return typeof e==`number`||Nu(e)&&Zi(e)==ve}function Hu(e){if(!Nu(e)||Zi(e)!=be)return!1;var t=Vt(e);if(t===null)return!0;var n=F.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&At.call(n)==Pt}var Uu=An?lr(An):pa;function Wu(e){return Au(e)&&e>=-ae&&e<=ae}var Gu=jn?lr(jn):ma;function Ku(e){return typeof e==`string`||!G(e)&&Nu(e)&&Zi(e)==Te}function qu(e){return typeof e==`symbol`||Nu(e)&&Zi(e)==Ee}var Ju=Mn?lr(Mn):ha;function Yu(e){return e===n}function Xu(e){return Nu(e)&&ls(e)==Oe}function Zu(e){return Nu(e)&&Zi(e)==ke}var Qu=zo(ya),$u=zo(function(e,t){return e<=t});function ed(e){if(!e)return[];if(yu(e))return Ku(e)?Ar(e):_o(e);if(Kt&&e[Kt])return xr(e[Kt]());var t=ls(e);return(t==_e?Sr:t==we?Tr:Kd)(e)}function td(e){return e?(e=rd(e),e===k||e===-k?(e<0?-1:1)*A:e===e?e:0):e===0?e:0}function q(e){var t=td(e),n=t%1;return t===t?n?t-n:t:0}function nd(e){return e?Ni(q(e),0,oe):0}function rd(e){if(typeof e==`number`)return e;if(qu(e))return j;if(Mu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Mu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=cr(e);var n=pt.test(e);return n||ht.test(e)?vn(e.slice(2),n?2:8):ft.test(e)?j:+e}function id(e){return vo(e,Od(e))}function ad(e){return e?Ni(q(e),-ae,ae):e===0?e:0}function J(e){return e==null?``:qa(e)}var od=So(function(e,t){if(Ts(t)||yu(t)){vo(t,Dd(t),e);return}for(var n in t)F.call(t,n)&&Ei(e,n,t[n])}),sd=So(function(e,t){vo(t,Od(t),e)}),cd=So(function(e,t,n,r){vo(t,Od(t),e,r)}),ld=So(function(e,t,n,r){vo(t,Dd(t),e,r)}),ud=Zo(Mi);function dd(e,t){var n=Hr(e);return t==null?n:ki(n,t)}var fd=B(function(e,t){e=P(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&ys(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Od(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||mu(d,Ot[u])&&!F.call(e,u))&&(e[u]=o[u])}return e}),pd=B(function(e){return e.push(n,Ko),Nn(Md,n,e)});function md(e,t){return Yn(e,H(t,3),Ki)}function hd(e,t){return Yn(e,H(t,3),qi)}function gd(e,t){return e==null?e:Wi(e,H(t,3),Od)}function _d(e,t){return e==null?e:Gi(e,H(t,3),Od)}function vd(e,t){return e&&Ki(e,H(t,3))}function yd(e,t){return e&&qi(e,H(t,3))}function bd(e){return e==null?[]:Ji(e,Dd(e))}function xd(e){return e==null?[]:Ji(e,Od(e))}function Sd(e,t,r){var i=e==null?n:Yi(e,t);return i===n?r:i}function Y(e,t){return e!=null&&fs(e,t,$i)}function Cd(e,t){return e!=null&&fs(e,t,ea)}var wd=No(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=Nt.call(t)),e[t]=n},Mf(If)),Td=No(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=Nt.call(t)),F.call(e,t)?e[t].push(n):e[t]=[n]},H),Ed=B(ia);function Dd(e){return yu(e)?xi(e):_a(e)}function Od(e){return yu(e)?xi(e,!0):va(e)}function kd(e,t){var n={};return t=H(t,3),Ki(e,function(e,r,i){ji(n,t(e,r,i),e)}),n}function Ad(e,t){var n={};return t=H(t,3),Ki(e,function(e,r,i){ji(n,r,t(e,r,i))}),n}var jd=So(function(e,t,n){Ca(e,t,n)}),Md=So(function(e,t,n,r){Ca(e,t,n,r)}),Nd=Zo(function(e,t){var n={};if(e==null)return n;var r=!1;t=Vn(t,function(t){return t=ro(t,e),r||=t.length>1,t}),vo(e,$o(e),n),r&&(n=R(n,f|p|m,qo));for(var i=t.length;i--;)Ya(n,t[i]);return n});function Pd(e,t){return Id(e,Zl(H(t)))}var Fd=Zo(function(e,t){return e==null?{}:Da(e,t)});function Id(e,t){if(e==null)return{};var n=Vn($o(e),function(e){return[e]});return t=H(t),Oa(e,n,function(e,n){return t(e,n[0])})}function Ld(e,t,r){t=ro(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[Us(t[i])];o===n&&(i=a,o=r),e=ku(o)?o.call(e):o}return e}function Rd(e,t,n){return e==null?e:La(e,t,n)}function zd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:La(e,t,r,i)}var Bd=Uo(Dd),Vd=Uo(Od);function Hd(e,t,n){var r=G(e),i=r||xu(e)||Ju(e);if(t=H(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Mu(e)&&ku(a)?Hr(Vt(e)):{}}return(i?Fn:Ki)(e,function(e,r,i){return t(n,e,r,i)}),n}function Ud(e,t){return e==null?!0:Ya(e,t)}function Wd(e,t,n){return e==null?e:Xa(e,t,no(n))}function Gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Xa(e,t,no(r),i)}function Kd(e){return e==null?[]:ur(e,Dd(e))}function qd(e){return e==null?[]:ur(e,Od(e))}function Jd(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=rd(r),r=r===r?r:0),t!==n&&(t=rd(t),t=t===t?t:0),Ni(rd(e),t,r)}function Yd(e,t,r){return t=td(t),r===n?(r=t,t=0):r=td(r),e=rd(e),ta(e,t,r)}function Xd(e,t,r){if(r&&typeof r!=`boolean`&&ys(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=td(e),t===n?(t=e,e=0):t=td(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=gn();return pn(e+a*(t-e+_n(`1e-`+((a+``).length-1))),t)}return Ma(e,t)}var Zd=Do(function(e,t,n){return t=t.toLowerCase(),e+(n?Qd(t):t)});function Qd(e){return Ef(J(e).toLowerCase())}function $d(e){return e=J(e),e&&e.replace(_t,hr).replace(rn,``)}function ef(e,t,r){e=J(e),t=qa(t);var i=e.length;r=r===n?i:Ni(q(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function tf(e){return e=J(e),e&&qe.test(e)?e.replace(Ge,gr):e}function nf(e){return e=J(e),e&&tt.test(e)?e.replace(et,`\\$&`):e}var rf=Do(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),af=Do(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),of=Eo(`toLowerCase`);function sf(e,t,n){e=J(e),t=q(t);var r=t?kr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Io($t(i),n)+e+Io(Qt(i),n)}function cf(e,t,n){e=J(e),t=q(t);var r=t?kr(e):0;return t&&r<t?e+Io(t-r,n):e}function lf(e,t,n){e=J(e),t=q(t);var r=t?kr(e):0;return t&&r<t?Io(t-r,n)+e:e}function uf(e,t,n){return n||t==null?t=0:t&&=+t,hn(J(e).replace(nt,``),t||0)}function df(e,t,r){return t=(r?ys(e,t,r):t===n)?1:q(t),Pa(J(e),t)}function ff(){var e=arguments,t=J(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var pf=Do(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function mf(e,t,r){return r&&typeof r!=`number`&&ys(e,t,r)&&(t=r=n),r=r===n?oe:r>>>0,r?(e=J(e),e&&(typeof t==`string`||t!=null&&!Uu(t))&&(t=qa(t),!t&&yr(e))?ao(Ar(e),0,r):e.split(t,r)):[]}var hf=Do(function(e,t,n){return e+(n?` `:``)+Ef(t)});function gf(e,t,n){return e=J(e),n=n==null?0:Ni(q(n),0,e.length),t=qa(t),e.slice(n,n+t.length)==t}function _f(e,t,r){var i=I.templateSettings;r&&ys(e,t,r)&&(t=n),e=J(e),t=ld({},t,i,Go);var a=ld({},t.imports,i.imports,Go),o=Dd(a),l=ur(a,o);Fn(o,function(e){if(ct.test(e))throw new bt(c)});var u,d,f=0,p=t.interpolate||vt,m=`__p += '`,h=Ct((t.escape||vt).source+`|`+p.source+`|`+(p===Xe?ut:vt).source+`|`+(t.evaluate||vt).source+`|$`,`g`),g=`//# sourceURL=`+(F.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++un+`]`)+`
55
+ `;e.replace(h,function(t,n,r,i,a,o){return r||=i,m+=e.slice(f,o).replace(yt,_r),n&&(u=!0,m+=`' +
56
56
  __e(`+n+`) +
57
57
  '`),a&&(d=!0,m+=`';
58
58
  `+a+`;
59
59
  __p += '`),r&&(m+=`' +
60
60
  ((__t = (`+r+`)) == null ? '' : __t) +
61
61
  '`),f=o+t.length,t}),m+=`';
62
- `;var _=M.call(t,`variable`)&&t.variable;if(!_)m=`with (obj) {
62
+ `;var _=F.call(t,`variable`)&&t.variable;if(!_)m=`with (obj) {
63
63
  `+m+`
64
64
  }
65
- `;else if(dt.test(_))throw new Ct(s);m=(d?m.replace(We,``):m).replace(Ge,`$1`).replace(Ke,`$1;`),m=`function(`+(_||`obj`)+`) {
65
+ `;else if(ct.test(_))throw new bt(s);m=(d?m.replace(Ve,``):m).replace(He,`$1`).replace(Ue,`$1;`),m=`function(`+(_||`obj`)+`) {
66
66
  `+(_?``:`obj || (obj = {});
67
67
  `)+`var __t, __p = ''`+(u?`, __e = _.escape`:``)+(d?`, __j = Array.prototype.join;
68
68
  function print() { __p += __j.call(arguments, '') }
69
69
  `:`;
70
70
  `)+m+`return __p
71
- }`;var v=Of(function(){return wt(o,g+`return `+m).apply(n,l)});if(v.source=m,Du(v))throw v;return v}function vf(e){return J(e).toLowerCase()}function yf(e){return J(e).toUpperCase()}function bf(e,t,r){if(e=J(e),e&&(r||t===n))return ur(e);if(!e||!(t=Ja(t)))return e;var i=Mr(e),a=Mr(t);return oo(i,mr(i,a),hr(i,a)+1).join(``)}function xf(e,t,r){if(e=J(e),e&&(r||t===n))return e.slice(0,Nr(e)+1);if(!e||!(t=Ja(t)))return e;var i=Mr(e);return oo(i,0,hr(i,Mr(t))+1).join(``)}function Sf(e,t,r){if(e=J(e),e&&(r||t===n))return e.replace(at,``);if(!e||!(t=Ja(t)))return e;var i=Mr(e);return oo(i,mr(i,Mr(t))).join(``)}function Cf(e,t){var r=te,i=ne;if(Mu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?q(t.length):r,i=`omission`in t?Ja(t.omission):i}e=J(e);var o=e.length;if(xr(e)){var s=Mr(e);o=s.length}if(r>=o)return e;var c=r-jr(i);if(c<1)return i;var l=s?oo(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Uu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=Et(a.source,J(mt.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(Ja(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function wf(e){return e=J(e),e&&Ye.test(e)?e.replace(qe,Pr):e}var Tf=Oo(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),Ef=Do(`toUpperCase`);function Df(e,t,r){return e=J(e),t=r?n:t,t===n?Sr(e)?Lr(e):Xn(e):e.match(t)||[]}var Of=z(function(e,t){try{return Fn(e,n,t)}catch(e){return Du(e)?e:new Ct(e)}}),kf=Qo(function(e,t){return Ln(t,function(t){t=Ws(t),Ni(e,t,U(e[t],e))}),e});function Af(e){var t=e==null?0:e.length,n=V();return e=t?Un(e,function(e){if(typeof e[1]!=`function`)throw new Ot(o);return[n(e[0]),e[1]]}):[],z(function(n){for(var r=-1;++r<t;){var i=e[r];if(Fn(i[0],this,n))return Fn(i[1],this,n)}})}function jf(e){return Ii(I(e,f))}function Mf(e){return function(){return e}}function Nf(e,t){return e==null||e!==e?t:e}var Pf=Mo(),Ff=Mo(!0);function If(e){return e}function Lf(e){return _a(typeof e==`function`?e:I(e,f))}function Rf(e){return Sa(I(e,f))}function zf(e,t){return Ca(e,I(t,f))}var Bf=z(function(e,t){return function(n){return aa(n,e,t)}}),Vf=z(function(e,t){return function(n){return aa(e,n,t)}});function Hf(e,t,n){var r=Dd(t),i=Xi(t,r);n==null&&!(Mu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Xi(t,Dd(t)));var a=!(Mu(n)&&`chain`in n)||!!n.chain,o=ku(e);return Ln(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=vo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Wn([this.value()],arguments))})}),e}function Uf(){return Cn._===this&&(Cn._=Rt),this}function Wf(){}function Gf(e){return e=q(e),z(function(t){return Ea(t,e)})}var Kf=Io(Un),qf=Io(zn),Jf=Io(qn);function Yf(e){return xs(e)?rr(Ws(e)):Aa(e)}function Xf(e){return function(t){return e==null?n:Zi(e,t)}}var Zf=zo(),Qf=zo(!0);function $f(){return[]}function ep(){return!1}function tp(){return{}}function np(){return``}function rp(){return!0}function ip(e,t){if(e=q(e),e<1||e>ce)return[];var n=le,r=hn(e,le);t=V(t),e-=le;for(var i=cr(r,t);++n<e;)t(n);return i}function ap(e){return G(e)?Un(e,Ws):qu(e)?[e]:vo(Us(J(e)))}function op(e){var t=++Pt;return J(e)+t}var sp=Fo(function(e,t){return e+t},0),cp=Ho(`ceil`),lp=Fo(function(e,t){return e/t},1),up=Ho(`floor`);function dp(e){return e&&e.length?Hi(e,If,ea):n}function fp(e,t){return e&&e.length?Hi(e,V(t,2),ea):n}function pp(e){return nr(e,If)}function mp(e,t){return nr(e,V(t,2))}function hp(e){return e&&e.length?Hi(e,If,ba):n}function gp(e,t){return e&&e.length?Hi(e,V(t,2),ba):n}var _p=Fo(function(e,t){return e*t},1),vp=Ho(`round`),yp=Fo(function(e,t){return e-t},0);function bp(e){return e&&e.length?sr(e,If):0}function xp(e,t){return e&&e.length?sr(e,V(t,2)):0}return P.after=Hl,P.ary=H,P.assign=od,P.assignIn=sd,P.assignInWith=cd,P.assignWith=ld,P.at=ud,P.before=Ul,P.bind=U,P.bindAll=kf,P.bindKey=W,P.castArray=cu,P.chain=il,P.chunk=Js,P.compact=Ys,P.concat=Xs,P.cond=Af,P.conforms=jf,P.constant=Mf,P.countBy=hl,P.create=dd,P.curry=Wl,P.curryRight=Gl,P.debounce=Kl,P.defaults=fd,P.defaultsDeep=pd,P.defer=ql,P.delay=Jl,P.difference=Zs,P.differenceBy=Qs,P.differenceWith=$s,P.drop=ec,P.dropRight=tc,P.dropRightWhile=nc,P.dropWhile=rc,P.fill=ic,P.filter=_l,P.flatMap=bl,P.flatMapDeep=xl,P.flatMapDepth=Sl,P.flatten=sc,P.flattenDeep=cc,P.flattenDepth=lc,P.flip=Yl,P.flow=Pf,P.flowRight=Ff,P.fromPairs=uc,P.functions=bd,P.functionsIn=xd,P.groupBy=Tl,P.initial=pc,P.intersection=mc,P.intersectionBy=hc,P.intersectionWith=gc,P.invert=wd,P.invertBy=Td,P.invokeMap=Dl,P.iteratee=Lf,P.keyBy=Ol,P.keys=Dd,P.keysIn=Od,P.map=kl,P.mapKeys=kd,P.mapValues=Ad,P.matches=Rf,P.matchesProperty=zf,P.memoize=Xl,P.merge=jd,P.mergeWith=Md,P.method=Bf,P.methodOf=Vf,P.mixin=Hf,P.negate=Zl,P.nthArg=Gf,P.omit=Nd,P.omitBy=Pd,P.once=Ql,P.orderBy=Al,P.over=Kf,P.overArgs=$l,P.overEvery=qf,P.overSome=Jf,P.partial=eu,P.partialRight=tu,P.partition=jl,P.pick=Fd,P.pickBy=Id,P.property=Yf,P.propertyOf=Xf,P.pull=xc,P.pullAll=Sc,P.pullAllBy=Cc,P.pullAllWith=wc,P.pullAt=Tc,P.range=Zf,P.rangeRight=Qf,P.rearg=nu,P.reject=Pl,P.remove=Ec,P.rest=ru,P.reverse=Dc,P.sampleSize=Il,P.set=Rd,P.setWith=zd,P.shuffle=Ll,P.slice=Oc,P.sortBy=Bl,P.sortedUniq=Fc,P.sortedUniqBy=Ic,P.split=mf,P.spread=iu,P.tail=Lc,P.take=Rc,P.takeRight=zc,P.takeRightWhile=Bc,P.takeWhile=Vc,P.tap=al,P.throttle=au,P.thru=ol,P.toArray=ed,P.toPairs=Bd,P.toPairsIn=Vd,P.toPath=ap,P.toPlainObject=id,P.transform=Hd,P.unary=ou,P.union=Hc,P.unionBy=Uc,P.unionWith=Wc,P.uniq=Gc,P.uniqBy=Kc,P.uniqWith=qc,P.unset=Ud,P.unzip=Jc,P.unzipWith=Yc,P.update=Wd,P.updateWith=Gd,P.values=Kd,P.valuesIn=qd,P.without=Xc,P.words=Df,P.wrap=su,P.xor=Zc,P.xorBy=Qc,P.xorWith=$c,P.zip=el,P.zipObject=tl,P.zipObjectDeep=nl,P.zipWith=rl,P.entries=Bd,P.entriesIn=Vd,P.extend=sd,P.extendWith=cd,Hf(P,P),P.add=sp,P.attempt=Of,P.camelCase=Zd,P.capitalize=Qd,P.ceil=cp,P.clamp=Jd,P.clone=lu,P.cloneDeep=du,P.cloneDeepWith=fu,P.cloneWith=uu,P.conformsTo=pu,P.deburr=$d,P.defaultTo=Nf,P.divide=lp,P.endsWith=ef,P.eq=mu,P.escape=tf,P.escapeRegExp=nf,P.every=gl,P.find=vl,P.findIndex=ac,P.findKey=md,P.findLast=yl,P.findLastIndex=oc,P.findLastKey=hd,P.floor=up,P.forEach=Cl,P.forEachRight=wl,P.forIn=gd,P.forInRight=_d,P.forOwn=vd,P.forOwnRight=yd,P.get=Sd,P.gt=hu,P.gte=gu,P.has=Y,P.hasIn=Cd,P.head=dc,P.identity=If,P.includes=El,P.indexOf=fc,P.inRange=Yd,P.invoke=Ed,P.isArguments=_u,P.isArray=G,P.isArrayBuffer=vu,P.isArrayLike=yu,P.isArrayLikeObject=K,P.isBoolean=bu,P.isBuffer=xu,P.isDate=Su,P.isElement=Cu,P.isEmpty=wu,P.isEqual=Tu,P.isEqualWith=Eu,P.isError=Du,P.isFinite=Ou,P.isFunction=ku,P.isInteger=Au,P.isLength=ju,P.isMap=Pu,P.isMatch=Fu,P.isMatchWith=Iu,P.isNaN=Lu,P.isNative=Ru,P.isNil=Bu,P.isNull=zu,P.isNumber=Vu,P.isObject=Mu,P.isObjectLike=Nu,P.isPlainObject=Hu,P.isRegExp=Uu,P.isSafeInteger=Wu,P.isSet=Gu,P.isString=Ku,P.isSymbol=qu,P.isTypedArray=Ju,P.isUndefined=Yu,P.isWeakMap=Xu,P.isWeakSet=Zu,P.join=_c,P.kebabCase=rf,P.last=vc,P.lastIndexOf=yc,P.lowerCase=af,P.lowerFirst=of,P.lt=Qu,P.lte=$u,P.max=dp,P.maxBy=fp,P.mean=pp,P.meanBy=mp,P.min=hp,P.minBy=gp,P.stubArray=$f,P.stubFalse=ep,P.stubObject=tp,P.stubString=np,P.stubTrue=rp,P.multiply=_p,P.nth=bc,P.noConflict=Uf,P.noop=Wf,P.now=Vl,P.pad=sf,P.padEnd=cf,P.padStart=lf,P.parseInt=uf,P.random=Xd,P.reduce=Ml,P.reduceRight=Nl,P.repeat=df,P.replace=ff,P.result=Ld,P.round=vp,P.runInContext=e,P.sample=Fl,P.size=Rl,P.snakeCase=pf,P.some=zl,P.sortedIndex=kc,P.sortedIndexBy=Ac,P.sortedIndexOf=jc,P.sortedLastIndex=Mc,P.sortedLastIndexBy=Nc,P.sortedLastIndexOf=Pc,P.startCase=hf,P.startsWith=gf,P.subtract=yp,P.sum=bp,P.sumBy=xp,P.template=_f,P.times=ip,P.toFinite=td,P.toInteger=q,P.toLength=nd,P.toLower=vf,P.toNumber=rd,P.toSafeInteger=ad,P.toString=J,P.toUpper=yf,P.trim=bf,P.trimEnd=xf,P.trimStart=Sf,P.truncate=Cf,P.unescape=wf,P.uniqueId=op,P.upperCase=Tf,P.upperFirst=Ef,P.each=Cl,P.eachRight=wl,P.first=dc,Hf(P,function(){var e={};return Ji(P,function(t,n){M.call(P.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),P.VERSION=r,Ln([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){P[e].placeholder=P}),Ln([`drop`,`take`],function(e,t){F.prototype[e]=function(r){r=r===n?1:dn(q(r),0);var i=this.__filtered__&&!t?new F(this):this.clone();return i.__filtered__?i.__takeCount__=hn(r,i.__takeCount__):i.__views__.push({size:hn(r,le),type:e+(i.__dir__<0?`Right`:``)}),i},F.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),Ln([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==ie||n==oe;F.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:V(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ln([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);F.prototype[e]=function(){return this[n](1).value()[0]}}),Ln([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);F.prototype[e]=function(){return this.__filtered__?new F(this):this[n](1)}}),F.prototype.compact=function(){return this.filter(If)},F.prototype.find=function(e){return this.filter(e).head()},F.prototype.findLast=function(e){return this.reverse().find(e)},F.prototype.invokeMap=z(function(e,t){return typeof e==`function`?new F(this):this.map(function(n){return aa(n,e,t)})}),F.prototype.reject=function(e){return this.filter(Zl(V(e)))},F.prototype.slice=function(e,t){e=q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new F(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},F.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},F.prototype.toArray=function(){return this.take(le)},Ji(F.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=P[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(P.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof F,l=s[0],u=c||G(t),d=function(e){var t=a.apply(P,Wn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new F(this);var g=e.apply(t,s);return g.__actions__.push({func:ol,args:[d],thisArg:n}),new Kr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),Ln([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=kt[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);P.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(G(i)?i:[],e)}return this[n](function(n){return t.apply(G(n)?n:[],e)})}}),Ji(F.prototype,function(e,t){var n=P[t];if(n){var r=n.name+``;M.call(ir,r)||(ir[r]=[]),ir[r].push({name:t,func:n})}}),ir[No(n,v).name]=[{name:`wrapper`,func:n}],F.prototype.clone=qr,F.prototype.reverse=Jr,F.prototype.value=Yr,P.prototype.at=sl,P.prototype.chain=cl,P.prototype.commit=ll,P.prototype.next=ul,P.prototype.plant=fl,P.prototype.reverse=pl,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=ml,P.prototype.first=P.prototype.head,Yt&&(P.prototype[Yt]=dl),P})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Cn._=Rr,define(function(){return Rr})):Tn?((Tn.exports=Rr)._=Rr,wn._=Rr):Cn._=Rr}).call(e)}))(),1),Qd=c({ModalDef:()=>jf,ModalHolder:()=>Mf,NiceModalContext:()=>rf,Provider:()=>Af,antdDrawer:()=>Ff,antdDrawerV5:()=>If,antdModal:()=>Nf,antdModalV5:()=>Pf,bootstrapDialog:()=>zf,create:()=>Tf,default:()=>Bf,hide:()=>xf,muiDialog:()=>Lf,muiDialogV5:()=>Rf,reducer:()=>df,register:()=>Ef,remove:()=>Sf,show:()=>bf,unregister:()=>Df,useModal:()=>wf}),$d=function(){return $d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$d.apply(this,arguments)},ef=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},tf=Symbol(`NiceModalId`),nf={},rf=E.createContext(nf),af=E.createContext(null),of={},sf={},cf=0,lf=function(){throw Error(`No dispatch method detected, did you embed your app with NiceModal.Provider?`)},uf=function(){return`_nice_modal_`+ cf++},df=function(e,t){var n,r,i;switch(e===void 0&&(e=nf),t.type){case`nice-modal/show`:var a=t.payload,o=a.modalId,s=a.args;return $d($d({},e),(n={},n[o]=$d($d({},e[o]),{id:o,args:s,visible:!!sf[o],delayVisible:!sf[o]}),n));case`nice-modal/hide`:var o=t.payload.modalId;return e[o]?$d($d({},e),(r={},r[o]=$d($d({},e[o]),{visible:!1}),r)):e;case`nice-modal/remove`:var o=t.payload.modalId,c=$d({},e);return delete c[o],c;case`nice-modal/set-flags`:var l=t.payload,o=l.modalId,u=l.flags;return $d($d({},e),(i={},i[o]=$d($d({},e[o]),u),i));default:return e}};function ff(e){return of[e]?.comp}function pf(e,t){return{type:`nice-modal/show`,payload:{modalId:e,args:t}}}function mf(e,t){return{type:`nice-modal/set-flags`,payload:{modalId:e,flags:t}}}function hf(e){return{type:`nice-modal/hide`,payload:{modalId:e}}}function gf(e){return{type:`nice-modal/remove`,payload:{modalId:e}}}var _f={},vf={},yf=function(e){return typeof e==`string`?e:(e[tf]||(e[tf]=uf()),e[tf])};function bf(e,t){var n=yf(e);if(typeof e!=`string`&&!of[n]&&Ef(n,e),lf(pf(n,t)),!_f[n]){var r,i,a=new Promise(function(e,t){r=e,i=t});_f[n]={resolve:r,reject:i,promise:a}}return _f[n].promise}function xf(e){var t=yf(e);if(lf(hf(t)),delete _f[t],!vf[t]){var n,r,i=new Promise(function(e,t){n=e,r=t});vf[t]={resolve:n,reject:r,promise:i}}return vf[t].promise}var Sf=function(e){var t=yf(e);lf(gf(t)),delete _f[t],delete vf[t]},Cf=function(e,t){lf(mf(e,t))};function wf(e,t){var n=(0,E.useContext)(rf),r=(0,E.useContext)(af),i=null,a=e&&typeof e!=`string`;if(i=e?yf(e):r,!i)throw Error(`No modal id found in NiceModal.useModal.`);var o=i;(0,E.useEffect)(function(){a&&!of[o]&&Ef(o,e,t)},[a,o,e,t]);var s=n[o],c=(0,E.useCallback)(function(e){return bf(o,e)},[o]),l=(0,E.useCallback)(function(){return xf(o)},[o]),u=(0,E.useCallback)(function(){return Sf(o)},[o]),d=(0,E.useCallback)(function(e){_f[o]?.resolve(e),delete _f[o]},[o]),f=(0,E.useCallback)(function(e){_f[o]?.reject(e),delete _f[o]},[o]),p=(0,E.useCallback)(function(e){vf[o]?.resolve(e),delete vf[o]},[o]);return(0,E.useMemo)(function(){return{id:o,args:s?.args,visible:!!s?.visible,keepMounted:!!s?.keepMounted,show:c,hide:l,remove:u,resolve:d,reject:f,resolveHide:p}},[o,s?.args,s?.visible,s?.keepMounted,c,l,u,d,f,p])}var Tf=function(e){return function(t){var n=t.defaultVisible,r=t.keepMounted,i=t.id,a=ef(t,[`defaultVisible`,`keepMounted`,`id`]),o=wf(i),s=o.args,c=o.show,l=(0,E.useContext)(rf),u=!!l[i];(0,E.useEffect)(function(){return n&&c(),sf[i]=!0,function(){delete sf[i]}},[i,c,n]),(0,E.useEffect)(function(){r&&Cf(i,{keepMounted:!0})},[i,r]);var d=l[i]?.delayVisible;return(0,E.useEffect)(function(){d&&c(s)},[d,s,c]),u?E.createElement(af.Provider,{value:i},E.createElement(e,$d({},a,s))):null}},Ef=function(e,t,n){of[e]?of[e].props=n:of[e]={comp:t,props:n}},Df=function(e){delete of[e]},Of=function(){var e=(0,E.useContext)(rf),t=Object.keys(e).filter(function(t){return!!e[t]});t.forEach(function(e){if(!of[e]&&!sf[e]){console.warn(`No modal found for id: `+e+`. Please check the id or if it is registered or declared via JSX.`);return}});var n=t.filter(function(e){return of[e]}).map(function(e){return $d({id:e},of[e])});return E.createElement(E.Fragment,null,n.map(function(e){return E.createElement(e.comp,$d({key:e.id,id:e.id},e.props))}))},kf=function(e){var t=e.children,n=(0,E.useReducer)(df,nf),r=n[0];return lf=n[1],E.createElement(rf.Provider,{value:r},t,E.createElement(Of,null))},Af=function(e){var t=e.children,n=e.dispatch,r=e.modals;return!n||!r?E.createElement(kf,null,t):(lf=n,E.createElement(rf.Provider,{value:r},t,E.createElement(Of,null)))},jf=function(e){var t=e.id,n=e.component;return(0,E.useEffect)(function(){return Ef(t,n),function(){Df(t)}},[t,n]),null},Mf=function(e){var t=e.modal,n=e.handler,r=n===void 0?{}:n,i=ef(e,[`modal`,`handler`]),a=(0,E.useMemo)(function(){return uf()},[]),o=typeof t==`string`?of[t]?.comp:t;if(!r)throw Error(`No handler found in NiceModal.ModalHolder.`);if(!o)throw Error(`No modal found for id: `+t+` in NiceModal.ModalHolder.`);return r.show=(0,E.useCallback)(function(e){return bf(a,e)},[a]),r.hide=(0,E.useCallback)(function(){return xf(a)},[a]),E.createElement(o,$d({id:a},i))},Nf=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},Pf=function(e){var t=Nf(e),n=t.onOk,r=t.onCancel,i=t.afterClose;return{open:e.visible,onOk:n,onCancel:r,afterClose:i}},Ff=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},If=function(e){var t=Ff(e),n=t.onClose,r=t.afterVisibleChange;return{open:e.visible,onClose:n,afterOpenChange:r}},Lf=function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},Rf=function(e){return{open:e.visible,onClose:function(){return e.hide()},TransitionProps:{onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}},zf=function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},Bf={Provider:Af,ModalDef:jf,ModalHolder:Mf,NiceModalContext:rf,create:Tf,register:Ef,getModal:ff,show:bf,hide:xf,remove:Sf,useModal:wf,reducer:df,antdModal:Nf,antdDrawer:Ff,muiDialog:Lf,bootstrapDialog:zf},Vf=u(s(((e,t)=>{var n=[],r={},i={},a=typeof window<`u`&&window.document!==void 0,o=typeof process<`u`&&process.versions!=null&&process.versions.node!=null,s=a&&document.location.search.includes(`JS_PLUGIN_DEBUG`)||o&&{}.JS_PLUGIN_DEBUG;function c(e){return!!(e.constructor&&e.call&&e.apply)}function l(e,t){for(var n=t.split(`.`),r=0;r<n.length;r++){if(!(n[r]in e))return;e=e[n[r]]}return e}function u(e,t){for(var n=t.split(`.`),r=0;r<n.length;r++){if(!(n[r]in e))return;e=e[n[r]]}return!0}t.exports={config:{},register:function(e){if(!e.name)throw console.log(`Every plugin should have a name.`),console.log(e),Error(`Every plugin should have a name.`);if(r[e.name])throw Error(`Plugin "`+e.name+`" already exits.`);i={},n=n.slice();var t=n.length;n.forEach((n,r)=>{n.deps&&n.deps.indexOf(e.name)>=0&&(t=Math.min(t,r))}),n.splice(t,0,e),r[e.name]=e,e.initialize&&e.initialize()},unregister:function(e){var t=r[e];if(!t)throw Error(`Plugin "`+e+`" does't exist.`);var a=n.indexOf(t);if(a===-1)throw Error(`Plugin "`+e+`" does't exist in _plugins but in _byName. This seems to be a bug of js-plugin.`);i={},delete r[e],n=n.slice(),n.splice(a,1)},getPlugin:function(e){return r[e]},getPlugins:function(e){return e||=`.`,i[e]||(i[e]=n.filter(t=>{if(t.deps&&t.deps.some(e=>!r[e])){let e=t.deps.filter(e=>!r[e]);return console.log(`Plugin ${t.name} is not loaded because its deps do not exist: ${e}.`),!1}return e===`.`?!0:u(t,e)})),i[e]},processRawPlugins:function(e){e(n),i={}},invoke:function(e){var t=Array.prototype.slice.call(arguments,1);if(!e)throw Error(`Invoke on plugin should have prop argument`);var n=/^!/.test(e),r=this.config.throws||/!$/.test(e);e=e.replace(/^!|!$/g,``);var i=e.split(`.`);i.pop();var a=i.join(`.`);return this.getPlugins(e).map(function(i){var o=l(i,e);if(!c(o)||n)return o;try{return s&&console.log(`Before`,i.name,e,t),o.apply(l(i,a),t)}catch(t){if(console.log(`Failed to invoke plugin: `+i.name+`!`+e),r)throw t;console.log(t)}finally{s&&console.log(`After `,i.name,e,t)}return null})},sort:function(e,t){t||=`order`,e.sort((e,n)=>(e.hasOwnProperty(t)?e[t]:1e6)-(n.hasOwnProperty(t)?n[t]:1e6))}}}))(),1),Hf=c({__DO_NOT_USE__ActionTypes:()=>Kf,applyMiddleware:()=>tp,bindActionCreators:()=>$f,combineReducers:()=>Zf,compose:()=>ep,createStore:()=>Jf,isAction:()=>np,isPlainObject:()=>qf,legacy_createStore:()=>Yf});function Uf(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 Wf=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Gf=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Kf={INIT:`@@redux/INIT${Gf()}`,REPLACE:`@@redux/REPLACE${Gf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Gf()}`};function qf(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jf(e,t,n){if(typeof e!=`function`)throw Error(Uf(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Uf(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Uf(1));return n(Jf)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Uf(3));return i}function d(e){if(typeof e!=`function`)throw Error(Uf(4));if(c)throw Error(Uf(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Uf(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!qf(e))throw Error(Uf(7));if(e.type===void 0)throw Error(Uf(8));if(typeof e.type!=`string`)throw Error(Uf(17));if(c)throw Error(Uf(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Uf(10));r=e,f({type:Kf.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Uf(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Wf](){return this}}}return f({type:Kf.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Wf]:m}}function Yf(e,t,n){return Jf(e,t,n)}function Xf(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Kf.INIT})===void 0)throw Error(Uf(12));if(n(void 0,{type:Kf.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Uf(13))})}function Zf(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{Xf(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(Uf(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function Qf(e,t){return function(...n){return t(e.apply(this,n))}}function $f(e,t){if(typeof e==`function`)return Qf(e,t);if(typeof e!=`object`||!e)throw Error(Uf(16));let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=Qf(i,t))}return n}function ep(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function tp(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Uf(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=ep(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function np(e){return qf(e)&&`type`in e&&typeof e.type==`string`}var rp=c({thunk:()=>ap,withExtraArgument:()=>op});function ip(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var ap=ip(),op=ip,sp=c({default:()=>cp}),cp={},lp=c({default:()=>dp}),up=[];function dp(e=cp,t){let n;switch(t.type){default:n=e;break}return up.reduce((e,n)=>n(e,t),n)}var fp=c({default:()=>pp}),pp={},mp=c({default:()=>gp}),hp=[];function gp(e=pp,t){let n;switch(t.type){default:n=e;break}return hp.reduce((e,n)=>n(e,t),n)}var _p=c({default:()=>vp}),vp={subAppState:{}},yp=c({SUB_APP_CLEAR_SUB_APP_STATE:()=>xp,SUB_APP_SET_SUB_APP_STATE:()=>bp}),bp=`SUB_APP_SET_SUB_APP_STATE`,xp=`SUB_APP_CLEAR_SUB_APP_STATE`,Sp=c({clearSubAppState:()=>wp,reducer:()=>Ep,setSubAppState:()=>Cp,useSetSubAppState:()=>Tp});function Cp(e){return{type:bp,data:e}}function wp(){return{type:xp}}function Tp(){let e=mt();return{subAppState:_t(e=>e.subApp.subAppState),setSubAppState:(0,E.useCallback)((...t)=>e(Cp(...t)),[e]),clearSubAppState:(0,E.useCallback)((...t)=>e(wp(...t)),[e])}}function Ep(e,t){switch(t.type){case bp:return{...e,subAppState:t.data};case xp:return{...e,subAppState:{}};default:return e}}var Dp=c({default:()=>kp}),Op=[Ep];function kp(e=vp,t){let n;switch(t.type){default:n=e;break}return Op.reduce((e,n)=>n(e,t),n)}var Ap=c({default:()=>Mp}),jp={modals:Bf.reducer,home:dp,common:gp,subApp:kp},Mp=()=>(Vf.default.getPlugins(`reducer`).forEach(e=>{let t=Zd.default.camelCase(`plugin-${e.name}`);jp[t]?console.error(`Duplicated reducer key for plugin: `,e.name):jp[t]=e.reducer}),Vf.default.getPlugins(`reducers`).forEach(e=>{Object.keys(e.reducers).forEach(t=>{jp[t]=e.reducers[t]})}),Zf(jp)),Np=c({default:()=>Ip}),Pp=[ap],Fp=e=>e;function Ip(e){return Jf(Mp(),e,ep(tp(...Pp),Fp))}var Lp=c({default:()=>Rp}),Rp={store:null,getStore(){return this.store||=Ip(),this.store},getState(){return this.getStore().getState()},dispatch(e){return this.getStore().dispatch(e)},subscribe(e){return this.getStore().subscribe(e)},replaceReducer(e){return this.getStore().replaceReducer(e)}},zp=c({default:()=>Bp});function Bp(){let e=sa();(0,E.useEffect)(()=>(window.MUSE_GLOBAL?.msgEngine?.addListener(`muse-react_history`,t=>{let n=document.location.href.replace(document.location.origin,``);t.type===`parent-route-change`&&t.path!==n&&(console.log(`parent-route-change: `,t.path),e(t.path))}),()=>{window.MUSE_GLOBAL?.msgEngine?.removeListener(`muse-react_history`)}),[e])}var Vp=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Hp=s((e=>{})),Up=s(((e,t)=>{t.exports=Vp()})),Wp=c({default:()=>Gp}),X=u(Up(),1);function Gp({children:e}){let t=Vf.default.getPlugins(`rootComponent`),n=Vf.default.invoke(`!home.mainLayout`);if(Bp(),n.length>1){let e=Vf.default.getPlugins(`home.mainLayout`).map(e=>e.name);return(0,X.jsxs)(`div`,{style:{color:`red`,margin:`20px`},children:[`Error: multiple layouts found from plugins: `,e.join(`, `),`. Each application should only have one main layout.`]})}let r=n[0],i=r?(0,X.jsx)(r,{children:e}):e;return(0,X.jsxs)(`div`,{className:`home-app muse-app`,children:[(0,X.jsx)(`div`,{className:`muse-app_main-page-container`,children:i}),(0,X.jsx)(`div`,{className:`muse-app_plugin-root-placeholder`,children:t.map(e=>(0,X.jsx)(e.rootComponent,{},e.name))})]})}var Kp=c({default:()=>qp}),qp=``+new URL(`assets/logo-V3RbDVED.png`,import.meta.url).href,Jp=c({default:()=>Yp});function Yp(){return(0,X.jsxs)(`div`,{className:`home-homepage`,children:[(0,X.jsxs)(`header`,{className:`app-header`,children:[(0,X.jsx)(`img`,{src:qp,className:`app-logo`,alt:`logo`}),(0,X.jsx)(`h1`,{className:`app-title`,children:`Welcome to Muse!`})]}),(0,X.jsxs)(`div`,{className:`app-intro`,children:[(0,X.jsx)(`p`,{className:`memo`,children:`This is the default homepage of a Muse application.`}),(0,X.jsx)(`h3`,{children:`To get started:`}),(0,X.jsxs)(`ul`,{children:[(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://go/muse`,children:`Read docs`}),` for Muse.`]}),(0,X.jsxs)(`li`,{children:[`Join the slack channel`,` `,(0,X.jsx)(`a`,{href:`https://ebay-eng.slack.com/archives/C0194Q1V8G1`,children:`#muse`}),`.`]}),(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/get-started/first-plugin`,children:`Create a plugin`}),` `,`and`,` `,(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/get-started/customize-layout`,children:`define the layout/homepage`}),` `,`for the application.`]}),(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/muse-management/plugin-management#build-a-plugin`,children:`Build`}),` `,`and`,` `,(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/muse-management/plugin-management#deploy-a-plugin`,children:`deploy`}),` `,`the Muse plugin to the application.`]})]})]})]})}var Xp=c({App:()=>Gp,Homepage:()=>Yp}),Zp=c({default:()=>Qp});function Qp(){return(0,X.jsx)(`div`,{className:`common-page-not-found`,children:`Page not found.`})}var $p=c({default:()=>em}),em=class extends E.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}render(){return this.state.hasError?(0,X.jsx)(`div`,{className:`common-error-boundary`,children:this.props.message||`Something went wrong.`}):this.props.children}},tm=c({extendArray:()=>nm}),nm=(e,t,n,...r)=>{let i=t.charAt(0).toUpperCase()+t.slice(1);Vf.default.invoke(`${n}.preProcess${i}`,...r);let a=Zd.default.flatten(Vf.default.invoke(`${n}.get${i}`,...r));return e.push(...a),Vf.default.invoke(`${n}.process${i}`,...r),Vf.default.invoke(`${n}.postProcess${i}`,...r),Vf.default.sort(e),e},rm=c({default:()=>im});function im({items:e=[],extName:t=`items`,extBase:n,extArgs:r}){nm(e,t,n,r);let i=[];return e.filter(Boolean).forEach(e=>{let t;e.render?t=e.render():e.content?t=e.content:e.component&&(t=(0,X.jsx)(e.component,{...e.props},e.key)),i.push(t)}),i}var am=c({default:()=>om});function om(e,t){let n=Vf.default.invoke(`!`+e,t),[r,i]=(0,E.useState)([]),a=(0,E.useCallback)(e=>{i(Zd.default.flatten([...r,e]))},[r]);return{extNode:(0,X.jsx)(X.Fragment,{children:n.map((e,n)=>(0,X.jsx)(e,{callback:a,...t},n))}),values:r}}var sm=c({default:()=>cm});function cm(){return(0,X.jsxs)(`div`,{style:{padding:`40px`,textAlign:`center`},children:[(0,X.jsx)(`h1`,{style:{fontSize:`48px`,color:`#1890ff`,marginBottom:`20px`},children:`Test Page 1`}),(0,X.jsx)(`p`,{style:{fontSize:`18px`,color:`#666`},children:`This is a test page to verify the routing and code splitting. You can add your test cases here.`}),(0,X.jsx)(`p`,{style:{fontSize:`14px`,color:`#999`,marginTop:`20px`},children:`Route: /test1`})]})}var lm=c({default:()=>um});function um(){return(0,X.jsxs)(`div`,{style:{padding:`40px`,textAlign:`center`},children:[(0,X.jsx)(`h1`,{style:{fontSize:`48px`,color:`#1890ff`,marginBottom:`20px`},children:`Hello World!`}),(0,X.jsx)(`p`,{style:{fontSize:`18px`,color:`#666`},children:`Welcome to your MUSE plugin. This is a simple hello world page.`}),(0,X.jsx)(`p`,{style:{fontSize:`14px`,color:`#999`,marginTop:`20px`},children:`Route: /hello`}),(0,X.jsx)(cm,{})]})}var dm=c({ErrorBoundary:()=>em,HelloWorld:()=>um,Nodes:()=>im,PageNotFound:()=>Qp,useExtPoint:()=>om}),fm=c({default:()=>pm}),pm={path:`home`,name:`Home`,childRoutes:[]},mm=c({default:()=>hm}),hm={path:`common`,name:`Common`,childRoutes:[{path:`/hello`,name:`Hello World`,component:um}]},gm=c({default:()=>_m}),_m=function(e){return function(){var t=[...arguments];return(0,E.useMemo)(function(){return e.apply(void 0,t)},t)}},vm=c({default:()=>ym}),ym=function(e,t){var n=(0,E.createContext)(void 0),r=function(e,t){return(0,E.createElement)(n.Provider,e,t)};return[function(){var e=(0,E.useContext)(n);if(e==null)throw Error(`useReducerContext must be used inside a ReducerProvider.`);return e},function(n){var i=n.children,a=n.initialState;return r({value:(0,E.useReducer)(e,a===void 0?t:a)},i)},n]},bm=c({useFirstMountState:()=>xm});function xm(){var e=(0,E.useRef)(!0);return e.current?(e.current=!1,!0):e.current}var Sm=c({default:()=>Cm}),Cm=function(e,t){var n=xm();(0,E.useEffect)(function(){if(!n)return e()},t)},wm=c({default:()=>Em});function Tm(e){return function(t,n){return e.reduceRight(function(e,n){return n(t)(e)},n)}}var Em=function(){var e=Tm([...arguments]);return function(t,n,r){r===void 0&&(r=function(e){return e});var i=(0,E.useRef)(r(n)),a=(0,E.useState)(i.current)[1],o=(0,E.useCallback)(function(e){return i.current=t(i.current,e),a(i.current),e},[t]),s=(0,E.useRef)(e({getState:function(){return i.current},dispatch:function(){var e=[...arguments];return s.current.apply(s,e)}},o));return Cm(function(){s.current=e({getState:function(){return i.current},dispatch:function(){var e=[...arguments];return s.current.apply(s,e)}},o)},[o]),[i.current,s.current]}},Dm=c({default:()=>Om}),Om=function(e){var t=(0,E.createContext)(void 0),n=function(e,n){return(0,E.createElement)(t.Provider,e,n)};return[function(){var e=(0,E.useContext)(t);if(e==null)throw Error(`useStateContext must be used inside a StateProvider.`);return e},function(t){var r=t.children,i=t.initialValue;return n({value:(0,E.useState)(i===void 0?e:i)},r)},t]},km=c({__addDisposableResource:()=>rh,__assign:()=>sh,__asyncDelegator:()=>Ym,__asyncGenerator:()=>Jm,__asyncValues:()=>Xm,__await:()=>qm,__awaiter:()=>zm,__classPrivateFieldGet:()=>eh,__classPrivateFieldIn:()=>nh,__classPrivateFieldSet:()=>th,__createBinding:()=>ch,__decorate:()=>Mm,__disposeResources:()=>ih,__esDecorate:()=>Pm,__exportStar:()=>Vm,__extends:()=>Am,__generator:()=>Bm,__importDefault:()=>$m,__importStar:()=>Qm,__makeTemplateObject:()=>Zm,__metadata:()=>Rm,__param:()=>Nm,__propKey:()=>Im,__read:()=>Um,__rest:()=>jm,__rewriteRelativeImportExtension:()=>ah,__runInitializers:()=>Fm,__setFunctionName:()=>Lm,__spread:()=>Wm,__spreadArray:()=>Km,__spreadArrays:()=>Gm,__values:()=>Hm,default:()=>fh});function Am(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);oh(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function jm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Mm(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function Nm(e,t){return function(n,r){t(n,r,e)}}function Pm(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function Fm(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function Im(e){return typeof e==`symbol`?e:`${e}`}function Lm(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function Rm(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function zm(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Bm(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Vm(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&ch(t,e,n)}function Hm(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Um(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Wm(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Um(arguments[t]));return e}function Gm(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function Km(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function qm(e){return this instanceof qm?(this.v=e,this):new qm(e)}function Jm(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof qm?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function Ym(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:qm(e[r](t)),done:!1}:i?i(t):t}:i}}function Xm(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Hm==`function`?Hm(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Zm(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function Qm(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=uh(e),r=0;r<n.length;r++)n[r]!==`default`&&ch(t,e,n[r]);return lh(t,e),t}function $m(e){return e&&e.__esModule?e:{default:e}}function eh(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function th(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}function nh(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function rh(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function ih(e){function t(t){e.error=e.hasError?new dh(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function ah(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var oh,sh,ch,lh,uh,dh,fh,ph=o((()=>{oh=function(e,t){return oh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},oh(e,t)},sh=function(){return sh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},sh.apply(this,arguments)},ch=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),lh=Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t},uh=function(e){return uh=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},uh(e)},dh=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},fh={__extends:Am,__assign:sh,__rest:jm,__decorate:Mm,__param:Nm,__esDecorate:Pm,__runInitializers:Fm,__propKey:Im,__setFunctionName:Lm,__metadata:Rm,__awaiter:zm,__generator:Bm,__createBinding:ch,__exportStar:Vm,__values:Hm,__read:Um,__spread:Wm,__spreadArrays:Gm,__spreadArray:Km,__await:qm,__asyncGenerator:Jm,__asyncDelegator:Ym,__asyncValues:Xm,__makeTemplateObject:Zm,__importStar:Qm,__importDefault:$m,__classPrivateFieldGet:eh,__classPrivateFieldSet:th,__classPrivateFieldIn:nh,__addDisposableResource:rh,__disposeResources:ih,__rewriteRelativeImportExtension:ah}}));ph();var mh=c({default:()=>hh});function hh(){var e=(0,E.useRef)(!1),t=(0,E.useCallback)(function(){return e.current},[]);return(0,E.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}var gh=c({default:()=>_h});function _h(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=(0,E.useRef)(0),i=hh(),a=(0,E.useState)(n),o=a[0],s=a[1];return[o,(0,E.useCallback)(function(){var t=[...arguments],n=++r.current;return o.loading||s(function(e){return sh(sh({},e),{loading:!0})}),e.apply(void 0,t).then(function(e){return i()&&n===r.current&&s({value:e,loading:!1}),e},function(e){return i()&&n===r.current&&s({error:e,loading:!1}),e})},t)]}var vh=c({default:()=>yh});function yh(e,t){t===void 0&&(t=[]);var n=_h(e,t,{loading:!0}),r=n[0],i=n[1];return(0,E.useEffect)(function(){i()},[i]),r}var bh=c({default:()=>xh});ph();var xh=function(e,t){t===void 0&&(t=[]);var n=(0,E.useState)(0),r=n[0],i=n[1],a=yh(e,Gm(t,[r])),o=a.loading,s=(0,E.useCallback)(function(){o||i(function(e){return e+1})},Gm(t,[o]));return sh(sh({},a),{retry:s})},Sh=c({default:()=>Ch}),Ch=function(e){e===void 0&&(e={});var t=(0,E.useState)(e),n=t[0],r=t[1];return[n,(0,E.useCallback)(function(e){r(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]},wh=c({default:()=>Th});function Th(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}var Eh=c({default:()=>Dh});ph();function Dh(e){return function(t){var n,r;E.isValidElement(t)?(n=t,r=n.props):r=t;var i=Ch({buffered:[],time:0,duration:0,paused:!0,muted:!1,volume:1,playing:!1}),a=i[0],o=i[1],s=(0,E.useRef)(null),c=function(e,t){return function(n){try{t&&t(n)}finally{e&&e(n)}}},l=function(){return o({paused:!1})},u=function(){return o({playing:!0})},d=function(){return o({playing:!1})},f=function(){return o({paused:!0,playing:!1})},p=function(){var e=s.current;e&&o({muted:e.muted,volume:e.volume})},m=function(){var e=s.current;if(e){var t=e.duration,n=e.buffered;o({duration:t,buffered:Th(n)})}},h=function(){var e=s.current;e&&o({time:e.currentTime})},g=function(){var e=s.current;e&&o({buffered:Th(e.buffered)})};n=n?E.cloneElement(n,sh(sh({controls:!1},r),{ref:s,onPlay:c(r.onPlay,l),onPlaying:c(r.onPlaying,u),onWaiting:c(r.onWaiting,d),onPause:c(r.onPause,f),onVolumeChange:c(r.onVolumeChange,p),onDurationChange:c(r.onDurationChange,m),onTimeUpdate:c(r.onTimeUpdate,h),onProgress:c(r.onProgress,g)})):E.createElement(e,sh(sh({controls:!1},r),{ref:s,onPlay:c(r.onPlay,l),onPlaying:c(r.onPlaying,u),onWaiting:c(r.onWaiting,d),onPause:c(r.onPause,f),onVolumeChange:c(r.onVolumeChange,p),onDurationChange:c(r.onDurationChange,m),onTimeUpdate:c(r.onTimeUpdate,h),onProgress:c(r.onProgress,g)}));var _=!1,v={play:function(){var e=s.current;if(e&&!_){var t=e.play();if(typeof t==`object`){_=!0;var n=function(){_=!1};t.then(n,n)}return t}},pause:function(){var e=s.current;if(e&&!_)return e.pause()},seek:function(e){var t=s.current;!t||a.duration===void 0||(e=Math.min(a.duration,Math.max(0,e)),t.currentTime=e)},volume:function(e){var t=s.current;t&&(e=Math.min(1,Math.max(0,e)),t.volume=e,o({volume:e}))},mute:function(){var e=s.current;e&&(e.muted=!0)},unmute:function(){var e=s.current;e&&(e.muted=!1)}};return(0,E.useEffect)(function(){var e=s.current;e&&(o({volume:e.volume,muted:e.muted,paused:e.paused}),r.autoPlay&&e.paused&&v.play())},[r.src]),[n,a,v,s]}}var Oh=c({default:()=>kh}),kh=Dh(`audio`),Ah=c({isBrowser:()=>Mh,isNavigator:()=>Nh,noop:()=>jh,off:()=>Q,on:()=>Z}),jh=function(){};function Z(e){var t=[...arguments].slice(1);e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Q(e){var t=[...arguments].slice(1);e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Mh=typeof window<`u`,Nh=typeof navigator<`u`,Ph=s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!(o===`_owner`&&t.$$typeof)&&!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),Fh=c({default:()=>Lh}),Ih=u(Ph()),Lh=Ih.default,Rh=c({default:()=>Uh}),zh=Nh?navigator:void 0,Bh=zh&&typeof zh.getBattery==`function`;function Vh(){return{isSupported:!1}}function Hh(){var e=(0,E.useState)({isSupported:!0,fetched:!1}),t=e[0],n=e[1];return(0,E.useEffect)(function(){var e=!0,r=null,i=function(){if(!(!e||!r)){var i={isSupported:!0,fetched:!0,level:r.level,charging:r.charging,dischargingTime:r.dischargingTime,chargingTime:r.chargingTime};!Lh(t,i)&&n(i)}};return zh.getBattery().then(function(t){e&&(r=t,Z(r,`chargingchange`,i),Z(r,`chargingtimechange`,i),Z(r,`dischargingtimechange`,i),Z(r,`levelchange`,i),i())}),function(){e=!1,r&&(Q(r,`chargingchange`,i),Q(r,`chargingtimechange`,i),Q(r,`dischargingtimechange`,i),Q(r,`levelchange`,i))}},[]),t}var Uh=Bh?Hh:Vh,Wh=c({default:()=>Gh}),Gh=function(e,t){e===void 0&&(e=!0);var n=(0,E.useCallback)(function(n){if(typeof e!=`function`||e())return n.preventDefault(),t&&(n.returnValue=t),t},[e,t]);(0,E.useEffect)(function(){if(e)return Z(window,`beforeunload`,n),function(){return Q(window,`beforeunload`,n)}},[e,n])},Kh=c({default:()=>Jh}),qh=function(e,t){return typeof t==`boolean`?t:!e},Jh=function(e){return(0,E.useReducer)(qh,e)},Yh=c({default:()=>Xh}),Xh=Jh,Zh=c({default:()=>$h}),Qh=[`mousedown`,`touchstart`],$h=function(e,t,n){n===void 0&&(n=Qh);var r=(0,E.useRef)(t);(0,E.useEffect)(function(){r.current=t},[t]),(0,E.useEffect)(function(){for(var t=function(t){var n=e.current;n&&!n.contains(t.target)&&r.current(t)},i=0,a=n;i<a.length;i++){var o=a[i];Z(document,o,t)}return function(){for(var e=0,r=n;e<r.length;e++){var i=r[e];Q(document,i,t)}}},[n,e])},eg=s(((e,t)=>{(function(n){var r;if(typeof define==`function`&&define.amd&&(define(n),r=!0),typeof e==`object`&&(t.exports=n(),r=!0),!r){var i=window.Cookies,a=window.Cookies=n();a.noConflict=function(){return window.Cookies=i,a}}})(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function a(t,n,a){if(!(typeof document>`u`)){a=e({path:`/`},i.defaults,a),typeof a.expires==`number`&&(a.expires=new Date(new Date*1+a.expires*864e5)),a.expires=a.expires?a.expires.toUTCString():``;try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch{}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s=``;for(var c in a)a[c]&&(s+=`; `+c,a[c]!==!0&&(s+=`=`+a[c].split(`;`)[0]));return document.cookie=t+`=`+n+s}}function o(e,n){if(!(typeof document>`u`)){for(var i={},a=document.cookie?document.cookie.split(`; `):[],o=0;o<a.length;o++){var s=a[o].split(`=`),c=s.slice(1).join(`=`);!n&&c.charAt(0)===`"`&&(c=c.slice(1,-1));try{var l=t(s[0]);if(c=(r.read||r)(c,l)||t(c),n)try{c=JSON.parse(c)}catch{}if(i[l]=c,e===l)break}catch{}}return e?i[e]:i}}return i.set=a,i.get=function(e){return o(e,!1)},i.getJSON=function(e){return o(e,!0)},i.remove=function(t,n){a(t,``,e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n(function(){})})})),tg=c({default:()=>rg}),ng=u(eg()),rg=function(e){var t=(0,E.useState)(function(){return ng.default.get(e)||null}),n=t[0],r=t[1];return[n,(0,E.useCallback)(function(t,n){ng.default.set(e,t,n),r(t)},[e]),(0,E.useCallback)(function(){ng.default.remove(e),r(null)},[e])]},ig=s(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),ag=s(((e,t)=>{var n=ig(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o})),og=c({default:()=>cg}),sg=u(ag()),cg=function(){var e=hh(),t=Ch({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1];return[n,(0,E.useCallback)(function(t){if(e()){var n,i;try{if(typeof t!=`string`&&typeof t!=`number`){var a=Error(`Cannot copy typeof `+typeof t+` to clipboard, must be a string`);r({value:t,error:a,noUserInteraction:!0});return}else if(t===``){var a=Error(`Cannot copy empty string to clipboard.`);r({value:t,error:a,noUserInteraction:!0});return}i=t.toString(),n=(0,sg.default)(i),r({value:i,error:void 0,noUserInteraction:n})}catch(e){r({value:i,error:e,noUserInteraction:n})}}},[])]},lg=c({default:()=>dg}),ug=function(e){return(e+1)%1e6};function dg(){return(0,E.useReducer)(ug,0)[1]}var fg=c({resolveHookState:()=>pg});function pg(e,t){return typeof e==`function`?e.length?e(t):e():e}var mg=c({default:()=>hg});function hg(e){var t=(0,E.useRef)(pg(e)),n=dg();return(0,E.useMemo)(function(){return[function(){return t.current},function(e){t.current=pg(e,t.current),n()}]},[])}var gg=c({default:()=>_g});function _g(e,t,n){e===void 0&&(e=0),t===void 0&&(t=null),n===void 0&&(n=null);var r=pg(e);typeof r!=`number`&&console.error(`initialValue has to be a number, got `+typeof e),typeof n==`number`?r=Math.max(r,n):n!==null&&console.error(`min has to be a number, got `+typeof n),typeof t==`number`?r=Math.min(r,t):t!==null&&console.error(`max has to be a number, got `+typeof t);var i=hg(r),a=i[0],o=i[1];return[a(),(0,E.useMemo)(function(){var e=function(e){var r=a(),i=pg(e,r);r!==i&&(typeof n==`number`&&(i=Math.max(i,n)),typeof t==`number`&&(i=Math.min(i,t)),r!==i&&o(i))};return{get:a,set:e,inc:function(t){t===void 0&&(t=1);var n=pg(t,a());typeof n!=`number`&&console.error(`delta has to be a number or function returning a number, got `+typeof n),e(function(e){return e+n})},dec:function(t){t===void 0&&(t=1);var n=pg(t,a());typeof n!=`number`&&console.error(`delta has to be a number or function returning a number, got `+typeof n),e(function(e){return e-n})},reset:function(t){t===void 0&&(t=r);var n=pg(t,a());typeof n!=`number`&&console.error(`value has to be a number or function returning a number, got `+typeof n),r=n,e(n)}}},[r,n,t])]}var vg=s((e=>{var t=/[A-Z]/g,n=function(e){for(var t=5381,n=e.length;n;)t=t*33^e.charCodeAt(--n);return`_`+(t>>>0).toString(36)};e.create=function(e){e||={};var r=e.assign||Object.assign,i=r({raw:``,pfx:`_`,client:typeof window==`object`,assign:r,stringify:JSON.stringify,kebab:function(e){return e.replace(t,`-$&`).toLowerCase()},decl:function(e,t){return e=i.kebab(e),e+`:`+t+`;`},hash:function(e){return n(i.stringify(e))},selector:function(e,t){return e+(t[0]===`:`?``:` `)+t},putRaw:function(e){i.raw+=e}},e);return i.client&&(i.sh||document.head.appendChild(i.sh=document.createElement(`style`)),i.putRaw=function(e){var t=i.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch{}}),i.put=function(e,t,n){var r=``,a,o,s=[];for(a in t)o=t[a],o instanceof Object&&!(o instanceof Array)?s.push(a):r+=i.decl(a,o,e,n);r&&(r=e+`{`+r+`}`,i.putRaw(n?n+`{`+r+`}`:r));for(var c=0;c<s.length;c++)a=s[c],a[0]===`@`&&a!==`@font-face`?i.putAt(e,t[a],a):i.put(i.selector(e,a),t[a],n)},i.putAt=i.put,i}})),yg=s(((e,t)=>{var n=`nano-css`;t.exports=function(e,t,r){for(var i=[],a=0;a<r.length;a++){var o=r[a];t[o]||i.push(o)}if(i.length){for(var s=`Addon "`+e+`" is missing the following dependencies:`,c=0;c<i.length;c++)s+=`
72
- require("`+n+`/addon/`+i[c]+`").addon(nano);`;throw Error(s)}}})),bg=s((e=>{e.addon=function(e){e.client&&(document.head.appendChild(e.msh=document.createElement(`style`)),e.createRule=function(t,n){var r=t+`{}`;n&&(r=n+`{`+r+`}`);var i=n?e.msh.sheet:e.sh.sheet,a=i.insertRule(r,i.cssRules.length),o=(i.cssRules||i.rules)[a];if(o.index=a,n){var s=(o.cssRules||o.rules)[0];o.style=s.style,o.styleMap=s.styleMap}return o})}})),xg=s((e=>{function t(e){var t=e.index,n=e.parentStyleSheet,r=n.cssRules||n.rules;for(t=Math.max(t,r.length-1);t>=0;){if(r[t]===e){n.deleteRule(t);break}t--}}e.removeRule=t})),Sg=s((e=>{var t=xg().removeRule;e.addon=function(e){if(!e.client)return;var n=e.kebab;function r(t,n){this.rule=e.createRule(t,n),this.decl={}}r.prototype.diff=function(e){var t=this.decl,r=this.rule.style,i;for(i in t)e[i]===void 0&&r.removeProperty(i);for(i in e)e[i]!==t[i]&&r.setProperty(n(i),e[i]);this.decl=e},r.prototype.del=function(){t(this.rule)};function i(){this.tree={}}i.prototype.diff=function(e){var t=this.tree;for(var n in t)if(e[n]===void 0){var i=t[n];for(var a in i)i[a].del()}for(var n in e)if(t[n]===void 0)for(var a in e[n]){var o=new r(a,n);o.diff(e[n][a]),e[n][a]=o}else{var s=t[n],c=e[n];for(var a in s)c[a]||s[a].del();for(var a in c){var o=s[a];o?(o.diff(c[a]),c[a]=o):(o=new r(a,n),o.diff(c[a]),c[a]=o)}}this.tree=e},e.VRule=r,e.VSheet=i}})),Cg=s((e=>{function t(e,n,r,i){var a={},o=!1,s,c;for(s in n)c=n[s],typeof c!=`object`&&(o=!0,a[s]=c);for(s in o&&(e[i]||(e[i]={}),e[i][r]=a),n)if(c=n[s],typeof c==`object`)if(s[0]===`@`)t(e,c,r,s);else{var l=s.indexOf(`&`)>-1,u=r.split(`,`);if(l)for(var d=0;d<u.length;d++)u[d]=s.replace(/&/g,u[d]);else for(var d=0;d<u.length;d++)u[d]=u[d]+` `+s;t(e,c,u.join(`,`),i)}}e.cssToTree=t})),wg=u(vg()),Tg=u(bg()),Eg=u(Sg()),Dg=u(Cg()),Og=c({default:()=>kg}),kg=Mh?E.useLayoutEffect:E.useEffect,Ag=c({default:()=>Ng}),jg=(0,wg.create)();(0,Tg.addon)(jg),(0,Eg.addon)(jg);var Mg=0,Ng=function(e){var t=(0,E.useMemo)(function(){return`react-use-css-`+(Mg++).toString(36)},[]),n=(0,E.useMemo)(function(){return new jg.VSheet},[]);return kg(function(){var r={};return(0,Dg.cssToTree)(r,e,`.`+t,``),n.diff(r),function(){n.diff({})}}),t},Pg=c({default:()=>Fg}),Fg=function(e,t,n){var r=(0,E.useRef)(void 0);(!r.current||!n(t,r.current))&&(r.current=t),(0,E.useEffect)(e,r.current)},Ig=c({default:()=>Lg});function Lg(e,t){t===void 0&&(t=0);var n=(0,E.useRef)(!1),r=(0,E.useRef)(),i=(0,E.useRef)(e),a=(0,E.useCallback)(function(){return n.current},[]),o=(0,E.useCallback)(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),s=(0,E.useCallback)(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return(0,E.useEffect)(function(){i.current=e},[e]),(0,E.useEffect)(function(){return o(),s},[t]),[a,s,o]}var Rg=c({default:()=>zg});function zg(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=Lg(e,t),i=r[0],a=r[1],o=r[2];return(0,E.useEffect)(o,n),[i,a]}var Bg=c({default:()=>Vg}),Vg=function(e,t){Fg(e,t,Lh)},Hg=c({default:()=>Ug}),Ug=function(e,t){var n=(0,E.useState)(t),r=n[0],i=n[1];return r==null?[e,i]:[r,i]},Wg=c({default:()=>Kg});ph();var Gg=function(e){return function(t,n){var r=t.getData(`text/uri-list`);if(r){(e.onUri||jh)(r,n);return}if(t.files&&t.files.length){(e.onFiles||jh)(Array.from(t.files),n);return}if(n.clipboardData){var i=n.clipboardData.getData(`text`);(e.onText||jh)(i,n);return}}},Kg=function(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=e.onFiles,r=e.onText,i=e.onUri,a=(0,E.useState)(!1),o=a[0],s=a[1],c=(0,E.useCallback)(s,[]),l=(0,E.useMemo)(function(){return Gg(e)},[n,r,i]);return(0,E.useEffect)(function(){var e=function(e){e.preventDefault(),c(!0)},t=function(e){e.preventDefault(),c(!0)},n=function(){c(!1)},i=function(){c(!1)},a=function(e){e.preventDefault(),c(!1),l(e.dataTransfer,e)},o=function(e){l(e.clipboardData,e)};return Z(document,`dragover`,e),Z(document,`dragenter`,t),Z(document,`dragleave`,n),Z(document,`dragexit`,i),Z(document,`drop`,a),r&&Z(document,`paste`,o),function(){Q(document,`dragover`,e),Q(document,`dragenter`,t),Q(document,`dragleave`,n),Q(document,`dragexit`,i),Q(document,`drop`,a),Q(document,`paste`,o)}},Gm([l],t)),{over:o}},qg=c({default:()=>Xg}),Jg=function(e,t){return function(n,r){var i=n.getData(`text/uri-list`);if(i){(e.onUri||jh)(i,r);return}if(n.files&&n.files.length){(e.onFiles||jh)(Array.from(n.files),r);return}n.items&&n.items.length&&n.items[0].getAsString(function(n){t&&(e.onText||jh)(n,r)})}},Yg=function(e,t){return{onDragOver:function(e){e.preventDefault()},onDragEnter:function(e){e.preventDefault(),t(!0)},onDragLeave:function(){t(!1)},onDrop:function(n){n.preventDefault(),n.persist(),t(!1),e(n.dataTransfer,n)},onPaste:function(t){t.persist(),e(t.clipboardData,t)}}},Xg=function(e){e===void 0&&(e={});var t=e.onFiles,n=e.onText,r=e.onUri,i=hh(),a=(0,E.useState)(!1),o=a[0],s=a[1],c=(0,E.useMemo)(function(){return Jg(e,i())},[t,n,r]);return[(0,E.useMemo)(function(){return Yg(c,s)},[c,s]),{over:o}]},Zg=c({default:()=>Qg}),Qg=function(e){(0,E.useEffect)(e,[])},$g=c({default:()=>e_,ensuredForwardRef:()=>t_});function e_(e){var t=(0,E.useRef)(e&&e.current);return(0,E.useEffect)(function(){e&&(e.current=t.current)},[e]),t}function t_(e){return(0,E.forwardRef)(function(t,n){return e(t,e_(n))})}var n_=c({default:()=>o_}),r_=Mh?window:null,i_=function(e){return!!e.addEventListener},a_=function(e){return!!e.on},o_=function(e,t,n,r){n===void 0&&(n=r_),(0,E.useEffect)(function(){if(t&&n)return i_(n)?Z(n,e,t,r):a_(n)&&n.on(e,t,r),function(){i_(n)?Q(n,e,t,r):a_(n)&&n.off(e,t,r)}},[e,t,n,JSON.stringify(r)])},s_=c({default:()=>c_}),c_=function(){var e=(0,E.useState)(null),t=e[0],n=e[1];return(0,E.useEffect)(function(){if(t)throw t},[t]),(0,E.useCallback)(function(e){n(e)},[])},l_=c({default:()=>u_}),u_=function(e){(0,E.useEffect)(function(){var t=document.querySelector(`link[rel*='icon']`)||document.createElement(`link`);t.type=`image/x-icon`,t.rel=`shortcut icon`,t.href=e,document.getElementsByTagName(`head`)[0].appendChild(t)},[e])},d_=s(((e,t)=>{(function(){var e=typeof window<`u`&&window.document!==void 0?window.document:{},n=t!==void 0&&t.exports,r=(function(){for(var t,n=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`webkitRequestFullScreen`,`webkitCancelFullScreen`,`webkitCurrentFullScreenElement`,`webkitCancelFullScreen`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`mozRequestFullScreen`,`mozCancelFullScreen`,`mozFullScreenElement`,`mozFullScreenEnabled`,`mozfullscreenchange`,`mozfullscreenerror`],[`msRequestFullscreen`,`msExitFullscreen`,`msFullscreenElement`,`msFullscreenEnabled`,`MSFullscreenChange`,`MSFullscreenError`]],r=0,i=n.length,a={};r<i;r++)if(t=n[r],t&&t[1]in e){for(r=0;r<t.length;r++)a[n[0][r]]=t[r];return a}return!1})(),i={change:r.fullscreenchange,error:r.fullscreenerror},a={request:function(t,n){return new Promise(function(i,a){var o=function(){this.off(`change`,o),i()}.bind(this);this.on(`change`,o),t||=e.documentElement;var s=t[r.requestFullscreen](n);s instanceof Promise&&s.then(o).catch(a)}.bind(this))},exit:function(){return new Promise(function(t,n){if(!this.isFullscreen){t();return}var i=function(){this.off(`change`,i),t()}.bind(this);this.on(`change`,i);var a=e[r.exitFullscreen]();a instanceof Promise&&a.then(i).catch(n)}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on(`change`,e)},onerror:function(e){this.on(`error`,e)},on:function(t,n){var r=i[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=i[t];r&&e.removeEventListener(r,n,!1)},raw:r};if(!r){n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(a,{isFullscreen:{get:function(){return!!e[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!e[r.fullscreenEnabled]}}}),n?t.exports=a:window.screenfull=a})()})),f_=c({default:()=>m_}),p_=u(d_()),m_=function(e,t,n){n===void 0&&(n={});var r=n.video,i=n.onClose,a=i===void 0?jh:i,o=(0,E.useState)(t),s=o[0],c=o[1];return kg(function(){if(t&&e.current){var n=function(){r?.current&&Q(r.current,`webkitendfullscreen`,n),a()},i=function(){if(p_.default.isEnabled){var e=p_.default.isFullscreen;c(e),e||a()}};if(p_.default.isEnabled){try{p_.default.request(e.current),c(!0)}catch(e){a(e),c(!1)}p_.default.on(`change`,i)}else r&&r.current&&r.current.webkitEnterFullscreen?(r.current.webkitEnterFullscreen(),Z(r.current,`webkitendfullscreen`,n),c(!0)):(a(),c(!1));return function(){if(c(!1),p_.default.isEnabled)try{p_.default.off(`change`,i),p_.default.exit()}catch{}else r&&r.current&&r.current.webkitExitFullscreen&&(Q(r.current,`webkitendfullscreen`,n),r.current.webkitExitFullscreen())}}},[t,r,e]),s},h_=c({default:()=>g_});ph();var g_=function(e){var t=(0,E.useState)({loading:!0,accuracy:null,altitude:null,altitudeAccuracy:null,heading:null,latitude:null,longitude:null,speed:null,timestamp:Date.now()}),n=t[0],r=t[1],i=!0,a,o=function(e){i&&r({loading:!1,accuracy:e.coords.accuracy,altitude:e.coords.altitude,altitudeAccuracy:e.coords.altitudeAccuracy,heading:e.coords.heading,latitude:e.coords.latitude,longitude:e.coords.longitude,speed:e.coords.speed,timestamp:e.timestamp})},s=function(e){return i&&r(function(t){return sh(sh({},t),{loading:!1,error:e})})};return(0,E.useEffect)(function(){return navigator.geolocation.getCurrentPosition(o,s,e),a=navigator.geolocation.watchPosition(o,s,e),function(){i=!1,navigator.geolocation.clearWatch(a)}},[]),n},__=c({default:()=>v_});ph();var v_=function(e){e===void 0&&(e={});var t=dg(),n=(0,E.useRef)(sh({},e));return[(0,E.useCallback)(function(){return n.current},[]),(0,E.useCallback)(function(e){e&&(Object.assign(n.current,e),t())},[])]},y_=c({clearHarmonicInterval:()=>C_,setHarmonicInterval:()=>S_}),b_=0,x_={},S_=function(e,t){var n,r=b_++;return x_[t]?x_[t].listeners[r]=e:x_[t]={ms:t,timer:setInterval(function(){for(var e=x_[t].listeners,n=!1,r,i=0,a=Object.values(e);i<a.length;i++){var o=a[i];try{o()}catch(e){n=!0,r=e}}if(n)throw r},t),listeners:(n={},n[r]=e,n)},{bucket:x_[t],id:r}},C_=function(e){var t=e.bucket,n=e.id;delete t.listeners[n];var r=!1;for(var i in t.listeners){r=!0;break}r||(clearInterval(t.timer),delete x_[t.ms])},w_=c({default:()=>T_}),T_=function(e,t){t===void 0&&(t=0);var n=(0,E.useRef)(function(){});(0,E.useEffect)(function(){n.current=e}),(0,E.useEffect)(function(){if(t!==null){var e=S_(function(){return n.current()},t);return function(){return C_(e)}}},[t])},E_=c({default:()=>O_}),D_=E.useState,O_=function(e){var t=D_(!1),n=t[0],r=t[1];return typeof e==`function`&&(e=e(n)),[E.cloneElement(e,{onMouseEnter:function(e){return function(t){(e||jh)(t),r(!0)}}(e.props.onMouseEnter),onMouseLeave:function(e){return function(t){(e||jh)(t),r(!1)}}(e.props.onMouseLeave)}),n]},k_=c({default:()=>A_}),A_=function(e,t){t===void 0&&(t=!0);var n=(0,E.useState)(!1),r=n[0],i=n[1];return(0,E.useEffect)(function(){var n=function(){return i(!0)},r=function(){return i(!1)};t&&e&&e.current&&(Z(e.current,`mouseover`,n),Z(e.current,`mouseout`,r));var a=e.current;return function(){t&&a&&(Q(a,`mouseover`,n),Q(a,`mouseout`,r))}},[t,e]),r},j_=c({debounce:()=>N_,throttle:()=>M_});function M_(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function c(){s(),a=!0}typeof t!=`boolean`&&(r=n,n=t,t=void 0);function l(){var c=[...arguments],l=this,u=Date.now()-o;if(a)return;function d(){o=Date.now(),n.apply(l,c)}function f(){i=void 0}r&&!i&&d(),s(),r===void 0&&u>e?d():t!==!0&&(i=setTimeout(r?f:d,r===void 0?e-u:e))}return l.cancel=c,l}function N_(e,t,n){return n===void 0?M_(e,t,!1):M_(e,n,t!==!1)}var P_=c({default:()=>L_}),F_=[`mousemove`,`mousedown`,`resize`,`keydown`,`touchstart`,`wheel`],I_=6e4,L_=function(e,t,n){e===void 0&&(e=I_),t===void 0&&(t=!1),n===void 0&&(n=F_);var r=(0,E.useState)(t),i=r[0],a=r[1];return(0,E.useEffect)(function(){for(var t=!0,r,o=i,s=function(e){t&&(o=e,a(e))},c=M_(50,function(){o&&s(!1),clearTimeout(r),r=setTimeout(function(){return s(!0)},e)}),l=function(){document.hidden||c()},u=0;u<n.length;u++)Z(window,n[u],c);return Z(document,`visibilitychange`,l),r=setTimeout(function(){return s(!0)},e),function(){t=!1;for(var e=0;e<n.length;e++)Q(window,n[e],c);Q(document,`visibilitychange`,l)}},[e,n]),i},R_=c({default:()=>z_}),z_=function(e,t){var n=(0,E.useState)(null),r=n[0],i=n[1];return(0,E.useEffect)(function(){if(e.current&&typeof IntersectionObserver==`function`){var n=new IntersectionObserver(function(e){i(e[0])},t);return n.observe(e.current),function(){i(null),n.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),r},B_=c({default:()=>V_}),V_=function(e,t){var n=(0,E.useRef)(function(){});(0,E.useEffect)(function(){n.current=e}),(0,E.useEffect)(function(){if(t!==null){var e=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(e)}}},[t])},H_=c({default:()=>W_}),U_=function(e){return typeof e==`function`?e:typeof e==`string`?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},W_=function(e,t,n,r){t===void 0&&(t=jh),n===void 0&&(n={}),r===void 0&&(r=[e]);var i=n.event,a=i===void 0?`keydown`:i,o=n.target,s=n.options;o_(a,(0,E.useMemo)(function(){var n=U_(e);return function(e){if(n(e))return t(e)}},r),o,s)},G_=c({default:()=>K_}),K_=function(e){return e===void 0&&(e={laptopL:1440,laptop:1024,tablet:768}),function(){var t=(0,E.useState)(Mh?window.innerWidth:0),n=t[0],r=t[1];(0,E.useEffect)(function(){var e=function(){r(window.innerWidth)};return e(),Z(window,`resize`,e),function(){Q(window,`resize`,e)}});var i=(0,E.useMemo)(function(){return Object.entries(e).sort(function(e,t){return e[1]>=t[1]?1:-1})},[e]);return i.reduce(function(e,t){var r=t[0];return n>=t[1]?r:e},i[0][0])}},q_=c({default:()=>J_}),J_=function(e){var t=(0,E.useState)([!1,null]),n=t[0],r=t[1];return W_(e,function(e){return r([!0,e])},{event:`keydown`},[n]),W_(e,function(e){return r([!1,e])},{event:`keyup`},[n]),n},Y_=c({default:()=>X_}),X_=function(e,t,n,r){r===void 0&&(r=J_);var i=r(e),a=i[0],o=i[1];Cm(function(){!a&&n?n(o):a&&t&&t(o)},[a])},Z_=c({default:()=>Q_}),Q_=function(e){var t=(0,E.useRef)(e);return t.current=e,t},$_=c({default:()=>ev}),ev=function(e,t){(0,E.useEffect)(function(){return e&&e(),function(){t&&t()}},[])},tv=c({default:()=>nv});function nv(e){e===void 0&&(e=[]);var t=(0,E.useRef)(pg(e)),n=dg(),r=(0,E.useMemo)(function(){var i={set:function(e){t.current=pg(e,t.current),n()},push:function(){var e=[...arguments];e.length&&r.set(function(t){return t.concat(e)})},updateAt:function(e,t){r.set(function(n){var r=n.slice();return r[e]=t,r})},insertAt:function(e,t){r.set(function(n){var r=n.slice();return e>r.length?r[e]=t:r.splice(e,0,t),r})},update:function(e,t){r.set(function(n){return n.map(function(n){return e(n,t)?t:n})})},updateFirst:function(e,n){var i=t.current.findIndex(function(t){return e(t,n)});i>=0&&r.updateAt(i,n)},upsert:function(e,n){var i=t.current.findIndex(function(t){return e(t,n)});i>=0?r.updateAt(i,n):r.push(n)},sort:function(e){r.set(function(t){return t.slice().sort(e)})},filter:function(e,t){r.set(function(n){return n.slice().filter(e,t)})},removeAt:function(e){r.set(function(t){var n=t.slice();return n.splice(e,1),n})},clear:function(){r.set([])},reset:function(){r.set(pg(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var rv=c({default:()=>iv}),iv=function(e,t,n){if(!Mh)return[t,jh,jh];if(!e)throw Error(`useLocalStorage key may not be falsy`);var r=n?n.raw?function(e){return e}:n.deserializer:JSON.parse,i=(0,E.useRef)(function(e){try{var i=n?n.raw?String:n.serializer:JSON.stringify,a=localStorage.getItem(e);return a===null?(t&&localStorage.setItem(e,i(t)),t):r(a)}catch{return t}}),a=(0,E.useState)(function(){return i.current(e)}),o=a[0],s=a[1];return(0,E.useLayoutEffect)(function(){return s(i.current(e))},[e]),[o,(0,E.useCallback)(function(t){try{var i=typeof t==`function`?t(o):t;if(i===void 0)return;var a=void 0;a=n?n.raw?typeof i==`string`?i:JSON.stringify(i):n.serializer?n.serializer(i):JSON.stringify(i):JSON.stringify(i),localStorage.setItem(e,a),s(r(a))}catch{}},[e,s]),(0,E.useCallback)(function(){try{localStorage.removeItem(e),s(void 0)}catch{}},[e,s])]},av=c({default:()=>lv}),ov=function(e){var t=window.history,n=t[e];t[e]=function(t){var r=n.apply(this,arguments),i=new Event(e.toLowerCase());return i.state=t,window.dispatchEvent(i),r}};Mh&&(ov(`pushState`),ov(`replaceState`));var sv=function(){return{trigger:`load`,length:1}},cv=function(e){var t=window.history,n=t.state,r=t.length,i=window.location;return{trigger:e,state:n,length:r,hash:i.hash,host:i.host,hostname:i.hostname,href:i.href,origin:i.origin,pathname:i.pathname,port:i.port,protocol:i.protocol,search:i.search}},lv=Mh&&typeof Event==`function`?function(){var e=(0,E.useState)(cv(`load`)),t=e[0],n=e[1];return(0,E.useEffect)(function(){var e=function(){return n(cv(`popstate`))},t=function(){return n(cv(`pushstate`))},r=function(){return n(cv(`replacestate`))};return Z(window,`popstate`,e),Z(window,`pushstate`,t),Z(window,`replacestate`,r),function(){Q(window,`popstate`,e),Q(window,`pushstate`,t),Q(window,`replacestate`,r)}},[]),t}:sv,uv=c({default:()=>_v,getClosestBody:()=>dv});function dv(e){if(!e)return null;if(e.tagName===`BODY`)return e;if(e.tagName===`IFRAME`){var t=e.contentDocument;return t?t.body:null}else if(!e.offsetParent)return null;return dv(e.offsetParent)}function fv(e){var t=e||window.event;return t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var pv=Mh&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),mv=new Map,hv=typeof document==`object`?document:void 0,gv=!1,_v=hv?function(e,t){e===void 0&&(e=!0);var n=(0,E.useRef)(hv.body);t||=n;var r=function(e){var t=mv.get(e);t?mv.set(e,{counter:t.counter+1,initialOverflow:t.initialOverflow}):(mv.set(e,{counter:1,initialOverflow:e.style.overflow}),pv?gv||=(Z(document,`touchmove`,fv,{passive:!1}),!0):e.style.overflow=`hidden`)},i=function(e){var t=mv.get(e);t&&(t.counter===1?(mv.delete(e),pv?(e.ontouchmove=null,gv&&=(Q(document,`touchmove`,fv),!1)):e.style.overflow=t.initialOverflow):mv.set(e,{counter:t.counter-1,initialOverflow:t.initialOverflow}))};(0,E.useEffect)(function(){var n=dv(t.current);n&&(e?r(n):i(n))},[e,t.current]),(0,E.useEffect)(function(){var e=dv(t.current);if(e)return function(){i(e)}},[])}:function(e,t){e===void 0&&(e=!0)},vv=c({default:()=>yv});ph();var yv=function(e){var t=[...arguments].slice(1);Qg(function(){return console.log.apply(console,Gm([e+` mounted`],t)),function(){return console.log(e+` unmounted`)}}),Cm(function(){console.log.apply(console,Gm([e+` updated`],t))})},bv=c({default:()=>Cv}),xv=function(e){return`touches`in e},Sv=function(e){xv(e)&&e.touches.length<2&&e.preventDefault&&e.preventDefault()},Cv=function(e,t){var n=t===void 0?{}:t,r=n.isPreventDefault,i=r===void 0?!0:r,a=n.delay,o=a===void 0?300:a,s=(0,E.useRef)(),c=(0,E.useRef)(),l=(0,E.useCallback)(function(t){i&&t.target&&(Z(t.target,`touchend`,Sv,{passive:!1}),c.current=t.target),s.current=setTimeout(function(){return e(t)},o)},[e,o,i]),u=(0,E.useCallback)(function(){s.current&&clearTimeout(s.current),i&&c.current&&Q(c.current,`touchend`,Sv)},[i]);return{onMouseDown:function(e){return l(e)},onTouchStart:function(e){return l(e)},onMouseUp:u,onMouseLeave:u,onTouchEnd:u}},wv=c({default:()=>Tv});ph();var Tv=function(e){e===void 0&&(e={});var t=(0,E.useState)(e),n=t[0],r=t[1],i=(0,E.useMemo)(function(){return{set:function(e,t){r(function(n){var r;return sh(sh({},n),(r={},r[e]=t,r))})},setAll:function(e){r(e)},remove:function(e){r(function(t){var n=t,r=e;return n[r],jm(n,[typeof r==`symbol`?r:r+``])})},reset:function(){return r(e)}}},[r]);return[n,sh({get:(0,E.useCallback)(function(e){return n[e]},[n])},i)]},Ev=c({default:()=>Ov}),Dv=function(e,t){return t===void 0?Mh?window.matchMedia(e).matches:!1:t},Ov=function(e,t){var n=(0,E.useState)(Dv(e,t)),r=n[0],i=n[1];return(0,E.useEffect)(function(){var t=!0,n=window.matchMedia(e),r=function(){t&&i(!!n.matches)};return n.addEventListener(`change`,r),i(n.matches),function(){t=!1,n.removeEventListener(`change`,r)}},[e]),r},kv=c({default:()=>Av}),Av=Nh&&navigator.mediaDevices?function(){var e=(0,E.useState)({}),t=e[0],n=e[1];return(0,E.useEffect)(function(){var e=!0,t=function(){navigator.mediaDevices.enumerateDevices().then(function(t){e&&n({devices:t.map(function(e){return{deviceId:e.deviceId,groupId:e.groupId,kind:e.kind,label:e.label}})})}).catch(jh)};return Z(navigator.mediaDevices,`devicechange`,t),t(),function(){e=!1,Q(navigator.mediaDevices,`devicechange`,t)}},[]),t}:function(){return{}},jv=c({useMediatedState:()=>Mv});function Mv(e,t){var n=(0,E.useRef)(e),r=(0,E.useState)(t),i=r[0],a=r[1];return[i,(0,E.useCallback)(function(e){n.current.length===2?n.current(e,a):a(n.current(e))},[i])]}var Nv=c({default:()=>Pv}),Pv=function(e,t){var n=(0,E.useMemo)(function(){return function(t,n){var r;return(r=e(t))[n.type].apply(r,n.payload)}},[e]),r=(0,E.useReducer)(n,t),i=r[0],a=r[1];return[i,(0,E.useMemo)(function(){return Object.keys(e(t)).reduce(function(e,t){return e[t]=function(){return a({type:t,payload:[...arguments]})},e},{})},[e,t])]},Fv=c({default:()=>Lv}),Iv={acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null},rotationRate:{alpha:null,beta:null,gamma:null},interval:16},Lv=function(e){e===void 0&&(e=Iv);var t=(0,E.useState)(e),n=t[0],r=t[1];return(0,E.useEffect)(function(){var e=function(e){var t=e.acceleration,n=e.accelerationIncludingGravity,i=e.rotationRate,a=e.interval;r({acceleration:{x:t.x,y:t.y,z:t.z},accelerationIncludingGravity:{x:n.x,y:n.y,z:n.z},rotationRate:{alpha:i.alpha,beta:i.beta,gamma:i.gamma},interval:a})};return Z(window,`devicemotion`,e),function(){Q(window,`devicemotion`,e)}},[]),n},Rv=c({default:()=>zv}),zv=function(e){Qg(function(){e()})},Bv=c({default:()=>Vv}),Vv=function(e){var t=(0,E.useRef)(e);t.current=e,Qg(function(){return function(){return t.current()}})},Hv=c({default:()=>Uv}),Uv=function(e){var t=(0,E.useRef)(0),n=(0,E.useState)(e),r=n[0],i=n[1],a=(0,E.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(e)})},[]);return Vv(function(){cancelAnimationFrame(t.current)}),[r,a]},Wv=c({default:()=>Gv}),Gv=function(e){var t=Uv({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),n=t[0],r=t[1];return(0,E.useEffect)(function(){var t=function(t){if(e&&e.current){var n=e.current.getBoundingClientRect(),i=n.left,a=n.top,o=n.width,s=n.height,c=i+window.pageXOffset,l=a+window.pageYOffset,u=t.pageX-c,d=t.pageY-l;r({docX:t.pageX,docY:t.pageY,posX:c,posY:l,elX:u,elY:d,elH:s,elW:o})}};return Z(document,`mousemove`,t),function(){Q(document,`mousemove`,t)}},[e]),n},Kv=c({default:()=>Jv}),qv={current:null},Jv=function(e,t){t===void 0&&(t={});var n=!!t.whenHovered,r=!!t.bound,i=A_(e,n),a=Gv(n&&!i?qv:e);return r&&(a.elX=Math.max(0,Math.min(a.elX,a.elW)),a.elY=Math.max(0,Math.min(a.elY,a.elH))),a},Yv=c({default:()=>Xv}),Xv=(function(){var e=(0,E.useState)(0),t=e[0],n=e[1];return(0,E.useEffect)(function(){var e=function(e){n(e.deltaY+t)};return Z(window,`wheel`,e,!1),function(){return Q(window,`wheel`,e)}}),t}),Zv=c({default:()=>ty}),Qv=Nh?navigator:void 0,$v=Qv&&(Qv.connection||Qv.mozConnection||Qv.webkitConnection);function ey(e){var t=Qv?.onLine,n=e?.online;return{online:t,previous:n,since:t===n?e?.since:new Date,downlink:$v?.downlink,downlinkMax:$v?.downlinkMax,effectiveType:$v?.effectiveType,rtt:$v?.rtt,saveData:$v?.saveData,type:$v?.type}}function ty(e){var t=(0,E.useState)(e??ey),n=t[0],r=t[1];return(0,E.useEffect)(function(){var e=function(){r(ey)};return Z(window,`online`,e,{passive:!0}),Z(window,`offline`,e,{passive:!0}),$v&&Z($v,`change`,e,{passive:!0}),function(){Q(window,`online`,e),Q(window,`offline`,e),$v&&Q($v,`change`,e)}},[]),n}var ny=c({default:()=>ry}),ry=_g,iy=c({default:()=>ay});function ay(e,t){var n=(0,E.useState)(t),r=n[0],i=n[1];return kg(function(){var t=e.subscribe(i);return function(){return t.unsubscribe()}},[e]),r}var oy=c({default:()=>cy}),sy={angle:0,type:`landscape-primary`},cy=function(e){e===void 0&&(e=sy);var t=(0,E.useState)(e),n=t[0],r=t[1];return(0,E.useEffect)(function(){var t=window.screen,n=!0,i=function(){if(n){var i=t.orientation;if(i){var a=i.angle,o=i.type;r({angle:a,type:o})}else window.orientation===void 0?r(e):r({angle:typeof window.orientation==`number`?window.orientation:0,type:``})}};return Z(window,`orientationchange`,i),i(),function(){n=!1,Q(window,`orientationchange`,i)}},[]),n},ly=c({default:()=>uy}),uy=function(e,t){t===void 0&&(t=[]),(0,E.useEffect)(function(){if(e){var t=function(t){t||=window.event;var n=t.relatedTarget||t.toElement;(!n||n.nodeName===`HTML`)&&e()};return Z(document,`mouseout`,t),function(){Q(document,`mouseout`,t)}}},t)},dy=c({default:()=>fy}),fy=function(e){var t=(0,E.useState)(``),n=t[0],r=t[1];return(0,E.useEffect)(function(){var t=!0,n=null,i=function(){t&&r(function(){return n?.state??``})};return navigator.permissions.query(e).then(function(e){n=e,Z(n,`change`,i),i()}).catch(jh),function(){n&&Q(n,`change`,i),t=!1,n=null}},[e]),n},py=c({default:()=>my});function my(e){var t=(0,E.useRef)();return(0,E.useEffect)(function(){t.current=e}),t.current}var hy=c({default:()=>_y}),gy=function(e,t){return e===t};function _y(e,t){t===void 0&&(t=gy);var n=(0,E.useRef)(),r=(0,E.useRef)(e);return!xm()&&!t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var vy=c({default:()=>yy}),yy=function(){var e=hh();return(0,E.useCallback)(function(t){return new Promise(function(n,r){t.then(function(t){e()&&n(t)},function(t){e()&&r(t)})})},[])},by=c({default:()=>xy});ph();var xy=function(e){e===void 0&&(e=[]);var t=(0,E.useState)(e),n=t[0],r=t[1];return{add:function(e){r(function(t){return Gm(t,[e])})},remove:function(){var e;return r(function(t){var n=t[0],r=t.slice(1);return e=n,r}),e},get first(){return n[0]},get last(){return n[n.length-1]},get size(){return n.length}}},Sy=c({default:()=>Cy}),Cy=function(e,t){e===void 0&&(e=0xe8d4a51000),t===void 0&&(t=0);var n=(0,E.useState)(0),r=n[0],i=n[1];return kg(function(){var n,r,a,o=function(){i(Math.min(1,(Date.now()-a)/e)),s()},s=function(){n=requestAnimationFrame(o)},c=setTimeout(function(){r=setTimeout(function(){cancelAnimationFrame(n),i(1)},e),a=Date.now(),s()},t);return function(){clearTimeout(r),clearTimeout(c),cancelAnimationFrame(n)}},[e,t]),r},wy=c({default:()=>Ty});function Ty(e,t){t===void 0&&(t=!0);var n=(0,E.useRef)(null),r=(0,E.useRef)(!1),i=(0,E.useRef)(e);i.current=e;var a=(0,E.useCallback)(function(e){r.current&&(i.current(e),n.current=requestAnimationFrame(a))},[]),o=(0,E.useMemo)(function(){return[function(){r.current&&(r.current=!1,n.current&&cancelAnimationFrame(n.current))},function(){r.current||(r.current=!0,n.current=requestAnimationFrame(a))},function(){return r.current}]},[]);return(0,E.useEffect)(function(){return t&&o[1](),o[0]},[]),o}var Ey=c({default:()=>Oy}),Dy=function(e,t){return new URLSearchParams(e).get(t)},Oy=Mh?function(e){var t=window.location,n=(0,E.useState)(function(){return Dy(t.search,e)}),r=n[0],i=n[1];return(0,E.useEffect)(function(){var n=function(){i(Dy(t.search,e))};return Z(window,`popstate`,n),Z(window,`pushstate`,n),Z(window,`replacestate`,n),function(){Q(window,`popstate`,n),Q(window,`pushstate`,n),Q(window,`replacestate`,n)}},[]),r}:function(){return null},ky=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(ph(),d(km)),n=m(),r=parseInt(n.version.substr(0,n.version.indexOf(`.`)))>15,i=function(e){return typeof e==`function`};e.default=function(e,a){var o=[...arguments].slice(2),s=e.render,c=e.children,l=c===void 0?s:c,u=e.component,d=e.comp,f=d===void 0?u:d;return i(l)?l.apply(void 0,t.__spreadArrays([a],o)):f?n.createElement(f,a):l instanceof Array?r?l:n.createElement.apply(void 0,t.__spreadArrays([`div`,null],l)):l&&l instanceof Object?typeof l.type==`string`?l:n.cloneElement(l,Object.assign({},l.props,a)):l||null}})),Ay=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(ph(),d(km)),n=t.__importStar(m());e.default=function(e){return function(n){t.__extends(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.render=function(){return e(this.props,this.context)},r}(n.Component)}})),jy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(ph(),d(km)).__importDefault(Ay());e.default=function(e){return e.prototype?e:t.default(e)}})),My=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.divWrapper=void 0;var t=(ph(),d(km)),n=t.__importStar(m()),r=t.__importDefault(jy()),i=n.createElement,a=function(e,n,r,a){var o;return i(e,n?t.__assign((o={},o[n]=a,o),r):t.__assign(t.__assign({},a),r))};e.divWrapper=function(e,t,n,r){return i(`div`,null,a(e,t,n,r))},e.default=function(e,t,n){n===void 0&&(n=a);var o=function(a,s,c){s===void 0&&(s=t),c===void 0&&(c=null);var l=typeof a==`string`;if(l)return function(e){return o(e,a||t,s)};var u=function(t){return i(e,c,function(e){return n(a,s,t,e)})};return l?r.default(u):u};return o}})),Ny=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(ph(),d(km)).__importDefault(ky()),n=function(e){return[e]};e.default=function(e,r){return r===void 0&&(r=n),function(n){return t.default(n,e.apply(void 0,r(n)))}}})),Py=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hookToRenderProp=e.createEnhancer=e.render=void 0;var t=(ph(),d(km));e.render=t.__importDefault(ky()).default,e.createEnhancer=t.__importDefault(My()).default,e.hookToRenderProp=t.__importDefault(Ny()).default})),Fy=c({ScratchSensor:()=>Ry,default:()=>Ly});ph();var Iy=u(Py()),Ly=function(e){e===void 0&&(e={});var t=e.disabled,n=Q_(e),r=(0,E.useState)({isScratching:!1}),i=r[0],a=r[1],o=(0,E.useRef)(i),s=(0,E.useRef)(!1),c=(0,E.useRef)(null),l=(0,E.useState)(null),u=l[0],d=l[1];return(0,E.useEffect)(function(){if(!t&&u){var e=function(e,t){cancelAnimationFrame(c.current),c.current=requestAnimationFrame(function(){var r=u.getBoundingClientRect(),i=r.left,s=r.top,c=i+window.scrollX,l=s+window.scrollY,d=e-c,f=t-l;a(function(e){var t=sh(sh({},e),{dx:d-(e.x||0),dy:f-(e.y||0),end:Date.now(),isScratching:!0});return o.current=t,(n.current.onScratch||jh)(t),t})})},r=function(t){e(t.pageX,t.pageY)},i=function(t){e(t.changedTouches[0].pageX,t.changedTouches[0].pageY)},l,d,f=function(){s.current&&(s.current=!1,o.current=sh(sh({},o.current),{isScratching:!1}),(n.current.onScratchEnd||jh)(o.current),a({isScratching:!1}),Q(window,`mousemove`,r),Q(window,`touchmove`,i),Q(window,`mouseup`,l),Q(window,`touchend`,d))};l=f,d=f;var p=function(e,t){if(s.current){var c=u.getBoundingClientRect(),f=c.left,p=c.top,m=f+window.scrollX,h=p+window.scrollY,g=e-m,_=t-h,v=Date.now(),y={isScratching:!0,start:v,end:v,docX:e,docY:t,x:g,y:_,dx:0,dy:0,elH:u.offsetHeight,elW:u.offsetWidth,elX:m,elY:h};o.current=y,(n.current.onScratchStart||jh)(y),a(y),Z(window,`mousemove`,r),Z(window,`touchmove`,i),Z(window,`mouseup`,l),Z(window,`touchend`,d)}},m=function(e){s.current=!0,p(e.pageX,e.pageY)},h=function(e){s.current=!0,p(e.changedTouches[0].pageX,e.changedTouches[0].pageY)};return Z(u,`mousedown`,m),Z(u,`touchstart`,h),function(){Q(u,`mousedown`,m),Q(u,`touchstart`,h),Q(window,`mousemove`,r),Q(window,`touchmove`,i),Q(window,`mouseup`,l),Q(window,`touchend`,d),c.current&&cancelAnimationFrame(c.current),c.current=null,s.current=!1,o.current={isScratching:!1},a(o.current)}}},[u,t,n]),[d,i]},Ry=function(e){e.children;var t=Ly(jm(e,[`children`])),n=t[0],r=t[1],i=(0,Iy.render)(e,r);return(0,E.cloneElement)(i,sh(sh({},i.props),{ref:function(e){i.props.ref&&(typeof i.props.ref==`object`&&(i.props.ref.current=e),typeof i.props.ref==`function`&&i.props.ref(e)),n(e)}}))},zy=c({default:()=>By}),By=function(e){var t=Uv({x:0,y:0}),n=t[0],r=t[1];return(0,E.useEffect)(function(){var t=function(){e.current&&r({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&Z(e.current,`scroll`,t,{capture:!1,passive:!0}),function(){e.current&&Q(e.current,`scroll`,t)}},[e]),n},Vy=c({default:()=>Hy}),Hy=function(e){var t=(0,E.useState)(!1),n=t[0],r=t[1];return(0,E.useEffect)(function(){if(e.current){var t,n=function(){r(!1)},i=function(){r(!0),clearTimeout(t),t=setTimeout(function(){return n()},150)};return Z(e.current,`scroll`,i,!1),function(){e.current&&Q(e.current,`scroll`,i,!1)}}return function(){}},[e]),n},Uy=c({default:()=>Wy}),Wy=function(e,t,n){if(!Mh)return[t,function(){}];var r=(0,E.useState)(function(){try{var r=sessionStorage.getItem(e);return typeof r==`string`?n?r:JSON.parse(r||`null`):(sessionStorage.setItem(e,n?String(t):JSON.stringify(t)),t)}catch{return t}}),i=r[0],a=r[1];return(0,E.useEffect)(function(){try{var t=n?String(i):JSON.stringify(i);sessionStorage.setItem(e,t)}catch{}}),[i,a]},Gy=s((e=>{var t=Object.keys;e.equal=function(e,n){if(e===n)return!0;if(!(e instanceof Object)||!(n instanceof Object))return!1;for(var r=t(e),i=r.length,a=0;a<i;a++)if(!(r[a]in n))return!1;for(var a=0;a<i;a++)if(e[r[a]]!==n[r[a]])return!1;return i===t(n).length}})),Ky=c({default:()=>Yy}),qy=u(Gy()),Jy=function(e,t){return e.every(function(e,n){return(0,qy.equal)(e,t[n])})},Yy=function(e,t){Fg(e,t,Jy)},Xy=c({default:()=>tb});ph();var Zy=E.useState,Qy=E.useEffect,$y=E.useRef,eb=function(e){return setTimeout(e,35)},tb=function(e,t){var n=t===void 0?{}:t,r=n.width,i=r===void 0?1/0:r,a=n.height,o=a===void 0?1/0:a;if(!Mh)return[typeof e==`function`?e({width:i,height:o}):e,{width:i,height:o}];var s=Zy({width:i,height:o}),c=s[0],l=s[1];typeof e==`function`&&(e=e(c));var u=e.props.style||{},d=$y(null),f=null,p=function(){var e=d.current;l(e?{width:e.offsetWidth,height:e.offsetHeight}:{width:i,height:o})},m=function(e){Z(e,`resize`,p),eb(p)};return Qy(function(){var e=d.current;if(e){if(e.contentWindow)f=e.contentWindow,m(f);else{var t=function(){Z(e,`load`,t),f=e.contentWindow,m(f)};Q(e,`load`,t)}return function(){f&&f.removeEventListener&&Q(f,`resize`,p)}}},[]),u.position=`relative`,[E.cloneElement.apply(E,Gm([e,{style:u}],Gm([E.createElement(`iframe`,{ref:d,style:{background:`transparent`,border:`none`,height:`100%`,left:0,position:`absolute`,top:0,width:`100%`,zIndex:-1}})],E.Children.toArray(e.props.children)))),c]},nb=c({default:()=>rb}),rb=function(e,t){t===void 0&&(t={});var n=hh(),r=(0,E.useRef)(!1),i=(0,E.useRef)(0),a=(0,E.useRef)(0),o=Ch({isSliding:!1,value:0}),s=o[0],c=o[1];return i.current=s.value,(0,E.useEffect)(function(){if(Mh){var o=t.styles===void 0?!0:t.styles,s=t.reverse===void 0?!1:t.reverse;e.current&&o&&(e.current.style.userSelect=`none`);var l=function(){!r.current&&n()&&((t.onScrubStart||jh)(),r.current=!0,c({isSliding:!0}),h())},u=function(){r.current&&n()&&((t.onScrubStop||jh)(i.current),r.current=!1,c({isSliding:!1}),g())},d=function(e){l(),f(e)},f=t.vertical?function(e){return _(e.clientY)}:function(e){return _(e.clientX)},p=function(e){l(),m(e)},m=t.vertical?function(e){return _(e.changedTouches[0].clientY)}:function(e){return _(e.changedTouches[0].clientX)},h=function(){Z(document,`mousemove`,f),Z(document,`mouseup`,u),Z(document,`touchmove`,m),Z(document,`touchend`,u)},g=function(){Q(document,`mousemove`,f),Q(document,`mouseup`,u),Q(document,`touchmove`,m),Q(document,`touchend`,u)},_=function(r){cancelAnimationFrame(a.current),a.current=requestAnimationFrame(function(){if(n()&&e.current){var i=e.current.getBoundingClientRect(),a=t.vertical?i.top:i.left,o=t.vertical?i.height:i.width;if(!o)return;var l=(r-a)/o;l>1?l=1:l<0&&(l=0),s&&(l=1-l),c({value:l}),(t.onScrub||jh)(l)}})};return Z(e.current,`mousedown`,d),Z(e.current,`touchstart`,p),function(){Q(e.current,`mousedown`,d),Q(e.current,`touchstart`,p)}}else return},[e,t.vertical]),s},ib=c({default:()=>ob});ph();var ab;(function(e){e[e.init=0]=`init`,e[e.play=1]=`play`,e[e.pause=2]=`pause`,e[e.end=3]=`end`})(ab||={});var ob=function(e,t){var n=(0,E.useRef)(!1),r=(0,E.useState)(function(){var e=t.voice||{},n=e.lang,r=n===void 0?`default`:n,i=e.name,a=i===void 0?``:i;return{isPlaying:!1,status:ab[ab.init],lang:t.lang||`default`,voiceInfo:{lang:r,name:a},rate:t.rate||1,pitch:t.pitch||1,volume:t.volume||1}}),i=r[0],a=r[1],o=(0,E.useCallback)(function(){n.current&&a(function(e){return sh(sh({},e),{isPlaying:!0,status:ab[ab.play]})})},[]),s=(0,E.useCallback)(function(){n.current&&a(function(e){return sh(sh({},e),{isPlaying:!1,status:ab[ab.pause]})})},[]),c=(0,E.useCallback)(function(){n.current&&a(function(e){return sh(sh({},e),{isPlaying:!1,status:ab[ab.end]})})},[]);return(0,E.useEffect)(function(){n.current=!0;var r=new SpeechSynthesisUtterance(e);return t.lang&&(r.lang=t.lang),t.voice&&(r.voice=t.voice),r.rate=t.rate||1,r.pitch=t.pitch||1,r.volume=t.volume||1,r.onstart=o,r.onpause=s,r.onresume=o,r.onend=c,window.speechSynthesis.speak(r),function(){n.current=!1}},[]),i},sb=c({default:()=>ub}),cb=function(){var e=document.activeElement,t=document.body;if(!e||e===t)return!1;switch(e.tagName){case`INPUT`:case`TEXTAREA`:return!0}return e.hasAttribute(`contenteditable`)},lb=function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,i=e.altKey;return n||r||i?!1:t>=48&&t<=57||t>=65&&t<=90},ub=function(e){kg(function(){var t=function(t){!cb()&&lb(t)&&e(t)};return Z(document,`keydown`,t),function(){Q(document,`keydown`,t)}},[])},db=c({useStateWithHistory:()=>fb});function fb(e,t,n){if(t===void 0&&(t=10),t<1)throw Error(`Capacity has to be greater than 1, got '`+t+`'`);var r=xm(),i=(0,E.useState)(e),a=i[0],o=i[1],s=(0,E.useRef)(n??[]),c=(0,E.useRef)(0);return r&&(s.current.length?(s.current[s.current.length-1]!==e&&s.current.push(e),s.current.length>t&&(s.current=s.current.slice(s.current.length-t))):s.current.push(e),c.current=s.current.length&&s.current.length-1),[a,(0,E.useCallback)(function(e){o(function(n){return e=pg(e,n),e!==n&&(c.current<s.current.length-1&&(s.current=s.current.slice(0,c.current+1)),c.current=s.current.push(e)-1,s.current.length>t&&(s.current=s.current.slice(s.current.length-t))),e})},[a,t]),(0,E.useMemo)(function(){return{history:s.current,position:c.current,capacity:t,back:function(e){e===void 0&&(e=1),c.current&&o(function(){return c.current-=Math.min(e,c.current),s.current[c.current]})},forward:function(e){e===void 0&&(e=1),c.current!==s.current.length-1&&o(function(){return c.current=Math.min(c.current+e,s.current.length-1),s.current[c.current]})},go:function(e){e!==c.current&&o(function(){return c.current=e<0?Math.max(s.current.length+e,0):Math.min(s.current.length-1,e),s.current[c.current]})}}},[a])]}var pb=c({default:()=>mb});ph();function mb(e){e===void 0&&(e=[]);var t=hh(),n=dg(),r=(0,E.useRef)(0);Cm(function(){e.length<=r.current&&(r.current=e.length-1,n())},[e.length]);var i=(0,E.useMemo)(function(){return{next:function(){return i.setStateAt(r.current+1)},prev:function(){return i.setStateAt(r.current-1)},setStateAt:function(i){t()&&e.length&&i!==r.current&&(r.current=i>=0?i%e.length:e.length+i%e.length,n())},setState:function(i){if(t()){var a=e.length?e.indexOf(i):-1;if(a===-1)throw Error(`State '`+i+`' is not a valid state (does not exist in state list)`);r.current=a,n()}}}},[e]);return sh({state:e[r.current],currentIndex:r.current,isFirst:r.current===0,isLast:r.current===e.length-1},i)}var hb=c({default:()=>gb}),gb=function(e,t){t===void 0&&(t=200);var n=(0,E.useState)(e),r=n[0],i=n[1],a=(0,E.useRef)(),o=(0,E.useRef)(null),s=(0,E.useRef)(0);return(0,E.useEffect)(function(){if(a.current)o.current=e,s.current=!0;else{i(e);var n=function(){s.current?(s.current=!1,i(o.current),a.current=setTimeout(n,t)):a.current=void 0};a.current=setTimeout(n,t)}},[e]),Vv(function(){a.current&&clearTimeout(a.current)}),r},_b=c({default:()=>vb}),vb=function(e,t,n){t===void 0&&(t=200);var r=(0,E.useState)(null),i=r[0],a=r[1],o=(0,E.useRef)(),s=(0,E.useRef)();return(0,E.useEffect)(function(){if(o.current)s.current=n;else{a(e.apply(void 0,n));var r=function(){s.current?(a(e.apply(void 0,s.current)),s.current=void 0,o.current=setTimeout(r,t)):o.current=void 0};o.current=setTimeout(r,t)}},n),Vv(function(){o.current&&clearTimeout(o.current)}),i},yb=c({default:()=>bb});function bb(e){return e===void 0&&(e=0),Lg(dg(),e)}var xb=c({default:()=>wb}),Sb={restoreOnUnmount:!1};function Cb(e,t){t===void 0&&(t=Sb);var n=(0,E.useRef)(document.title);document.title!==e&&(document.title=e),(0,E.useEffect)(function(){if(t&&t.restoreOnUnmount)return function(){document.title=n.current}},[])}var wb=typeof document<`u`?Cb:function(e){},Tb=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.easing={linear:function(e){return e},quadratic:function(e){return e*(-(e*e)*e+4*e*e-6*e+4)},cubic:function(e){return e*(4*e*e-9*e+6)},elastic:function(e){return e*(33*e*e*e*e-106*e*e*e+126*e*e-67*e+15)},inQuad:function(e){return e*e},outQuad:function(e){return e*(2-e)},inOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},inCubic:function(e){return e*e*e},outCubic:function(e){return--e*e*e+1},inOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},inQuart:function(e){return e*e*e*e},outQuart:function(e){return 1- --e*e*e*e},inOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},inQuint:function(e){return e*e*e*e*e},outQuint:function(e){return 1+--e*e*e*e*e},inOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},inSine:function(e){return-Math.cos(Math.PI/2*e)+1},outSine:function(e){return Math.sin(Math.PI/2*e)},inOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},inExpo:function(e){return 2**(10*(e-1))},outExpo:function(e){return-(2**(-10*e))+1},inOutExpo:function(e){return e/=.5,e<1?2**(10*(e-1))/2:(e--,(-(2**(-10*e))+2)/2)},inCirc:function(e){return-Math.sqrt(1-e*e)+1},outCirc:function(e){return Math.sqrt(1- --e*e)},inOutCirc:function(e){return e/=.5,e<1?-(Math.sqrt(1-e*e)-1)/2:(e-=2,(Math.sqrt(1-e*e)+1)/2)}}})),Eb=c({default:()=>Ob}),Db=u(Tb()),Ob=function(e,t,n){e===void 0&&(e=`inCirc`),t===void 0&&(t=200),n===void 0&&(n=0);var r=Db.easing[e];return r(Cy(t,n))},kb=c({default:()=>Ab}),Ab=function(){var e=(0,E.useRef)(!1);return Qg(function(){return function(){e.current=!0}}),(0,E.useMemo)(function(){return function(t,n){return new Promise(function(r,i){t.then(function(t){e.current||r(t)},function(t){e.current?n?n(t):console.error(`useUnmountPromise`,t):i(t)})})}},[])},jb=c({default:()=>Mb});ph();function Mb(e,t){t===void 0&&(t=[]);var n=nv(t),r=n[0],i=n[1];return[r,sh(sh({},i),{upsert:function(t){i.upsert(e,t)}})]}var Nb=c({default:()=>Ib}),Pb=Nh&&`vibrate`in navigator;function Fb(e,t,n){e===void 0&&(e=!0),t===void 0&&(t=[1e3,1e3]),n===void 0&&(n=!0),(0,E.useEffect)(function(){var r;if(e&&(navigator.vibrate(t),n)){var i=t instanceof Array?t.reduce(function(e,t){return e+t}):t;r=setInterval(function(){navigator.vibrate(t)},i)}return function(){e&&(navigator.vibrate(0),n&&clearInterval(r))}},[e])}var Ib=Pb?Fb:jh,Lb=c({default:()=>Rb}),Rb=Dh(`video`),zb=c({default:()=>Bb});function Bb(e,t,n){n===void 0&&(n=[void 0]);var r=(0,E.useRef)(t),i=(0,E.useRef)(e);r.current=t,i.current=e;var a=(0,E.useState)(n),o=a[0],s=a[1],c=(0,E.useCallback)(function(){r.current.length>=2?r.current(i.current,s):s(r.current(i.current))},[s]);return(0,E.useEffect)(function(){c()},[e]),[o,c]}var Vb=c({scrollbarWidth:()=>Hb}),Hb=function(e){if(typeof document>`u`)return 0;if(document.body&&(!document.readyState||document.readyState!==`loading`)){if(!0!==e&&typeof Hb.__cache==`number`)return Hb.__cache;var t=document.createElement(`div`),n=t.style;n.display=`block`,n.position=`absolute`,n.width=`100px`,n.height=`100px`,n.left=`-999px`,n.top=`-999px`,n.overflow=`scroll`,document.body.insertBefore(t,null);var r=t.clientWidth;if(r!==0)return Hb.__cache=100-r,document.body.removeChild(t),Hb.__cache;document.body.removeChild(t)}},Ub=c({useScrollbarWidth:()=>Wb});function Wb(){var e=(0,E.useState)(Hb()),t=e[0],n=e[1];return(0,E.useEffect)(function(){if(t===void 0){var e=requestAnimationFrame(function(){n(Hb())});return function(){return cancelAnimationFrame(e)}}},[]),t}var Gb=c({useMultiStateValidator:()=>Kb});function Kb(e,t,n){if(n===void 0&&(n=[void 0]),typeof e!=`object`)throw Error(`states expected to be an object or array, got `+typeof e);var r=(0,E.useRef)(t),i=(0,E.useRef)(e);r.current=t,i.current=e;var a=(0,E.useState)(n),o=a[0],s=a[1],c=(0,E.useCallback)(function(){r.current.length>=2?r.current(i.current,s):s(r.current(i.current))},[s]);return(0,E.useEffect)(function(){c()},Object.values(e)),[o,c]}var qb=c({default:()=>Jb}),Jb=function(){var e=Uv(function(){return{x:Mh?window.pageXOffset:0,y:Mh?window.pageYOffset:0}}),t=e[0],n=e[1];return(0,E.useEffect)(function(){var e=function(){n(function(e){var t=window.pageXOffset,n=window.pageYOffset;return e.x!==t||e.y!==n?{x:t,y:n}:e})};return e(),Z(window,`scroll`,e,{capture:!1,passive:!0}),function(){Q(window,`scroll`,e)}},[]),t},Yb=c({default:()=>Xb}),Xb=function(e){var t=e===void 0?{}:e,n=t.initialWidth,r=n===void 0?1/0:n,i=t.initialHeight,a=i===void 0?1/0:i,o=t.onChange,s=Uv({width:Mh?window.innerWidth:r,height:Mh?window.innerHeight:a}),c=s[0],l=s[1];return(0,E.useEffect)(function(){if(Mh){var e=function(){var e=window.innerWidth,t=window.innerHeight;l({width:e,height:t}),o&&o(e,t)};return Z(window,`resize`,e),function(){Q(window,`resize`,e)}}},[]),c},Zb=c({default:()=>ex}),Qb={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function $b(){var e=(0,E.useState)(null),t=e[0],n=e[1],r=(0,E.useState)(Qb),i=r[0],a=r[1],o=(0,E.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,r=t.y,i=t.width,o=t.height,s=t.top,c=t.left,l=t.bottom,u=t.right;a({x:n,y:r,width:i,height:o,top:s,left:c,bottom:l,right:u})}})},[]);return kg(function(){if(t)return o.observe(t),function(){o.disconnect()}},[t]),[n,i]}var ex=Mh&&window.ResizeObserver!==void 0?$b:(function(){return[jh,Qb]}),tx=c({ZoomState:()=>nx,default:()=>rx}),nx;(function(e){e.ZOOMING_IN=`ZOOMING_IN`,e.ZOOMING_OUT=`ZOOMING_OUT`})(nx||={});var rx=function(e){var t=(0,E.useMemo)(function(){return{evCache:[],prevDiff:-1}},[e.current]),n=(0,E.useState)(),r=n[0],i=n[1],a=function(e){for(var n=0;n<t.evCache.length;n++)if(e.pointerId==t.evCache[n].pointerId){t.evCache[n]=e;break}if(t.evCache.length==2){var r=Math.abs(t.evCache[0].clientX-t.evCache[1].clientX);t.prevDiff>0&&(r>t.prevDiff&&i([nx.ZOOMING_IN,r]),r<t.prevDiff&&i([nx.ZOOMING_OUT,r])),t.prevDiff=r}},o=function(e){t.evCache.push(e)},s=function(e){c(e),t.evCache.length<2&&(t.prevDiff=-1)},c=function(e){for(var n=0;n<t.evCache.length;n++)if(t.evCache[n].pointerId==e.pointerId){t.evCache.splice(n,1);break}};return(0,E.useEffect)(function(){e?.current&&(e.current.onpointerdown=o,e.current.onpointermove=a,e.current.onpointerup=s,e.current.onpointercancel=s,e.current.onpointerout=s,e.current.onpointerleave=s)},[e?.current]),r?{zoomingState:r[0],pinchState:r[1]}:{zoomingState:null,pinchState:0}},ix=c({useRendersCount:()=>ax});function ax(){return++(0,E.useRef)(0).current}var ox=c({default:()=>sx});ph();var sx=function(e){e===void 0&&(e=new Set);var t=(0,E.useState)(e),n=t[0],r=t[1],i=(0,E.useMemo)(function(){return{add:function(e){return r(function(t){return new Set(Gm(Array.from(t),[e]))})},remove:function(e){return r(function(t){return new Set(Array.from(t).filter(function(t){return t!==e}))})},toggle:function(e){return r(function(t){return t.has(e)?new Set(Array.from(t).filter(function(t){return t!==e})):new Set(Gm(Array.from(t),[e]))})},reset:function(){return r(e)},clear:function(){return r(new Set)}}},[r]);return[n,sh({has:(0,E.useCallback)(function(e){return n.has(e)},[n])},i)]},cx=c({createGlobalState:()=>lx,default:()=>lx});function lx(e){var t={state:e instanceof Function?e():e,setState:function(e){t.state=pg(e,t.state),t.setters.forEach(function(e){return e(t.state)})},setters:[]};return function(){var e=(0,E.useState)(t.state),n=e[0],r=e[1];return Qg(function(){return function(){t.setters=t.setters.filter(function(e){return e!==r})}}),kg(function(){t.setters.includes(r)||t.setters.push(r)}),[n,t.setState]}}var ux=c({useHash:()=>dx}),dx=function(){var e=(0,E.useState)(function(){return window.location.hash}),t=e[0],n=e[1],r=(0,E.useCallback)(function(){n(window.location.hash)},[]);return ev(function(){Z(window,`hashchange`,r)},function(){Q(window,`hashchange`,r)}),[t,(0,E.useCallback)(function(e){e!==t&&(window.location.hash=e)},[t])]},fx=c({createBreakpoint:()=>K_,createGlobalState:()=>lx,createMemo:()=>_m,createReducer:()=>Em,createReducerContext:()=>ym,createStateContext:()=>Om,ensuredForwardRef:()=>t_,useAsync:()=>yh,useAsyncFn:()=>_h,useAsyncRetry:()=>xh,useAudio:()=>kh,useBattery:()=>Uh,useBeforeUnload:()=>Gh,useBoolean:()=>Xh,useClickAway:()=>$h,useCookie:()=>rg,useCopyToClipboard:()=>cg,useCounter:()=>_g,useCss:()=>Ng,useCustomCompareEffect:()=>Fg,useDebounce:()=>zg,useDeepCompareEffect:()=>Vg,useDefault:()=>Ug,useDrop:()=>Kg,useDropArea:()=>Xg,useEffectOnce:()=>Qg,useEnsuredForwardedRef:()=>e_,useError:()=>c_,useEvent:()=>o_,useFavicon:()=>u_,useFirstMountState:()=>xm,useFullscreen:()=>m_,useGeolocation:()=>g_,useGetSet:()=>hg,useGetSetState:()=>v_,useHarmonicIntervalFn:()=>T_,useHash:()=>dx,useHover:()=>O_,useHoverDirty:()=>A_,useIdle:()=>L_,useIntersection:()=>z_,useInterval:()=>V_,useIsomorphicLayoutEffect:()=>kg,useKey:()=>W_,useKeyPress:()=>J_,useKeyPressEvent:()=>X_,useLatest:()=>Q_,useLifecycles:()=>ev,useList:()=>nv,useLocalStorage:()=>iv,useLocation:()=>lv,useLockBodyScroll:()=>_v,useLogger:()=>yv,useLongPress:()=>Cv,useMap:()=>Tv,useMeasure:()=>ex,useMedia:()=>Ov,useMediaDevices:()=>Av,useMediatedState:()=>Mv,useMethods:()=>Pv,useMotion:()=>Lv,useMount:()=>zv,useMountedState:()=>hh,useMouse:()=>Gv,useMouseHovered:()=>Jv,useMouseWheel:()=>Xv,useMultiStateValidator:()=>Kb,useNetworkState:()=>ty,useNumber:()=>ry,useObservable:()=>ay,useOrientation:()=>cy,usePageLeave:()=>uy,usePermission:()=>fy,usePinchZoom:()=>rx,usePrevious:()=>my,usePreviousDistinct:()=>_y,usePromise:()=>yy,useQueue:()=>xy,useRaf:()=>Cy,useRafLoop:()=>Ty,useRafState:()=>Uv,useRendersCount:()=>ax,useScratch:()=>Ly,useScroll:()=>By,useScrollbarWidth:()=>Wb,useScrolling:()=>Hy,useSearchParam:()=>Oy,useSessionStorage:()=>Wy,useSet:()=>sx,useSetState:()=>Ch,useShallowCompareEffect:()=>Yy,useSize:()=>tb,useSlider:()=>rb,useSpeech:()=>ob,useStartTyping:()=>ub,useStateList:()=>mb,useStateValidator:()=>Bb,useStateWithHistory:()=>fb,useThrottle:()=>gb,useThrottleFn:()=>vb,useTimeout:()=>bb,useTimeoutFn:()=>Lg,useTitle:()=>wb,useToggle:()=>Jh,useTween:()=>Ob,useUnmount:()=>Vv,useUnmountPromise:()=>Ab,useUpdate:()=>dg,useUpdateEffect:()=>Cm,useUpsert:()=>Mb,useVibrate:()=>Ib,useVideo:()=>Rb,useWindowScroll:()=>Jb,useWindowSize:()=>Xb}),px=c({default:()=>mx});function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mx.apply(null,arguments)}var hx=c({Action:()=>gx,createBrowserHistory:()=>xx,createHashHistory:()=>Sx,createMemoryHistory:()=>Cx,createPath:()=>Ox,parsePath:()=>kx}),gx;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(gx||={});var _x=function(e){return e},vx=`beforeunload`,yx=`hashchange`,bx=`popstate`;function xx(e){e===void 0&&(e={});var t=e.window,n=t===void 0?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,a=e.hash,o=r.state||{};return[o.idx,_x({pathname:t,search:i,hash:a,state:o.usr||null,key:o.key||`default`})]}var a=null;function o(){if(a)f.call(a),a=null;else{var e=gx.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(n!=null){var o=l-n;o&&(a={action:e,location:r,retry:function(){b(o*-1)}},b(o))}}else _(e)}}n.addEventListener(bx,o);var s=gx.Pop,c=i(),l=c[0],u=c[1],d=Ex(),f=Ex();l??(l=0,r.replaceState(mx({},r.state,{idx:l}),``));function p(e){return typeof e==`string`?e:Ox(e)}function m(e,t){return t===void 0&&(t=null),_x(mx({pathname:u.pathname,hash:``,search:``},typeof e==`string`?kx(e):e,{state:t,key:Dx()}))}function h(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function g(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function _(e){s=e;var t=i();l=t[0],u=t[1],d.call({action:s,location:u})}function v(e,t){var i=gx.Push,a=m(e,t);function o(){v(e,t)}if(g(i,a,o)){var s=h(a,l+1),c=s[0],u=s[1];try{r.pushState(c,``,u)}catch{n.location.assign(u)}_(i)}}function y(e,t){var n=gx.Replace,i=m(e,t);function a(){y(e,t)}if(g(n,i,a)){var o=h(i,l),s=o[0],c=o[1];r.replaceState(s,``,c),_(n)}}function b(e){r.go(e)}return{get action(){return s},get location(){return u},createHref:p,push:v,replace:y,go:b,back:function(){b(-1)},forward:function(){b(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return f.length===1&&n.addEventListener(vx,Tx),function(){t(),f.length||n.removeEventListener(vx,Tx)}}}}function Sx(e){e===void 0&&(e={});var t=e.window,n=t===void 0?document.defaultView:t,r=n.history;function i(){var e=kx(n.location.hash.substr(1)),t=e.pathname,i=t===void 0?`/`:t,a=e.search,o=a===void 0?``:a,s=e.hash,c=s===void 0?``:s,l=r.state||{};return[l.idx,_x({pathname:i,search:o,hash:c,state:l.usr||null,key:l.key||`default`})]}var a=null;function o(){if(a)f.call(a),a=null;else{var e=gx.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(n!=null){var o=l-n;o&&(a={action:e,location:r,retry:function(){x(o*-1)}},x(o))}}else v(e)}}n.addEventListener(bx,o),n.addEventListener(yx,function(){var e=i()[1];Ox(e)!==Ox(u)&&o()});var s=gx.Pop,c=i(),l=c[0],u=c[1],d=Ex(),f=Ex();l??(l=0,r.replaceState(mx({},r.state,{idx:l}),``));function p(){var e=document.querySelector(`base`),t=``;if(e&&e.getAttribute(`href`)){var r=n.location.href,i=r.indexOf(`#`);t=i===-1?r:r.slice(0,i)}return t}function m(e){return p()+`#`+(typeof e==`string`?e:Ox(e))}function h(e,t){return t===void 0&&(t=null),_x(mx({pathname:u.pathname,hash:``,search:``},typeof e==`string`?kx(e):e,{state:t,key:Dx()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},m(e)]}function _(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function v(e){s=e;var t=i();l=t[0],u=t[1],d.call({action:s,location:u})}function y(e,t){var i=gx.Push,a=h(e,t);function o(){y(e,t)}if(_(i,a,o)){var s=g(a,l+1),c=s[0],u=s[1];try{r.pushState(c,``,u)}catch{n.location.assign(u)}v(i)}}function b(e,t){var n=gx.Replace,i=h(e,t);function a(){b(e,t)}if(_(n,i,a)){var o=g(i,l),s=o[0],c=o[1];r.replaceState(s,``,c),v(n)}}function x(e){r.go(e)}return{get action(){return s},get location(){return u},createHref:m,push:y,replace:b,go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return f.length===1&&n.addEventListener(vx,Tx),function(){t(),f.length||n.removeEventListener(vx,Tx)}}}}function Cx(e){e===void 0&&(e={});var t=e,n=t.initialEntries,r=n===void 0?[`/`]:n,i=t.initialIndex,a=r.map(function(e){return _x(mx({pathname:`/`,search:``,hash:``,state:null,key:Dx()},typeof e==`string`?kx(e):e))}),o=wx(i??a.length-1,0,a.length-1),s=gx.Pop,c=a[o],l=Ex(),u=Ex();function d(e){return typeof e==`string`?e:Ox(e)}function f(e,t){return t===void 0&&(t=null),_x(mx({pathname:c.pathname,search:``,hash:``},typeof e==`string`?kx(e):e,{state:t,key:Dx()}))}function p(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function m(e,t){s=e,c=t,l.call({action:s,location:c})}function h(e,t){var n=gx.Push,r=f(e,t);function i(){h(e,t)}p(n,r,i)&&(o+=1,a.splice(o,a.length,r),m(n,r))}function g(e,t){var n=gx.Replace,r=f(e,t);function i(){g(e,t)}p(n,r,i)&&(a[o]=r,m(n,r))}function _(e){var t=wx(o+e,0,a.length-1),n=gx.Pop,r=a[t];function i(){_(e)}p(n,r,i)&&(o=t,m(n,r))}return{get index(){return o},get action(){return s},get location(){return c},createHref:d,push:h,replace:g,go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(e){return l.push(e)},block:function(e){return u.push(e)}}}function wx(e,t,n){return Math.min(Math.max(e,t),n)}function Tx(e){e.preventDefault(),e.returnValue=``}function Ex(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function Dx(){return Math.random().toString(36).substr(2,8)}function Ox(e){var t=e.pathname,n=t===void 0?`/`:t,r=e.search,i=r===void 0?``:r,a=e.hash,o=a===void 0?``:a;return i&&i!==`?`&&(n+=i.charAt(0)===`?`?i:`?`+i),o&&o!==`#`&&(n+=o.charAt(0)===`#`?o:`#`+o),n}function kx(e){var t={};if(e){var n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Ax=c({default:()=>Nx}),jx=window.MUSE_GLOBAL?.appConfig?.routerType||`browser`,Mx;switch(jx){case`browser`:Mx=xx;break;case`memory`:Mx=Cx;break;case`hash`:Mx=Sx;break;default:Mx=xx;break}var Nx=Mx(),Px=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.parse=u,e.compile=d,e.match=m,e.pathToRegexp=h,e.stringify=b;var t=`/`,n=e=>e,r=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,a=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;function o(e){return e.replace(/[{}()\[\]+?!:*\\]/g,`\\$&`)}function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var c=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=c;var l=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=l;function u(e,t={}){let{encodePath:a=n}=t,o=[...e],s=0;function u(t){let n=[],c=``;function d(){c&&=(n.push({type:`text`,value:a(c)}),``)}for(;s<o.length;){let a=o[s++];if(a===t)return d(),n;if(a===`\\`){if(s===o.length)throw new l(`Unexpected end after \\ at index ${s}`,e);c+=o[s++];continue}if(a===`:`||a===`*`){let t=a===`:`?`param`:`wildcard`,c=``;if(r.test(o[s]))do c+=o[s++];while(i.test(o[s]));else if(o[s]===`"`){let t=s;for(;s<o.length;){if(o[++s]===`"`){s++,t=0;break}o[s]===`\\`&&s++,c+=o[s]}if(t)throw new l(`Unterminated quote at index ${t}`,e)}if(!c)throw new l(`Missing parameter name at index ${s}`,e);d(),n.push({type:t,name:c});continue}if(a===`{`){d(),n.push({type:`group`,tokens:u(`}`)});continue}if(a===`}`||a===`(`||a===`)`||a===`[`||a===`]`||a===`+`||a===`?`||a===`!`)throw new l(`Unexpected ${a} at index ${s-1}`,e);c+=a}if(t)throw new l(`Unexpected end at index ${s}, expected ${t}`,e);return d(),n}return new c(u(``),e)}function d(e,n={}){let{encode:r=encodeURIComponent,delimiter:i=t}=n,a=f((typeof e==`object`?e:u(e,n)).tokens,i,r);return function(e={}){let t=[],n=a(e,t);if(t.length)throw TypeError(`Missing parameters: ${t.join(`, `)}`);return n}}function f(e,t,n){let r=e.map(e=>p(e,t,n));return(e,t)=>{let n=``;for(let i of r)n+=i(e,t);return n}}function p(e,t,r){if(e.type===`text`)return()=>e.value;if(e.type===`group`){let n=f(e.tokens,t,r);return(e,t)=>{let r=t.length,i=n(e,t);return t.length===r?i:(t.length=r,``)}}let i=r||n;return e.type===`wildcard`&&r!==!1?(n,r)=>{let a=n[e.name];if(a==null)return r.push(e.name),``;if(!Array.isArray(a)||a.length===0)throw TypeError(`Expected "${e.name}" to be a non-empty array`);let o=``;for(let n=0;n<a.length;n++){if(typeof a[n]!=`string`)throw TypeError(`Expected "${e.name}/${n}" to be a string`);n>0&&(o+=t),o+=i(a[n])}return o}:(t,n)=>{let r=t[e.name];if(r==null)return n.push(e.name),``;if(typeof r!=`string`)throw TypeError(`Expected "${e.name}" to be a string`);return i(r)}}function m(e,r={}){let{decode:i=decodeURIComponent,delimiter:a=t}=r,{regexp:o,keys:s}=h(e,r),c=s.map(e=>i===!1?n:e.type===`param`?i:e=>e.split(a).map(i));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=s[e-1],i=c[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function h(e,n={}){let{delimiter:r=t,end:i=!0,sensitive:a=!1,trailing:o=!0}=n,c=[],d=``,f=0;function p(e){if(Array.isArray(e)){for(let t of e)p(t);return}let t=typeof e==`object`?e:u(e,n);g(t.tokens,0,[],e=>{if(f>=256)throw new l(`Too many path combinations`,t.originalPath);f>0&&(d+=`|`),d+=_(e,r,c,t.originalPath),f++})}p(e);let m=`^(?:${d})`;return o&&(m+=`(?:`+s(r)+`$)?`),m+=i?`$`:`(?=`+s(r)+`|$)`,{regexp:new RegExp(m,a?``:`i`),keys:c}}function g(e,t,n,r){for(;t<e.length;){let i=e[t++];if(i.type===`group`){let a=n.length;g(i.tokens,0,n,n=>g(e,t,n,r)),n.length=a;continue}n.push(i)}r(n)}function _(e,t,n,r){let i=``,a=``,o=``,c=0,u=0,d=0;function f(n,r){for(;n<e.length;){let i=e[n++];if(i.type===r)return!0;if(i.type===`text`&&i.value.includes(t))break}return!1}function p(t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type!==`text`)break;n+=r.value}return n}for(;d<e.length;){let m=e[d++];if(m.type===`text`){i+=s(m.value),a+=m.value,c===2&&(o+=m.value),m.value.includes(t)&&(u=0);continue}if(m.type===`param`||m.type===`wildcard`){if(c&&!a)throw new l(`Missing text before "${m.name}" ${m.type}`,r);m.type===`param`?(i+=u&2?`(${v(t,a)}+)`:f(d,`wildcard`)?`(${v(t,p(d))}+)`:u&1?`(${v(t,a)}+|${s(a)})`:`(${v(t,``)}+)`,u|=c=1):(i+=u&2?`(${v(a,``)}+)`:o?`(${v(o,``)}+|${v(t,``)}+)`:`([^]+)`,o=``,u|=c=2),n.push(m),a=``;continue}throw TypeError(`Unknown token type: ${m.type}`)}return i}function v(e,t){return t.length>e.length?v(t,e):(e===t&&(t=``),t.length>1?`(?:(?!${s(e)}|${s(t)})[^])`:e.length>1?`(?:(?!${s(e)})[^${s(t)}])`:`[^${s(e+t)}]`)}function y(e,t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type===`text`){n+=o(r.value);continue}if(r.type===`group`){n+=`{`+y(r.tokens,0)+`}`;continue}if(r.type===`param`){n+=`:`+x(r.name,e[t]);continue}if(r.type===`wildcard`){n+=`*`+x(r.name,e[t]);continue}throw TypeError(`Unknown token type: ${r.type}`)}return n}function b(e){return y(e.tokens,0)}function x(e,t){return!a.test(e)||t?.type===`text`&&i.test(t.value[0])?JSON.stringify(e):e}})),Fx=c({default:()=>Lx}),Ix=u(Px(),1),Lx={getChildUrlPath(e){let t=document.location.href.replace(document.location.origin,``),n=(0,Ix.match)(e.path,{decode:decodeURIComponent,end:!1})(t);if(console.log(e.path,t,n),n){let r=Zd.default.template(e.url)(n.params),i=t.replace((0,Ix.pathToRegexp)(e.path,[],{end:!1}),``),a=r.split(`/`);a.splice(0,3);let o=a.join(`/`).replace(/\/*$/,``)+i;return o.startsWith(`/`)||(o=`/`+o),console.log(`childUrlPath: `,o),o}return null},getParentPath(e,t){let n=document.location.href.replace(document.location.origin,``),r=(0,Ix.match)(t.path,{decode:decodeURIComponent,end:!1})(n);if(!r)return null;let i=Zd.default.template(t.url)(r.params);console.log(`child full path: `,e,t);let a=`/`+i.split(`/`).slice(3).join(`/`);if(console.log(`mountedSubPath: `,a),!(a===`/`||e.startsWith(a)&&[``,`?`,`/`,`#`].includes(e.charAt(a.length))))return;let o=(0,Ix.pathToRegexp)(t.path,[],{end:!1}),s=document.location.pathname;if(!o.test(s))return;let c=s.match(o);console.log(`parent register path: `,c[0]);let l=(c[0]+e.replace(a,``)).replace(/\/+/g,`/`).replace(/\/$/,``);return console.log(`newParentFullPath: `,l),l},getOrigin(e){let t=e.split(`/`);return t.length=3,t.join(`/`)}},Rx=c({default:()=>Hx}),zx=Zd.default.debounce(e=>{Nx.push(e)}),Bx=window.MUSE_GLOBAL.msgEngine,Vx={};function Hx({context:e=null,subApp:t}){let n=(0,E.useRef)(),[r,i]=(0,E.useState)(),a=lv(),o=a.href.replace(a.origin,``),s=Lx.getChildUrlPath(t),c=Vx[t.url],l=`${Lx.getOrigin(t.url)}${s}`;(0,E.useEffect)(()=>{n.current&&r===`app-loaded`&&Bx?.sendToChild({type:`sub-app-context-change`,data:e},c)},[e,t,c,r]);let u=(0,E.useCallback)(async e=>{try{await window.MUSE_GLOBAL?.msgEngine.assertMuseApp(e)}catch(e){console.log(`Not a muse app: `,e),i(`not-a-muse-app`)}},[]);(0,E.useEffect)(()=>{if(!s||!n.current)return;let e=Vx[t.url],r=n.current.getBoundingClientRect();e?e.style.left=r.left+`px`:(e=document.createElement(`iframe`),e.src=l,e.onload=()=>u(e),Vx[t.url]=e,Object.assign(e.style,{position:`fixed`,top:r.top+`px`,left:r.left+`px`,width:r.width+`px`,height:r.height+`px`,border:`none`,zIndex:1e3,margin:0}),document.body.appendChild(e))},[l,u,s,t.url]),(0,E.useEffect)(()=>{c&&Bx?.sendToChild({type:`parent-route-change`,path:s},c)},[s,c]),(0,E.useEffect)(()=>()=>{let e=Vx[t.url];e&&(e.style.left=`-100000px`)},[t.url]),o_(`resize`,(0,E.useCallback)(()=>{let e=Vx[t.url];if(e&&n.current){let t=n.current.getBoundingClientRect();Object.assign(e.style,{width:t.width+`px`,height:t.height+`px`})}},[t.url]));let d=(0,E.useCallback)(n=>{if(n.type)if(n.type===`child-route-change`&&n.path){let e=Lx.getParentPath(n.path,t);e!==o&&zx(e)}else n.type===`app-state-change`&&(i(n.state),n.state===`app-loaded`&&(Bx?.sendToChild({type:`sub-app-context-change`,data:e},c),c.museLoaded=!0))},[t,o,i,e,c]);return(0,E.useEffect)(()=>{let e=Math.random();return Bx?.addListener(e,d),()=>Bx?.removeListener(e)},[d]),s?(0,X.jsxs)(`div`,{className:`muse-react_sub-app-sub-app-container`,children:[!c?.museLoaded&&r!==`app-loaded`&&r!==`app-failed`&&r!==`login-page`&&r!==`check-c2s-proxy-failed`&&(0,X.jsx)(Yx,{state:r}),r===`app-failed`&&(0,X.jsxs)(`div`,{className:`sub-app-sub-app-failed`,children:[`Failed to start sub app `,t.name,`: /`,t.path,` => `,t.url,`.`]}),r===`check-c2s-proxy-failed`&&(0,X.jsx)($x,{}),(0,X.jsx)(`div`,{ref:n,style:{visibility:[`app-loaded`,`login-page`].includes(r)?`visible`:`hidden`},className:`sub-app-iframe-wrapper`})]}):`Error: can not detect a sub app. Are you using sub app container correctly?`}var Ux=c({default:()=>Kx}),Wx=Zd.default.debounce(e=>{Nx.push(e)}),Gx=window.MUSE_GLOBAL.msgEngine;function Kx({context:e=null,subApp:t}){let n=(0,E.useRef)(),[r,i]=(0,E.useState)(),a=lv(),o=a.href.replace(a.origin,``),s=Lx.getChildUrlPath(t);console.log(`subPath`,s);let c=n.current?.firstChild,l=`${Lx.getOrigin(t.url)}${s}`;(0,E.useEffect)(()=>{n.current&&r===`app-loaded`&&Gx?.sendToChild({type:`sub-app-context-change`,data:e},c)},[e,t,c,r]),(0,E.useEffect)(()=>{if(!s||!n.current)return;let e=n.current?.firstChild;e||(e=document.createElement(`iframe`),e.src=l,n.current.appendChild(e))},[l,s]),(0,E.useEffect)(()=>{!c||!s||Gx?.sendToChild({type:`parent-route-change`,path:s,url:s},c)},[s,c]);let u=(0,E.useCallback)(n=>{if(n.type)if(n.type===`child-route-change`&&n.path){let e=Lx.getParentPath(n.path,t);e!==o&&e&&Wx(e)}else n.type===`app-state-change`&&(i(n.state),n.state===`app-loaded`&&(Gx?.sendToChild({type:`sub-app-context-change`,data:e},c),c.museLoaded=!0))},[t,o,i,e,c]);return(0,E.useEffect)(()=>{let e=Math.random();return Gx?.addListener(e,u),()=>Gx?.removeListener(e)},[u]),(0,X.jsxs)(`div`,{className:`muse-react_sub-app-fixed-sub-app-container`,children:[!c?.museLoaded&&r!==`app-loaded`&&r!==`app-failed`&&r!==`login-page`&&r!==`check-c2s-proxy-failed`&&(0,X.jsx)(Yx,{state:r}),r===`app-failed`&&(0,X.jsxs)(`div`,{className:`sub-app-sub-app-failed`,children:[`Failed to start sub app `,t.name,`: /`,t.path,` => `,t.url,`.`]}),r===`check-c2s-proxy-failed`&&(0,X.jsx)($x,{}),(0,X.jsx)(`div`,{ref:n,style:{visibility:[`app-loaded`,`login-page`].includes(r)?`visible`:`hidden`},className:`sub-app-iframe-wrapper`})]})}var qx=c({default:()=>Yx}),Jx={"app-starting":`Loading sub app...`,"app-loading":`Starting sub app...`,"fetch-user-info":`Fetching user info...`,"app-begin-login":`Checking authentication...`,"check-c2s-proxy":`Checking c2s proxy...`};function Yx({state:e}){return(0,X.jsx)(`div`,{className:`sub-app-loading-skeleton`,children:(0,X.jsx)(`div`,{className:`sub-app-loading-center-container`,children:(0,X.jsx)(`label`,{children:Jx[e]||`Loading sub app...`})})})}var Xx=c({default:()=>Zx}),Zx=E.createContext(),Qx=c({default:()=>$x});function $x(){return(0,X.jsxs)(`div`,{className:`sub-app-c-2-s-proxy-failed`,children:[(0,X.jsx)(`h3`,{children:`Error: failed to detect c2s proxy.`}),(0,X.jsx)(`p`,{children:`This page needs c2s proxy, please config it and refresh the page.`})]})}var eS=c({C2SProxyFailed:()=>$x,FixedSubAppContainer:()=>Kx,LoadingSkeleton:()=>Yx,SubAppContainer:()=>Hx,SubAppContext:()=>Zx}),tS=c({default:()=>iS}),nS=[],rS=window.MUSE_GLOBAL?.plugins?.find(e=>e.name===`@ebay/muse-lib-react`);rS?.subApps?.filter(e=>e.mountPoint===`default`||!e.mountPoint)?.forEach(e=>{nS.push({path:e.path+`/*`,component:()=>(0,X.jsx)(Hx,{subApps:rS?.config?.subApps||[],subApp:e},e.url)})});var iS={path:`sub-app`,childRoutes:[...nS]},aS=c({default:()=>lS}),oS=[pm,hm,iS];function sS(e){if(!e.childRoutes||!e.childRoutes.length)return;let t=Zd.default.find(e.childRoutes,e=>e.isIndex);if(t){let n={...t};n.path=``,n.exact=!0,n.autoIndexRoute=!0,e.childRoutes.unshift(n)}e.childRoutes.forEach(sS)}var cS=e=>{let t={},n=[...e],r=[];for(;n.length>0;){let i=n.shift();i?.id&&(t[i.id]=i),i.childRoutes&&(Zd.default.forEachRight([...i.childRoutes],(e,t)=>{Zd.default.isArray(e?.path)&&i.childRoutes.splice(t,1,...e.path.map(e=>({...i,path:e})))}),n.push(...i.childRoutes),[...i.childRoutes].forEach(t=>{t?.path?.startsWith(`/`)?(Zd.default.pull(i.childRoutes,t),e.unshift(t)):t.parent&&(r.push(t),Zd.default.pull(i.childRoutes,t))}))}r.forEach(e=>{let n=e.parent;t[n]?(t[n].childRoutes||(t[n].childRoutes=[]),t[n].childRoutes.unshift(e)):console.warn(`Warning: no parent route found with id ${n}.`,e)})},lS=()=>{let e=[...oS];Vf.default.invoke(`!route`).forEach(t=>{e.push(...Zd.default.castArray(t))});let t=window.MUSE_GLOBAL||{},n=Yp,r=Vf.default.getPlugins(`home.homepage`);if(r.length===1)n=r[0].home.homepage;else if(r.length>1){let e=Zd.default.find(r,{name:t.homepage});n=e?e.home.homepage:()=>(0,X.jsxs)(`div`,{style:{color:`red`,padding:`20px`},children:[`Failed to show homepage: multiple homepages found from:`,` `,r.map(e=>e.name).join(`, `),`. You should load only one plugin which defines homepage.`]})}e.unshift({path:``,component:n});let i=[{path:`/`,component:Gp,childRoutes:[...Zd.default.cloneDeep(e),{path:`*`,name:`Page not found`,component:Qp}].filter(e=>e.component||e.render||e.childRoutes&&e.childRoutes.length>0)}];return i.forEach(sS),cS(i[0].childRoutes),i},uS=c({Subscribable:()=>dS}),dS=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fS=c({FocusManager:()=>pS,focusManager:()=>mS}),pS=class extends dS{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},mS=new pS,hS=c({TimeoutManager:()=>_S,defaultTimeoutProvider:()=>gS,systemSetTimeoutZero:()=>yS,timeoutManager:()=>vS}),gS={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_S=class{#e=gS;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},vS=new _S;function yS(e){setTimeout(e,0)}var bS=c({addConsumeAwareSignal:()=>qS,addToEnd:()=>HS,addToStart:()=>US,ensureQueryFn:()=>GS,functionalUpdate:()=>CS,hashKey:()=>jS,hashQueryKeyByOptions:()=>AS,isPlainArray:()=>IS,isPlainObject:()=>LS,isServer:()=>xS,isValidTimeout:()=>wS,keepPreviousData:()=>VS,matchMutation:()=>kS,matchQuery:()=>OS,noop:()=>SS,partialMatchKey:()=>MS,replaceData:()=>BS,replaceEqualDeep:()=>PS,resolveQueryBoolean:()=>DS,resolveStaleTime:()=>ES,shallowEqualObjects:()=>FS,shouldThrowError:()=>KS,skipToken:()=>WS,sleep:()=>zS,timeUntilStale:()=>TS}),xS=typeof window>`u`||`Deno`in globalThis;function SS(){}function CS(e,t){return typeof e==`function`?e(t):e}function wS(e){return typeof e==`number`&&e>=0&&e!==1/0}function TS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ES(e,t){return typeof e==`function`?e(t):e}function DS(e,t){return typeof e==`function`?e(t):e}function OS(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==AS(o,t.options))return!1}else if(!MS(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function kS(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(jS(t.options.mutationKey)!==jS(a))return!1}else if(!MS(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function AS(e,t){return(t?.queryKeyHashFn||jS)(e)}function jS(e){return JSON.stringify(e,(e,t)=>LS(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function MS(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>MS(e[n],t[n])):!1}var NS=Object.prototype.hasOwnProperty;function PS(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=IS(e)&&IS(t);if(!r&&!(LS(e)&&LS(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:NS.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=PS(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function FS(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function IS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function LS(e){if(!RS(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!RS(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function RS(e){return Object.prototype.toString.call(e)===`[object Object]`}function zS(e){return new Promise(t=>{vS.setTimeout(t,e)})}function BS(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:PS(e,t)}function VS(e){return e}function HS(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function US(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var WS=Symbol();function GS(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===WS?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function KS(e,t){return typeof e==`function`?e(...t):!!e}function qS(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var JS=c({environmentManager:()=>YS}),YS=(()=>{let e=()=>xS;return{isServer(){return e()},setIsServer(t){e=t}}})(),XS=c({pendingThenable:()=>ZS,tryResolveSync:()=>QS});function ZS(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function QS(e){let t;if(e.then(e=>(t=e,e),SS)?.catch(SS),t!==void 0)return{data:t}}var $S=c({defaultShouldDehydrateMutation:()=>rC,defaultShouldDehydrateQuery:()=>iC,dehydrate:()=>oC,hydrate:()=>sC});function eC(e){return e}function tC(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function nC(e,t,n){let r=()=>{let r=e.promise?.then(t).catch(e=>n(e)?Promise.reject(Error(`redacted`)):Promise.reject(e));return r?.catch(SS),r};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status===`pending`&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function rC(e){return e.state.isPaused}function iC(e){return e.state.status===`success`}function aC(e){return!0}function oC(e,t={}){let n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??rC,r=e.getMutationCache().getAll().flatMap(e=>n(e)?[tC(e)]:[]),i=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??iC,a=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??aC,o=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??eC;return{mutations:r,queries:e.getQueryCache().getAll().flatMap(e=>i(e)?[nC(e,o,a)]:[])}}function sC(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??eC,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l,queryType:u})=>{let d=c?QS(c):void 0,f=r.data===void 0?d?.data:r.data,p=f===void 0?f:a(f),m=i.get(o),h=m?.state.status===`pending`,g=m?.state.fetchStatus===`fetching`;if(m){let e=d&&l!==void 0&&l>m.state.dataUpdatedAt;if(r.dataUpdatedAt>m.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;m.setState({...t,data:p,...r.status===`pending`&&p!==void 0&&{status:`success`,...!g&&{fetchStatus:`idle`}}})}}else m=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s,_type:u},{...r,data:p,fetchStatus:`idle`,status:r.status===`pending`&&p!==void 0?`success`:r.status});c&&!d&&!h&&!g&&(l===void 0||l>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(SS)})}var cC=c({createNotifyManager:()=>uC,defaultScheduler:()=>lC,notifyManager:()=>dC}),lC=yS;function uC(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=lC,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var dC=uC(),fC=c({OnlineManager:()=>pC,onlineManager:()=>mC}),pC=class extends dS{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}},mC=new pC,hC=c({CancelledError:()=>vC,canFetch:()=>_C,createRetryer:()=>bC,isCancelledError:()=>yC});function gC(e){return Math.min(1e3*2**e,3e4)}function _C(e){return(e??`online`)===`online`?mC.isOnline():!0}var vC=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function yC(e){return e instanceof vC}function bC(e){let t=!1,n=0,r,i=ZS(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new vC(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>mS.isFocused()&&(e.networkMode===`always`||mC.isOnline())&&e.canRun(),u=()=>_C(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(YS.isServer()?0:3),o=e.retryDelay??gC,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),zS(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var xC=c({Removable:()=>SC}),SC=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wS(this.gcTime)&&(this.#e=vS.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(YS.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(vS.clearTimeout(this.#e),this.#e=void 0)}},CC=c({hasNextPage:()=>DC,hasPreviousPage:()=>OC,infiniteQueryBehavior:()=>wC});function wC(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{qS(e,()=>t.signal,()=>n=!0)},u=GS(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?US:HS;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?EC:TC,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:TC(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function TC(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function EC(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function DC(e,t){return t?TC(e,t)!=null:!1}function OC(e,t){return!t||!e.getPreviousPageParam?!1:EC(e,t)!=null}var kC=c({Query:()=>AC,fetchState:()=>jC}),AC=class extends SC{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=NC(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=NC(this.options);e.data!==void 0&&(this.setState(MC(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=BS(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(SS).catch(SS):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>DS(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===WS||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ES(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!TS(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=GS(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?wC(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=bC({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof vC&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof vC){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...jC(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...MC(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),dC.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function jC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_C(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function MC(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function NC(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var PC=c({QueryObserver:()=>FC}),FC=class extends dS{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=ZS(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),LC(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return RC(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return RC(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof DS(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!FS(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&zC(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||DS(this.options.enabled,this.#t)!==DS(t.enabled,this.#t)||ES(this.options.staleTime,this.#t)!==ES(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||DS(this.options.enabled,this.#t)!==DS(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return VC(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(SS)),t}#g(){this.#b();let e=ES(this.options.staleTime,this.#t);if(YS.isServer()||this.#r.isStale||!wS(e))return;let t=TS(this.#r.dataUpdatedAt,e)+1;this.#d=vS.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(YS.isServer()||DS(this.options.enabled,this.#t)===!1||!wS(this.#p)||this.#p===0)&&(this.#f=vS.setInterval(()=>{(this.options.refetchIntervalInBackground||mS.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(vS.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(vS.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&LC(e,t),o=i&&zC(e,n,t,r);(a||o)&&(l={...l,...jC(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=BS(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=BS(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:BC(e,t),refetch:this.refetch,promise:this.#o,isEnabled:DS(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=ZS())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!FS(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){dC.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function IC(e,t){return DS(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&DS(t.retryOnMount,e)===!1)}function LC(e,t){return IC(e,t)||e.state.data!==void 0&&RC(e,t,t.refetchOnMount)}function RC(e,t,n){if(DS(t.enabled,e)!==!1&&ES(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&BC(e,t)}return!1}function zC(e,t,n,r){return(e!==t||DS(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&BC(e,n)}function BC(e,t){return DS(t.enabled,e)!==!1&&e.isStaleByTime(ES(t.staleTime,e))}function VC(e,t){return!FS(e.getCurrentResult(),t)}var HC=c({InfiniteQueryObserver:()=>UC}),UC=class extends FC{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:DC(t,n.data),hasPreviousPage:OC(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},WC=c({Mutation:()=>GC,getDefaultState:()=>KC}),GC=class extends SC{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||KC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=bC({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),dC.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function KC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var qC=c({MutationCache:()=>JC}),JC=class extends dS{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new GC({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=YC(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=YC(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=YC(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=YC(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){dC.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>kS(t,e))}findAll(e={}){return this.getAll().filter(t=>kS(e,t))}notify(e){dC.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return dC.batch(()=>Promise.all(e.map(e=>e.continue().catch(SS))))}};function YC(e){return e.options.scope?.id}var XC=c({MutationObserver:()=>ZC}),ZC=class extends dS{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),FS(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&jS(t.mutationKey)!==jS(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??KC();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){dC.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},QC=c({QueriesObserver:()=>tw});function $C(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function ew(e,t,n){let r=e.slice(0);return r[t]=n,r}var tw=class extends dS{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,dC.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!FS(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&($C(e,n).forEach(e=>{e.destroy()}),$C(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=PS(this.#a,t(e))),this.#a}return e}#f(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new FC(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=ew(this.#t,n,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#u(this.#t,this.#l),t=this.#f(),n=this.#a,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&dC.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},nw=c({QueryCache:()=>rw}),rw=class extends dS{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??AS(r,t),a=this.get(i);return a||(a=new AC({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){dC.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>OS(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>OS(e,t)):t}notify(e){dC.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){dC.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){dC.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},iw=c({QueryClient:()=>aw}),aw=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new rw,this.#t=e.mutationCache||new JC,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=mS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=mC.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ES(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=CS(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return dC.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;dC.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return dC.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=dC.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(SS).catch(SS)}invalidateQueries(e,t={}){return dC.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=dC.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(SS)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(SS)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(ES(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(SS).catch(SS)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(SS).catch(SS)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return mC.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(jS(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{MS(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(jS(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{MS(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=AS(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===WS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ow=c({streamedQuery:()=>sw});function sw({streamFn:e,refetchMode:t=`reset`,reducer:n=(e,t)=>HS(e,t),initialValue:r=[]}){return async i=>{let a=i.client.getQueryCache().find({queryKey:i.queryKey,exact:!0}),o=!!a&&a.isFetched();o&&t===`reset`&&a.setState({...a.resetState,fetchStatus:`fetching`});let s=r,c=!1,l=await e(qS({client:i.client,meta:i.meta,queryKey:i.queryKey,pageParam:i.pageParam,direction:i.direction},()=>i.signal,()=>c=!0)),u=o&&t===`replace`;for await(let e of l){if(c)break;u?s=n(s,e):i.client.setQueryData(i.queryKey,t=>n(t===void 0?r:t,e))}return u&&!c&&i.client.setQueryData(i.queryKey,s),i.client.getQueryData(i.queryKey)??r}}var cw=c({dataTagErrorSymbol:()=>uw,dataTagSymbol:()=>lw,unsetMarker:()=>dw}),lw=Symbol(`dataTagSymbol`),uw=Symbol(`dataTagErrorSymbol`),dw=Symbol(`unsetMarker`),fw=c({CancelledError:()=>vC,InfiniteQueryObserver:()=>UC,Mutation:()=>GC,MutationCache:()=>JC,MutationObserver:()=>ZC,QueriesObserver:()=>tw,Query:()=>AC,QueryCache:()=>rw,QueryClient:()=>aw,QueryObserver:()=>FC,dataTagErrorSymbol:()=>uw,dataTagSymbol:()=>lw,defaultScheduler:()=>lC,defaultShouldDehydrateMutation:()=>rC,defaultShouldDehydrateQuery:()=>iC,dehydrate:()=>oC,environmentManager:()=>YS,experimental_streamedQuery:()=>sw,focusManager:()=>mS,hashKey:()=>jS,hydrate:()=>sC,isCancelledError:()=>yC,isServer:()=>xS,keepPreviousData:()=>VS,matchMutation:()=>kS,matchQuery:()=>OS,noop:()=>SS,notifyManager:()=>dC,onlineManager:()=>mC,partialMatchKey:()=>MS,replaceEqualDeep:()=>PS,shouldThrowError:()=>KS,skipToken:()=>WS,timeoutManager:()=>vS,unsetMarker:()=>dw}),pw=c({}),mw=c({QueryClientContext:()=>hw,QueryClientProvider:()=>_w,useQueryClient:()=>gw}),hw=E.createContext(void 0),gw=e=>{let t=E.useContext(hw);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},_w=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,X.jsx)(hw.Provider,{value:e,children:t})),vw=c({IsRestoringProvider:()=>xw,useIsRestoring:()=>bw}),yw=E.createContext(!1),bw=()=>E.useContext(yw),xw=yw.Provider,Sw=c({QueryErrorResetBoundary:()=>Ew,useQueryErrorResetBoundary:()=>Tw});function Cw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ww=E.createContext(Cw()),Tw=()=>E.useContext(ww),Ew=({children:e})=>{let[t]=E.useState(()=>Cw());return(0,X.jsx)(ww.Provider,{value:t,children:typeof e==`function`?e(t):e})},Dw=c({ensurePreventErrorBoundaryRetry:()=>Ow,getHasError:()=>Aw,useClearResetErrorBoundary:()=>kw}),Ow=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?KS(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},kw=e=>{E.useEffect(()=>{e.clearReset()},[e])},Aw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||KS(n,[e.error,r])),jw=c({defaultThrowOnError:()=>Mw,ensureSuspenseTimers:()=>Nw,fetchOptimistic:()=>Iw,shouldSuspend:()=>Fw,willFetch:()=>Pw}),Mw=(e,t)=>t.state.data===void 0,Nw=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Pw=(e,t)=>e.isLoading&&e.isFetching&&!t,Fw=(e,t)=>e?.suspense&&t.isPending,Iw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()}),Lw=c({useQueries:()=>Rw});function Rw({queries:e,...t},n){let r=gw(n),i=bw(),a=Tw(),o=E.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);o.forEach(e=>{Nw(e),Ow(e,a,r.getQueryCache().get(e.queryHash))}),kw(a);let[s]=E.useState(()=>new tw(r,o,t)),[c,l,u]=s.getOptimisticResult(o,t.combine),d=!i&&t.subscribed!==!1;E.useSyncExternalStore(E.useCallback(e=>d?s.subscribe(dC.batchCalls(e)):SS,[s,d]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),E.useEffect(()=>{s.setQueries(o,t)},[o,t,s]);let f=c.some((e,t)=>Fw(o[t],e))?c.flatMap((e,t)=>{let n=o[t];return n&&Fw(n,e)?Iw(n,new FC(r,n),a):[]}):[];if(f.length>0)throw Promise.all(f);let p=c.find((e,t)=>{let n=o[t];return n&&Aw({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(p?.error)throw p.error;return l(u())}var zw=c({useBaseQuery:()=>Bw});function Bw(e,t,n){let r=bw(),i=Tw(),a=gw(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Nw(o),Ow(o,i,s),kw(i);let c=!a.getQueryCache().get(o.queryHash),[l]=E.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(e=>{let t=d?l.subscribe(dC.batchCalls(e)):SS;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),E.useEffect(()=>{l.setOptions(o)},[o,l]),Fw(o,u))throw Iw(o,l,i);if(Aw({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!YS.isServer()&&Pw(u,r)&&(c?Iw(o,l,i):s?.promise)?.catch(SS).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}var Vw=c({useQuery:()=>Hw});function Hw(e,t){return Bw(e,FC,t)}var Uw=c({useSuspenseQuery:()=>Ww});function Ww(e,t){return Bw({...e,enabled:!0,suspense:!0,throwOnError:Mw,placeholderData:void 0},FC,t)}var Gw=c({useSuspenseInfiniteQuery:()=>Kw});function Kw(e,t){return Bw({...e,enabled:!0,suspense:!0,throwOnError:Mw},UC,t)}var qw=c({useSuspenseQueries:()=>Jw});function Jw(e,t){return Rw({...e,queries:e.queries.map(e=>({...e,suspense:!0,throwOnError:Mw,enabled:!0,placeholderData:void 0}))},t)}var Yw=c({usePrefetchQuery:()=>Xw});function Xw(e,t){let n=gw(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}var Zw=c({usePrefetchInfiniteQuery:()=>Qw});function Qw(e,t){let n=gw(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}var $w=c({queryOptions:()=>eT});function eT(e){return e}var tT=c({infiniteQueryOptions:()=>nT});function nT(e){return e}var rT=c({HydrationBoundary:()=>iT}),iT=({children:e,options:t={},state:n,queryClient:r})=>{let i=gw(r),a=E.useRef(t);E.useEffect(()=>{a.current=t});let o=E.useMemo(()=>{if(n){if(typeof n!=`object`)return;let e=i.getQueryCache(),t=n.queries||[],r=[],o=[];for(let n of t){let t=e.get(n.queryHash);t?(n.state.dataUpdatedAt>t.state.dataUpdatedAt||n.promise&&t.state.status!==`pending`&&t.state.fetchStatus!==`fetching`&&n.dehydratedAt!==void 0&&n.dehydratedAt>t.state.dataUpdatedAt)&&o.push(n):r.push(n)}if(r.length>0&&sC(i,{queries:r},a.current),o.length>0)return o}},[i,n]);return E.useEffect(()=>{o&&sC(i,{queries:o},a.current)},[i,o]),e},aT=c({useIsFetching:()=>oT});function oT(e,t){let n=gw(t),r=n.getQueryCache();return E.useSyncExternalStore(E.useCallback(e=>r.subscribe(dC.batchCalls(e)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}var sT=c({useIsMutating:()=>cT,useMutationState:()=>uT});function cT(e,t){let n=gw(t);return uT({filters:{...e,status:`pending`}},n).length}function lT(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function uT(e={},t){let n=gw(t).getMutationCache(),r=E.useRef(e),i=E.useRef(null);return i.current===null&&(i.current=lT(n,e)),E.useEffect(()=>{r.current=e}),E.useSyncExternalStore(E.useCallback(e=>n.subscribe(()=>{let t=PS(i.current,lT(n,r.current));i.current!==t&&(i.current=t,dC.schedule(e))}),[n]),()=>i.current,()=>i.current)}var dT=c({useMutation:()=>fT});function fT(e,t){let n=gw(t),[r]=E.useState(()=>new ZC(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);let i=E.useSyncExternalStore(E.useCallback(e=>r.subscribe(dC.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=E.useCallback((e,t)=>{r.mutate(e,t).catch(SS)},[r]);if(i.error&&KS(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var pT=c({mutationOptions:()=>mT});function mT(e){return e}var hT=c({useInfiniteQuery:()=>gT});function gT(e,t){return Bw(e,UC,t)}var _T=c({CancelledError:()=>vC,HydrationBoundary:()=>iT,InfiniteQueryObserver:()=>UC,IsRestoringProvider:()=>xw,Mutation:()=>GC,MutationCache:()=>JC,MutationObserver:()=>ZC,QueriesObserver:()=>tw,Query:()=>AC,QueryCache:()=>rw,QueryClient:()=>aw,QueryClientContext:()=>hw,QueryClientProvider:()=>_w,QueryErrorResetBoundary:()=>Ew,QueryObserver:()=>FC,dataTagErrorSymbol:()=>uw,dataTagSymbol:()=>lw,defaultScheduler:()=>lC,defaultShouldDehydrateMutation:()=>rC,defaultShouldDehydrateQuery:()=>iC,dehydrate:()=>oC,environmentManager:()=>YS,experimental_streamedQuery:()=>sw,focusManager:()=>mS,hashKey:()=>jS,hydrate:()=>sC,infiniteQueryOptions:()=>nT,isCancelledError:()=>yC,isServer:()=>xS,keepPreviousData:()=>VS,matchMutation:()=>kS,matchQuery:()=>OS,mutationOptions:()=>mT,noop:()=>SS,notifyManager:()=>dC,onlineManager:()=>mC,partialMatchKey:()=>MS,queryOptions:()=>eT,replaceEqualDeep:()=>PS,shouldThrowError:()=>KS,skipToken:()=>WS,timeoutManager:()=>vS,unsetMarker:()=>dw,useInfiniteQuery:()=>gT,useIsFetching:()=>oT,useIsMutating:()=>cT,useIsRestoring:()=>bw,useMutation:()=>fT,useMutationState:()=>uT,usePrefetchInfiniteQuery:()=>Qw,usePrefetchQuery:()=>Xw,useQueries:()=>Rw,useQuery:()=>Hw,useQueryClient:()=>gw,useQueryErrorResetBoundary:()=>Tw,useSuspenseInfiniteQuery:()=>Kw,useSuspenseQueries:()=>Jw,useSuspenseQuery:()=>Ww}),vT=c({default:()=>xT,extendArray:()=>bT});function yT(e){return e.charAt(0).toUpperCase()+e.slice(1)}var bT=(e,t,n,...r)=>{let i=yT(t);Vf.default.invoke(`${n}.preProcess${i}`,...r);let a=Zd.default.flatten(Vf.default.invoke(`${n}.get${i}`,...r));return e.push(...a),Vf.default.invoke(`${n}.process${i}`,...r),Vf.default.invoke(`${n}.postProcess${i}`,...r),Vf.default.sort(e),e},xT={extendArray:bT},ST=c({default:()=>DT}),CT=new aw({defaultOptions:{queries:{staleTime:1/0,retry:0,refetchOnWindowFocus:!1}}});function wT(e,t){let n=[],r=(e,t)=>{let{path:i,exact:a,render:o,component:s,childRoutes:c,...l}=e,u;if(u=/^\//.test(i)?i:`${t}/${i}`,u=u.replace(/\/+/g,`/`),(o||s)&&c){let e=wT(c,u);n.push((0,X.jsx)(ao,{exact:!1,element:o?o():(0,X.jsx)(s,{children:(0,X.jsx)(io,{})}),path:u,...l,children:e},u.toString()))}else s||o?n.push((0,X.jsx)(ao,{element:o?o():(0,X.jsx)(s,{}),path:u,exact:`exact`in e?a:!0,...l},u.toString())):c&&c.forEach(e=>r(e,u))};return e.reduce((e,t)=>(Zd.default.isArray(t.path)?t.path.forEach(n=>{e.push({...t,path:n})}):e.push(t),e),[]).forEach(e=>r(e,t)),n}var TT=e=>(Vf.default.invoke(`!root.renderChildren`).forEach(t=>{if(!Zd.default.isFunction(t))throw Error(`root.renderChildren should be a function.`);e=t(e)}),e),ET={browser:Qc,hash:$c,memory:Xa},DT=()=>{let[e,t]=(0,E.useState)(null),n=(0,E.useCallback)(e=>{e.type===`sub-app-context-change`&&t(e.data)},[]);(0,E.useEffect)(()=>{let e=`muse-react_handle-context-change`;return window.MUSE_GLOBAL?.msgEngine?.addListener(e,n),()=>window.MUSE_GLOBAL?.msgEngine?.removeListener(e)},[n]);let r=TT(wT(lS(),`/`)),{routerType:i=`browser`,basePath:a}=window.MUSE_GLOBAL.appVariables||{},o=ET[i](po(r)),s=Vf.default.invoke(`!routerProps`)[0]||{};i===`browser`&&(s.navigator=Nx);let c=[{order:10,key:`react-query`,provider:_w,props:{client:CT},renderProvider:null},{order:20,key:`redux-provider`,provider:ct,props:{store:Rp.getStore()}},{order:30,key:`muse-sub-app`,provider:Zx.Provider,props:{value:e}},{order:40,key:`nice-modal`,provider:Bf.Provider},{order:50,key:`react-router`,provider:Sd,props:{basename:a,router:o,...s}}];return bT(c,`providers`,`root`,{providers:c}),c.filter(Boolean).reduceRight((e,t)=>t.provider?(0,X.jsx)(t.provider,{...t.props,children:e},e?.key):t.renderProvider?t.renderProvider(e):e,(0,X.jsx)(X.Fragment,{}))},OT=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),kT=s((e=>{})),AT=s(((e,t)=>{t.exports=OT()})),jT=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),MT=s(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),NT=s(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),PT=s(((e,t)=>{function n(e,t,n,r,i){}n.resetWarningCache=function(){},t.exports=n})),FT=s(((e,t)=>{var n=AT(),r=jT(),i=MT(),a=NT(),o=PT();function s(){return null}t.exports=function(e,t){var c=typeof Symbol==`function`&&Symbol.iterator,l=`@@iterator`;function u(e){var t=e&&(c&&e[c]||e[l]);if(typeof t==`function`)return t}var d=`<<anonymous>>`,f={array:g(`array`),bigint:g(`bigint`),bool:g(`boolean`),func:g(`function`),number:g(`number`),object:g(`object`),string:g(`string`),symbol:g(`symbol`),any:_(),arrayOf:v,element:y(),elementType:b(),instanceOf:x,node:T(),objectOf:C,oneOf:S,oneOfType:w,shape:te,exact:ne};function p(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function m(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}m.prototype=Error.prototype;function h(e){function n(n,r,a,o,s,c,l){if(o||=d,c||=a,l!==i&&t){var u=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 u.name=`Invariant Violation`,u}return r[a]==null?n?r[a]===null?new m(`The `+s+" `"+c+"` is marked as required "+("in `"+o+"`, but its value is `null`.")):new m(`The `+s+" `"+c+"` is marked as required in "+("`"+o+"`, but its value is `undefined`.")):null:e(r,a,o,s,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function g(e){function t(t,n,r,i,a,o){var s=t[n];if(ie(s)!==e){var c=ae(s);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return h(t)}function _(){return h(s)}function v(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new m("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=ie(s);return new m(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return h(t)}function y(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=ie(o);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return h(t)}function b(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=ie(o);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return h(e)}function x(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||d,s=se(t[n]);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return h(t)}function S(e){if(!Array.isArray(e))return s;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(p(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return ae(t)===`symbol`?String(t):t});return new m(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return h(t)}function C(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new m("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=ie(c);if(l!==`object`)return new m(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return h(t)}function w(e){if(!Array.isArray(e))return s;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return``+oe(n)+t,s}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new m(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return h(r)}function T(){function e(e,t,n,r,i){return E(e[t])?null:new m(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return h(e)}function ee(e,t,n,r,i){return new m((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function te(e){function t(t,n,r,a,o){var s=t[n],c=ie(s);if(c!==`object`)return new m(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return ee(r,a,o,l,ae(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return h(t)}function ne(e){function t(t,n,o,s,c){var l=t[n],u=ie(l);if(u!==`object`)return new m(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return ee(o,s,c,d,ae(f));if(!f)return new m(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
71
+ }`;var v=Of(function(){return xt(o,g+`return `+m).apply(n,l)});if(v.source=m,Du(v))throw v;return v}function vf(e){return J(e).toLowerCase()}function yf(e){return J(e).toUpperCase()}function bf(e,t,r){if(e=J(e),e&&(r||t===n))return cr(e);if(!e||!(t=qa(t)))return e;var i=Ar(e),a=Ar(t);return ao(i,fr(i,a),pr(i,a)+1).join(``)}function xf(e,t,r){if(e=J(e),e&&(r||t===n))return e.slice(0,jr(e)+1);if(!e||!(t=qa(t)))return e;var i=Ar(e);return ao(i,0,pr(i,Ar(t))+1).join(``)}function Sf(e,t,r){if(e=J(e),e&&(r||t===n))return e.replace(nt,``);if(!e||!(t=qa(t)))return e;var i=Ar(e);return ao(i,fr(i,Ar(t))).join(``)}function Cf(e,t){var r=ee,i=D;if(Mu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?q(t.length):r,i=`omission`in t?qa(t.omission):i}e=J(e);var o=e.length;if(yr(e)){var s=Ar(e);o=s.length}if(r>=o)return e;var c=r-kr(i);if(c<1)return i;var l=s?ao(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Uu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=Ct(a.source,J(dt.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(qa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function wf(e){return e=J(e),e&&Ke.test(e)?e.replace(We,Mr):e}var Tf=Do(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),Ef=Eo(`toUpperCase`);function Df(e,t,r){return e=J(e),t=r?n:t,t===n?br(e)?Fr(e):Jn(e):e.match(t)||[]}var Of=B(function(e,t){try{return Nn(e,n,t)}catch(e){return Du(e)?e:new bt(e)}}),kf=Zo(function(e,t){return Fn(t,function(t){t=Us(t),ji(e,t,U(e[t],e))}),e});function Af(e){var t=e==null?0:e.length,n=H();return e=t?Vn(e,function(e){if(typeof e[1]!=`function`)throw new Tt(o);return[n(e[0]),e[1]]}):[],B(function(n){for(var r=-1;++r<t;){var i=e[r];if(Nn(i[0],this,n))return Nn(i[1],this,n)}})}function jf(e){return Pi(R(e,f))}function Mf(e){return function(){return e}}function Nf(e,t){return e==null||e!==e?t:e}var Pf=jo(),Ff=jo(!0);function If(e){return e}function Lf(e){return ga(typeof e==`function`?e:R(e,f))}function Rf(e){return xa(R(e,f))}function zf(e,t){return Sa(e,R(t,f))}var Bf=B(function(e,t){return function(n){return ia(n,e,t)}}),Vf=B(function(e,t){return function(n){return ia(e,n,t)}});function Hf(e,t,n){var r=Dd(t),i=Ji(t,r);n==null&&!(Mu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Ji(t,Dd(t)));var a=!(Mu(n)&&`chain`in n)||!!n.chain,o=ku(e);return Fn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=_o(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Hn([this.value()],arguments))})}),e}function Uf(){return xn._===this&&(xn._=Ft),this}function Wf(){}function Gf(e){return e=q(e),B(function(t){return Ta(t,e)})}var Kf=Fo(Vn),qf=Fo(Ln),Jf=Fo(Gn);function Yf(e){return bs(e)?tr(Us(e)):ka(e)}function Xf(e){return function(t){return e==null?n:Yi(e,t)}}var Zf=Ro(),Qf=Ro(!0);function $f(){return[]}function ep(){return!1}function tp(){return{}}function np(){return``}function rp(){return!0}function ip(e,t){if(e=q(e),e<1||e>ae)return[];var n=oe,r=pn(e,oe);t=H(t),e-=oe;for(var i=or(r,t);++n<e;)t(n);return i}function ap(e){return G(e)?Vn(e,Us):qu(e)?[e]:_o(Hs(J(e)))}function op(e){var t=++jt;return J(e)+t}var sp=Po(function(e,t){return e+t},0),cp=Vo(`ceil`),lp=Po(function(e,t){return e/t},1),up=Vo(`floor`);function dp(e){return e&&e.length?Bi(e,If,Qi):n}function fp(e,t){return e&&e.length?Bi(e,H(t,2),Qi):n}function pp(e){return er(e,If)}function mp(e,t){return er(e,H(t,2))}function hp(e){return e&&e.length?Bi(e,If,ya):n}function gp(e,t){return e&&e.length?Bi(e,H(t,2),ya):n}var _p=Po(function(e,t){return e*t},1),vp=Vo(`round`),yp=Po(function(e,t){return e-t},0);function bp(e){return e&&e.length?ar(e,If):0}function xp(e,t){return e&&e.length?ar(e,H(t,2)):0}return I.after=Vl,I.ary=Hl,I.assign=od,I.assignIn=sd,I.assignInWith=cd,I.assignWith=ld,I.at=ud,I.before=Ul,I.bind=U,I.bindAll=kf,I.bindKey=W,I.castArray=cu,I.chain=rl,I.chunk=qs,I.compact=Js,I.concat=Ys,I.cond=Af,I.conforms=jf,I.constant=Mf,I.countBy=ml,I.create=dd,I.curry=Wl,I.curryRight=Gl,I.debounce=Kl,I.defaults=fd,I.defaultsDeep=pd,I.defer=ql,I.delay=Jl,I.difference=Xs,I.differenceBy=Zs,I.differenceWith=Qs,I.drop=$s,I.dropRight=ec,I.dropRightWhile=tc,I.dropWhile=nc,I.fill=rc,I.filter=gl,I.flatMap=yl,I.flatMapDeep=bl,I.flatMapDepth=xl,I.flatten=oc,I.flattenDeep=sc,I.flattenDepth=cc,I.flip=Yl,I.flow=Pf,I.flowRight=Ff,I.fromPairs=lc,I.functions=bd,I.functionsIn=xd,I.groupBy=wl,I.initial=fc,I.intersection=pc,I.intersectionBy=mc,I.intersectionWith=hc,I.invert=wd,I.invertBy=Td,I.invokeMap=El,I.iteratee=Lf,I.keyBy=Dl,I.keys=Dd,I.keysIn=Od,I.map=Ol,I.mapKeys=kd,I.mapValues=Ad,I.matches=Rf,I.matchesProperty=zf,I.memoize=Xl,I.merge=jd,I.mergeWith=Md,I.method=Bf,I.methodOf=Vf,I.mixin=Hf,I.negate=Zl,I.nthArg=Gf,I.omit=Nd,I.omitBy=Pd,I.once=Ql,I.orderBy=kl,I.over=Kf,I.overArgs=$l,I.overEvery=qf,I.overSome=Jf,I.partial=eu,I.partialRight=tu,I.partition=Al,I.pick=Fd,I.pickBy=Id,I.property=Yf,I.propertyOf=Xf,I.pull=bc,I.pullAll=xc,I.pullAllBy=Sc,I.pullAllWith=Cc,I.pullAt=wc,I.range=Zf,I.rangeRight=Qf,I.rearg=nu,I.reject=Nl,I.remove=Tc,I.rest=ru,I.reverse=Ec,I.sampleSize=Fl,I.set=Rd,I.setWith=zd,I.shuffle=Il,I.slice=Dc,I.sortBy=zl,I.sortedUniq=Pc,I.sortedUniqBy=Fc,I.split=mf,I.spread=iu,I.tail=Ic,I.take=Lc,I.takeRight=Rc,I.takeRightWhile=zc,I.takeWhile=Bc,I.tap=il,I.throttle=au,I.thru=al,I.toArray=ed,I.toPairs=Bd,I.toPairsIn=Vd,I.toPath=ap,I.toPlainObject=id,I.transform=Hd,I.unary=ou,I.union=Vc,I.unionBy=Hc,I.unionWith=Uc,I.uniq=Wc,I.uniqBy=Gc,I.uniqWith=Kc,I.unset=Ud,I.unzip=qc,I.unzipWith=Jc,I.update=Wd,I.updateWith=Gd,I.values=Kd,I.valuesIn=qd,I.without=Yc,I.words=Df,I.wrap=su,I.xor=Xc,I.xorBy=Zc,I.xorWith=Qc,I.zip=$c,I.zipObject=el,I.zipObjectDeep=tl,I.zipWith=nl,I.entries=Bd,I.entriesIn=Vd,I.extend=sd,I.extendWith=cd,Hf(I,I),I.add=sp,I.attempt=Of,I.camelCase=Zd,I.capitalize=Qd,I.ceil=cp,I.clamp=Jd,I.clone=lu,I.cloneDeep=du,I.cloneDeepWith=fu,I.cloneWith=uu,I.conformsTo=pu,I.deburr=$d,I.defaultTo=Nf,I.divide=lp,I.endsWith=ef,I.eq=mu,I.escape=tf,I.escapeRegExp=nf,I.every=hl,I.find=_l,I.findIndex=ic,I.findKey=md,I.findLast=vl,I.findLastIndex=ac,I.findLastKey=hd,I.floor=up,I.forEach=Sl,I.forEachRight=Cl,I.forIn=gd,I.forInRight=_d,I.forOwn=vd,I.forOwnRight=yd,I.get=Sd,I.gt=hu,I.gte=gu,I.has=Y,I.hasIn=Cd,I.head=uc,I.identity=If,I.includes=Tl,I.indexOf=dc,I.inRange=Yd,I.invoke=Ed,I.isArguments=_u,I.isArray=G,I.isArrayBuffer=vu,I.isArrayLike=yu,I.isArrayLikeObject=K,I.isBoolean=bu,I.isBuffer=xu,I.isDate=Su,I.isElement=Cu,I.isEmpty=wu,I.isEqual=Tu,I.isEqualWith=Eu,I.isError=Du,I.isFinite=Ou,I.isFunction=ku,I.isInteger=Au,I.isLength=ju,I.isMap=Pu,I.isMatch=Fu,I.isMatchWith=Iu,I.isNaN=Lu,I.isNative=Ru,I.isNil=Bu,I.isNull=zu,I.isNumber=Vu,I.isObject=Mu,I.isObjectLike=Nu,I.isPlainObject=Hu,I.isRegExp=Uu,I.isSafeInteger=Wu,I.isSet=Gu,I.isString=Ku,I.isSymbol=qu,I.isTypedArray=Ju,I.isUndefined=Yu,I.isWeakMap=Xu,I.isWeakSet=Zu,I.join=gc,I.kebabCase=rf,I.last=_c,I.lastIndexOf=vc,I.lowerCase=af,I.lowerFirst=of,I.lt=Qu,I.lte=$u,I.max=dp,I.maxBy=fp,I.mean=pp,I.meanBy=mp,I.min=hp,I.minBy=gp,I.stubArray=$f,I.stubFalse=ep,I.stubObject=tp,I.stubString=np,I.stubTrue=rp,I.multiply=_p,I.nth=yc,I.noConflict=Uf,I.noop=Wf,I.now=Bl,I.pad=sf,I.padEnd=cf,I.padStart=lf,I.parseInt=uf,I.random=Xd,I.reduce=jl,I.reduceRight=Ml,I.repeat=df,I.replace=ff,I.result=Ld,I.round=vp,I.runInContext=e,I.sample=Pl,I.size=Ll,I.snakeCase=pf,I.some=Rl,I.sortedIndex=Oc,I.sortedIndexBy=kc,I.sortedIndexOf=Ac,I.sortedLastIndex=jc,I.sortedLastIndexBy=Mc,I.sortedLastIndexOf=Nc,I.startCase=hf,I.startsWith=gf,I.subtract=yp,I.sum=bp,I.sumBy=xp,I.template=_f,I.times=ip,I.toFinite=td,I.toInteger=q,I.toLength=nd,I.toLower=vf,I.toNumber=rd,I.toSafeInteger=ad,I.toString=J,I.toUpper=yf,I.trim=bf,I.trimEnd=xf,I.trimStart=Sf,I.truncate=Cf,I.unescape=wf,I.uniqueId=op,I.upperCase=Tf,I.upperFirst=Ef,I.each=Sl,I.eachRight=Cl,I.first=uc,Hf(I,function(){var e={};return Ki(I,function(t,n){F.call(I.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),I.VERSION=r,Fn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){I[e].placeholder=I}),Fn([`drop`,`take`],function(e,t){L.prototype[e]=function(r){r=r===n?1:cn(q(r),0);var i=this.__filtered__&&!t?new L(this):this.clone();return i.__filtered__?i.__takeCount__=pn(r,i.__takeCount__):i.__views__.push({size:pn(r,oe),type:e+(i.__dir__<0?`Right`:``)}),i},L.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),Fn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==ne||n==ie;L.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:H(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Fn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);L.prototype[e]=function(){return this[n](1).value()[0]}}),Fn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);L.prototype[e]=function(){return this.__filtered__?new L(this):this[n](1)}}),L.prototype.compact=function(){return this.filter(If)},L.prototype.find=function(e){return this.filter(e).head()},L.prototype.findLast=function(e){return this.reverse().find(e)},L.prototype.invokeMap=B(function(e,t){return typeof e==`function`?new L(this):this.map(function(n){return ia(n,e,t)})}),L.prototype.reject=function(e){return this.filter(Zl(H(e)))},L.prototype.slice=function(e,t){e=q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new L(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},L.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},L.prototype.toArray=function(){return this.take(oe)},Ki(L.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=I[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(I.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof L,l=s[0],u=c||G(t),d=function(e){var t=a.apply(I,Hn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new L(this);var g=e.apply(t,s);return g.__actions__.push({func:al,args:[d],thisArg:n}),new Wr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),Fn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=Et[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);I.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(G(i)?i:[],e)}return this[n](function(n){return t.apply(G(n)?n:[],e)})}}),Ki(L.prototype,function(e,t){var n=I[t];if(n){var r=n.name+``;F.call(nr,r)||(nr[r]=[]),nr[r].push({name:t,func:n})}}),nr[Mo(n,v).name]=[{name:`wrapper`,func:n}],L.prototype.clone=Gr,L.prototype.reverse=Kr,L.prototype.value=qr,I.prototype.at=ol,I.prototype.chain=sl,I.prototype.commit=cl,I.prototype.next=ll,I.prototype.plant=dl,I.prototype.reverse=fl,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=pl,I.prototype.first=I.prototype.head,Kt&&(I.prototype[Kt]=ul),I})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(xn._=Ir,define(function(){return Ir})):Cn?((Cn.exports=Ir)._=Ir,Sn._=Ir):xn._=Ir}).call(e)}))(),1),Qd=c({ModalDef:()=>jf,ModalHolder:()=>Mf,NiceModalContext:()=>rf,Provider:()=>Af,antdDrawer:()=>Ff,antdDrawerV5:()=>If,antdModal:()=>Nf,antdModalV5:()=>Pf,bootstrapDialog:()=>zf,create:()=>Tf,default:()=>Bf,hide:()=>xf,muiDialog:()=>Lf,muiDialogV5:()=>Rf,reducer:()=>df,register:()=>Ef,remove:()=>Sf,show:()=>bf,unregister:()=>Df,useModal:()=>wf}),$d=function(){return $d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$d.apply(this,arguments)},ef=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},tf=Symbol(`NiceModalId`),nf={},rf=O.createContext(nf),af=O.createContext(null),of={},sf={},cf=0,lf=function(){throw Error(`No dispatch method detected, did you embed your app with NiceModal.Provider?`)},uf=function(){return`_nice_modal_`+ cf++},df=function(e,t){var n,r,i;switch(e===void 0&&(e=nf),t.type){case`nice-modal/show`:var a=t.payload,o=a.modalId,s=a.args;return $d($d({},e),(n={},n[o]=$d($d({},e[o]),{id:o,args:s,visible:!!sf[o],delayVisible:!sf[o]}),n));case`nice-modal/hide`:var o=t.payload.modalId;return e[o]?$d($d({},e),(r={},r[o]=$d($d({},e[o]),{visible:!1}),r)):e;case`nice-modal/remove`:var o=t.payload.modalId,c=$d({},e);return delete c[o],c;case`nice-modal/set-flags`:var l=t.payload,o=l.modalId,u=l.flags;return $d($d({},e),(i={},i[o]=$d($d({},e[o]),u),i));default:return e}};function ff(e){return of[e]?.comp}function pf(e,t){return{type:`nice-modal/show`,payload:{modalId:e,args:t}}}function mf(e,t){return{type:`nice-modal/set-flags`,payload:{modalId:e,flags:t}}}function hf(e){return{type:`nice-modal/hide`,payload:{modalId:e}}}function gf(e){return{type:`nice-modal/remove`,payload:{modalId:e}}}var _f={},vf={},yf=function(e){return typeof e==`string`?e:(e[tf]||(e[tf]=uf()),e[tf])};function bf(e,t){var n=yf(e);if(typeof e!=`string`&&!of[n]&&Ef(n,e),lf(pf(n,t)),!_f[n]){var r,i,a=new Promise(function(e,t){r=e,i=t});_f[n]={resolve:r,reject:i,promise:a}}return _f[n].promise}function xf(e){var t=yf(e);if(lf(hf(t)),delete _f[t],!vf[t]){var n,r,i=new Promise(function(e,t){n=e,r=t});vf[t]={resolve:n,reject:r,promise:i}}return vf[t].promise}var Sf=function(e){var t=yf(e);lf(gf(t)),delete _f[t],delete vf[t]},Cf=function(e,t){lf(mf(e,t))};function wf(e,t){var n=(0,O.useContext)(rf),r=(0,O.useContext)(af),i=null,a=e&&typeof e!=`string`;if(i=e?yf(e):r,!i)throw Error(`No modal id found in NiceModal.useModal.`);var o=i;(0,O.useEffect)(function(){a&&!of[o]&&Ef(o,e,t)},[a,o,e,t]);var s=n[o],c=(0,O.useCallback)(function(e){return bf(o,e)},[o]),l=(0,O.useCallback)(function(){return xf(o)},[o]),u=(0,O.useCallback)(function(){return Sf(o)},[o]),d=(0,O.useCallback)(function(e){_f[o]?.resolve(e),delete _f[o]},[o]),f=(0,O.useCallback)(function(e){_f[o]?.reject(e),delete _f[o]},[o]),p=(0,O.useCallback)(function(e){vf[o]?.resolve(e),delete vf[o]},[o]);return(0,O.useMemo)(function(){return{id:o,args:s?.args,visible:!!s?.visible,keepMounted:!!s?.keepMounted,show:c,hide:l,remove:u,resolve:d,reject:f,resolveHide:p}},[o,s?.args,s?.visible,s?.keepMounted,c,l,u,d,f,p])}var Tf=function(e){return function(t){var n=t.defaultVisible,r=t.keepMounted,i=t.id,a=ef(t,[`defaultVisible`,`keepMounted`,`id`]),o=wf(i),s=o.args,c=o.show,l=(0,O.useContext)(rf),u=!!l[i];(0,O.useEffect)(function(){return n&&c(),sf[i]=!0,function(){delete sf[i]}},[i,c,n]),(0,O.useEffect)(function(){r&&Cf(i,{keepMounted:!0})},[i,r]);var d=l[i]?.delayVisible;return(0,O.useEffect)(function(){d&&c(s)},[d,s,c]),u?O.createElement(af.Provider,{value:i},O.createElement(e,$d({},a,s))):null}},Ef=function(e,t,n){of[e]?of[e].props=n:of[e]={comp:t,props:n}},Df=function(e){delete of[e]},Of=function(){var e=(0,O.useContext)(rf),t=Object.keys(e).filter(function(t){return!!e[t]});t.forEach(function(e){if(!of[e]&&!sf[e]){console.warn(`No modal found for id: `+e+`. Please check the id or if it is registered or declared via JSX.`);return}});var n=t.filter(function(e){return of[e]}).map(function(e){return $d({id:e},of[e])});return O.createElement(O.Fragment,null,n.map(function(e){return O.createElement(e.comp,$d({key:e.id,id:e.id},e.props))}))},kf=function(e){var t=e.children,n=(0,O.useReducer)(df,nf),r=n[0];return lf=n[1],O.createElement(rf.Provider,{value:r},t,O.createElement(Of,null))},Af=function(e){var t=e.children,n=e.dispatch,r=e.modals;return!n||!r?O.createElement(kf,null,t):(lf=n,O.createElement(rf.Provider,{value:r},t,O.createElement(Of,null)))},jf=function(e){var t=e.id,n=e.component;return(0,O.useEffect)(function(){return Ef(t,n),function(){Df(t)}},[t,n]),null},Mf=function(e){var t=e.modal,n=e.handler,r=n===void 0?{}:n,i=ef(e,[`modal`,`handler`]),a=(0,O.useMemo)(function(){return uf()},[]),o=typeof t==`string`?of[t]?.comp:t;if(!r)throw Error(`No handler found in NiceModal.ModalHolder.`);if(!o)throw Error(`No modal found for id: `+t+` in NiceModal.ModalHolder.`);return r.show=(0,O.useCallback)(function(e){return bf(a,e)},[a]),r.hide=(0,O.useCallback)(function(){return xf(a)},[a]),O.createElement(o,$d({id:a},i))},Nf=function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},Pf=function(e){var t=Nf(e),n=t.onOk,r=t.onCancel,i=t.afterClose;return{open:e.visible,onOk:n,onCancel:r,afterClose:i}},Ff=function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},If=function(e){var t=Ff(e),n=t.onClose,r=t.afterVisibleChange;return{open:e.visible,onClose:n,afterOpenChange:r}},Lf=function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},Rf=function(e){return{open:e.visible,onClose:function(){return e.hide()},TransitionProps:{onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}},zf=function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},Bf={Provider:Af,ModalDef:jf,ModalHolder:Mf,NiceModalContext:rf,create:Tf,register:Ef,getModal:ff,show:bf,hide:xf,remove:Sf,useModal:wf,reducer:df,antdModal:Nf,antdDrawer:Ff,muiDialog:Lf,bootstrapDialog:zf},Vf=u(s(((e,t)=>{var n=[],r={},i={},a=typeof window<`u`&&window.document!==void 0,o=typeof process<`u`&&process.versions!=null&&process.versions.node!=null,s=a&&document.location.search.includes(`JS_PLUGIN_DEBUG`)||o&&{}.JS_PLUGIN_DEBUG;function c(e){return!!(e.constructor&&e.call&&e.apply)}function l(e,t){for(var n=t.split(`.`),r=0;r<n.length;r++){if(!(n[r]in e))return;e=e[n[r]]}return e}function u(e,t){for(var n=t.split(`.`),r=0;r<n.length;r++){if(!(n[r]in e))return;e=e[n[r]]}return!0}t.exports={config:{},register:function(e){if(!e.name)throw console.log(`Every plugin should have a name.`),console.log(e),Error(`Every plugin should have a name.`);if(r[e.name])throw Error(`Plugin "`+e.name+`" already exits.`);i={},n=n.slice();var t=n.length;n.forEach((n,r)=>{n.deps&&n.deps.indexOf(e.name)>=0&&(t=Math.min(t,r))}),n.splice(t,0,e),r[e.name]=e,e.initialize&&e.initialize()},unregister:function(e){var t=r[e];if(!t)throw Error(`Plugin "`+e+`" does't exist.`);var a=n.indexOf(t);if(a===-1)throw Error(`Plugin "`+e+`" does't exist in _plugins but in _byName. This seems to be a bug of js-plugin.`);i={},delete r[e],n=n.slice(),n.splice(a,1)},getPlugin:function(e){return r[e]},getPlugins:function(e){return e||=`.`,i[e]||(i[e]=n.filter(t=>{if(t.deps&&t.deps.some(e=>!r[e])){let e=t.deps.filter(e=>!r[e]);return console.log(`Plugin ${t.name} is not loaded because its deps do not exist: ${e}.`),!1}return e===`.`?!0:u(t,e)})),i[e]},processRawPlugins:function(e){e(n),i={}},invoke:function(e){var t=Array.prototype.slice.call(arguments,1);if(!e)throw Error(`Invoke on plugin should have prop argument`);var n=/^!/.test(e),r=this.config.throws||/!$/.test(e);e=e.replace(/^!|!$/g,``);var i=e.split(`.`);i.pop();var a=i.join(`.`);return this.getPlugins(e).map(function(i){var o=l(i,e);if(!c(o)||n)return o;try{return s&&console.log(`Before`,i.name,e,t),o.apply(l(i,a),t)}catch(t){if(console.log(`Failed to invoke plugin: `+i.name+`!`+e),r)throw t;console.log(t)}finally{s&&console.log(`After `,i.name,e,t)}return null})},sort:function(e,t){t||=`order`,e.sort((e,n)=>(e.hasOwnProperty(t)?e[t]:1e6)-(n.hasOwnProperty(t)?n[t]:1e6))}}}))(),1),Hf=c({__DO_NOT_USE__ActionTypes:()=>Kf,applyMiddleware:()=>tp,bindActionCreators:()=>$f,combineReducers:()=>Zf,compose:()=>ep,createStore:()=>Jf,isAction:()=>np,isPlainObject:()=>qf,legacy_createStore:()=>Yf});function Uf(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 Wf=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Gf=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Kf={INIT:`@@redux/INIT${Gf()}`,REPLACE:`@@redux/REPLACE${Gf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Gf()}`};function qf(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jf(e,t,n){if(typeof e!=`function`)throw Error(Uf(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Uf(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Uf(1));return n(Jf)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Uf(3));return i}function d(e){if(typeof e!=`function`)throw Error(Uf(4));if(c)throw Error(Uf(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Uf(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!qf(e))throw Error(Uf(7));if(e.type===void 0)throw Error(Uf(8));if(typeof e.type!=`string`)throw Error(Uf(17));if(c)throw Error(Uf(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Uf(10));r=e,f({type:Kf.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Uf(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Wf](){return this}}}return f({type:Kf.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Wf]:m}}function Yf(e,t,n){return Jf(e,t,n)}function Xf(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Kf.INIT})===void 0)throw Error(Uf(12));if(n(void 0,{type:Kf.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Uf(13))})}function Zf(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{Xf(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(Uf(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function Qf(e,t){return function(...n){return t(e.apply(this,n))}}function $f(e,t){if(typeof e==`function`)return Qf(e,t);if(typeof e!=`object`||!e)throw Error(Uf(16));let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=Qf(i,t))}return n}function ep(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function tp(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Uf(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=ep(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function np(e){return qf(e)&&`type`in e&&typeof e.type==`string`}var rp=c({thunk:()=>ap,withExtraArgument:()=>op});function ip(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var ap=ip(),op=ip,sp=c({default:()=>cp}),cp={},lp=c({default:()=>dp}),up=[];function dp(e=cp,t){let n;switch(t.type){default:n=e;break}return up.reduce((e,n)=>n(e,t),n)}var fp=c({default:()=>pp}),pp={},mp=c({default:()=>gp}),hp=[];function gp(e=pp,t){let n;switch(t.type){default:n=e;break}return hp.reduce((e,n)=>n(e,t),n)}var _p=c({default:()=>vp}),vp={subAppState:{}},yp=c({SUB_APP_CLEAR_SUB_APP_STATE:()=>xp,SUB_APP_SET_SUB_APP_STATE:()=>bp}),bp=`SUB_APP_SET_SUB_APP_STATE`,xp=`SUB_APP_CLEAR_SUB_APP_STATE`,Sp=c({clearSubAppState:()=>wp,reducer:()=>Ep,setSubAppState:()=>Cp,useSetSubAppState:()=>Tp});function Cp(e){return{type:bp,data:e}}function wp(){return{type:xp}}function Tp(){let e=dt();return{subAppState:mt(e=>e.subApp.subAppState),setSubAppState:(0,O.useCallback)((...t)=>e(Cp(...t)),[e]),clearSubAppState:(0,O.useCallback)((...t)=>e(wp(...t)),[e])}}function Ep(e,t){switch(t.type){case bp:return{...e,subAppState:t.data};case xp:return{...e,subAppState:{}};default:return e}}var Dp=c({default:()=>kp}),Op=[Ep];function kp(e=vp,t){let n;switch(t.type){default:n=e;break}return Op.reduce((e,n)=>n(e,t),n)}var Ap=c({default:()=>Mp}),jp={modals:Bf.reducer,home:dp,common:gp,subApp:kp},Mp=()=>(Vf.default.getPlugins(`reducer`).forEach(e=>{let t=Zd.default.camelCase(`plugin-${e.name}`);jp[t]?console.error(`Duplicated reducer key for plugin: `,e.name):jp[t]=e.reducer}),Vf.default.getPlugins(`reducers`).forEach(e=>{Object.keys(e.reducers).forEach(t=>{jp[t]=e.reducers[t]})}),Zf(jp)),Np=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r(n.reduxLogger=n.reduxLogger||{})})(e,function(e){function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function n(e,t){Object.defineProperty(this,`kind`,{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,`path`,{value:t,enumerable:!0})}function r(e,t,n){r.super_.call(this,`E`,e),Object.defineProperty(this,`lhs`,{value:t,enumerable:!0}),Object.defineProperty(this,`rhs`,{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,`N`,e),Object.defineProperty(this,`rhs`,{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,`D`,e),Object.defineProperty(this,`lhs`,{value:t,enumerable:!0})}function o(e,t,n){o.super_.call(this,`A`,e),Object.defineProperty(this,`index`,{value:t,enumerable:!0}),Object.defineProperty(this,`item`,{value:n,enumerable:!0})}function s(e,t,n){var r=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,r),e}function c(e){var t=e===void 0?`undefined`:O(e);return t===`object`?e===Math?`math`:e===null?`null`:Array.isArray(e)?`array`:Object.prototype.toString.call(e)===`[object Date]`?`date`:typeof e.toString==`function`&&/^\/.*\//.test(e.toString())?`regexp`:`object`:t}function l(e,t,n,u,d,f,p){d||=[],p||=[];var m=d.slice(0);if(f!==void 0){if(u){if(typeof u==`function`&&u(m,f))return;if((u===void 0?`undefined`:O(u))===`object`){if(u.prefilter&&u.prefilter(m,f))return;if(u.normalize){var h=u.normalize(m,f,e,t);h&&(e=h[0],t=h[1])}}}m.push(f)}c(e)===`regexp`&&c(t)===`regexp`&&(e=e.toString(),t=t.toString());var g=e===void 0?`undefined`:O(e),_=t===void 0?`undefined`:O(t),v=g!==`undefined`||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(f),y=_!==`undefined`||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(f);if(!v&&y)n(new i(m,t));else if(!y&&v)n(new a(m,e));else if(c(e)!==c(t))n(new r(m,e,t));else if(c(e)===`date`&&e-t!==0)n(new r(m,e,t));else if(g===`object`&&e!==null&&t!==null)if(p.filter(function(t){return t.lhs===e}).length)e!==t&&n(new r(m,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){var b;for(e.length,b=0;b<e.length;b++)b>=t.length?n(new o(m,b,new a(void 0,e[b]))):l(e[b],t[b],n,u,m,b,p);for(;b<t.length;)n(new o(m,b,new i(void 0,t[b++])))}else{var x=Object.keys(e),S=Object.keys(t);x.forEach(function(r,i){var a=S.indexOf(r);a>=0?(l(e[r],t[r],n,u,m,r,p),S=s(S,a)):l(e[r],void 0,n,u,m,r,p)}),S.forEach(function(e){l(void 0,t[e],n,u,m,e,p)})}--p.length}else e!==t&&(g===`number`&&isNaN(e)&&isNaN(t)||n(new r(m,e,t)))}function u(e,t,n,r){return r||=[],l(e,t,function(e){e&&r.push(e)},n),r.length?r:void 0}function d(e,t,n){if(n.path&&n.path.length){var r,i=e[t],a=n.path.length-1;for(r=0;r<a;r++)i=i[n.path[r]];switch(n.kind){case`A`:d(i[n.path[r]],n.index,n.item);break;case`D`:delete i[n.path[r]];break;case`E`:case`N`:i[n.path[r]]=n.rhs}}else switch(n.kind){case`A`:d(e[t],n.index,n.item);break;case`D`:e=s(e,t);break;case`E`:case`N`:e[t]=n.rhs}return e}function f(e,t,n){if(e&&t&&n&&n.kind){for(var r=e,i=-1,a=n.path?n.path.length-1:0;++i<a;)r[n.path[i]]===void 0&&(r[n.path[i]]=typeof n.path[i]==`number`?[]:{}),r=r[n.path[i]];switch(n.kind){case`A`:d(n.path?r[n.path[i]]:r,n.index,n.item);break;case`D`:delete r[n.path[i]];break;case`E`:case`N`:r[n.path[i]]=n.rhs}}}function p(e,t,n){if(n.path&&n.path.length){var r,i=e[t],a=n.path.length-1;for(r=0;r<a;r++)i=i[n.path[r]];switch(n.kind){case`A`:p(i[n.path[r]],n.index,n.item);break;case`D`:i[n.path[r]]=n.lhs;break;case`E`:i[n.path[r]]=n.lhs;break;case`N`:delete i[n.path[r]]}}else switch(n.kind){case`A`:p(e[t],n.index,n.item);break;case`D`:e[t]=n.lhs;break;case`E`:e[t]=n.lhs;break;case`N`:e=s(e,t)}return e}function m(e,t,n){if(e&&t&&n&&n.kind){var r,i,a=e;for(i=n.path.length-1,r=0;r<i;r++)a[n.path[r]]===void 0&&(a[n.path[r]]={}),a=a[n.path[r]];switch(n.kind){case`A`:p(a[n.path[r]],n.index,n.item);break;case`D`:a[n.path[r]]=n.lhs;break;case`E`:a[n.path[r]]=n.lhs;break;case`N`:delete a[n.path[r]]}}}function h(e,t,n){e&&t&&l(e,t,function(r){n&&!n(e,t,r)||f(e,t,r)})}function g(e){return`color: `+re[e].color+`; font-weight: bold`}function _(e){var t=e.kind,n=e.path,r=e.lhs,i=e.rhs,a=e.index,o=e.item;switch(t){case`E`:return[n.join(`.`),r,`→`,i];case`N`:return[n.join(`.`),i];case`D`:return[n.join(`.`)];case`A`:return[n.join(`.`)+`[`+a+`]`,o];default:return[]}}function v(e,t,n,r){var i=u(e,t);try{r?n.groupCollapsed(`diff`):n.group(`diff`)}catch{n.log(`diff`)}i?i.forEach(function(e){var t=e.kind,r=_(e);n.log.apply(n,[`%c `+re[t].text,g(t)].concat(te(r)))}):n.log(`—— no diff ——`);try{n.groupEnd()}catch{n.log(`—— diff end —— `)}}function y(e,t,n,r){switch(e===void 0?`undefined`:O(e)){case`object`:return typeof e[r]==`function`?e[r].apply(e,te(n)):e[r];case`function`:return e(t);default:return e}}function b(e){var t=e.timestamp,n=e.duration;return function(e,r,i){var a=[`action`];return a.push(`%c`+String(e.type)),t&&a.push(`%c@ `+r),n&&a.push(`%c(in `+i.toFixed(2)+` ms)`),a.join(` `)}}function x(e,t){var n=t.logger,r=t.actionTransformer,i=t.titleFormatter,a=i===void 0?b(t):i,o=t.collapsed,s=t.colors,c=t.level,l=t.diff,u=t.titleFormatter===void 0;e.forEach(function(i,d){var f=i.started,p=i.startedTime,m=i.action,h=i.prevState,g=i.error,_=i.took,b=i.nextState,x=e[d+1];x&&(b=x.prevState,_=x.started-f);var S=r(m),C=typeof o==`function`?o(function(){return b},m,i):o,w=ee(p),T=s.title?`color: `+s.title(S)+`;`:``,E=[`color: gray; font-weight: lighter;`];E.push(T),t.timestamp&&E.push(`color: gray; font-weight: lighter;`),t.duration&&E.push(`color: gray; font-weight: lighter;`);var D=a(S,w,_);try{C?s.title&&u?n.groupCollapsed.apply(n,[`%c `+D].concat(E)):n.groupCollapsed(D):s.title&&u?n.group.apply(n,[`%c `+D].concat(E)):n.group(D)}catch{n.log(D)}var O=y(c,S,[h],`prevState`),te=y(c,S,[S],`action`),ne=y(c,S,[g,h],`error`),re=y(c,S,[b],`nextState`);if(O)if(s.prevState){var ie=`color: `+s.prevState(h)+`; font-weight: bold`;n[O](`%c prev state`,ie,h)}else n[O](`prev state`,h);if(te)if(s.action){var k=`color: `+s.action(S)+`; font-weight: bold`;n[te](`%c action `,k,S)}else n[te](`action `,S);if(g&&ne)if(s.error){var ae=`color: `+s.error(g,h)+`; font-weight: bold;`;n[ne](`%c error `,ae,g)}else n[ne](`error `,g);if(re)if(s.nextState){var A=`color: `+s.nextState(b)+`; font-weight: bold`;n[re](`%c next state`,A,b)}else n[re](`next state`,b);l&&v(h,b,n,C);try{n.groupEnd()}catch{n.log(`—— log end ——`)}})}function S(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Object.assign({},ie,e),n=t.logger,r=t.stateTransformer,i=t.errorTransformer,a=t.predicate,o=t.logErrors,s=t.diffPredicate;if(n===void 0)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error(`[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:
72
+ // Logger with default options
73
+ import { logger } from 'redux-logger'
74
+ const store = createStore(
75
+ reducer,
76
+ applyMiddleware(logger)
77
+ )
78
+ // Or you can create your own logger with custom options http://bit.ly/redux-logger-options
79
+ import createLogger from 'redux-logger'
80
+ const logger = createLogger({
81
+ // ...options
82
+ });
83
+ const store = createStore(
84
+ reducer,
85
+ applyMiddleware(logger)
86
+ )
87
+ `),function(){return function(e){return function(t){return e(t)}}};var c=[];return function(e){var n=e.getState;return function(e){return function(l){if(typeof a==`function`&&!a(n,l))return e(l);var u={};c.push(u),u.started=D.now(),u.startedTime=new Date,u.prevState=r(n()),u.action=l;var d=void 0;if(o)try{d=e(l)}catch(e){u.error=i(e)}else d=e(l);u.took=D.now()-u.started,u.nextState=r(n());var f=t.diff&&typeof s==`function`?s(n,l):t.diff;if(x(c,Object.assign({},t,{diff:f})),c.length=0,u.error)throw u.error;return d}}}}var C,w,T=function(e,t){return Array(t+1).join(e)},E=function(e,t){return T(`0`,t-e.toString().length)+e},ee=function(e){return E(e.getHours(),2)+`:`+E(e.getMinutes(),2)+`:`+E(e.getSeconds(),2)+`.`+E(e.getMilliseconds(),3)},D=typeof performance<`u`&&performance!==null&&typeof performance.now==`function`?performance:Date,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},te=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},ne=[];C=(typeof global>`u`?`undefined`:O(global))===`object`&&global?global:typeof window<`u`?window:{},w=C.DeepDiff,w&&ne.push(function(){w!==void 0&&C.DeepDiff===u&&(C.DeepDiff=w,w=void 0)}),t(r,n),t(i,n),t(a,n),t(o,n),Object.defineProperties(u,{diff:{value:u,enumerable:!0},observableDiff:{value:l,enumerable:!0},applyDiff:{value:h,enumerable:!0},applyChange:{value:f,enumerable:!0},revertChange:{value:m,enumerable:!0},isConflict:{value:function(){return w!==void 0},enumerable:!0},noConflict:{value:function(){return ne&&=(ne.forEach(function(e){e()}),null),u},enumerable:!0}});var re={E:{color:`#2196F3`,text:`CHANGED:`},N:{color:`#4CAF50`,text:`ADDED:`},D:{color:`#F44336`,text:`DELETED:`},A:{color:`#2196F3`,text:`ARRAY:`}},ie={level:`log`,logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return`inherit`},prevState:function(){return`#9E9E9E`},action:function(){return`#03A9F4`},nextState:function(){return`#4CAF50`},error:function(){return`#F20404`}},diff:!1,diffPredicate:void 0,transformer:void 0},k=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.dispatch,n=e.getState;return typeof t==`function`||typeof n==`function`?S()({dispatch:t,getState:n}):void console.error(`
88
+ [redux-logger v3] BREAKING CHANGE
89
+ [redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.
90
+ [redux-logger v3] Change
91
+ [redux-logger v3] import createLogger from 'redux-logger'
92
+ [redux-logger v3] to
93
+ [redux-logger v3] import { createLogger } from 'redux-logger'
94
+ `)};e.defaults=ie,e.createLogger=S,e.logger=k,e.default=k,Object.defineProperty(e,`__esModule`,{value:!0})})})),Pp=c({default:()=>Lp}),Fp=[ap],Ip=e=>e;function Lp(e){return Jf(Mp(),e,ep(tp(...Fp),Ip))}var Rp=c({default:()=>zp}),zp={store:null,getStore(){return this.store||=Lp(),this.store},getState(){return this.getStore().getState()},dispatch(e){return this.getStore().dispatch(e)},subscribe(e){return this.getStore().subscribe(e)},replaceReducer(e){return this.getStore().replaceReducer(e)}},Bp=c({default:()=>Vp});function Vp(){let e=oa();(0,O.useEffect)(()=>(window.MUSE_GLOBAL?.msgEngine?.addListener(`muse-react_history`,t=>{let n=document.location.href.replace(document.location.origin,``);t.type===`parent-route-change`&&t.path!==n&&(console.log(`parent-route-change: `,t.path),e(t.path))}),()=>{window.MUSE_GLOBAL?.msgEngine?.removeListener(`muse-react_history`)}),[e])}var Hp=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Up=s((e=>{})),Wp=s(((e,t)=>{t.exports=Hp()})),Gp=c({default:()=>Kp}),X=u(Wp(),1);function Kp({children:e}){let t=Vf.default.getPlugins(`rootComponent`),n=Vf.default.invoke(`!home.mainLayout`);if(Vp(),n.length>1){let e=Vf.default.getPlugins(`home.mainLayout`).map(e=>e.name);return(0,X.jsxs)(`div`,{style:{color:`red`,margin:`20px`},children:[`Error: multiple layouts found from plugins: `,e.join(`, `),`. Each application should only have one main layout.`]})}let r=n[0],i=r?(0,X.jsx)(r,{children:e}):e;return(0,X.jsxs)(`div`,{className:`home-app muse-app`,children:[(0,X.jsx)(`div`,{className:`muse-app_main-page-container`,children:i}),(0,X.jsx)(`div`,{className:`muse-app_plugin-root-placeholder`,children:t.map(e=>(0,X.jsx)(e.rootComponent,{},e.name))})]})}var qp=c({default:()=>Jp}),Jp=``+new URL(`assets/logo-V3RbDVED.png`,import.meta.url).href,Yp=c({default:()=>Xp});function Xp(){return(0,X.jsxs)(`div`,{className:`home-homepage`,children:[(0,X.jsxs)(`header`,{className:`app-header`,children:[(0,X.jsx)(`img`,{src:Jp,className:`app-logo`,alt:`logo`}),(0,X.jsx)(`h1`,{className:`app-title`,children:`Welcome to Muse!`})]}),(0,X.jsxs)(`div`,{className:`app-intro`,children:[(0,X.jsx)(`p`,{className:`memo`,children:`This is the default homepage of a Muse application.`}),(0,X.jsx)(`h3`,{children:`To get started:`}),(0,X.jsxs)(`ul`,{children:[(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://go/muse`,children:`Read docs`}),` for Muse.`]}),(0,X.jsxs)(`li`,{children:[`Join the slack channel`,` `,(0,X.jsx)(`a`,{href:`https://ebay-eng.slack.com/archives/C0194Q1V8G1`,children:`#muse`}),`.`]}),(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/get-started/first-plugin`,children:`Create a plugin`}),` `,`and`,` `,(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/get-started/customize-layout`,children:`define the layout/homepage`}),` `,`for the application.`]}),(0,X.jsxs)(`li`,{children:[(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/muse-management/plugin-management#build-a-plugin`,children:`Build`}),` `,`and`,` `,(0,X.jsx)(`a`,{href:`https://pages.github.corp.ebay.com/muse/muse-site/docs/muse-management/plugin-management#deploy-a-plugin`,children:`deploy`}),` `,`the Muse plugin to the application.`]})]})]})]})}var Zp=c({App:()=>Kp,Homepage:()=>Xp}),Qp=c({default:()=>$p});function $p(){return(0,X.jsx)(`div`,{className:`common-page-not-found`,children:`Page not found.`})}var em=c({default:()=>tm}),tm=class extends O.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}render(){return this.state.hasError?(0,X.jsx)(`div`,{className:`common-error-boundary`,children:this.props.message||`Something went wrong.`}):this.props.children}},nm=c({extendArray:()=>rm}),rm=(e,t,n,...r)=>{let i=t.charAt(0).toUpperCase()+t.slice(1);Vf.default.invoke(`${n}.preProcess${i}`,...r);let a=Zd.default.flatten(Vf.default.invoke(`${n}.get${i}`,...r));return e.push(...a),Vf.default.invoke(`${n}.process${i}`,...r),Vf.default.invoke(`${n}.postProcess${i}`,...r),Vf.default.sort(e),e},im=c({default:()=>am});function am({items:e=[],extName:t=`items`,extBase:n,extArgs:r}){rm(e,t,n,r);let i=[];return e.filter(Boolean).forEach(e=>{let t;e.render?t=e.render():e.content?t=e.content:e.component&&(t=(0,X.jsx)(e.component,{...e.props},e.key)),i.push(t)}),i}var om=c({default:()=>sm});function sm(e,t){let n=Vf.default.invoke(`!`+e,t),[r,i]=(0,O.useState)([]),a=(0,O.useCallback)(e=>{i(Zd.default.flatten([...r,e]))},[r]);return{extNode:(0,X.jsx)(X.Fragment,{children:n.map((e,n)=>(0,X.jsx)(e,{callback:a,...t},n))}),values:r}}var cm=c({default:()=>lm});function lm(){return(0,X.jsxs)(`div`,{style:{padding:`40px`,textAlign:`center`},children:[(0,X.jsx)(`h1`,{style:{fontSize:`48px`,color:`#1890ff`,marginBottom:`20px`},children:`Test Page 1`}),(0,X.jsx)(`p`,{style:{fontSize:`18px`,color:`#666`},children:`This is a test page to verify the routing and code splitting. You can add your test cases here.`}),(0,X.jsx)(`p`,{style:{fontSize:`14px`,color:`#999`,marginTop:`20px`},children:`Route: /test1`})]})}var um=c({default:()=>dm});function dm(){return(0,X.jsxs)(`div`,{style:{padding:`40px`,textAlign:`center`},children:[(0,X.jsx)(`h1`,{style:{fontSize:`48px`,color:`#1890ff`,marginBottom:`20px`},children:`Hello World!`}),(0,X.jsx)(`p`,{style:{fontSize:`18px`,color:`#666`},children:`Welcome to your MUSE plugin. This is a simple hello world page.`}),(0,X.jsx)(`p`,{style:{fontSize:`14px`,color:`#999`,marginTop:`20px`},children:`Route: /hello`}),(0,X.jsx)(lm,{})]})}var fm=c({ErrorBoundary:()=>tm,HelloWorld:()=>dm,Nodes:()=>am,PageNotFound:()=>$p,useExtPoint:()=>sm}),pm=c({default:()=>mm}),mm={path:`home`,name:`Home`,childRoutes:[]},hm=c({default:()=>gm}),gm={path:`common`,name:`Common`,childRoutes:[{path:`/hello`,name:`Hello World`,component:dm}]},_m=c({default:()=>vm}),vm=function(e){return function(){var t=[...arguments];return(0,O.useMemo)(function(){return e.apply(void 0,t)},t)}},ym=c({default:()=>bm}),bm=function(e,t){var n=(0,O.createContext)(void 0),r=function(e,t){return(0,O.createElement)(n.Provider,e,t)};return[function(){var e=(0,O.useContext)(n);if(e==null)throw Error(`useReducerContext must be used inside a ReducerProvider.`);return e},function(n){var i=n.children,a=n.initialState;return r({value:(0,O.useReducer)(e,a===void 0?t:a)},i)},n]},xm=c({useFirstMountState:()=>Sm});function Sm(){var e=(0,O.useRef)(!0);return e.current?(e.current=!1,!0):e.current}var Cm=c({default:()=>wm}),wm=function(e,t){var n=Sm();(0,O.useEffect)(function(){if(!n)return e()},t)},Tm=c({default:()=>Dm});function Em(e){return function(t,n){return e.reduceRight(function(e,n){return n(t)(e)},n)}}var Dm=function(){var e=Em([...arguments]);return function(t,n,r){r===void 0&&(r=function(e){return e});var i=(0,O.useRef)(r(n)),a=(0,O.useState)(i.current)[1],o=(0,O.useCallback)(function(e){return i.current=t(i.current,e),a(i.current),e},[t]),s=(0,O.useRef)(e({getState:function(){return i.current},dispatch:function(){var e=[...arguments];return s.current.apply(s,e)}},o));return wm(function(){s.current=e({getState:function(){return i.current},dispatch:function(){var e=[...arguments];return s.current.apply(s,e)}},o)},[o]),[i.current,s.current]}},Om=c({default:()=>km}),km=function(e){var t=(0,O.createContext)(void 0),n=function(e,n){return(0,O.createElement)(t.Provider,e,n)};return[function(){var e=(0,O.useContext)(t);if(e==null)throw Error(`useStateContext must be used inside a StateProvider.`);return e},function(t){var r=t.children,i=t.initialValue;return n({value:(0,O.useState)(i===void 0?e:i)},r)},t]},Am=c({__addDisposableResource:()=>ih,__assign:()=>ch,__asyncDelegator:()=>Xm,__asyncGenerator:()=>Ym,__asyncValues:()=>Zm,__await:()=>Jm,__awaiter:()=>Bm,__classPrivateFieldGet:()=>th,__classPrivateFieldIn:()=>rh,__classPrivateFieldSet:()=>nh,__createBinding:()=>lh,__decorate:()=>Nm,__disposeResources:()=>ah,__esDecorate:()=>Fm,__exportStar:()=>Hm,__extends:()=>jm,__generator:()=>Vm,__importDefault:()=>eh,__importStar:()=>$m,__makeTemplateObject:()=>Qm,__metadata:()=>zm,__param:()=>Pm,__propKey:()=>Lm,__read:()=>Wm,__rest:()=>Mm,__rewriteRelativeImportExtension:()=>oh,__runInitializers:()=>Im,__setFunctionName:()=>Rm,__spread:()=>Gm,__spreadArray:()=>qm,__spreadArrays:()=>Km,__values:()=>Um,default:()=>ph});function jm(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);sh(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Mm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Nm(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function Pm(e,t){return function(n,r){t(n,r,e)}}function Fm(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function Im(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function Lm(e){return typeof e==`symbol`?e:`${e}`}function Rm(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function zm(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function Bm(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Vm(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Hm(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&lh(t,e,n)}function Um(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Wm(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Gm(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Wm(arguments[t]));return e}function Km(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function qm(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Jm(e){return this instanceof Jm?(this.v=e,this):new Jm(e)}function Ym(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Jm?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function Xm(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:Jm(e[r](t)),done:!1}:i?i(t):t}:i}}function Zm(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Um==`function`?Um(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Qm(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function $m(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=dh(e),r=0;r<n.length;r++)n[r]!==`default`&&lh(t,e,n[r]);return uh(t,e),t}function eh(e){return e&&e.__esModule?e:{default:e}}function th(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function nh(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}function rh(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function ih(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function ah(e){function t(t){e.error=e.hasError?new fh(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function oh(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var sh,ch,lh,uh,dh,fh,ph,mh=o((()=>{sh=function(e,t){return sh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},sh(e,t)},ch=function(){return ch=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ch.apply(this,arguments)},lh=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),uh=Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t},dh=function(e){return dh=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},dh(e)},fh=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},ph={__extends:jm,__assign:ch,__rest:Mm,__decorate:Nm,__param:Pm,__esDecorate:Fm,__runInitializers:Im,__propKey:Lm,__setFunctionName:Rm,__metadata:zm,__awaiter:Bm,__generator:Vm,__createBinding:lh,__exportStar:Hm,__values:Um,__read:Wm,__spread:Gm,__spreadArrays:Km,__spreadArray:qm,__await:Jm,__asyncGenerator:Ym,__asyncDelegator:Xm,__asyncValues:Zm,__makeTemplateObject:Qm,__importStar:$m,__importDefault:eh,__classPrivateFieldGet:th,__classPrivateFieldSet:nh,__classPrivateFieldIn:rh,__addDisposableResource:ih,__disposeResources:ah,__rewriteRelativeImportExtension:oh}}));mh();var hh=c({default:()=>gh});function gh(){var e=(0,O.useRef)(!1),t=(0,O.useCallback)(function(){return e.current},[]);return(0,O.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t}var _h=c({default:()=>vh});function vh(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=(0,O.useRef)(0),i=gh(),a=(0,O.useState)(n),o=a[0],s=a[1];return[o,(0,O.useCallback)(function(){var t=[...arguments],n=++r.current;return o.loading||s(function(e){return ch(ch({},e),{loading:!0})}),e.apply(void 0,t).then(function(e){return i()&&n===r.current&&s({value:e,loading:!1}),e},function(e){return i()&&n===r.current&&s({error:e,loading:!1}),e})},t)]}var yh=c({default:()=>bh});function bh(e,t){t===void 0&&(t=[]);var n=vh(e,t,{loading:!0}),r=n[0],i=n[1];return(0,O.useEffect)(function(){i()},[i]),r}var xh=c({default:()=>Sh});mh();var Sh=function(e,t){t===void 0&&(t=[]);var n=(0,O.useState)(0),r=n[0],i=n[1],a=bh(e,Km(t,[r])),o=a.loading,s=(0,O.useCallback)(function(){o||i(function(e){return e+1})},Km(t,[o]));return ch(ch({},a),{retry:s})},Ch=c({default:()=>wh}),wh=function(e){e===void 0&&(e={});var t=(0,O.useState)(e),n=t[0],r=t[1];return[n,(0,O.useCallback)(function(e){r(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]},Th=c({default:()=>Eh});function Eh(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}var Dh=c({default:()=>Oh});mh();function Oh(e){return function(t){var n,r;O.isValidElement(t)?(n=t,r=n.props):r=t;var i=wh({buffered:[],time:0,duration:0,paused:!0,muted:!1,volume:1,playing:!1}),a=i[0],o=i[1],s=(0,O.useRef)(null),c=function(e,t){return function(n){try{t&&t(n)}finally{e&&e(n)}}},l=function(){return o({paused:!1})},u=function(){return o({playing:!0})},d=function(){return o({playing:!1})},f=function(){return o({paused:!0,playing:!1})},p=function(){var e=s.current;e&&o({muted:e.muted,volume:e.volume})},m=function(){var e=s.current;if(e){var t=e.duration,n=e.buffered;o({duration:t,buffered:Eh(n)})}},h=function(){var e=s.current;e&&o({time:e.currentTime})},g=function(){var e=s.current;e&&o({buffered:Eh(e.buffered)})};n=n?O.cloneElement(n,ch(ch({controls:!1},r),{ref:s,onPlay:c(r.onPlay,l),onPlaying:c(r.onPlaying,u),onWaiting:c(r.onWaiting,d),onPause:c(r.onPause,f),onVolumeChange:c(r.onVolumeChange,p),onDurationChange:c(r.onDurationChange,m),onTimeUpdate:c(r.onTimeUpdate,h),onProgress:c(r.onProgress,g)})):O.createElement(e,ch(ch({controls:!1},r),{ref:s,onPlay:c(r.onPlay,l),onPlaying:c(r.onPlaying,u),onWaiting:c(r.onWaiting,d),onPause:c(r.onPause,f),onVolumeChange:c(r.onVolumeChange,p),onDurationChange:c(r.onDurationChange,m),onTimeUpdate:c(r.onTimeUpdate,h),onProgress:c(r.onProgress,g)}));var _=!1,v={play:function(){var e=s.current;if(e&&!_){var t=e.play();if(typeof t==`object`){_=!0;var n=function(){_=!1};t.then(n,n)}return t}},pause:function(){var e=s.current;if(e&&!_)return e.pause()},seek:function(e){var t=s.current;!t||a.duration===void 0||(e=Math.min(a.duration,Math.max(0,e)),t.currentTime=e)},volume:function(e){var t=s.current;t&&(e=Math.min(1,Math.max(0,e)),t.volume=e,o({volume:e}))},mute:function(){var e=s.current;e&&(e.muted=!0)},unmute:function(){var e=s.current;e&&(e.muted=!1)}};return(0,O.useEffect)(function(){var e=s.current;e&&(o({volume:e.volume,muted:e.muted,paused:e.paused}),r.autoPlay&&e.paused&&v.play())},[r.src]),[n,a,v,s]}}var kh=c({default:()=>Ah}),Ah=Oh(`audio`),jh=c({isBrowser:()=>Nh,isNavigator:()=>Ph,noop:()=>Mh,off:()=>Q,on:()=>Z}),Mh=function(){};function Z(e){var t=[...arguments].slice(1);e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Q(e){var t=[...arguments].slice(1);e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Nh=typeof window<`u`,Ph=typeof navigator<`u`,Fh=s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!(o===`_owner`&&t.$$typeof)&&!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),Ih=c({default:()=>Rh}),Lh=u(Fh()),Rh=Lh.default,zh=c({default:()=>Wh}),Bh=Ph?navigator:void 0,Vh=Bh&&typeof Bh.getBattery==`function`;function Hh(){return{isSupported:!1}}function Uh(){var e=(0,O.useState)({isSupported:!0,fetched:!1}),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=!0,r=null,i=function(){if(!(!e||!r)){var i={isSupported:!0,fetched:!0,level:r.level,charging:r.charging,dischargingTime:r.dischargingTime,chargingTime:r.chargingTime};!Rh(t,i)&&n(i)}};return Bh.getBattery().then(function(t){e&&(r=t,Z(r,`chargingchange`,i),Z(r,`chargingtimechange`,i),Z(r,`dischargingtimechange`,i),Z(r,`levelchange`,i),i())}),function(){e=!1,r&&(Q(r,`chargingchange`,i),Q(r,`chargingtimechange`,i),Q(r,`dischargingtimechange`,i),Q(r,`levelchange`,i))}},[]),t}var Wh=Vh?Uh:Hh,Gh=c({default:()=>Kh}),Kh=function(e,t){e===void 0&&(e=!0);var n=(0,O.useCallback)(function(n){if(typeof e!=`function`||e())return n.preventDefault(),t&&(n.returnValue=t),t},[e,t]);(0,O.useEffect)(function(){if(e)return Z(window,`beforeunload`,n),function(){return Q(window,`beforeunload`,n)}},[e,n])},qh=c({default:()=>Yh}),Jh=function(e,t){return typeof t==`boolean`?t:!e},Yh=function(e){return(0,O.useReducer)(Jh,e)},Xh=c({default:()=>Zh}),Zh=Yh,Qh=c({default:()=>eg}),$h=[`mousedown`,`touchstart`],eg=function(e,t,n){n===void 0&&(n=$h);var r=(0,O.useRef)(t);(0,O.useEffect)(function(){r.current=t},[t]),(0,O.useEffect)(function(){for(var t=function(t){var n=e.current;n&&!n.contains(t.target)&&r.current(t)},i=0,a=n;i<a.length;i++){var o=a[i];Z(document,o,t)}return function(){for(var e=0,r=n;e<r.length;e++){var i=r[e];Q(document,i,t)}}},[n,e])},tg=s(((e,t)=>{(function(n){var r;if(typeof define==`function`&&define.amd&&(define(n),r=!0),typeof e==`object`&&(t.exports=n(),r=!0),!r){var i=window.Cookies,a=window.Cookies=n();a.noConflict=function(){return window.Cookies=i,a}}})(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function a(t,n,a){if(!(typeof document>`u`)){a=e({path:`/`},i.defaults,a),typeof a.expires==`number`&&(a.expires=new Date(new Date*1+a.expires*864e5)),a.expires=a.expires?a.expires.toUTCString():``;try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch{}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s=``;for(var c in a)a[c]&&(s+=`; `+c,a[c]!==!0&&(s+=`=`+a[c].split(`;`)[0]));return document.cookie=t+`=`+n+s}}function o(e,n){if(!(typeof document>`u`)){for(var i={},a=document.cookie?document.cookie.split(`; `):[],o=0;o<a.length;o++){var s=a[o].split(`=`),c=s.slice(1).join(`=`);!n&&c.charAt(0)===`"`&&(c=c.slice(1,-1));try{var l=t(s[0]);if(c=(r.read||r)(c,l)||t(c),n)try{c=JSON.parse(c)}catch{}if(i[l]=c,e===l)break}catch{}}return e?i[e]:i}}return i.set=a,i.get=function(e){return o(e,!1)},i.getJSON=function(e){return o(e,!0)},i.remove=function(t,n){a(t,``,e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n(function(){})})})),ng=c({default:()=>ig}),rg=u(tg()),ig=function(e){var t=(0,O.useState)(function(){return rg.default.get(e)||null}),n=t[0],r=t[1];return[n,(0,O.useCallback)(function(t,n){rg.default.set(e,t,n),r(t)},[e]),(0,O.useCallback)(function(){rg.default.remove(e),r(null)},[e])]},ag=s(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),og=s(((e,t)=>{var n=ag(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o})),sg=c({default:()=>lg}),cg=u(og()),lg=function(){var e=gh(),t=wh({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1];return[n,(0,O.useCallback)(function(t){if(e()){var n,i;try{if(typeof t!=`string`&&typeof t!=`number`){var a=Error(`Cannot copy typeof `+typeof t+` to clipboard, must be a string`);r({value:t,error:a,noUserInteraction:!0});return}else if(t===``){var a=Error(`Cannot copy empty string to clipboard.`);r({value:t,error:a,noUserInteraction:!0});return}i=t.toString(),n=(0,cg.default)(i),r({value:i,error:void 0,noUserInteraction:n})}catch(e){r({value:i,error:e,noUserInteraction:n})}}},[])]},ug=c({default:()=>fg}),dg=function(e){return(e+1)%1e6};function fg(){return(0,O.useReducer)(dg,0)[1]}var pg=c({resolveHookState:()=>mg});function mg(e,t){return typeof e==`function`?e.length?e(t):e():e}var hg=c({default:()=>gg});function gg(e){var t=(0,O.useRef)(mg(e)),n=fg();return(0,O.useMemo)(function(){return[function(){return t.current},function(e){t.current=mg(e,t.current),n()}]},[])}var _g=c({default:()=>vg});function vg(e,t,n){e===void 0&&(e=0),t===void 0&&(t=null),n===void 0&&(n=null);var r=mg(e);typeof r!=`number`&&console.error(`initialValue has to be a number, got `+typeof e),typeof n==`number`?r=Math.max(r,n):n!==null&&console.error(`min has to be a number, got `+typeof n),typeof t==`number`?r=Math.min(r,t):t!==null&&console.error(`max has to be a number, got `+typeof t);var i=gg(r),a=i[0],o=i[1];return[a(),(0,O.useMemo)(function(){var e=function(e){var r=a(),i=mg(e,r);r!==i&&(typeof n==`number`&&(i=Math.max(i,n)),typeof t==`number`&&(i=Math.min(i,t)),r!==i&&o(i))};return{get:a,set:e,inc:function(t){t===void 0&&(t=1);var n=mg(t,a());typeof n!=`number`&&console.error(`delta has to be a number or function returning a number, got `+typeof n),e(function(e){return e+n})},dec:function(t){t===void 0&&(t=1);var n=mg(t,a());typeof n!=`number`&&console.error(`delta has to be a number or function returning a number, got `+typeof n),e(function(e){return e-n})},reset:function(t){t===void 0&&(t=r);var n=mg(t,a());typeof n!=`number`&&console.error(`value has to be a number or function returning a number, got `+typeof n),r=n,e(n)}}},[r,n,t])]}var yg=s((e=>{var t=/[A-Z]/g,n=function(e){for(var t=5381,n=e.length;n;)t=t*33^e.charCodeAt(--n);return`_`+(t>>>0).toString(36)};e.create=function(e){e||={};var r=e.assign||Object.assign,i=r({raw:``,pfx:`_`,client:typeof window==`object`,assign:r,stringify:JSON.stringify,kebab:function(e){return e.replace(t,`-$&`).toLowerCase()},decl:function(e,t){return e=i.kebab(e),e+`:`+t+`;`},hash:function(e){return n(i.stringify(e))},selector:function(e,t){return e+(t[0]===`:`?``:` `)+t},putRaw:function(e){i.raw+=e}},e);return i.client&&(i.sh||document.head.appendChild(i.sh=document.createElement(`style`)),i.putRaw=function(e){var t=i.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch{}}),i.put=function(e,t,n){var r=``,a,o,s=[];for(a in t)o=t[a],o instanceof Object&&!(o instanceof Array)?s.push(a):r+=i.decl(a,o,e,n);r&&(r=e+`{`+r+`}`,i.putRaw(n?n+`{`+r+`}`:r));for(var c=0;c<s.length;c++)a=s[c],a[0]===`@`&&a!==`@font-face`?i.putAt(e,t[a],a):i.put(i.selector(e,a),t[a],n)},i.putAt=i.put,i}})),bg=s(((e,t)=>{var n=`nano-css`;t.exports=function(e,t,r){for(var i=[],a=0;a<r.length;a++){var o=r[a];t[o]||i.push(o)}if(i.length){for(var s=`Addon "`+e+`" is missing the following dependencies:`,c=0;c<i.length;c++)s+=`
95
+ require("`+n+`/addon/`+i[c]+`").addon(nano);`;throw Error(s)}}})),xg=s((e=>{e.addon=function(e){e.client&&(document.head.appendChild(e.msh=document.createElement(`style`)),e.createRule=function(t,n){var r=t+`{}`;n&&(r=n+`{`+r+`}`);var i=n?e.msh.sheet:e.sh.sheet,a=i.insertRule(r,i.cssRules.length),o=(i.cssRules||i.rules)[a];if(o.index=a,n){var s=(o.cssRules||o.rules)[0];o.style=s.style,o.styleMap=s.styleMap}return o})}})),Sg=s((e=>{function t(e){var t=e.index,n=e.parentStyleSheet,r=n.cssRules||n.rules;for(t=Math.max(t,r.length-1);t>=0;){if(r[t]===e){n.deleteRule(t);break}t--}}e.removeRule=t})),Cg=s((e=>{var t=Sg().removeRule;e.addon=function(e){if(!e.client)return;var n=e.kebab;function r(t,n){this.rule=e.createRule(t,n),this.decl={}}r.prototype.diff=function(e){var t=this.decl,r=this.rule.style,i;for(i in t)e[i]===void 0&&r.removeProperty(i);for(i in e)e[i]!==t[i]&&r.setProperty(n(i),e[i]);this.decl=e},r.prototype.del=function(){t(this.rule)};function i(){this.tree={}}i.prototype.diff=function(e){var t=this.tree;for(var n in t)if(e[n]===void 0){var i=t[n];for(var a in i)i[a].del()}for(var n in e)if(t[n]===void 0)for(var a in e[n]){var o=new r(a,n);o.diff(e[n][a]),e[n][a]=o}else{var s=t[n],c=e[n];for(var a in s)c[a]||s[a].del();for(var a in c){var o=s[a];o?(o.diff(c[a]),c[a]=o):(o=new r(a,n),o.diff(c[a]),c[a]=o)}}this.tree=e},e.VRule=r,e.VSheet=i}})),wg=s((e=>{function t(e,n,r,i){var a={},o=!1,s,c;for(s in n)c=n[s],typeof c!=`object`&&(o=!0,a[s]=c);for(s in o&&(e[i]||(e[i]={}),e[i][r]=a),n)if(c=n[s],typeof c==`object`)if(s[0]===`@`)t(e,c,r,s);else{var l=s.indexOf(`&`)>-1,u=r.split(`,`);if(l)for(var d=0;d<u.length;d++)u[d]=s.replace(/&/g,u[d]);else for(var d=0;d<u.length;d++)u[d]=u[d]+` `+s;t(e,c,u.join(`,`),i)}}e.cssToTree=t})),Tg=u(yg()),Eg=u(xg()),Dg=u(Cg()),Og=u(wg()),kg=c({default:()=>Ag}),Ag=Nh?O.useLayoutEffect:O.useEffect,jg=c({default:()=>Pg}),Mg=(0,Tg.create)();(0,Eg.addon)(Mg),(0,Dg.addon)(Mg);var Ng=0,Pg=function(e){var t=(0,O.useMemo)(function(){return`react-use-css-`+(Ng++).toString(36)},[]),n=(0,O.useMemo)(function(){return new Mg.VSheet},[]);return Ag(function(){var r={};return(0,Og.cssToTree)(r,e,`.`+t,``),n.diff(r),function(){n.diff({})}}),t},Fg=c({default:()=>Ig}),Ig=function(e,t,n){var r=(0,O.useRef)(void 0);(!r.current||!n(t,r.current))&&(r.current=t),(0,O.useEffect)(e,r.current)},Lg=c({default:()=>Rg});function Rg(e,t){t===void 0&&(t=0);var n=(0,O.useRef)(!1),r=(0,O.useRef)(),i=(0,O.useRef)(e),a=(0,O.useCallback)(function(){return n.current},[]),o=(0,O.useCallback)(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),s=(0,O.useCallback)(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return(0,O.useEffect)(function(){i.current=e},[e]),(0,O.useEffect)(function(){return o(),s},[t]),[a,s,o]}var zg=c({default:()=>Bg});function Bg(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=Rg(e,t),i=r[0],a=r[1],o=r[2];return(0,O.useEffect)(o,n),[i,a]}var Vg=c({default:()=>Hg}),Hg=function(e,t){Ig(e,t,Rh)},Ug=c({default:()=>Wg}),Wg=function(e,t){var n=(0,O.useState)(t),r=n[0],i=n[1];return r==null?[e,i]:[r,i]},Gg=c({default:()=>qg});mh();var Kg=function(e){return function(t,n){var r=t.getData(`text/uri-list`);if(r){(e.onUri||Mh)(r,n);return}if(t.files&&t.files.length){(e.onFiles||Mh)(Array.from(t.files),n);return}if(n.clipboardData){var i=n.clipboardData.getData(`text`);(e.onText||Mh)(i,n);return}}},qg=function(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=e.onFiles,r=e.onText,i=e.onUri,a=(0,O.useState)(!1),o=a[0],s=a[1],c=(0,O.useCallback)(s,[]),l=(0,O.useMemo)(function(){return Kg(e)},[n,r,i]);return(0,O.useEffect)(function(){var e=function(e){e.preventDefault(),c(!0)},t=function(e){e.preventDefault(),c(!0)},n=function(){c(!1)},i=function(){c(!1)},a=function(e){e.preventDefault(),c(!1),l(e.dataTransfer,e)},o=function(e){l(e.clipboardData,e)};return Z(document,`dragover`,e),Z(document,`dragenter`,t),Z(document,`dragleave`,n),Z(document,`dragexit`,i),Z(document,`drop`,a),r&&Z(document,`paste`,o),function(){Q(document,`dragover`,e),Q(document,`dragenter`,t),Q(document,`dragleave`,n),Q(document,`dragexit`,i),Q(document,`drop`,a),Q(document,`paste`,o)}},Km([l],t)),{over:o}},Jg=c({default:()=>Zg}),Yg=function(e,t){return function(n,r){var i=n.getData(`text/uri-list`);if(i){(e.onUri||Mh)(i,r);return}if(n.files&&n.files.length){(e.onFiles||Mh)(Array.from(n.files),r);return}n.items&&n.items.length&&n.items[0].getAsString(function(n){t&&(e.onText||Mh)(n,r)})}},Xg=function(e,t){return{onDragOver:function(e){e.preventDefault()},onDragEnter:function(e){e.preventDefault(),t(!0)},onDragLeave:function(){t(!1)},onDrop:function(n){n.preventDefault(),n.persist(),t(!1),e(n.dataTransfer,n)},onPaste:function(t){t.persist(),e(t.clipboardData,t)}}},Zg=function(e){e===void 0&&(e={});var t=e.onFiles,n=e.onText,r=e.onUri,i=gh(),a=(0,O.useState)(!1),o=a[0],s=a[1],c=(0,O.useMemo)(function(){return Yg(e,i())},[t,n,r]);return[(0,O.useMemo)(function(){return Xg(c,s)},[c,s]),{over:o}]},Qg=c({default:()=>$g}),$g=function(e){(0,O.useEffect)(e,[])},e_=c({default:()=>t_,ensuredForwardRef:()=>n_});function t_(e){var t=(0,O.useRef)(e&&e.current);return(0,O.useEffect)(function(){e&&(e.current=t.current)},[e]),t}function n_(e){return(0,O.forwardRef)(function(t,n){return e(t,t_(n))})}var r_=c({default:()=>s_}),i_=Nh?window:null,a_=function(e){return!!e.addEventListener},o_=function(e){return!!e.on},s_=function(e,t,n,r){n===void 0&&(n=i_),(0,O.useEffect)(function(){if(t&&n)return a_(n)?Z(n,e,t,r):o_(n)&&n.on(e,t,r),function(){a_(n)?Q(n,e,t,r):o_(n)&&n.off(e,t,r)}},[e,t,n,JSON.stringify(r)])},c_=c({default:()=>l_}),l_=function(){var e=(0,O.useState)(null),t=e[0],n=e[1];return(0,O.useEffect)(function(){if(t)throw t},[t]),(0,O.useCallback)(function(e){n(e)},[])},u_=c({default:()=>d_}),d_=function(e){(0,O.useEffect)(function(){var t=document.querySelector(`link[rel*='icon']`)||document.createElement(`link`);t.type=`image/x-icon`,t.rel=`shortcut icon`,t.href=e,document.getElementsByTagName(`head`)[0].appendChild(t)},[e])},f_=s(((e,t)=>{(function(){var e=typeof window<`u`&&window.document!==void 0?window.document:{},n=t!==void 0&&t.exports,r=(function(){for(var t,n=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`webkitRequestFullScreen`,`webkitCancelFullScreen`,`webkitCurrentFullScreenElement`,`webkitCancelFullScreen`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`mozRequestFullScreen`,`mozCancelFullScreen`,`mozFullScreenElement`,`mozFullScreenEnabled`,`mozfullscreenchange`,`mozfullscreenerror`],[`msRequestFullscreen`,`msExitFullscreen`,`msFullscreenElement`,`msFullscreenEnabled`,`MSFullscreenChange`,`MSFullscreenError`]],r=0,i=n.length,a={};r<i;r++)if(t=n[r],t&&t[1]in e){for(r=0;r<t.length;r++)a[n[0][r]]=t[r];return a}return!1})(),i={change:r.fullscreenchange,error:r.fullscreenerror},a={request:function(t,n){return new Promise(function(i,a){var o=function(){this.off(`change`,o),i()}.bind(this);this.on(`change`,o),t||=e.documentElement;var s=t[r.requestFullscreen](n);s instanceof Promise&&s.then(o).catch(a)}.bind(this))},exit:function(){return new Promise(function(t,n){if(!this.isFullscreen){t();return}var i=function(){this.off(`change`,i),t()}.bind(this);this.on(`change`,i);var a=e[r.exitFullscreen]();a instanceof Promise&&a.then(i).catch(n)}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on(`change`,e)},onerror:function(e){this.on(`error`,e)},on:function(t,n){var r=i[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=i[t];r&&e.removeEventListener(r,n,!1)},raw:r};if(!r){n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(a,{isFullscreen:{get:function(){return!!e[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!e[r.fullscreenEnabled]}}}),n?t.exports=a:window.screenfull=a})()})),p_=c({default:()=>h_}),m_=u(f_()),h_=function(e,t,n){n===void 0&&(n={});var r=n.video,i=n.onClose,a=i===void 0?Mh:i,o=(0,O.useState)(t),s=o[0],c=o[1];return Ag(function(){if(t&&e.current){var n=function(){r?.current&&Q(r.current,`webkitendfullscreen`,n),a()},i=function(){if(m_.default.isEnabled){var e=m_.default.isFullscreen;c(e),e||a()}};if(m_.default.isEnabled){try{m_.default.request(e.current),c(!0)}catch(e){a(e),c(!1)}m_.default.on(`change`,i)}else r&&r.current&&r.current.webkitEnterFullscreen?(r.current.webkitEnterFullscreen(),Z(r.current,`webkitendfullscreen`,n),c(!0)):(a(),c(!1));return function(){if(c(!1),m_.default.isEnabled)try{m_.default.off(`change`,i),m_.default.exit()}catch{}else r&&r.current&&r.current.webkitExitFullscreen&&(Q(r.current,`webkitendfullscreen`,n),r.current.webkitExitFullscreen())}}},[t,r,e]),s},g_=c({default:()=>__});mh();var __=function(e){var t=(0,O.useState)({loading:!0,accuracy:null,altitude:null,altitudeAccuracy:null,heading:null,latitude:null,longitude:null,speed:null,timestamp:Date.now()}),n=t[0],r=t[1],i=!0,a,o=function(e){i&&r({loading:!1,accuracy:e.coords.accuracy,altitude:e.coords.altitude,altitudeAccuracy:e.coords.altitudeAccuracy,heading:e.coords.heading,latitude:e.coords.latitude,longitude:e.coords.longitude,speed:e.coords.speed,timestamp:e.timestamp})},s=function(e){return i&&r(function(t){return ch(ch({},t),{loading:!1,error:e})})};return(0,O.useEffect)(function(){return navigator.geolocation.getCurrentPosition(o,s,e),a=navigator.geolocation.watchPosition(o,s,e),function(){i=!1,navigator.geolocation.clearWatch(a)}},[]),n},v_=c({default:()=>y_});mh();var y_=function(e){e===void 0&&(e={});var t=fg(),n=(0,O.useRef)(ch({},e));return[(0,O.useCallback)(function(){return n.current},[]),(0,O.useCallback)(function(e){e&&(Object.assign(n.current,e),t())},[])]},b_=c({clearHarmonicInterval:()=>w_,setHarmonicInterval:()=>C_}),x_=0,S_={},C_=function(e,t){var n,r=x_++;return S_[t]?S_[t].listeners[r]=e:S_[t]={ms:t,timer:setInterval(function(){for(var e=S_[t].listeners,n=!1,r,i=0,a=Object.values(e);i<a.length;i++){var o=a[i];try{o()}catch(e){n=!0,r=e}}if(n)throw r},t),listeners:(n={},n[r]=e,n)},{bucket:S_[t],id:r}},w_=function(e){var t=e.bucket,n=e.id;delete t.listeners[n];var r=!1;for(var i in t.listeners){r=!0;break}r||(clearInterval(t.timer),delete S_[t.ms])},T_=c({default:()=>E_}),E_=function(e,t){t===void 0&&(t=0);var n=(0,O.useRef)(function(){});(0,O.useEffect)(function(){n.current=e}),(0,O.useEffect)(function(){if(t!==null){var e=C_(function(){return n.current()},t);return function(){return w_(e)}}},[t])},D_=c({default:()=>k_}),O_=O.useState,k_=function(e){var t=O_(!1),n=t[0],r=t[1];return typeof e==`function`&&(e=e(n)),[O.cloneElement(e,{onMouseEnter:function(e){return function(t){(e||Mh)(t),r(!0)}}(e.props.onMouseEnter),onMouseLeave:function(e){return function(t){(e||Mh)(t),r(!1)}}(e.props.onMouseLeave)}),n]},A_=c({default:()=>j_}),j_=function(e,t){t===void 0&&(t=!0);var n=(0,O.useState)(!1),r=n[0],i=n[1];return(0,O.useEffect)(function(){var n=function(){return i(!0)},r=function(){return i(!1)};t&&e&&e.current&&(Z(e.current,`mouseover`,n),Z(e.current,`mouseout`,r));var a=e.current;return function(){t&&a&&(Q(a,`mouseover`,n),Q(a,`mouseout`,r))}},[t,e]),r},M_=c({debounce:()=>P_,throttle:()=>N_});function N_(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function c(){s(),a=!0}typeof t!=`boolean`&&(r=n,n=t,t=void 0);function l(){var c=[...arguments],l=this,u=Date.now()-o;if(a)return;function d(){o=Date.now(),n.apply(l,c)}function f(){i=void 0}r&&!i&&d(),s(),r===void 0&&u>e?d():t!==!0&&(i=setTimeout(r?f:d,r===void 0?e-u:e))}return l.cancel=c,l}function P_(e,t,n){return n===void 0?N_(e,t,!1):N_(e,n,t!==!1)}var F_=c({default:()=>R_}),I_=[`mousemove`,`mousedown`,`resize`,`keydown`,`touchstart`,`wheel`],L_=6e4,R_=function(e,t,n){e===void 0&&(e=L_),t===void 0&&(t=!1),n===void 0&&(n=I_);var r=(0,O.useState)(t),i=r[0],a=r[1];return(0,O.useEffect)(function(){for(var t=!0,r,o=i,s=function(e){t&&(o=e,a(e))},c=N_(50,function(){o&&s(!1),clearTimeout(r),r=setTimeout(function(){return s(!0)},e)}),l=function(){document.hidden||c()},u=0;u<n.length;u++)Z(window,n[u],c);return Z(document,`visibilitychange`,l),r=setTimeout(function(){return s(!0)},e),function(){t=!1;for(var e=0;e<n.length;e++)Q(window,n[e],c);Q(document,`visibilitychange`,l)}},[e,n]),i},z_=c({default:()=>B_}),B_=function(e,t){var n=(0,O.useState)(null),r=n[0],i=n[1];return(0,O.useEffect)(function(){if(e.current&&typeof IntersectionObserver==`function`){var n=new IntersectionObserver(function(e){i(e[0])},t);return n.observe(e.current),function(){i(null),n.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),r},V_=c({default:()=>H_}),H_=function(e,t){var n=(0,O.useRef)(function(){});(0,O.useEffect)(function(){n.current=e}),(0,O.useEffect)(function(){if(t!==null){var e=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(e)}}},[t])},U_=c({default:()=>G_}),W_=function(e){return typeof e==`function`?e:typeof e==`string`?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},G_=function(e,t,n,r){t===void 0&&(t=Mh),n===void 0&&(n={}),r===void 0&&(r=[e]);var i=n.event,a=i===void 0?`keydown`:i,o=n.target,s=n.options;s_(a,(0,O.useMemo)(function(){var n=W_(e);return function(e){if(n(e))return t(e)}},r),o,s)},K_=c({default:()=>q_}),q_=function(e){return e===void 0&&(e={laptopL:1440,laptop:1024,tablet:768}),function(){var t=(0,O.useState)(Nh?window.innerWidth:0),n=t[0],r=t[1];(0,O.useEffect)(function(){var e=function(){r(window.innerWidth)};return e(),Z(window,`resize`,e),function(){Q(window,`resize`,e)}});var i=(0,O.useMemo)(function(){return Object.entries(e).sort(function(e,t){return e[1]>=t[1]?1:-1})},[e]);return i.reduce(function(e,t){var r=t[0];return n>=t[1]?r:e},i[0][0])}},J_=c({default:()=>Y_}),Y_=function(e){var t=(0,O.useState)([!1,null]),n=t[0],r=t[1];return G_(e,function(e){return r([!0,e])},{event:`keydown`},[n]),G_(e,function(e){return r([!1,e])},{event:`keyup`},[n]),n},X_=c({default:()=>Z_}),Z_=function(e,t,n,r){r===void 0&&(r=Y_);var i=r(e),a=i[0],o=i[1];wm(function(){!a&&n?n(o):a&&t&&t(o)},[a])},Q_=c({default:()=>$_}),$_=function(e){var t=(0,O.useRef)(e);return t.current=e,t},ev=c({default:()=>tv}),tv=function(e,t){(0,O.useEffect)(function(){return e&&e(),function(){t&&t()}},[])},nv=c({default:()=>rv});function rv(e){e===void 0&&(e=[]);var t=(0,O.useRef)(mg(e)),n=fg(),r=(0,O.useMemo)(function(){var i={set:function(e){t.current=mg(e,t.current),n()},push:function(){var e=[...arguments];e.length&&r.set(function(t){return t.concat(e)})},updateAt:function(e,t){r.set(function(n){var r=n.slice();return r[e]=t,r})},insertAt:function(e,t){r.set(function(n){var r=n.slice();return e>r.length?r[e]=t:r.splice(e,0,t),r})},update:function(e,t){r.set(function(n){return n.map(function(n){return e(n,t)?t:n})})},updateFirst:function(e,n){var i=t.current.findIndex(function(t){return e(t,n)});i>=0&&r.updateAt(i,n)},upsert:function(e,n){var i=t.current.findIndex(function(t){return e(t,n)});i>=0?r.updateAt(i,n):r.push(n)},sort:function(e){r.set(function(t){return t.slice().sort(e)})},filter:function(e,t){r.set(function(n){return n.slice().filter(e,t)})},removeAt:function(e){r.set(function(t){var n=t.slice();return n.splice(e,1),n})},clear:function(){r.set([])},reset:function(){r.set(mg(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var iv=c({default:()=>av}),av=function(e,t,n){if(!Nh)return[t,Mh,Mh];if(!e)throw Error(`useLocalStorage key may not be falsy`);var r=n?n.raw?function(e){return e}:n.deserializer:JSON.parse,i=(0,O.useRef)(function(e){try{var i=n?n.raw?String:n.serializer:JSON.stringify,a=localStorage.getItem(e);return a===null?(t&&localStorage.setItem(e,i(t)),t):r(a)}catch{return t}}),a=(0,O.useState)(function(){return i.current(e)}),o=a[0],s=a[1];return(0,O.useLayoutEffect)(function(){return s(i.current(e))},[e]),[o,(0,O.useCallback)(function(t){try{var i=typeof t==`function`?t(o):t;if(i===void 0)return;var a=void 0;a=n?n.raw?typeof i==`string`?i:JSON.stringify(i):n.serializer?n.serializer(i):JSON.stringify(i):JSON.stringify(i),localStorage.setItem(e,a),s(r(a))}catch{}},[e,s]),(0,O.useCallback)(function(){try{localStorage.removeItem(e),s(void 0)}catch{}},[e,s])]},ov=c({default:()=>uv}),sv=function(e){var t=window.history,n=t[e];t[e]=function(t){var r=n.apply(this,arguments),i=new Event(e.toLowerCase());return i.state=t,window.dispatchEvent(i),r}};Nh&&(sv(`pushState`),sv(`replaceState`));var cv=function(){return{trigger:`load`,length:1}},lv=function(e){var t=window.history,n=t.state,r=t.length,i=window.location;return{trigger:e,state:n,length:r,hash:i.hash,host:i.host,hostname:i.hostname,href:i.href,origin:i.origin,pathname:i.pathname,port:i.port,protocol:i.protocol,search:i.search}},uv=Nh&&typeof Event==`function`?function(){var e=(0,O.useState)(lv(`load`)),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=function(){return n(lv(`popstate`))},t=function(){return n(lv(`pushstate`))},r=function(){return n(lv(`replacestate`))};return Z(window,`popstate`,e),Z(window,`pushstate`,t),Z(window,`replacestate`,r),function(){Q(window,`popstate`,e),Q(window,`pushstate`,t),Q(window,`replacestate`,r)}},[]),t}:cv,dv=c({default:()=>vv,getClosestBody:()=>fv});function fv(e){if(!e)return null;if(e.tagName===`BODY`)return e;if(e.tagName===`IFRAME`){var t=e.contentDocument;return t?t.body:null}else if(!e.offsetParent)return null;return fv(e.offsetParent)}function pv(e){var t=e||window.event;return t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var mv=Nh&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),hv=new Map,gv=typeof document==`object`?document:void 0,_v=!1,vv=gv?function(e,t){e===void 0&&(e=!0);var n=(0,O.useRef)(gv.body);t||=n;var r=function(e){var t=hv.get(e);t?hv.set(e,{counter:t.counter+1,initialOverflow:t.initialOverflow}):(hv.set(e,{counter:1,initialOverflow:e.style.overflow}),mv?_v||=(Z(document,`touchmove`,pv,{passive:!1}),!0):e.style.overflow=`hidden`)},i=function(e){var t=hv.get(e);t&&(t.counter===1?(hv.delete(e),mv?(e.ontouchmove=null,_v&&=(Q(document,`touchmove`,pv),!1)):e.style.overflow=t.initialOverflow):hv.set(e,{counter:t.counter-1,initialOverflow:t.initialOverflow}))};(0,O.useEffect)(function(){var n=fv(t.current);n&&(e?r(n):i(n))},[e,t.current]),(0,O.useEffect)(function(){var e=fv(t.current);if(e)return function(){i(e)}},[])}:function(e,t){e===void 0&&(e=!0)},yv=c({default:()=>bv});mh();var bv=function(e){var t=[...arguments].slice(1);$g(function(){return console.log.apply(console,Km([e+` mounted`],t)),function(){return console.log(e+` unmounted`)}}),wm(function(){console.log.apply(console,Km([e+` updated`],t))})},xv=c({default:()=>wv}),Sv=function(e){return`touches`in e},Cv=function(e){Sv(e)&&e.touches.length<2&&e.preventDefault&&e.preventDefault()},wv=function(e,t){var n=t===void 0?{}:t,r=n.isPreventDefault,i=r===void 0?!0:r,a=n.delay,o=a===void 0?300:a,s=(0,O.useRef)(),c=(0,O.useRef)(),l=(0,O.useCallback)(function(t){i&&t.target&&(Z(t.target,`touchend`,Cv,{passive:!1}),c.current=t.target),s.current=setTimeout(function(){return e(t)},o)},[e,o,i]),u=(0,O.useCallback)(function(){s.current&&clearTimeout(s.current),i&&c.current&&Q(c.current,`touchend`,Cv)},[i]);return{onMouseDown:function(e){return l(e)},onTouchStart:function(e){return l(e)},onMouseUp:u,onMouseLeave:u,onTouchEnd:u}},Tv=c({default:()=>Ev});mh();var Ev=function(e){e===void 0&&(e={});var t=(0,O.useState)(e),n=t[0],r=t[1],i=(0,O.useMemo)(function(){return{set:function(e,t){r(function(n){var r;return ch(ch({},n),(r={},r[e]=t,r))})},setAll:function(e){r(e)},remove:function(e){r(function(t){var n=t,r=e;return n[r],Mm(n,[typeof r==`symbol`?r:r+``])})},reset:function(){return r(e)}}},[r]);return[n,ch({get:(0,O.useCallback)(function(e){return n[e]},[n])},i)]},Dv=c({default:()=>kv}),Ov=function(e,t){return t===void 0?Nh?window.matchMedia(e).matches:!1:t},kv=function(e,t){var n=(0,O.useState)(Ov(e,t)),r=n[0],i=n[1];return(0,O.useEffect)(function(){var t=!0,n=window.matchMedia(e),r=function(){t&&i(!!n.matches)};return n.addEventListener(`change`,r),i(n.matches),function(){t=!1,n.removeEventListener(`change`,r)}},[e]),r},Av=c({default:()=>jv}),jv=Ph&&navigator.mediaDevices?function(){var e=(0,O.useState)({}),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=!0,t=function(){navigator.mediaDevices.enumerateDevices().then(function(t){e&&n({devices:t.map(function(e){return{deviceId:e.deviceId,groupId:e.groupId,kind:e.kind,label:e.label}})})}).catch(Mh)};return Z(navigator.mediaDevices,`devicechange`,t),t(),function(){e=!1,Q(navigator.mediaDevices,`devicechange`,t)}},[]),t}:function(){return{}},Mv=c({useMediatedState:()=>Nv});function Nv(e,t){var n=(0,O.useRef)(e),r=(0,O.useState)(t),i=r[0],a=r[1];return[i,(0,O.useCallback)(function(e){n.current.length===2?n.current(e,a):a(n.current(e))},[i])]}var Pv=c({default:()=>Fv}),Fv=function(e,t){var n=(0,O.useMemo)(function(){return function(t,n){var r;return(r=e(t))[n.type].apply(r,n.payload)}},[e]),r=(0,O.useReducer)(n,t),i=r[0],a=r[1];return[i,(0,O.useMemo)(function(){return Object.keys(e(t)).reduce(function(e,t){return e[t]=function(){return a({type:t,payload:[...arguments]})},e},{})},[e,t])]},Iv=c({default:()=>Rv}),Lv={acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null},rotationRate:{alpha:null,beta:null,gamma:null},interval:16},Rv=function(e){e===void 0&&(e=Lv);var t=(0,O.useState)(e),n=t[0],r=t[1];return(0,O.useEffect)(function(){var e=function(e){var t=e.acceleration,n=e.accelerationIncludingGravity,i=e.rotationRate,a=e.interval;r({acceleration:{x:t.x,y:t.y,z:t.z},accelerationIncludingGravity:{x:n.x,y:n.y,z:n.z},rotationRate:{alpha:i.alpha,beta:i.beta,gamma:i.gamma},interval:a})};return Z(window,`devicemotion`,e),function(){Q(window,`devicemotion`,e)}},[]),n},zv=c({default:()=>Bv}),Bv=function(e){$g(function(){e()})},Vv=c({default:()=>Hv}),Hv=function(e){var t=(0,O.useRef)(e);t.current=e,$g(function(){return function(){return t.current()}})},Uv=c({default:()=>Wv}),Wv=function(e){var t=(0,O.useRef)(0),n=(0,O.useState)(e),r=n[0],i=n[1],a=(0,O.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(e)})},[]);return Hv(function(){cancelAnimationFrame(t.current)}),[r,a]},Gv=c({default:()=>Kv}),Kv=function(e){var t=Wv({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),n=t[0],r=t[1];return(0,O.useEffect)(function(){var t=function(t){if(e&&e.current){var n=e.current.getBoundingClientRect(),i=n.left,a=n.top,o=n.width,s=n.height,c=i+window.pageXOffset,l=a+window.pageYOffset,u=t.pageX-c,d=t.pageY-l;r({docX:t.pageX,docY:t.pageY,posX:c,posY:l,elX:u,elY:d,elH:s,elW:o})}};return Z(document,`mousemove`,t),function(){Q(document,`mousemove`,t)}},[e]),n},qv=c({default:()=>Yv}),Jv={current:null},Yv=function(e,t){t===void 0&&(t={});var n=!!t.whenHovered,r=!!t.bound,i=j_(e,n),a=Kv(n&&!i?Jv:e);return r&&(a.elX=Math.max(0,Math.min(a.elX,a.elW)),a.elY=Math.max(0,Math.min(a.elY,a.elH))),a},Xv=c({default:()=>Zv}),Zv=(function(){var e=(0,O.useState)(0),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=function(e){n(e.deltaY+t)};return Z(window,`wheel`,e,!1),function(){return Q(window,`wheel`,e)}}),t}),Qv=c({default:()=>ny}),$v=Ph?navigator:void 0,ey=$v&&($v.connection||$v.mozConnection||$v.webkitConnection);function ty(e){var t=$v?.onLine,n=e?.online;return{online:t,previous:n,since:t===n?e?.since:new Date,downlink:ey?.downlink,downlinkMax:ey?.downlinkMax,effectiveType:ey?.effectiveType,rtt:ey?.rtt,saveData:ey?.saveData,type:ey?.type}}function ny(e){var t=(0,O.useState)(e??ty),n=t[0],r=t[1];return(0,O.useEffect)(function(){var e=function(){r(ty)};return Z(window,`online`,e,{passive:!0}),Z(window,`offline`,e,{passive:!0}),ey&&Z(ey,`change`,e,{passive:!0}),function(){Q(window,`online`,e),Q(window,`offline`,e),ey&&Q(ey,`change`,e)}},[]),n}var ry=c({default:()=>iy}),iy=vg,ay=c({default:()=>oy});function oy(e,t){var n=(0,O.useState)(t),r=n[0],i=n[1];return Ag(function(){var t=e.subscribe(i);return function(){return t.unsubscribe()}},[e]),r}var sy=c({default:()=>ly}),cy={angle:0,type:`landscape-primary`},ly=function(e){e===void 0&&(e=cy);var t=(0,O.useState)(e),n=t[0],r=t[1];return(0,O.useEffect)(function(){var t=window.screen,n=!0,i=function(){if(n){var i=t.orientation;if(i){var a=i.angle,o=i.type;r({angle:a,type:o})}else window.orientation===void 0?r(e):r({angle:typeof window.orientation==`number`?window.orientation:0,type:``})}};return Z(window,`orientationchange`,i),i(),function(){n=!1,Q(window,`orientationchange`,i)}},[]),n},uy=c({default:()=>dy}),dy=function(e,t){t===void 0&&(t=[]),(0,O.useEffect)(function(){if(e){var t=function(t){t||=window.event;var n=t.relatedTarget||t.toElement;(!n||n.nodeName===`HTML`)&&e()};return Z(document,`mouseout`,t),function(){Q(document,`mouseout`,t)}}},t)},fy=c({default:()=>py}),py=function(e){var t=(0,O.useState)(``),n=t[0],r=t[1];return(0,O.useEffect)(function(){var t=!0,n=null,i=function(){t&&r(function(){return n?.state??``})};return navigator.permissions.query(e).then(function(e){n=e,Z(n,`change`,i),i()}).catch(Mh),function(){n&&Q(n,`change`,i),t=!1,n=null}},[e]),n},my=c({default:()=>hy});function hy(e){var t=(0,O.useRef)();return(0,O.useEffect)(function(){t.current=e}),t.current}var gy=c({default:()=>vy}),_y=function(e,t){return e===t};function vy(e,t){t===void 0&&(t=_y);var n=(0,O.useRef)(),r=(0,O.useRef)(e);return!Sm()&&!t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var yy=c({default:()=>by}),by=function(){var e=gh();return(0,O.useCallback)(function(t){return new Promise(function(n,r){t.then(function(t){e()&&n(t)},function(t){e()&&r(t)})})},[])},xy=c({default:()=>Sy});mh();var Sy=function(e){e===void 0&&(e=[]);var t=(0,O.useState)(e),n=t[0],r=t[1];return{add:function(e){r(function(t){return Km(t,[e])})},remove:function(){var e;return r(function(t){var n=t[0],r=t.slice(1);return e=n,r}),e},get first(){return n[0]},get last(){return n[n.length-1]},get size(){return n.length}}},Cy=c({default:()=>wy}),wy=function(e,t){e===void 0&&(e=0xe8d4a51000),t===void 0&&(t=0);var n=(0,O.useState)(0),r=n[0],i=n[1];return Ag(function(){var n,r,a,o=function(){i(Math.min(1,(Date.now()-a)/e)),s()},s=function(){n=requestAnimationFrame(o)},c=setTimeout(function(){r=setTimeout(function(){cancelAnimationFrame(n),i(1)},e),a=Date.now(),s()},t);return function(){clearTimeout(r),clearTimeout(c),cancelAnimationFrame(n)}},[e,t]),r},Ty=c({default:()=>Ey});function Ey(e,t){t===void 0&&(t=!0);var n=(0,O.useRef)(null),r=(0,O.useRef)(!1),i=(0,O.useRef)(e);i.current=e;var a=(0,O.useCallback)(function(e){r.current&&(i.current(e),n.current=requestAnimationFrame(a))},[]),o=(0,O.useMemo)(function(){return[function(){r.current&&(r.current=!1,n.current&&cancelAnimationFrame(n.current))},function(){r.current||(r.current=!0,n.current=requestAnimationFrame(a))},function(){return r.current}]},[]);return(0,O.useEffect)(function(){return t&&o[1](),o[0]},[]),o}var Dy=c({default:()=>ky}),Oy=function(e,t){return new URLSearchParams(e).get(t)},ky=Nh?function(e){var t=window.location,n=(0,O.useState)(function(){return Oy(t.search,e)}),r=n[0],i=n[1];return(0,O.useEffect)(function(){var n=function(){i(Oy(t.search,e))};return Z(window,`popstate`,n),Z(window,`pushstate`,n),Z(window,`replacestate`,n),function(){Q(window,`popstate`,n),Q(window,`pushstate`,n),Q(window,`replacestate`,n)}},[]),r}:function(){return null},Ay=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(mh(),d(Am)),n=m(),r=parseInt(n.version.substr(0,n.version.indexOf(`.`)))>15,i=function(e){return typeof e==`function`};e.default=function(e,a){var o=[...arguments].slice(2),s=e.render,c=e.children,l=c===void 0?s:c,u=e.component,d=e.comp,f=d===void 0?u:d;return i(l)?l.apply(void 0,t.__spreadArrays([a],o)):f?n.createElement(f,a):l instanceof Array?r?l:n.createElement.apply(void 0,t.__spreadArrays([`div`,null],l)):l&&l instanceof Object?typeof l.type==`string`?l:n.cloneElement(l,Object.assign({},l.props,a)):l||null}})),jy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(mh(),d(Am)),n=t.__importStar(m());e.default=function(e){return function(n){t.__extends(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.render=function(){return e(this.props,this.context)},r}(n.Component)}})),My=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(mh(),d(Am)).__importDefault(jy());e.default=function(e){return e.prototype?e:t.default(e)}})),Ny=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.divWrapper=void 0;var t=(mh(),d(Am)),n=t.__importStar(m()),r=t.__importDefault(My()),i=n.createElement,a=function(e,n,r,a){var o;return i(e,n?t.__assign((o={},o[n]=a,o),r):t.__assign(t.__assign({},a),r))};e.divWrapper=function(e,t,n,r){return i(`div`,null,a(e,t,n,r))},e.default=function(e,t,n){n===void 0&&(n=a);var o=function(a,s,c){s===void 0&&(s=t),c===void 0&&(c=null);var l=typeof a==`string`;if(l)return function(e){return o(e,a||t,s)};var u=function(t){return i(e,c,function(e){return n(a,s,t,e)})};return l?r.default(u):u};return o}})),Py=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(mh(),d(Am)).__importDefault(Ay()),n=function(e){return[e]};e.default=function(e,r){return r===void 0&&(r=n),function(n){return t.default(n,e.apply(void 0,r(n)))}}})),Fy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hookToRenderProp=e.createEnhancer=e.render=void 0;var t=(mh(),d(Am));e.render=t.__importDefault(Ay()).default,e.createEnhancer=t.__importDefault(Ny()).default,e.hookToRenderProp=t.__importDefault(Py()).default})),Iy=c({ScratchSensor:()=>zy,default:()=>Ry});mh();var Ly=u(Fy()),Ry=function(e){e===void 0&&(e={});var t=e.disabled,n=$_(e),r=(0,O.useState)({isScratching:!1}),i=r[0],a=r[1],o=(0,O.useRef)(i),s=(0,O.useRef)(!1),c=(0,O.useRef)(null),l=(0,O.useState)(null),u=l[0],d=l[1];return(0,O.useEffect)(function(){if(!t&&u){var e=function(e,t){cancelAnimationFrame(c.current),c.current=requestAnimationFrame(function(){var r=u.getBoundingClientRect(),i=r.left,s=r.top,c=i+window.scrollX,l=s+window.scrollY,d=e-c,f=t-l;a(function(e){var t=ch(ch({},e),{dx:d-(e.x||0),dy:f-(e.y||0),end:Date.now(),isScratching:!0});return o.current=t,(n.current.onScratch||Mh)(t),t})})},r=function(t){e(t.pageX,t.pageY)},i=function(t){e(t.changedTouches[0].pageX,t.changedTouches[0].pageY)},l,d,f=function(){s.current&&(s.current=!1,o.current=ch(ch({},o.current),{isScratching:!1}),(n.current.onScratchEnd||Mh)(o.current),a({isScratching:!1}),Q(window,`mousemove`,r),Q(window,`touchmove`,i),Q(window,`mouseup`,l),Q(window,`touchend`,d))};l=f,d=f;var p=function(e,t){if(s.current){var c=u.getBoundingClientRect(),f=c.left,p=c.top,m=f+window.scrollX,h=p+window.scrollY,g=e-m,_=t-h,v=Date.now(),y={isScratching:!0,start:v,end:v,docX:e,docY:t,x:g,y:_,dx:0,dy:0,elH:u.offsetHeight,elW:u.offsetWidth,elX:m,elY:h};o.current=y,(n.current.onScratchStart||Mh)(y),a(y),Z(window,`mousemove`,r),Z(window,`touchmove`,i),Z(window,`mouseup`,l),Z(window,`touchend`,d)}},m=function(e){s.current=!0,p(e.pageX,e.pageY)},h=function(e){s.current=!0,p(e.changedTouches[0].pageX,e.changedTouches[0].pageY)};return Z(u,`mousedown`,m),Z(u,`touchstart`,h),function(){Q(u,`mousedown`,m),Q(u,`touchstart`,h),Q(window,`mousemove`,r),Q(window,`touchmove`,i),Q(window,`mouseup`,l),Q(window,`touchend`,d),c.current&&cancelAnimationFrame(c.current),c.current=null,s.current=!1,o.current={isScratching:!1},a(o.current)}}},[u,t,n]),[d,i]},zy=function(e){e.children;var t=Ry(Mm(e,[`children`])),n=t[0],r=t[1],i=(0,Ly.render)(e,r);return(0,O.cloneElement)(i,ch(ch({},i.props),{ref:function(e){i.props.ref&&(typeof i.props.ref==`object`&&(i.props.ref.current=e),typeof i.props.ref==`function`&&i.props.ref(e)),n(e)}}))},By=c({default:()=>Vy}),Vy=function(e){var t=Wv({x:0,y:0}),n=t[0],r=t[1];return(0,O.useEffect)(function(){var t=function(){e.current&&r({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&Z(e.current,`scroll`,t,{capture:!1,passive:!0}),function(){e.current&&Q(e.current,`scroll`,t)}},[e]),n},Hy=c({default:()=>Uy}),Uy=function(e){var t=(0,O.useState)(!1),n=t[0],r=t[1];return(0,O.useEffect)(function(){if(e.current){var t,n=function(){r(!1)},i=function(){r(!0),clearTimeout(t),t=setTimeout(function(){return n()},150)};return Z(e.current,`scroll`,i,!1),function(){e.current&&Q(e.current,`scroll`,i,!1)}}return function(){}},[e]),n},Wy=c({default:()=>Gy}),Gy=function(e,t,n){if(!Nh)return[t,function(){}];var r=(0,O.useState)(function(){try{var r=sessionStorage.getItem(e);return typeof r==`string`?n?r:JSON.parse(r||`null`):(sessionStorage.setItem(e,n?String(t):JSON.stringify(t)),t)}catch{return t}}),i=r[0],a=r[1];return(0,O.useEffect)(function(){try{var t=n?String(i):JSON.stringify(i);sessionStorage.setItem(e,t)}catch{}}),[i,a]},Ky=s((e=>{var t=Object.keys;e.equal=function(e,n){if(e===n)return!0;if(!(e instanceof Object)||!(n instanceof Object))return!1;for(var r=t(e),i=r.length,a=0;a<i;a++)if(!(r[a]in n))return!1;for(var a=0;a<i;a++)if(e[r[a]]!==n[r[a]])return!1;return i===t(n).length}})),qy=c({default:()=>Xy}),Jy=u(Ky()),Yy=function(e,t){return e.every(function(e,n){return(0,Jy.equal)(e,t[n])})},Xy=function(e,t){Ig(e,t,Yy)},Zy=c({default:()=>nb});mh();var Qy=O.useState,$y=O.useEffect,eb=O.useRef,tb=function(e){return setTimeout(e,35)},nb=function(e,t){var n=t===void 0?{}:t,r=n.width,i=r===void 0?1/0:r,a=n.height,o=a===void 0?1/0:a;if(!Nh)return[typeof e==`function`?e({width:i,height:o}):e,{width:i,height:o}];var s=Qy({width:i,height:o}),c=s[0],l=s[1];typeof e==`function`&&(e=e(c));var u=e.props.style||{},d=eb(null),f=null,p=function(){var e=d.current;l(e?{width:e.offsetWidth,height:e.offsetHeight}:{width:i,height:o})},m=function(e){Z(e,`resize`,p),tb(p)};return $y(function(){var e=d.current;if(e){if(e.contentWindow)f=e.contentWindow,m(f);else{var t=function(){Z(e,`load`,t),f=e.contentWindow,m(f)};Q(e,`load`,t)}return function(){f&&f.removeEventListener&&Q(f,`resize`,p)}}},[]),u.position=`relative`,[O.cloneElement.apply(O,Km([e,{style:u}],Km([O.createElement(`iframe`,{ref:d,style:{background:`transparent`,border:`none`,height:`100%`,left:0,position:`absolute`,top:0,width:`100%`,zIndex:-1}})],O.Children.toArray(e.props.children)))),c]},rb=c({default:()=>ib}),ib=function(e,t){t===void 0&&(t={});var n=gh(),r=(0,O.useRef)(!1),i=(0,O.useRef)(0),a=(0,O.useRef)(0),o=wh({isSliding:!1,value:0}),s=o[0],c=o[1];return i.current=s.value,(0,O.useEffect)(function(){if(Nh){var o=t.styles===void 0?!0:t.styles,s=t.reverse===void 0?!1:t.reverse;e.current&&o&&(e.current.style.userSelect=`none`);var l=function(){!r.current&&n()&&((t.onScrubStart||Mh)(),r.current=!0,c({isSliding:!0}),h())},u=function(){r.current&&n()&&((t.onScrubStop||Mh)(i.current),r.current=!1,c({isSliding:!1}),g())},d=function(e){l(),f(e)},f=t.vertical?function(e){return _(e.clientY)}:function(e){return _(e.clientX)},p=function(e){l(),m(e)},m=t.vertical?function(e){return _(e.changedTouches[0].clientY)}:function(e){return _(e.changedTouches[0].clientX)},h=function(){Z(document,`mousemove`,f),Z(document,`mouseup`,u),Z(document,`touchmove`,m),Z(document,`touchend`,u)},g=function(){Q(document,`mousemove`,f),Q(document,`mouseup`,u),Q(document,`touchmove`,m),Q(document,`touchend`,u)},_=function(r){cancelAnimationFrame(a.current),a.current=requestAnimationFrame(function(){if(n()&&e.current){var i=e.current.getBoundingClientRect(),a=t.vertical?i.top:i.left,o=t.vertical?i.height:i.width;if(!o)return;var l=(r-a)/o;l>1?l=1:l<0&&(l=0),s&&(l=1-l),c({value:l}),(t.onScrub||Mh)(l)}})};return Z(e.current,`mousedown`,d),Z(e.current,`touchstart`,p),function(){Q(e.current,`mousedown`,d),Q(e.current,`touchstart`,p)}}else return},[e,t.vertical]),s},ab=c({default:()=>sb});mh();var ob;(function(e){e[e.init=0]=`init`,e[e.play=1]=`play`,e[e.pause=2]=`pause`,e[e.end=3]=`end`})(ob||={});var sb=function(e,t){var n=(0,O.useRef)(!1),r=(0,O.useState)(function(){var e=t.voice||{},n=e.lang,r=n===void 0?`default`:n,i=e.name,a=i===void 0?``:i;return{isPlaying:!1,status:ob[ob.init],lang:t.lang||`default`,voiceInfo:{lang:r,name:a},rate:t.rate||1,pitch:t.pitch||1,volume:t.volume||1}}),i=r[0],a=r[1],o=(0,O.useCallback)(function(){n.current&&a(function(e){return ch(ch({},e),{isPlaying:!0,status:ob[ob.play]})})},[]),s=(0,O.useCallback)(function(){n.current&&a(function(e){return ch(ch({},e),{isPlaying:!1,status:ob[ob.pause]})})},[]),c=(0,O.useCallback)(function(){n.current&&a(function(e){return ch(ch({},e),{isPlaying:!1,status:ob[ob.end]})})},[]);return(0,O.useEffect)(function(){n.current=!0;var r=new SpeechSynthesisUtterance(e);return t.lang&&(r.lang=t.lang),t.voice&&(r.voice=t.voice),r.rate=t.rate||1,r.pitch=t.pitch||1,r.volume=t.volume||1,r.onstart=o,r.onpause=s,r.onresume=o,r.onend=c,window.speechSynthesis.speak(r),function(){n.current=!1}},[]),i},cb=c({default:()=>db}),lb=function(){var e=document.activeElement,t=document.body;if(!e||e===t)return!1;switch(e.tagName){case`INPUT`:case`TEXTAREA`:return!0}return e.hasAttribute(`contenteditable`)},ub=function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,i=e.altKey;return n||r||i?!1:t>=48&&t<=57||t>=65&&t<=90},db=function(e){Ag(function(){var t=function(t){!lb()&&ub(t)&&e(t)};return Z(document,`keydown`,t),function(){Q(document,`keydown`,t)}},[])},fb=c({useStateWithHistory:()=>pb});function pb(e,t,n){if(t===void 0&&(t=10),t<1)throw Error(`Capacity has to be greater than 1, got '`+t+`'`);var r=Sm(),i=(0,O.useState)(e),a=i[0],o=i[1],s=(0,O.useRef)(n??[]),c=(0,O.useRef)(0);return r&&(s.current.length?(s.current[s.current.length-1]!==e&&s.current.push(e),s.current.length>t&&(s.current=s.current.slice(s.current.length-t))):s.current.push(e),c.current=s.current.length&&s.current.length-1),[a,(0,O.useCallback)(function(e){o(function(n){return e=mg(e,n),e!==n&&(c.current<s.current.length-1&&(s.current=s.current.slice(0,c.current+1)),c.current=s.current.push(e)-1,s.current.length>t&&(s.current=s.current.slice(s.current.length-t))),e})},[a,t]),(0,O.useMemo)(function(){return{history:s.current,position:c.current,capacity:t,back:function(e){e===void 0&&(e=1),c.current&&o(function(){return c.current-=Math.min(e,c.current),s.current[c.current]})},forward:function(e){e===void 0&&(e=1),c.current!==s.current.length-1&&o(function(){return c.current=Math.min(c.current+e,s.current.length-1),s.current[c.current]})},go:function(e){e!==c.current&&o(function(){return c.current=e<0?Math.max(s.current.length+e,0):Math.min(s.current.length-1,e),s.current[c.current]})}}},[a])]}var mb=c({default:()=>hb});mh();function hb(e){e===void 0&&(e=[]);var t=gh(),n=fg(),r=(0,O.useRef)(0);wm(function(){e.length<=r.current&&(r.current=e.length-1,n())},[e.length]);var i=(0,O.useMemo)(function(){return{next:function(){return i.setStateAt(r.current+1)},prev:function(){return i.setStateAt(r.current-1)},setStateAt:function(i){t()&&e.length&&i!==r.current&&(r.current=i>=0?i%e.length:e.length+i%e.length,n())},setState:function(i){if(t()){var a=e.length?e.indexOf(i):-1;if(a===-1)throw Error(`State '`+i+`' is not a valid state (does not exist in state list)`);r.current=a,n()}}}},[e]);return ch({state:e[r.current],currentIndex:r.current,isFirst:r.current===0,isLast:r.current===e.length-1},i)}var gb=c({default:()=>_b}),_b=function(e,t){t===void 0&&(t=200);var n=(0,O.useState)(e),r=n[0],i=n[1],a=(0,O.useRef)(),o=(0,O.useRef)(null),s=(0,O.useRef)(0);return(0,O.useEffect)(function(){if(a.current)o.current=e,s.current=!0;else{i(e);var n=function(){s.current?(s.current=!1,i(o.current),a.current=setTimeout(n,t)):a.current=void 0};a.current=setTimeout(n,t)}},[e]),Hv(function(){a.current&&clearTimeout(a.current)}),r},vb=c({default:()=>yb}),yb=function(e,t,n){t===void 0&&(t=200);var r=(0,O.useState)(null),i=r[0],a=r[1],o=(0,O.useRef)(),s=(0,O.useRef)();return(0,O.useEffect)(function(){if(o.current)s.current=n;else{a(e.apply(void 0,n));var r=function(){s.current?(a(e.apply(void 0,s.current)),s.current=void 0,o.current=setTimeout(r,t)):o.current=void 0};o.current=setTimeout(r,t)}},n),Hv(function(){o.current&&clearTimeout(o.current)}),i},bb=c({default:()=>xb});function xb(e){return e===void 0&&(e=0),Rg(fg(),e)}var Sb=c({default:()=>Tb}),Cb={restoreOnUnmount:!1};function wb(e,t){t===void 0&&(t=Cb);var n=(0,O.useRef)(document.title);document.title!==e&&(document.title=e),(0,O.useEffect)(function(){if(t&&t.restoreOnUnmount)return function(){document.title=n.current}},[])}var Tb=typeof document<`u`?wb:function(e){},Eb=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.easing={linear:function(e){return e},quadratic:function(e){return e*(-(e*e)*e+4*e*e-6*e+4)},cubic:function(e){return e*(4*e*e-9*e+6)},elastic:function(e){return e*(33*e*e*e*e-106*e*e*e+126*e*e-67*e+15)},inQuad:function(e){return e*e},outQuad:function(e){return e*(2-e)},inOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},inCubic:function(e){return e*e*e},outCubic:function(e){return--e*e*e+1},inOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},inQuart:function(e){return e*e*e*e},outQuart:function(e){return 1- --e*e*e*e},inOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},inQuint:function(e){return e*e*e*e*e},outQuint:function(e){return 1+--e*e*e*e*e},inOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},inSine:function(e){return-Math.cos(Math.PI/2*e)+1},outSine:function(e){return Math.sin(Math.PI/2*e)},inOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},inExpo:function(e){return 2**(10*(e-1))},outExpo:function(e){return-(2**(-10*e))+1},inOutExpo:function(e){return e/=.5,e<1?2**(10*(e-1))/2:(e--,(-(2**(-10*e))+2)/2)},inCirc:function(e){return-Math.sqrt(1-e*e)+1},outCirc:function(e){return Math.sqrt(1- --e*e)},inOutCirc:function(e){return e/=.5,e<1?-(Math.sqrt(1-e*e)-1)/2:(e-=2,(Math.sqrt(1-e*e)+1)/2)}}})),Db=c({default:()=>kb}),Ob=u(Eb()),kb=function(e,t,n){e===void 0&&(e=`inCirc`),t===void 0&&(t=200),n===void 0&&(n=0);var r=Ob.easing[e];return r(wy(t,n))},Ab=c({default:()=>jb}),jb=function(){var e=(0,O.useRef)(!1);return $g(function(){return function(){e.current=!0}}),(0,O.useMemo)(function(){return function(t,n){return new Promise(function(r,i){t.then(function(t){e.current||r(t)},function(t){e.current?n?n(t):console.error(`useUnmountPromise`,t):i(t)})})}},[])},Mb=c({default:()=>Nb});mh();function Nb(e,t){t===void 0&&(t=[]);var n=rv(t),r=n[0],i=n[1];return[r,ch(ch({},i),{upsert:function(t){i.upsert(e,t)}})]}var Pb=c({default:()=>Lb}),Fb=Ph&&`vibrate`in navigator;function Ib(e,t,n){e===void 0&&(e=!0),t===void 0&&(t=[1e3,1e3]),n===void 0&&(n=!0),(0,O.useEffect)(function(){var r;if(e&&(navigator.vibrate(t),n)){var i=t instanceof Array?t.reduce(function(e,t){return e+t}):t;r=setInterval(function(){navigator.vibrate(t)},i)}return function(){e&&(navigator.vibrate(0),n&&clearInterval(r))}},[e])}var Lb=Fb?Ib:Mh,Rb=c({default:()=>zb}),zb=Oh(`video`),Bb=c({default:()=>Vb});function Vb(e,t,n){n===void 0&&(n=[void 0]);var r=(0,O.useRef)(t),i=(0,O.useRef)(e);r.current=t,i.current=e;var a=(0,O.useState)(n),o=a[0],s=a[1],c=(0,O.useCallback)(function(){r.current.length>=2?r.current(i.current,s):s(r.current(i.current))},[s]);return(0,O.useEffect)(function(){c()},[e]),[o,c]}var Hb=c({scrollbarWidth:()=>Ub}),Ub=function(e){if(typeof document>`u`)return 0;if(document.body&&(!document.readyState||document.readyState!==`loading`)){if(!0!==e&&typeof Ub.__cache==`number`)return Ub.__cache;var t=document.createElement(`div`),n=t.style;n.display=`block`,n.position=`absolute`,n.width=`100px`,n.height=`100px`,n.left=`-999px`,n.top=`-999px`,n.overflow=`scroll`,document.body.insertBefore(t,null);var r=t.clientWidth;if(r!==0)return Ub.__cache=100-r,document.body.removeChild(t),Ub.__cache;document.body.removeChild(t)}},Wb=c({useScrollbarWidth:()=>Gb});function Gb(){var e=(0,O.useState)(Ub()),t=e[0],n=e[1];return(0,O.useEffect)(function(){if(t===void 0){var e=requestAnimationFrame(function(){n(Ub())});return function(){return cancelAnimationFrame(e)}}},[]),t}var Kb=c({useMultiStateValidator:()=>qb});function qb(e,t,n){if(n===void 0&&(n=[void 0]),typeof e!=`object`)throw Error(`states expected to be an object or array, got `+typeof e);var r=(0,O.useRef)(t),i=(0,O.useRef)(e);r.current=t,i.current=e;var a=(0,O.useState)(n),o=a[0],s=a[1],c=(0,O.useCallback)(function(){r.current.length>=2?r.current(i.current,s):s(r.current(i.current))},[s]);return(0,O.useEffect)(function(){c()},Object.values(e)),[o,c]}var Jb=c({default:()=>Yb}),Yb=function(){var e=Wv(function(){return{x:Nh?window.pageXOffset:0,y:Nh?window.pageYOffset:0}}),t=e[0],n=e[1];return(0,O.useEffect)(function(){var e=function(){n(function(e){var t=window.pageXOffset,n=window.pageYOffset;return e.x!==t||e.y!==n?{x:t,y:n}:e})};return e(),Z(window,`scroll`,e,{capture:!1,passive:!0}),function(){Q(window,`scroll`,e)}},[]),t},Xb=c({default:()=>Zb}),Zb=function(e){var t=e===void 0?{}:e,n=t.initialWidth,r=n===void 0?1/0:n,i=t.initialHeight,a=i===void 0?1/0:i,o=t.onChange,s=Wv({width:Nh?window.innerWidth:r,height:Nh?window.innerHeight:a}),c=s[0],l=s[1];return(0,O.useEffect)(function(){if(Nh){var e=function(){var e=window.innerWidth,t=window.innerHeight;l({width:e,height:t}),o&&o(e,t)};return Z(window,`resize`,e),function(){Q(window,`resize`,e)}}},[]),c},Qb=c({default:()=>tx}),$b={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function ex(){var e=(0,O.useState)(null),t=e[0],n=e[1],r=(0,O.useState)($b),i=r[0],a=r[1],o=(0,O.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,r=t.y,i=t.width,o=t.height,s=t.top,c=t.left,l=t.bottom,u=t.right;a({x:n,y:r,width:i,height:o,top:s,left:c,bottom:l,right:u})}})},[]);return Ag(function(){if(t)return o.observe(t),function(){o.disconnect()}},[t]),[n,i]}var tx=Nh&&window.ResizeObserver!==void 0?ex:(function(){return[Mh,$b]}),nx=c({ZoomState:()=>rx,default:()=>ix}),rx;(function(e){e.ZOOMING_IN=`ZOOMING_IN`,e.ZOOMING_OUT=`ZOOMING_OUT`})(rx||={});var ix=function(e){var t=(0,O.useMemo)(function(){return{evCache:[],prevDiff:-1}},[e.current]),n=(0,O.useState)(),r=n[0],i=n[1],a=function(e){for(var n=0;n<t.evCache.length;n++)if(e.pointerId==t.evCache[n].pointerId){t.evCache[n]=e;break}if(t.evCache.length==2){var r=Math.abs(t.evCache[0].clientX-t.evCache[1].clientX);t.prevDiff>0&&(r>t.prevDiff&&i([rx.ZOOMING_IN,r]),r<t.prevDiff&&i([rx.ZOOMING_OUT,r])),t.prevDiff=r}},o=function(e){t.evCache.push(e)},s=function(e){c(e),t.evCache.length<2&&(t.prevDiff=-1)},c=function(e){for(var n=0;n<t.evCache.length;n++)if(t.evCache[n].pointerId==e.pointerId){t.evCache.splice(n,1);break}};return(0,O.useEffect)(function(){e?.current&&(e.current.onpointerdown=o,e.current.onpointermove=a,e.current.onpointerup=s,e.current.onpointercancel=s,e.current.onpointerout=s,e.current.onpointerleave=s)},[e?.current]),r?{zoomingState:r[0],pinchState:r[1]}:{zoomingState:null,pinchState:0}},ax=c({useRendersCount:()=>ox});function ox(){return++(0,O.useRef)(0).current}var sx=c({default:()=>cx});mh();var cx=function(e){e===void 0&&(e=new Set);var t=(0,O.useState)(e),n=t[0],r=t[1],i=(0,O.useMemo)(function(){return{add:function(e){return r(function(t){return new Set(Km(Array.from(t),[e]))})},remove:function(e){return r(function(t){return new Set(Array.from(t).filter(function(t){return t!==e}))})},toggle:function(e){return r(function(t){return t.has(e)?new Set(Array.from(t).filter(function(t){return t!==e})):new Set(Km(Array.from(t),[e]))})},reset:function(){return r(e)},clear:function(){return r(new Set)}}},[r]);return[n,ch({has:(0,O.useCallback)(function(e){return n.has(e)},[n])},i)]},lx=c({createGlobalState:()=>ux,default:()=>ux});function ux(e){var t={state:e instanceof Function?e():e,setState:function(e){t.state=mg(e,t.state),t.setters.forEach(function(e){return e(t.state)})},setters:[]};return function(){var e=(0,O.useState)(t.state),n=e[0],r=e[1];return $g(function(){return function(){t.setters=t.setters.filter(function(e){return e!==r})}}),Ag(function(){t.setters.includes(r)||t.setters.push(r)}),[n,t.setState]}}var dx=c({useHash:()=>fx}),fx=function(){var e=(0,O.useState)(function(){return window.location.hash}),t=e[0],n=e[1],r=(0,O.useCallback)(function(){n(window.location.hash)},[]);return tv(function(){Z(window,`hashchange`,r)},function(){Q(window,`hashchange`,r)}),[t,(0,O.useCallback)(function(e){e!==t&&(window.location.hash=e)},[t])]},px=c({createBreakpoint:()=>q_,createGlobalState:()=>ux,createMemo:()=>vm,createReducer:()=>Dm,createReducerContext:()=>bm,createStateContext:()=>km,ensuredForwardRef:()=>n_,useAsync:()=>bh,useAsyncFn:()=>vh,useAsyncRetry:()=>Sh,useAudio:()=>Ah,useBattery:()=>Wh,useBeforeUnload:()=>Kh,useBoolean:()=>Zh,useClickAway:()=>eg,useCookie:()=>ig,useCopyToClipboard:()=>lg,useCounter:()=>vg,useCss:()=>Pg,useCustomCompareEffect:()=>Ig,useDebounce:()=>Bg,useDeepCompareEffect:()=>Hg,useDefault:()=>Wg,useDrop:()=>qg,useDropArea:()=>Zg,useEffectOnce:()=>$g,useEnsuredForwardedRef:()=>t_,useError:()=>l_,useEvent:()=>s_,useFavicon:()=>d_,useFirstMountState:()=>Sm,useFullscreen:()=>h_,useGeolocation:()=>__,useGetSet:()=>gg,useGetSetState:()=>y_,useHarmonicIntervalFn:()=>E_,useHash:()=>fx,useHover:()=>k_,useHoverDirty:()=>j_,useIdle:()=>R_,useIntersection:()=>B_,useInterval:()=>H_,useIsomorphicLayoutEffect:()=>Ag,useKey:()=>G_,useKeyPress:()=>Y_,useKeyPressEvent:()=>Z_,useLatest:()=>$_,useLifecycles:()=>tv,useList:()=>rv,useLocalStorage:()=>av,useLocation:()=>uv,useLockBodyScroll:()=>vv,useLogger:()=>bv,useLongPress:()=>wv,useMap:()=>Ev,useMeasure:()=>tx,useMedia:()=>kv,useMediaDevices:()=>jv,useMediatedState:()=>Nv,useMethods:()=>Fv,useMotion:()=>Rv,useMount:()=>Bv,useMountedState:()=>gh,useMouse:()=>Kv,useMouseHovered:()=>Yv,useMouseWheel:()=>Zv,useMultiStateValidator:()=>qb,useNetworkState:()=>ny,useNumber:()=>iy,useObservable:()=>oy,useOrientation:()=>ly,usePageLeave:()=>dy,usePermission:()=>py,usePinchZoom:()=>ix,usePrevious:()=>hy,usePreviousDistinct:()=>vy,usePromise:()=>by,useQueue:()=>Sy,useRaf:()=>wy,useRafLoop:()=>Ey,useRafState:()=>Wv,useRendersCount:()=>ox,useScratch:()=>Ry,useScroll:()=>Vy,useScrollbarWidth:()=>Gb,useScrolling:()=>Uy,useSearchParam:()=>ky,useSessionStorage:()=>Gy,useSet:()=>cx,useSetState:()=>wh,useShallowCompareEffect:()=>Xy,useSize:()=>nb,useSlider:()=>ib,useSpeech:()=>sb,useStartTyping:()=>db,useStateList:()=>hb,useStateValidator:()=>Vb,useStateWithHistory:()=>pb,useThrottle:()=>_b,useThrottleFn:()=>yb,useTimeout:()=>xb,useTimeoutFn:()=>Rg,useTitle:()=>Tb,useToggle:()=>Yh,useTween:()=>kb,useUnmount:()=>Hv,useUnmountPromise:()=>jb,useUpdate:()=>fg,useUpdateEffect:()=>wm,useUpsert:()=>Nb,useVibrate:()=>Lb,useVideo:()=>zb,useWindowScroll:()=>Yb,useWindowSize:()=>Zb}),mx=c({default:()=>hx});function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hx.apply(null,arguments)}var gx=c({Action:()=>_x,createBrowserHistory:()=>Sx,createHashHistory:()=>Cx,createMemoryHistory:()=>wx,createPath:()=>kx,parsePath:()=>Ax}),_x;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(_x||={});var vx=function(e){return e},yx=`beforeunload`,bx=`hashchange`,xx=`popstate`;function Sx(e){e===void 0&&(e={});var t=e.window,n=t===void 0?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,a=e.hash,o=r.state||{};return[o.idx,vx({pathname:t,search:i,hash:a,state:o.usr||null,key:o.key||`default`})]}var a=null;function o(){if(a)f.call(a),a=null;else{var e=_x.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(n!=null){var o=l-n;o&&(a={action:e,location:r,retry:function(){b(o*-1)}},b(o))}}else _(e)}}n.addEventListener(xx,o);var s=_x.Pop,c=i(),l=c[0],u=c[1],d=Dx(),f=Dx();l??(l=0,r.replaceState(hx({},r.state,{idx:l}),``));function p(e){return typeof e==`string`?e:kx(e)}function m(e,t){return t===void 0&&(t=null),vx(hx({pathname:u.pathname,hash:``,search:``},typeof e==`string`?Ax(e):e,{state:t,key:Ox()}))}function h(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function g(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function _(e){s=e;var t=i();l=t[0],u=t[1],d.call({action:s,location:u})}function v(e,t){var i=_x.Push,a=m(e,t);function o(){v(e,t)}if(g(i,a,o)){var s=h(a,l+1),c=s[0],u=s[1];try{r.pushState(c,``,u)}catch{n.location.assign(u)}_(i)}}function y(e,t){var n=_x.Replace,i=m(e,t);function a(){y(e,t)}if(g(n,i,a)){var o=h(i,l),s=o[0],c=o[1];r.replaceState(s,``,c),_(n)}}function b(e){r.go(e)}return{get action(){return s},get location(){return u},createHref:p,push:v,replace:y,go:b,back:function(){b(-1)},forward:function(){b(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return f.length===1&&n.addEventListener(yx,Ex),function(){t(),f.length||n.removeEventListener(yx,Ex)}}}}function Cx(e){e===void 0&&(e={});var t=e.window,n=t===void 0?document.defaultView:t,r=n.history;function i(){var e=Ax(n.location.hash.substr(1)),t=e.pathname,i=t===void 0?`/`:t,a=e.search,o=a===void 0?``:a,s=e.hash,c=s===void 0?``:s,l=r.state||{};return[l.idx,vx({pathname:i,search:o,hash:c,state:l.usr||null,key:l.key||`default`})]}var a=null;function o(){if(a)f.call(a),a=null;else{var e=_x.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(n!=null){var o=l-n;o&&(a={action:e,location:r,retry:function(){x(o*-1)}},x(o))}}else v(e)}}n.addEventListener(xx,o),n.addEventListener(bx,function(){var e=i()[1];kx(e)!==kx(u)&&o()});var s=_x.Pop,c=i(),l=c[0],u=c[1],d=Dx(),f=Dx();l??(l=0,r.replaceState(hx({},r.state,{idx:l}),``));function p(){var e=document.querySelector(`base`),t=``;if(e&&e.getAttribute(`href`)){var r=n.location.href,i=r.indexOf(`#`);t=i===-1?r:r.slice(0,i)}return t}function m(e){return p()+`#`+(typeof e==`string`?e:kx(e))}function h(e,t){return t===void 0&&(t=null),vx(hx({pathname:u.pathname,hash:``,search:``},typeof e==`string`?Ax(e):e,{state:t,key:Ox()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},m(e)]}function _(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function v(e){s=e;var t=i();l=t[0],u=t[1],d.call({action:s,location:u})}function y(e,t){var i=_x.Push,a=h(e,t);function o(){y(e,t)}if(_(i,a,o)){var s=g(a,l+1),c=s[0],u=s[1];try{r.pushState(c,``,u)}catch{n.location.assign(u)}v(i)}}function b(e,t){var n=_x.Replace,i=h(e,t);function a(){b(e,t)}if(_(n,i,a)){var o=g(i,l),s=o[0],c=o[1];r.replaceState(s,``,c),v(n)}}function x(e){r.go(e)}return{get action(){return s},get location(){return u},createHref:m,push:y,replace:b,go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return f.length===1&&n.addEventListener(yx,Ex),function(){t(),f.length||n.removeEventListener(yx,Ex)}}}}function wx(e){e===void 0&&(e={});var t=e,n=t.initialEntries,r=n===void 0?[`/`]:n,i=t.initialIndex,a=r.map(function(e){return vx(hx({pathname:`/`,search:``,hash:``,state:null,key:Ox()},typeof e==`string`?Ax(e):e))}),o=Tx(i??a.length-1,0,a.length-1),s=_x.Pop,c=a[o],l=Dx(),u=Dx();function d(e){return typeof e==`string`?e:kx(e)}function f(e,t){return t===void 0&&(t=null),vx(hx({pathname:c.pathname,search:``,hash:``},typeof e==`string`?Ax(e):e,{state:t,key:Ox()}))}function p(e,t,n){return!u.length||(u.call({action:e,location:t,retry:n}),!1)}function m(e,t){s=e,c=t,l.call({action:s,location:c})}function h(e,t){var n=_x.Push,r=f(e,t);function i(){h(e,t)}p(n,r,i)&&(o+=1,a.splice(o,a.length,r),m(n,r))}function g(e,t){var n=_x.Replace,r=f(e,t);function i(){g(e,t)}p(n,r,i)&&(a[o]=r,m(n,r))}function _(e){var t=Tx(o+e,0,a.length-1),n=_x.Pop,r=a[t];function i(){_(e)}p(n,r,i)&&(o=t,m(n,r))}return{get index(){return o},get action(){return s},get location(){return c},createHref:d,push:h,replace:g,go:_,back:function(){_(-1)},forward:function(){_(1)},listen:function(e){return l.push(e)},block:function(e){return u.push(e)}}}function Tx(e,t,n){return Math.min(Math.max(e,t),n)}function Ex(e){e.preventDefault(),e.returnValue=``}function Dx(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function Ox(){return Math.random().toString(36).substr(2,8)}function kx(e){var t=e.pathname,n=t===void 0?`/`:t,r=e.search,i=r===void 0?``:r,a=e.hash,o=a===void 0?``:a;return i&&i!==`?`&&(n+=i.charAt(0)===`?`?i:`?`+i),o&&o!==`#`&&(n+=o.charAt(0)===`#`?o:`#`+o),n}function Ax(e){var t={};if(e){var n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var jx=c({default:()=>Px}),Mx=window.MUSE_GLOBAL?.appConfig?.routerType||`browser`,Nx;switch(Mx){case`browser`:Nx=Sx;break;case`memory`:Nx=wx;break;case`hash`:Nx=Cx;break;default:Nx=Sx;break}var Px=Nx(),Fx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.parse=u,e.compile=d,e.match=m,e.pathToRegexp=h,e.stringify=b;var t=`/`,n=e=>e,r=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,a=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;function o(e){return e.replace(/[{}()\[\]+?!:*\\]/g,`\\$&`)}function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var c=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=c;var l=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=l;function u(e,t={}){let{encodePath:a=n}=t,o=[...e],s=0;function u(t){let n=[],c=``;function d(){c&&=(n.push({type:`text`,value:a(c)}),``)}for(;s<o.length;){let a=o[s++];if(a===t)return d(),n;if(a===`\\`){if(s===o.length)throw new l(`Unexpected end after \\ at index ${s}`,e);c+=o[s++];continue}if(a===`:`||a===`*`){let t=a===`:`?`param`:`wildcard`,c=``;if(r.test(o[s]))do c+=o[s++];while(i.test(o[s]));else if(o[s]===`"`){let t=s;for(;s<o.length;){if(o[++s]===`"`){s++,t=0;break}o[s]===`\\`&&s++,c+=o[s]}if(t)throw new l(`Unterminated quote at index ${t}`,e)}if(!c)throw new l(`Missing parameter name at index ${s}`,e);d(),n.push({type:t,name:c});continue}if(a===`{`){d(),n.push({type:`group`,tokens:u(`}`)});continue}if(a===`}`||a===`(`||a===`)`||a===`[`||a===`]`||a===`+`||a===`?`||a===`!`)throw new l(`Unexpected ${a} at index ${s-1}`,e);c+=a}if(t)throw new l(`Unexpected end at index ${s}, expected ${t}`,e);return d(),n}return new c(u(``),e)}function d(e,n={}){let{encode:r=encodeURIComponent,delimiter:i=t}=n,a=f((typeof e==`object`?e:u(e,n)).tokens,i,r);return function(e={}){let t=[],n=a(e,t);if(t.length)throw TypeError(`Missing parameters: ${t.join(`, `)}`);return n}}function f(e,t,n){let r=e.map(e=>p(e,t,n));return(e,t)=>{let n=``;for(let i of r)n+=i(e,t);return n}}function p(e,t,r){if(e.type===`text`)return()=>e.value;if(e.type===`group`){let n=f(e.tokens,t,r);return(e,t)=>{let r=t.length,i=n(e,t);return t.length===r?i:(t.length=r,``)}}let i=r||n;return e.type===`wildcard`&&r!==!1?(n,r)=>{let a=n[e.name];if(a==null)return r.push(e.name),``;if(!Array.isArray(a)||a.length===0)throw TypeError(`Expected "${e.name}" to be a non-empty array`);let o=``;for(let n=0;n<a.length;n++){if(typeof a[n]!=`string`)throw TypeError(`Expected "${e.name}/${n}" to be a string`);n>0&&(o+=t),o+=i(a[n])}return o}:(t,n)=>{let r=t[e.name];if(r==null)return n.push(e.name),``;if(typeof r!=`string`)throw TypeError(`Expected "${e.name}" to be a string`);return i(r)}}function m(e,r={}){let{decode:i=decodeURIComponent,delimiter:a=t}=r,{regexp:o,keys:s}=h(e,r),c=s.map(e=>i===!1?n:e.type===`param`?i:e=>e.split(a).map(i));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=s[e-1],i=c[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function h(e,n={}){let{delimiter:r=t,end:i=!0,sensitive:a=!1,trailing:o=!0}=n,c=[],d=``,f=0;function p(e){if(Array.isArray(e)){for(let t of e)p(t);return}let t=typeof e==`object`?e:u(e,n);g(t.tokens,0,[],e=>{if(f>=256)throw new l(`Too many path combinations`,t.originalPath);f>0&&(d+=`|`),d+=_(e,r,c,t.originalPath),f++})}p(e);let m=`^(?:${d})`;return o&&(m+=`(?:`+s(r)+`$)?`),m+=i?`$`:`(?=`+s(r)+`|$)`,{regexp:new RegExp(m,a?``:`i`),keys:c}}function g(e,t,n,r){for(;t<e.length;){let i=e[t++];if(i.type===`group`){let a=n.length;g(i.tokens,0,n,n=>g(e,t,n,r)),n.length=a;continue}n.push(i)}r(n)}function _(e,t,n,r){let i=``,a=``,o=``,c=0,u=0,d=0;function f(n,r){for(;n<e.length;){let i=e[n++];if(i.type===r)return!0;if(i.type===`text`&&i.value.includes(t))break}return!1}function p(t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type!==`text`)break;n+=r.value}return n}for(;d<e.length;){let m=e[d++];if(m.type===`text`){i+=s(m.value),a+=m.value,c===2&&(o+=m.value),m.value.includes(t)&&(u=0);continue}if(m.type===`param`||m.type===`wildcard`){if(c&&!a)throw new l(`Missing text before "${m.name}" ${m.type}`,r);m.type===`param`?(i+=u&2?`(${v(t,a)}+)`:f(d,`wildcard`)?`(${v(t,p(d))}+)`:u&1?`(${v(t,a)}+|${s(a)})`:`(${v(t,``)}+)`,u|=c=1):(i+=u&2?`(${v(a,``)}+)`:o?`(${v(o,``)}+|${v(t,``)}+)`:`([^]+)`,o=``,u|=c=2),n.push(m),a=``;continue}throw TypeError(`Unknown token type: ${m.type}`)}return i}function v(e,t){return t.length>e.length?v(t,e):(e===t&&(t=``),t.length>1?`(?:(?!${s(e)}|${s(t)})[^])`:e.length>1?`(?:(?!${s(e)})[^${s(t)}])`:`[^${s(e+t)}]`)}function y(e,t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type===`text`){n+=o(r.value);continue}if(r.type===`group`){n+=`{`+y(r.tokens,0)+`}`;continue}if(r.type===`param`){n+=`:`+x(r.name,e[t]);continue}if(r.type===`wildcard`){n+=`*`+x(r.name,e[t]);continue}throw TypeError(`Unknown token type: ${r.type}`)}return n}function b(e){return y(e.tokens,0)}function x(e,t){return!a.test(e)||t?.type===`text`&&i.test(t.value[0])?JSON.stringify(e):e}})),Ix=c({default:()=>Rx}),Lx=u(Fx(),1),Rx={getChildUrlPath(e){let t=document.location.href.replace(document.location.origin,``),n=(0,Lx.match)(e.path,{decode:decodeURIComponent,end:!1})(t);if(console.log(e.path,t,n),n){let r=Zd.default.template(e.url)(n.params),i=t.replace((0,Lx.pathToRegexp)(e.path,[],{end:!1}),``),a=r.split(`/`);a.splice(0,3);let o=a.join(`/`).replace(/\/*$/,``)+i;return o.startsWith(`/`)||(o=`/`+o),console.log(`childUrlPath: `,o),o}return null},getParentPath(e,t){let n=document.location.href.replace(document.location.origin,``),r=(0,Lx.match)(t.path,{decode:decodeURIComponent,end:!1})(n);if(!r)return null;let i=Zd.default.template(t.url)(r.params);console.log(`child full path: `,e,t);let a=`/`+i.split(`/`).slice(3).join(`/`);if(console.log(`mountedSubPath: `,a),!(a===`/`||e.startsWith(a)&&[``,`?`,`/`,`#`].includes(e.charAt(a.length))))return;let o=(0,Lx.pathToRegexp)(t.path,[],{end:!1}),s=document.location.pathname;if(!o.test(s))return;let c=s.match(o);console.log(`parent register path: `,c[0]);let l=(c[0]+e.replace(a,``)).replace(/\/+/g,`/`).replace(/\/$/,``);return console.log(`newParentFullPath: `,l),l},getOrigin(e){let t=e.split(`/`);return t.length=3,t.join(`/`)}},zx=c({default:()=>Ux}),Bx=Zd.default.debounce(e=>{Px.push(e)}),Vx=window.MUSE_GLOBAL.msgEngine,Hx={};function Ux({context:e=null,subApp:t}){let n=(0,O.useRef)(),[r,i]=(0,O.useState)(),a=uv(),o=a.href.replace(a.origin,``),s=Rx.getChildUrlPath(t),c=Hx[t.url],l=`${Rx.getOrigin(t.url)}${s}`;(0,O.useEffect)(()=>{n.current&&r===`app-loaded`&&Vx?.sendToChild({type:`sub-app-context-change`,data:e},c)},[e,t,c,r]);let u=(0,O.useCallback)(async e=>{try{await window.MUSE_GLOBAL?.msgEngine.assertMuseApp(e)}catch(e){console.log(`Not a muse app: `,e),i(`not-a-muse-app`)}},[]);(0,O.useEffect)(()=>{if(!s||!n.current)return;let e=Hx[t.url],r=n.current.getBoundingClientRect();e?e.style.left=r.left+`px`:(e=document.createElement(`iframe`),e.src=l,e.onload=()=>u(e),Hx[t.url]=e,Object.assign(e.style,{position:`fixed`,top:r.top+`px`,left:r.left+`px`,width:r.width+`px`,height:r.height+`px`,border:`none`,zIndex:1e3,margin:0}),document.body.appendChild(e))},[l,u,s,t.url]),(0,O.useEffect)(()=>{c&&Vx?.sendToChild({type:`parent-route-change`,path:s},c)},[s,c]),(0,O.useEffect)(()=>()=>{let e=Hx[t.url];e&&(e.style.left=`-100000px`)},[t.url]),s_(`resize`,(0,O.useCallback)(()=>{let e=Hx[t.url];if(e&&n.current){let t=n.current.getBoundingClientRect();Object.assign(e.style,{width:t.width+`px`,height:t.height+`px`})}},[t.url]));let d=(0,O.useCallback)(n=>{if(n.type)if(n.type===`child-route-change`&&n.path){let e=Rx.getParentPath(n.path,t);e!==o&&Bx(e)}else n.type===`app-state-change`&&(i(n.state),n.state===`app-loaded`&&(Vx?.sendToChild({type:`sub-app-context-change`,data:e},c),c.museLoaded=!0))},[t,o,i,e,c]);return(0,O.useEffect)(()=>{let e=Math.random();return Vx?.addListener(e,d),()=>Vx?.removeListener(e)},[d]),s?(0,X.jsxs)(`div`,{className:`muse-react_sub-app-sub-app-container`,children:[!c?.museLoaded&&r!==`app-loaded`&&r!==`app-failed`&&r!==`login-page`&&r!==`check-c2s-proxy-failed`&&(0,X.jsx)(Xx,{state:r}),r===`app-failed`&&(0,X.jsxs)(`div`,{className:`sub-app-sub-app-failed`,children:[`Failed to start sub app `,t.name,`: /`,t.path,` => `,t.url,`.`]}),r===`check-c2s-proxy-failed`&&(0,X.jsx)(eS,{}),(0,X.jsx)(`div`,{ref:n,style:{visibility:[`app-loaded`,`login-page`].includes(r)?`visible`:`hidden`},className:`sub-app-iframe-wrapper`})]}):`Error: can not detect a sub app. Are you using sub app container correctly?`}var Wx=c({default:()=>qx}),Gx=Zd.default.debounce(e=>{Px.push(e)}),Kx=window.MUSE_GLOBAL.msgEngine;function qx({context:e=null,subApp:t}){let n=(0,O.useRef)(),[r,i]=(0,O.useState)(),a=uv(),o=a.href.replace(a.origin,``),s=Rx.getChildUrlPath(t);console.log(`subPath`,s);let c=n.current?.firstChild,l=`${Rx.getOrigin(t.url)}${s}`;(0,O.useEffect)(()=>{n.current&&r===`app-loaded`&&Kx?.sendToChild({type:`sub-app-context-change`,data:e},c)},[e,t,c,r]),(0,O.useEffect)(()=>{if(!s||!n.current)return;let e=n.current?.firstChild;e||(e=document.createElement(`iframe`),e.src=l,n.current.appendChild(e))},[l,s]),(0,O.useEffect)(()=>{!c||!s||Kx?.sendToChild({type:`parent-route-change`,path:s,url:s},c)},[s,c]);let u=(0,O.useCallback)(n=>{if(n.type)if(n.type===`child-route-change`&&n.path){let e=Rx.getParentPath(n.path,t);e!==o&&e&&Gx(e)}else n.type===`app-state-change`&&(i(n.state),n.state===`app-loaded`&&(Kx?.sendToChild({type:`sub-app-context-change`,data:e},c),c.museLoaded=!0))},[t,o,i,e,c]);return(0,O.useEffect)(()=>{let e=Math.random();return Kx?.addListener(e,u),()=>Kx?.removeListener(e)},[u]),(0,X.jsxs)(`div`,{className:`muse-react_sub-app-fixed-sub-app-container`,children:[!c?.museLoaded&&r!==`app-loaded`&&r!==`app-failed`&&r!==`login-page`&&r!==`check-c2s-proxy-failed`&&(0,X.jsx)(Xx,{state:r}),r===`app-failed`&&(0,X.jsxs)(`div`,{className:`sub-app-sub-app-failed`,children:[`Failed to start sub app `,t.name,`: /`,t.path,` => `,t.url,`.`]}),r===`check-c2s-proxy-failed`&&(0,X.jsx)(eS,{}),(0,X.jsx)(`div`,{ref:n,style:{visibility:[`app-loaded`,`login-page`].includes(r)?`visible`:`hidden`},className:`sub-app-iframe-wrapper`})]})}var Jx=c({default:()=>Xx}),Yx={"app-starting":`Loading sub app...`,"app-loading":`Starting sub app...`,"fetch-user-info":`Fetching user info...`,"app-begin-login":`Checking authentication...`,"check-c2s-proxy":`Checking c2s proxy...`};function Xx({state:e}){return(0,X.jsx)(`div`,{className:`sub-app-loading-skeleton`,children:(0,X.jsx)(`div`,{className:`sub-app-loading-center-container`,children:(0,X.jsx)(`label`,{children:Yx[e]||`Loading sub app...`})})})}var Zx=c({default:()=>Qx}),Qx=O.createContext(),$x=c({default:()=>eS});function eS(){return(0,X.jsxs)(`div`,{className:`sub-app-c-2-s-proxy-failed`,children:[(0,X.jsx)(`h3`,{children:`Error: failed to detect c2s proxy.`}),(0,X.jsx)(`p`,{children:`This page needs c2s proxy, please config it and refresh the page.`})]})}var tS=c({C2SProxyFailed:()=>eS,FixedSubAppContainer:()=>qx,LoadingSkeleton:()=>Xx,SubAppContainer:()=>Ux,SubAppContext:()=>Qx}),nS=c({default:()=>aS}),rS=[],iS=window.MUSE_GLOBAL?.plugins?.find(e=>e.name===`@ebay/muse-lib-react`);iS?.subApps?.filter(e=>e.mountPoint===`default`||!e.mountPoint)?.forEach(e=>{rS.push({path:e.path+`/*`,component:()=>(0,X.jsx)(Ux,{subApps:iS?.config?.subApps||[],subApp:e},e.url)})});var aS={path:`sub-app`,childRoutes:[...rS]},oS=c({default:()=>uS}),sS=[mm,gm,aS];function cS(e){if(!e.childRoutes||!e.childRoutes.length)return;let t=Zd.default.find(e.childRoutes,e=>e.isIndex);if(t){let n={...t};n.path=``,n.exact=!0,n.autoIndexRoute=!0,e.childRoutes.unshift(n)}e.childRoutes.forEach(cS)}var lS=e=>{let t={},n=[...e],r=[];for(;n.length>0;){let i=n.shift();i?.id&&(t[i.id]=i),i.childRoutes&&(Zd.default.forEachRight([...i.childRoutes],(e,t)=>{Zd.default.isArray(e?.path)&&i.childRoutes.splice(t,1,...e.path.map(e=>({...i,path:e})))}),n.push(...i.childRoutes),[...i.childRoutes].forEach(t=>{t?.path?.startsWith(`/`)?(Zd.default.pull(i.childRoutes,t),e.unshift(t)):t.parent&&(r.push(t),Zd.default.pull(i.childRoutes,t))}))}r.forEach(e=>{let n=e.parent;t[n]?(t[n].childRoutes||(t[n].childRoutes=[]),t[n].childRoutes.unshift(e)):console.warn(`Warning: no parent route found with id ${n}.`,e)})},uS=()=>{let e=[...sS];Vf.default.invoke(`!route`).forEach(t=>{e.push(...Zd.default.castArray(t))});let t=window.MUSE_GLOBAL||{},n=Xp,r=Vf.default.getPlugins(`home.homepage`);if(r.length===1)n=r[0].home.homepage;else if(r.length>1){let e=Zd.default.find(r,{name:t.homepage});n=e?e.home.homepage:()=>(0,X.jsxs)(`div`,{style:{color:`red`,padding:`20px`},children:[`Failed to show homepage: multiple homepages found from:`,` `,r.map(e=>e.name).join(`, `),`. You should load only one plugin which defines homepage.`]})}e.unshift({path:``,component:n});let i=[{path:`/`,component:Kp,childRoutes:[...Zd.default.cloneDeep(e),{path:`*`,name:`Page not found`,component:$p}].filter(e=>e.component||e.render||e.childRoutes&&e.childRoutes.length>0)}];return i.forEach(cS),lS(i[0].childRoutes),i},dS=c({Subscribable:()=>fS}),fS=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pS=c({FocusManager:()=>mS,focusManager:()=>hS}),mS=class extends fS{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},hS=new mS,gS=c({TimeoutManager:()=>vS,defaultTimeoutProvider:()=>_S,systemSetTimeoutZero:()=>bS,timeoutManager:()=>yS}),_S={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},vS=class{#e=_S;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},yS=new vS;function bS(e){setTimeout(e,0)}var xS=c({addConsumeAwareSignal:()=>JS,addToEnd:()=>US,addToStart:()=>WS,ensureQueryFn:()=>KS,functionalUpdate:()=>wS,hashKey:()=>MS,hashQueryKeyByOptions:()=>jS,isPlainArray:()=>LS,isPlainObject:()=>RS,isServer:()=>SS,isValidTimeout:()=>TS,keepPreviousData:()=>HS,matchMutation:()=>AS,matchQuery:()=>kS,noop:()=>CS,partialMatchKey:()=>NS,replaceData:()=>VS,replaceEqualDeep:()=>FS,resolveQueryBoolean:()=>OS,resolveStaleTime:()=>DS,shallowEqualObjects:()=>IS,shouldThrowError:()=>qS,skipToken:()=>GS,sleep:()=>BS,timeUntilStale:()=>ES}),SS=typeof window>`u`||`Deno`in globalThis;function CS(){}function wS(e,t){return typeof e==`function`?e(t):e}function TS(e){return typeof e==`number`&&e>=0&&e!==1/0}function ES(e,t){return Math.max(e+(t||0)-Date.now(),0)}function DS(e,t){return typeof e==`function`?e(t):e}function OS(e,t){return typeof e==`function`?e(t):e}function kS(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==jS(o,t.options))return!1}else if(!NS(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function AS(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(MS(t.options.mutationKey)!==MS(a))return!1}else if(!NS(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function jS(e,t){return(t?.queryKeyHashFn||MS)(e)}function MS(e){return JSON.stringify(e,(e,t)=>RS(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function NS(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>NS(e[n],t[n])):!1}var PS=Object.prototype.hasOwnProperty;function FS(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=LS(e)&&LS(t);if(!r&&!(RS(e)&&RS(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:PS.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=FS(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function IS(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function LS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function RS(e){if(!zS(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!zS(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function zS(e){return Object.prototype.toString.call(e)===`[object Object]`}function BS(e){return new Promise(t=>{yS.setTimeout(t,e)})}function VS(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:FS(e,t)}function HS(e){return e}function US(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function WS(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var GS=Symbol();function KS(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===GS?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function qS(e,t){return typeof e==`function`?e(...t):!!e}function JS(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var YS=c({environmentManager:()=>XS}),XS=(()=>{let e=()=>SS;return{isServer(){return e()},setIsServer(t){e=t}}})(),ZS=c({pendingThenable:()=>QS,tryResolveSync:()=>$S});function QS(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function $S(e){let t;if(e.then(e=>(t=e,e),CS)?.catch(CS),t!==void 0)return{data:t}}var eC=c({defaultShouldDehydrateMutation:()=>iC,defaultShouldDehydrateQuery:()=>aC,dehydrate:()=>sC,hydrate:()=>cC});function tC(e){return e}function nC(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function rC(e,t,n){let r=()=>{let r=e.promise?.then(t).catch(e=>n(e)?Promise.reject(Error(`redacted`)):Promise.reject(e));return r?.catch(CS),r};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status===`pending`&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function iC(e){return e.state.isPaused}function aC(e){return e.state.status===`success`}function oC(e){return!0}function sC(e,t={}){let n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??iC,r=e.getMutationCache().getAll().flatMap(e=>n(e)?[nC(e)]:[]),i=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??aC,a=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??oC,o=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??tC;return{mutations:r,queries:e.getQueryCache().getAll().flatMap(e=>i(e)?[rC(e,o,a)]:[])}}function cC(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??tC,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l,queryType:u})=>{let d=c?$S(c):void 0,f=r.data===void 0?d?.data:r.data,p=f===void 0?f:a(f),m=i.get(o),h=m?.state.status===`pending`,g=m?.state.fetchStatus===`fetching`;if(m){let e=d&&l!==void 0&&l>m.state.dataUpdatedAt;if(r.dataUpdatedAt>m.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;m.setState({...t,data:p,...r.status===`pending`&&p!==void 0&&{status:`success`,...!g&&{fetchStatus:`idle`}}})}}else m=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s,_type:u},{...r,data:p,fetchStatus:`idle`,status:r.status===`pending`&&p!==void 0?`success`:r.status});c&&!d&&!h&&!g&&(l===void 0||l>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(CS)})}var lC=c({createNotifyManager:()=>dC,defaultScheduler:()=>uC,notifyManager:()=>fC}),uC=bS;function dC(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=uC,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var fC=dC(),pC=c({OnlineManager:()=>mC,onlineManager:()=>hC}),mC=class extends fS{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}},hC=new mC,gC=c({CancelledError:()=>yC,canFetch:()=>vC,createRetryer:()=>xC,isCancelledError:()=>bC});function _C(e){return Math.min(1e3*2**e,3e4)}function vC(e){return(e??`online`)===`online`?hC.isOnline():!0}var yC=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function bC(e){return e instanceof yC}function xC(e){let t=!1,n=0,r,i=QS(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new yC(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>hS.isFocused()&&(e.networkMode===`always`||hC.isOnline())&&e.canRun(),u=()=>vC(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(XS.isServer()?0:3),o=e.retryDelay??_C,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),BS(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var SC=c({Removable:()=>CC}),CC=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),TS(this.gcTime)&&(this.#e=yS.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(XS.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(yS.clearTimeout(this.#e),this.#e=void 0)}},wC=c({hasNextPage:()=>OC,hasPreviousPage:()=>kC,infiniteQueryBehavior:()=>TC});function TC(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{JS(e,()=>t.signal,()=>n=!0)},u=KS(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?WS:US;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?DC:EC,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:EC(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function EC(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DC(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function OC(e,t){return t?EC(e,t)!=null:!1}function kC(e,t){return!t||!e.getPreviousPageParam?!1:DC(e,t)!=null}var AC=c({Query:()=>jC,fetchState:()=>MC}),jC=class extends CC{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=PC(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=PC(this.options);e.data!==void 0&&(this.setState(NC(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=VS(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(CS).catch(CS):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>OS(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===GS||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>DS(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ES(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=KS(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?TC(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=xC({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof yC&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof yC){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...MC(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...NC(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),fC.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function MC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vC(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function NC(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function PC(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var FC=c({QueryObserver:()=>IC}),IC=class extends fS{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=QS(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),RC(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zC(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zC(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof OS(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!IS(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&BC(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||OS(this.options.enabled,this.#t)!==OS(t.enabled,this.#t)||DS(this.options.staleTime,this.#t)!==DS(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||OS(this.options.enabled,this.#t)!==OS(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return HC(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(CS)),t}#g(){this.#b();let e=DS(this.options.staleTime,this.#t);if(XS.isServer()||this.#r.isStale||!TS(e))return;let t=ES(this.#r.dataUpdatedAt,e)+1;this.#d=yS.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(XS.isServer()||OS(this.options.enabled,this.#t)===!1||!TS(this.#p)||this.#p===0)&&(this.#f=yS.setInterval(()=>{(this.options.refetchIntervalInBackground||hS.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(yS.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(yS.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&RC(e,t),o=i&&BC(e,n,t,r);(a||o)&&(l={...l,...MC(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=VS(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=VS(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:VC(e,t),refetch:this.refetch,promise:this.#o,isEnabled:OS(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=QS())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!IS(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){fC.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function LC(e,t){return OS(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&OS(t.retryOnMount,e)===!1)}function RC(e,t){return LC(e,t)||e.state.data!==void 0&&zC(e,t,t.refetchOnMount)}function zC(e,t,n){if(OS(t.enabled,e)!==!1&&DS(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&VC(e,t)}return!1}function BC(e,t,n,r){return(e!==t||OS(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&VC(e,n)}function VC(e,t){return OS(t.enabled,e)!==!1&&e.isStaleByTime(DS(t.staleTime,e))}function HC(e,t){return!IS(e.getCurrentResult(),t)}var UC=c({InfiniteQueryObserver:()=>WC}),WC=class extends IC{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:OC(t,n.data),hasPreviousPage:kC(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},GC=c({Mutation:()=>KC,getDefaultState:()=>qC}),KC=class extends CC{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||qC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=xC({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),fC.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function qC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var JC=c({MutationCache:()=>YC}),YC=class extends fS{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new KC({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=XC(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=XC(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=XC(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=XC(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){fC.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>AS(t,e))}findAll(e={}){return this.getAll().filter(t=>AS(e,t))}notify(e){fC.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return fC.batch(()=>Promise.all(e.map(e=>e.continue().catch(CS))))}};function XC(e){return e.options.scope?.id}var ZC=c({MutationObserver:()=>QC}),QC=class extends fS{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),IS(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&MS(t.mutationKey)!==MS(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??qC();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){fC.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},$C=c({QueriesObserver:()=>nw});function ew(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function tw(e,t,n){let r=e.slice(0);return r[t]=n,r}var nw=class extends fS{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,fC.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!IS(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(ew(e,n).forEach(e=>{e.destroy()}),ew(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=FS(this.#a,t(e))),this.#a}return e}#f(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new IC(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=tw(this.#t,n,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#u(this.#t,this.#l),t=this.#f(),n=this.#a,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&fC.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},rw=c({QueryCache:()=>iw}),iw=class extends fS{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??jS(r,t),a=this.get(i);return a||(a=new jC({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){fC.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>kS(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>kS(e,t)):t}notify(e){fC.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){fC.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){fC.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},aw=c({QueryClient:()=>ow}),ow=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new iw,this.#t=e.mutationCache||new YC,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=hS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=hC.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(DS(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=wS(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return fC.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;fC.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return fC.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=fC.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(CS).catch(CS)}invalidateQueries(e,t={}){return fC.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=fC.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(CS)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(CS)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(DS(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(CS).catch(CS)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(CS).catch(CS)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return hC.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(MS(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{NS(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(MS(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{NS(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=jS(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===GS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},sw=c({streamedQuery:()=>cw});function cw({streamFn:e,refetchMode:t=`reset`,reducer:n=(e,t)=>US(e,t),initialValue:r=[]}){return async i=>{let a=i.client.getQueryCache().find({queryKey:i.queryKey,exact:!0}),o=!!a&&a.isFetched();o&&t===`reset`&&a.setState({...a.resetState,fetchStatus:`fetching`});let s=r,c=!1,l=await e(JS({client:i.client,meta:i.meta,queryKey:i.queryKey,pageParam:i.pageParam,direction:i.direction},()=>i.signal,()=>c=!0)),u=o&&t===`replace`;for await(let e of l){if(c)break;u?s=n(s,e):i.client.setQueryData(i.queryKey,t=>n(t===void 0?r:t,e))}return u&&!c&&i.client.setQueryData(i.queryKey,s),i.client.getQueryData(i.queryKey)??r}}var lw=c({dataTagErrorSymbol:()=>dw,dataTagSymbol:()=>uw,unsetMarker:()=>fw}),uw=Symbol(`dataTagSymbol`),dw=Symbol(`dataTagErrorSymbol`),fw=Symbol(`unsetMarker`),pw=c({CancelledError:()=>yC,InfiniteQueryObserver:()=>WC,Mutation:()=>KC,MutationCache:()=>YC,MutationObserver:()=>QC,QueriesObserver:()=>nw,Query:()=>jC,QueryCache:()=>iw,QueryClient:()=>ow,QueryObserver:()=>IC,dataTagErrorSymbol:()=>dw,dataTagSymbol:()=>uw,defaultScheduler:()=>uC,defaultShouldDehydrateMutation:()=>iC,defaultShouldDehydrateQuery:()=>aC,dehydrate:()=>sC,environmentManager:()=>XS,experimental_streamedQuery:()=>cw,focusManager:()=>hS,hashKey:()=>MS,hydrate:()=>cC,isCancelledError:()=>bC,isServer:()=>SS,keepPreviousData:()=>HS,matchMutation:()=>AS,matchQuery:()=>kS,noop:()=>CS,notifyManager:()=>fC,onlineManager:()=>hC,partialMatchKey:()=>NS,replaceEqualDeep:()=>FS,shouldThrowError:()=>qS,skipToken:()=>GS,timeoutManager:()=>yS,unsetMarker:()=>fw}),mw=c({}),hw=c({QueryClientContext:()=>gw,QueryClientProvider:()=>vw,useQueryClient:()=>_w}),gw=O.createContext(void 0),_w=e=>{let t=O.useContext(gw);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},vw=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,X.jsx)(gw.Provider,{value:e,children:t})),yw=c({IsRestoringProvider:()=>Sw,useIsRestoring:()=>xw}),bw=O.createContext(!1),xw=()=>O.useContext(bw),Sw=bw.Provider,Cw=c({QueryErrorResetBoundary:()=>Dw,useQueryErrorResetBoundary:()=>Ew});function ww(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Tw=O.createContext(ww()),Ew=()=>O.useContext(Tw),Dw=({children:e})=>{let[t]=O.useState(()=>ww());return(0,X.jsx)(Tw.Provider,{value:t,children:typeof e==`function`?e(t):e})},Ow=c({ensurePreventErrorBoundaryRetry:()=>kw,getHasError:()=>jw,useClearResetErrorBoundary:()=>Aw}),kw=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?qS(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Aw=e=>{O.useEffect(()=>{e.clearReset()},[e])},jw=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||qS(n,[e.error,r])),Mw=c({defaultThrowOnError:()=>Nw,ensureSuspenseTimers:()=>Pw,fetchOptimistic:()=>Lw,shouldSuspend:()=>Iw,willFetch:()=>Fw}),Nw=(e,t)=>t.state.data===void 0,Pw=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Fw=(e,t)=>e.isLoading&&e.isFetching&&!t,Iw=(e,t)=>e?.suspense&&t.isPending,Lw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()}),Rw=c({useQueries:()=>zw});function zw({queries:e,...t},n){let r=_w(n),i=xw(),a=Ew(),o=O.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);o.forEach(e=>{Pw(e),kw(e,a,r.getQueryCache().get(e.queryHash))}),Aw(a);let[s]=O.useState(()=>new nw(r,o,t)),[c,l,u]=s.getOptimisticResult(o,t.combine),d=!i&&t.subscribed!==!1;O.useSyncExternalStore(O.useCallback(e=>d?s.subscribe(fC.batchCalls(e)):CS,[s,d]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),O.useEffect(()=>{s.setQueries(o,t)},[o,t,s]);let f=c.some((e,t)=>Iw(o[t],e))?c.flatMap((e,t)=>{let n=o[t];return n&&Iw(n,e)?Lw(n,new IC(r,n),a):[]}):[];if(f.length>0)throw Promise.all(f);let p=c.find((e,t)=>{let n=o[t];return n&&jw({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(p?.error)throw p.error;return l(u())}var Bw=c({useBaseQuery:()=>Vw});function Vw(e,t,n){let r=xw(),i=Ew(),a=_w(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Pw(o),kw(o,i,s),Aw(i);let c=!a.getQueryCache().get(o.queryHash),[l]=O.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(e=>{let t=d?l.subscribe(fC.batchCalls(e)):CS;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(o)},[o,l]),Iw(o,u))throw Lw(o,l,i);if(jw({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!XS.isServer()&&Fw(u,r)&&(c?Lw(o,l,i):s?.promise)?.catch(CS).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}var Hw=c({useQuery:()=>Uw});function Uw(e,t){return Vw(e,IC,t)}var Ww=c({useSuspenseQuery:()=>Gw});function Gw(e,t){return Vw({...e,enabled:!0,suspense:!0,throwOnError:Nw,placeholderData:void 0},IC,t)}var Kw=c({useSuspenseInfiniteQuery:()=>qw});function qw(e,t){return Vw({...e,enabled:!0,suspense:!0,throwOnError:Nw},WC,t)}var Jw=c({useSuspenseQueries:()=>Yw});function Yw(e,t){return zw({...e,queries:e.queries.map(e=>({...e,suspense:!0,throwOnError:Nw,enabled:!0,placeholderData:void 0}))},t)}var Xw=c({usePrefetchQuery:()=>Zw});function Zw(e,t){let n=_w(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}var Qw=c({usePrefetchInfiniteQuery:()=>$w});function $w(e,t){let n=_w(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}var eT=c({queryOptions:()=>tT});function tT(e){return e}var nT=c({infiniteQueryOptions:()=>rT});function rT(e){return e}var iT=c({HydrationBoundary:()=>aT}),aT=({children:e,options:t={},state:n,queryClient:r})=>{let i=_w(r),a=O.useRef(t);O.useEffect(()=>{a.current=t});let o=O.useMemo(()=>{if(n){if(typeof n!=`object`)return;let e=i.getQueryCache(),t=n.queries||[],r=[],o=[];for(let n of t){let t=e.get(n.queryHash);t?(n.state.dataUpdatedAt>t.state.dataUpdatedAt||n.promise&&t.state.status!==`pending`&&t.state.fetchStatus!==`fetching`&&n.dehydratedAt!==void 0&&n.dehydratedAt>t.state.dataUpdatedAt)&&o.push(n):r.push(n)}if(r.length>0&&cC(i,{queries:r},a.current),o.length>0)return o}},[i,n]);return O.useEffect(()=>{o&&cC(i,{queries:o},a.current)},[i,o]),e},oT=c({useIsFetching:()=>sT});function sT(e,t){let n=_w(t),r=n.getQueryCache();return O.useSyncExternalStore(O.useCallback(e=>r.subscribe(fC.batchCalls(e)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}var cT=c({useIsMutating:()=>lT,useMutationState:()=>dT});function lT(e,t){let n=_w(t);return dT({filters:{...e,status:`pending`}},n).length}function uT(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function dT(e={},t){let n=_w(t).getMutationCache(),r=O.useRef(e),i=O.useRef(null);return i.current===null&&(i.current=uT(n,e)),O.useEffect(()=>{r.current=e}),O.useSyncExternalStore(O.useCallback(e=>n.subscribe(()=>{let t=FS(i.current,uT(n,r.current));i.current!==t&&(i.current=t,fC.schedule(e))}),[n]),()=>i.current,()=>i.current)}var fT=c({useMutation:()=>pT});function pT(e,t){let n=_w(t),[r]=O.useState(()=>new QC(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);let i=O.useSyncExternalStore(O.useCallback(e=>r.subscribe(fC.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=O.useCallback((e,t)=>{r.mutate(e,t).catch(CS)},[r]);if(i.error&&qS(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var mT=c({mutationOptions:()=>hT});function hT(e){return e}var gT=c({useInfiniteQuery:()=>_T});function _T(e,t){return Vw(e,WC,t)}var vT=c({CancelledError:()=>yC,HydrationBoundary:()=>aT,InfiniteQueryObserver:()=>WC,IsRestoringProvider:()=>Sw,Mutation:()=>KC,MutationCache:()=>YC,MutationObserver:()=>QC,QueriesObserver:()=>nw,Query:()=>jC,QueryCache:()=>iw,QueryClient:()=>ow,QueryClientContext:()=>gw,QueryClientProvider:()=>vw,QueryErrorResetBoundary:()=>Dw,QueryObserver:()=>IC,dataTagErrorSymbol:()=>dw,dataTagSymbol:()=>uw,defaultScheduler:()=>uC,defaultShouldDehydrateMutation:()=>iC,defaultShouldDehydrateQuery:()=>aC,dehydrate:()=>sC,environmentManager:()=>XS,experimental_streamedQuery:()=>cw,focusManager:()=>hS,hashKey:()=>MS,hydrate:()=>cC,infiniteQueryOptions:()=>rT,isCancelledError:()=>bC,isServer:()=>SS,keepPreviousData:()=>HS,matchMutation:()=>AS,matchQuery:()=>kS,mutationOptions:()=>hT,noop:()=>CS,notifyManager:()=>fC,onlineManager:()=>hC,partialMatchKey:()=>NS,queryOptions:()=>tT,replaceEqualDeep:()=>FS,shouldThrowError:()=>qS,skipToken:()=>GS,timeoutManager:()=>yS,unsetMarker:()=>fw,useInfiniteQuery:()=>_T,useIsFetching:()=>sT,useIsMutating:()=>lT,useIsRestoring:()=>xw,useMutation:()=>pT,useMutationState:()=>dT,usePrefetchInfiniteQuery:()=>$w,usePrefetchQuery:()=>Zw,useQueries:()=>zw,useQuery:()=>Uw,useQueryClient:()=>_w,useQueryErrorResetBoundary:()=>Ew,useSuspenseInfiniteQuery:()=>qw,useSuspenseQueries:()=>Yw,useSuspenseQuery:()=>Gw}),yT=c({default:()=>ST,extendArray:()=>xT});function bT(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xT=(e,t,n,...r)=>{let i=bT(t);Vf.default.invoke(`${n}.preProcess${i}`,...r);let a=Zd.default.flatten(Vf.default.invoke(`${n}.get${i}`,...r));return e.push(...a),Vf.default.invoke(`${n}.process${i}`,...r),Vf.default.invoke(`${n}.postProcess${i}`,...r),Vf.default.sort(e),e},ST={extendArray:xT},CT=c({default:()=>OT}),wT=new ow({defaultOptions:{queries:{staleTime:1/0,retry:0,refetchOnWindowFocus:!1}}});function TT(e,t){let n=[],r=(e,t)=>{let{path:i,exact:a,render:o,component:s,childRoutes:c,...l}=e,u;if(u=/^\//.test(i)?i:`${t}/${i}`,u=u.replace(/\/+/g,`/`),(o||s)&&c){let e=TT(c,u);n.push((0,X.jsx)(io,{exact:!1,element:o?o():(0,X.jsx)(s,{children:(0,X.jsx)(ro,{})}),path:u,...l,children:e},u.toString()))}else s||o?n.push((0,X.jsx)(io,{element:o?o():(0,X.jsx)(s,{}),path:u,exact:`exact`in e?a:!0,...l},u.toString())):c&&c.forEach(e=>r(e,u))};return e.reduce((e,t)=>(Zd.default.isArray(t.path)?t.path.forEach(n=>{e.push({...t,path:n})}):e.push(t),e),[]).forEach(e=>r(e,t)),n}var ET=e=>(Vf.default.invoke(`!root.renderChildren`).forEach(t=>{if(!Zd.default.isFunction(t))throw Error(`root.renderChildren should be a function.`);e=t(e)}),e),DT={browser:Zc,hash:Qc,memory:Ya},OT=()=>{let[e,t]=(0,O.useState)(null),n=(0,O.useCallback)(e=>{e.type===`sub-app-context-change`&&t(e.data)},[]);(0,O.useEffect)(()=>{let e=`muse-react_handle-context-change`;return window.MUSE_GLOBAL?.msgEngine?.addListener(e,n),()=>window.MUSE_GLOBAL?.msgEngine?.removeListener(e)},[n]);let r=ET(TT(uS(),`/`)),{routerType:i=`browser`,basePath:a}=window.MUSE_GLOBAL.appVariables||{},o=DT[i](fo(r)),s=Vf.default.invoke(`!routerProps`)[0]||{};i===`browser`&&(s.navigator=Px);let c=[{order:10,key:`react-query`,provider:vw,props:{client:wT},renderProvider:null},{order:20,key:`redux-provider`,provider:at,props:{store:zp.getStore()}},{order:30,key:`muse-sub-app`,provider:Qx.Provider,props:{value:e}},{order:40,key:`nice-modal`,provider:Bf.Provider},{order:50,key:`react-router`,provider:Sd,props:{basename:a,router:o,...s}}];return xT(c,`providers`,`root`,{providers:c}),c.filter(Boolean).reduceRight((e,t)=>t.provider?(0,X.jsx)(t.provider,{...t.props,children:e},e?.key):t.renderProvider?t.renderProvider(e):e,(0,X.jsx)(X.Fragment,{}))},kT=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),AT=s((e=>{})),jT=s(((e,t)=>{t.exports=kT()})),MT=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),NT=s(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),PT=s(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),FT=s(((e,t)=>{function n(e,t,n,r,i){}n.resetWarningCache=function(){},t.exports=n})),IT=s(((e,t)=>{var n=jT(),r=MT(),i=NT(),a=PT(),o=FT();function s(){return null}t.exports=function(e,t){var c=typeof Symbol==`function`&&Symbol.iterator,l=`@@iterator`;function u(e){var t=e&&(c&&e[c]||e[l]);if(typeof t==`function`)return t}var d=`<<anonymous>>`,f={array:g(`array`),bigint:g(`bigint`),bool:g(`boolean`),func:g(`function`),number:g(`number`),object:g(`object`),string:g(`string`),symbol:g(`symbol`),any:_(),arrayOf:v,element:y(),elementType:b(),instanceOf:x,node:T(),objectOf:C,oneOf:S,oneOfType:w,shape:ee,exact:D};function p(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function m(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}m.prototype=Error.prototype;function h(e){function n(n,r,a,o,s,c,l){if(o||=d,c||=a,l!==i&&t){var u=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 u.name=`Invariant Violation`,u}return r[a]==null?n?r[a]===null?new m(`The `+s+" `"+c+"` is marked as required "+("in `"+o+"`, but its value is `null`.")):new m(`The `+s+" `"+c+"` is marked as required in "+("`"+o+"`, but its value is `undefined`.")):null:e(r,a,o,s,c)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function g(e){function t(t,n,r,i,a,o){var s=t[n];if(ne(s)!==e){var c=re(s);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return h(t)}function _(){return h(s)}function v(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new m("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=ne(s);return new m(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return h(t)}function y(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=ne(o);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return h(t)}function b(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=ne(o);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return h(e)}function x(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||d,s=k(t[n]);return new m(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return h(t)}function S(e){if(!Array.isArray(e))return s;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(p(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return re(t)===`symbol`?String(t):t});return new m(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return h(t)}function C(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new m("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=ne(c);if(l!==`object`)return new m(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return h(t)}function w(e){if(!Array.isArray(e))return s;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return``+ie(n)+t,s}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new m(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return h(r)}function T(){function e(e,t,n,r,i){return O(e[t])?null:new m(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return h(e)}function E(e,t,n,r,i){return new m((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function ee(e){function t(t,n,r,a,o){var s=t[n],c=ne(s);if(c!==`object`)return new m(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return E(r,a,o,l,re(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return h(t)}function D(e){function t(t,n,o,s,c){var l=t[n],u=ne(l);if(u!==`object`)return new m(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return E(o,s,c,d,re(f));if(!f)return new m(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
73
96
  Bad object: `+JSON.stringify(t[n],null,` `)+`
74
- Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return h(t)}function E(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(E);if(t===null||e(t))return!0;var n=u(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!E(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!E(a[1]))return!1}}else return!1;return!0;default:return!1}}function re(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function ie(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:re(t,e)?`symbol`:t}function ae(e){if(e==null)return``+e;var t=ie(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function oe(e){var t=ae(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function se(e){return!e.constructor||!e.constructor.name?d:e.constructor.name}return f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f}})),IT=s(((e,t)=>{var n=MT();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 a={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:i,resetWarningCache:r};return a.PropTypes=a,a}})),LT=s(((e,t)=>{t.exports=IT()()})),RT=u(s(((e,t)=>{var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function a(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=m(),s=LT(),c=[],l=[];function u(e){return(typeof __webpack_modules__>`u`?`undefined`:n(__webpack_modules__))===`object`?e().every(function(e){return e!==void 0&&__webpack_modules__[e]!==void 0}):!1}function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}function f(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach(function(r){var i=d(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then(function(e){t.loaded[r]=e}).catch(function(e){t.error=e})})}catch(e){t.error=e}return t.promise=Promise.all(n).then(function(e){return t.loading=!1,e}).catch(function(e){throw t.loading=!1,e}),t}function p(e){return e&&e.__esModule?e.default:e}function h(e,t){return o.createElement(p(e),t)}function g(e,t){var n,d;if(!t.loading)throw Error("react-loadable requires a `loading` component");var f=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:h,webpack:null,modules:null},t),p=null;function m(){return p||=e(f.loader),p.promise}return c.push(m),typeof f.webpack==`function`&&l.push(function(){if(u(f.webpack))return m()}),d=n=function(t){a(n,t);function n(a){r(this,n);var o=i(this,t.call(this,a));return o.retry=function(){o.setState({error:null,loading:!0,timedOut:!1}),p=e(f.loader),o._loadModule()},m(),o.state={error:p.error,pastDelay:!1,timedOut:!1,loading:p.loading,loaded:p.loaded},o}return n.preload=function(){return m()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(f.modules)&&f.modules.forEach(function(t){e.context.loadable.report(t)}),p.loading){typeof f.delay==`number`&&(f.delay===0?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){e.setState({pastDelay:!0})},f.delay)),typeof f.timeout==`number`&&(this._timeout=setTimeout(function(){e.setState({timedOut:!0})},f.timeout));var t=function(){e._mounted&&(e.setState({error:p.error,loaded:p.loaded,loading:p.loading}),e._clearTimeouts())};p.promise.then(function(){t()}).catch(function(e){t()})}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?o.createElement(f.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?f.render(this.state.loaded,this.props):null},n}(o.Component),n.contextTypes={loadable:s.shape({report:s.func.isRequired})},d}function _(e){return g(d,e)}function v(e){if(typeof e.render!=`function`)throw Error("LoadableMap requires a `render(loaded, props)` function");return g(f,e)}_.Map=v;var y=function(e){a(t,e);function t(){return r(this,t),i(this,e.apply(this,arguments))}return t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return o.Children.only(this.props.children)},t}(o.Component);y.propTypes={report:s.func.isRequired},y.childContextTypes={loadable:s.shape({report:s.func.isRequired}).isRequired},_.Capture=y;function b(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then(function(){if(e.length)return b(e)})}_.preloadAll=function(){return new Promise(function(e,t){b(c).then(e,t)})},_.preloadReady=function(){return new Promise(function(e,t){b(l).then(e,e)})},t.exports=_}))(),1),zT=c({}),BT=c({default:()=>VT});Vf.default.register({name:`@ebay/muse-lib-react`}),window.MUSE_GLOBAL.appEntries.push({name:`@ebay/muse-lib-react`,func:()=>{let e=document.getElementById(`muse-react-root`);e||(e=document.createElement(`div`),e.id=`muse-react-root`,document.body.appendChild(e)),e.innerHTML=``,Vf.default.invoke(`root.beforeRender`);let t=(0,te.createRoot)(e);window.__js_plugin=Vf.default,t.render((0,X.jsx)(DT,{})),Vf.default.invoke(`root.afterRender`),Vf.default.invoke(`onReady`)}});var VT={Loadable:RT.default,_:Zd.default,reactUse:fx,reactRouterDom:Xd,reactQuery:_T},HT=u(S()),UT=u(Hp()),WT=u(p()),GT=u(f()),KT=u(x()),qT=u(Vp()),JT=u(LT()),YT=u(IT()),XT=u(AT()),ZT=u(FT()),QT=u(_());ph();var $T=u(MT()),eE=u(kT()),tE=u(OT()),nE=u(PT()),rE=u(NT()),iE=u(jT()),aE=u(T()),oE=u(w()),sE=u(v()),cE=u(y()),lE=u(g()),uE=u(ig()),dE=u(Ny()),fE=u(yg()),pE=u(h()),mE=u(ky()),hE=u(xg()),gE=u(My()),_E=u(jy()),vE=u(Ay()),$={};$[`@ebay/muse-lib-react@2.0.0/src/index.jsx`]=BT,$[`react@19.2.5/jsx-runtime.js`]=X,$[`lodash@4.18.1/lodash.js`]=Zd,$[`react-use@17.6.0/esm/index.js`]=fx,$[`react-dom@19.2.5/client.js`]=te,$[`react@19.2.5/index.js`]=E,$[`react-router-dom@7.15.0/dist/index.mjs`]=Xd,$[`@tanstack/react-query@5.100.9/build/modern/index.js`]=_T,$[`react-loadable@5.5.0/lib/index.js`]=RT,$[`@ebay/muse-lib-react@2.0.0/src/Root.jsx`]=ST,$[`js-plugin@1.1.0/plugin.js`]=Vf,$[`@ebay/muse-lib-react@2.0.0/src/styles/index.less`]=zT,$[`react-dom@19.2.5/cjs/react-dom-client.development.js`]=HT,$[`react@19.2.5/cjs/react-jsx-runtime.development.js`]=UT,$[`react@19.2.5/cjs/react.development.js`]=WT,$[`react@19.2.5/cjs/react.production.js`]=GT,$[`react-router@7.15.0/dist/development/index.mjs`]=Yd,$[`react-dom@19.2.5/cjs/react-dom-client.production.js`]=KT,$[`react-router@7.15.0/dist/development/dom-export.mjs`]=bd,$[`react@19.2.5/cjs/react-jsx-runtime.production.js`]=qT,$[`@tanstack/react-query@5.100.9/build/modern/IsRestoringProvider.js`]=vw,$[`@tanstack/query-core@5.100.9/build/modern/index.js`]=fw,$[`prop-types@15.8.1/index.js`]=JT,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseQuery.js`]=Uw,$[`@tanstack/react-query@5.100.9/build/modern/useQuery.js`]=Vw,$[`@tanstack/react-query@5.100.9/build/modern/types.js`]=pw,$[`@tanstack/react-query@5.100.9/build/modern/useQueries.js`]=Lw,$[`@tanstack/react-query@5.100.9/build/modern/usePrefetchQuery.js`]=Yw,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseQueries.js`]=qw,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseInfiniteQuery.js`]=Gw,$[`@tanstack/react-query@5.100.9/build/modern/usePrefetchInfiniteQuery.js`]=Zw,$[`@tanstack/react-query@5.100.9/build/modern/queryOptions.js`]=$w,$[`@tanstack/react-query@5.100.9/build/modern/infiniteQueryOptions.js`]=tT,$[`@tanstack/react-query@5.100.9/build/modern/QueryClientProvider.js`]=mw,$[`@tanstack/react-query@5.100.9/build/modern/HydrationBoundary.js`]=rT,$[`@tanstack/react-query@5.100.9/build/modern/QueryErrorResetBoundary.js`]=Sw,$[`@tanstack/react-query@5.100.9/build/modern/useIsFetching.js`]=aT,$[`@tanstack/react-query@5.100.9/build/modern/useMutationState.js`]=sT,$[`@tanstack/react-query@5.100.9/build/modern/useMutation.js`]=dT,$[`@tanstack/react-query@5.100.9/build/modern/mutationOptions.js`]=pT,$[`@tanstack/react-query@5.100.9/build/modern/useInfiniteQuery.js`]=hT,$[`@ebay/muse-lib-react@2.0.0/src/utils.js`]=vT,$[`react-redux@9.2.0/dist/react-redux.mjs`]=ne,$[`@ebay/nice-modal-react@1.2.13/lib/esm/index.js`]=Qd,$[`@ebay/muse-lib-react@2.0.0/src/common/store.js`]=Lp,$[`@ebay/muse-lib-react@2.0.0/src/common/routeConfig.jsx`]=aS,$[`@ebay/muse-lib-react@2.0.0/src/common/history.js`]=Ax,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/SubAppContext.js`]=Xx,$[`react-use@17.6.0/esm/useHash.js`]=ux,$[`react-use@17.6.0/esm/factory/createMemo.js`]=gm,$[`react-use@17.6.0/esm/factory/createReducerContext.js`]=vm,$[`react-use@17.6.0/esm/factory/createReducer.js`]=wm,$[`react-use@17.6.0/esm/factory/createStateContext.js`]=Dm,$[`react-use@17.6.0/esm/useAsync.js`]=vh,$[`react-use@17.6.0/esm/useAsyncFn.js`]=gh,$[`react-use@17.6.0/esm/useAsyncRetry.js`]=bh,$[`react-use@17.6.0/esm/useAudio.js`]=Oh,$[`react-use@17.6.0/esm/useBattery.js`]=Rh,$[`react-use@17.6.0/esm/useBeforeUnload.js`]=Wh,$[`react-use@17.6.0/esm/useBoolean.js`]=Yh,$[`react-use@17.6.0/esm/useClickAway.js`]=Zh,$[`react-use@17.6.0/esm/useCookie.js`]=tg,$[`react-use@17.6.0/esm/useCopyToClipboard.js`]=og,$[`react-use@17.6.0/esm/useCounter.js`]=gg,$[`react-use@17.6.0/esm/useCss.js`]=Ag,$[`react-use@17.6.0/esm/useCustomCompareEffect.js`]=Pg,$[`react-use@17.6.0/esm/useDebounce.js`]=Rg,$[`react-use@17.6.0/esm/useDeepCompareEffect.js`]=Bg,$[`react-use@17.6.0/esm/useDefault.js`]=Hg,$[`react-router@7.15.0/dist/development/chunk-5KNZJZUH.mjs`]=Ct,$[`react-use@17.6.0/esm/useDrop.js`]=Wg,$[`prop-types@15.8.1/factoryWithThrowingShims.js`]=YT,$[`react-use@17.6.0/esm/useDropArea.js`]=qg,$[`react-use@17.6.0/esm/useEffectOnce.js`]=Zg,$[`react-use@17.6.0/esm/useEnsuredForwardedRef.js`]=$g,$[`react-use@17.6.0/esm/useEvent.js`]=n_,$[`react-use@17.6.0/esm/useError.js`]=s_,$[`react-use@17.6.0/esm/useFavicon.js`]=l_,$[`react-use@17.6.0/esm/useFullscreen.js`]=f_,$[`react-use@17.6.0/esm/useGeolocation.js`]=h_,$[`react-use@17.6.0/esm/useGetSet.js`]=mg,$[`react-use@17.6.0/esm/useGetSetState.js`]=__,$[`react-use@17.6.0/esm/useHarmonicIntervalFn.js`]=w_,$[`react-use@17.6.0/esm/useHover.js`]=E_,$[`react-use@17.6.0/esm/useHoverDirty.js`]=k_,$[`react-use@17.6.0/esm/useIdle.js`]=P_,$[`react-use@17.6.0/esm/useIntersection.js`]=R_,$[`react-use@17.6.0/esm/useKeyPress.js`]=q_,$[`react-use@17.6.0/esm/useInterval.js`]=B_,$[`react-use@17.6.0/esm/useIsomorphicLayoutEffect.js`]=Og,$[`react-use@17.6.0/esm/useKey.js`]=H_,$[`react-use@17.6.0/esm/factory/createBreakpoint.js`]=G_,$[`react-use@17.6.0/esm/useKeyPressEvent.js`]=Y_,$[`react-use@17.6.0/esm/useLatest.js`]=Z_,$[`react-use@17.6.0/esm/useLifecycles.js`]=$_,$[`react-use@17.6.0/esm/useLocalStorage.js`]=rv,$[`react-use@17.6.0/esm/useLocation.js`]=av,$[`react-use@17.6.0/esm/useList.js`]=tv,$[`react-use@17.6.0/esm/useLockBodyScroll.js`]=uv,$[`react-use@17.6.0/esm/useLogger.js`]=vv,$[`react-use@17.6.0/esm/useLongPress.js`]=bv,$[`react-use@17.6.0/esm/useMap.js`]=wv,$[`react-use@17.6.0/esm/useMedia.js`]=Ev,$[`react-use@17.6.0/esm/useMediaDevices.js`]=kv,$[`react-use@17.6.0/esm/useMediatedState.js`]=jv,$[`react-use@17.6.0/esm/useMethods.js`]=Nv,$[`react-use@17.6.0/esm/useMotion.js`]=Fv,$[`react-use@17.6.0/esm/useMount.js`]=Rv,$[`react-use@17.6.0/esm/useMountedState.js`]=mh,$[`react-use@17.6.0/esm/useMouse.js`]=Wv,$[`react-use@17.6.0/esm/useMouseHovered.js`]=Kv,$[`react-use@17.6.0/esm/useMouseWheel.js`]=Yv,$[`react-use@17.6.0/esm/useNetworkState.js`]=Zv,$[`react-use@17.6.0/esm/useNumber.js`]=ny,$[`react-use@17.6.0/esm/useObservable.js`]=iy,$[`react-use@17.6.0/esm/useOrientation.js`]=oy,$[`react-use@17.6.0/esm/usePageLeave.js`]=ly,$[`react-use@17.6.0/esm/usePermission.js`]=dy,$[`react-use@17.6.0/esm/usePrevious.js`]=py,$[`react-use@17.6.0/esm/usePreviousDistinct.js`]=hy,$[`react-use@17.6.0/esm/usePromise.js`]=vy,$[`react-use@17.6.0/esm/useQueue.js`]=by,$[`react-use@17.6.0/esm/useRaf.js`]=Sy,$[`react-use@17.6.0/esm/useRafLoop.js`]=wy,$[`react-use@17.6.0/esm/useRafState.js`]=Hv,$[`react-use@17.6.0/esm/useSearchParam.js`]=Ey,$[`react-use@17.6.0/esm/useScratch.js`]=Fy,$[`react-use@17.6.0/esm/useScroll.js`]=zy,$[`react-use@17.6.0/esm/useScrolling.js`]=Vy,$[`react-use@17.6.0/esm/useSessionStorage.js`]=Uy,$[`react-use@17.6.0/esm/useSetState.js`]=Sh,$[`react-use@17.6.0/esm/useShallowCompareEffect.js`]=Ky,$[`react-use@17.6.0/esm/useSize.js`]=Xy,$[`react-use@17.6.0/esm/useSlider.js`]=nb,$[`react-use@17.6.0/esm/useSpeech.js`]=ib,$[`react-use@17.6.0/esm/useStartTyping.js`]=sb,$[`react-use@17.6.0/esm/useStateWithHistory.js`]=db,$[`react-use@17.6.0/esm/useStateList.js`]=pb,$[`react-use@17.6.0/esm/useThrottle.js`]=hb,$[`react-use@17.6.0/esm/useThrottleFn.js`]=_b,$[`react-use@17.6.0/esm/useTimeout.js`]=yb,$[`react-use@17.6.0/esm/useTimeoutFn.js`]=Ig,$[`react-use@17.6.0/esm/useTitle.js`]=xb,$[`react-use@17.6.0/esm/useToggle.js`]=Kh,$[`react-use@17.6.0/esm/useTween.js`]=Eb,$[`react-use@17.6.0/esm/useUnmount.js`]=Bv,$[`react-use@17.6.0/esm/useUnmountPromise.js`]=kb,$[`react-use@17.6.0/esm/useUpdate.js`]=lg,$[`react-use@17.6.0/esm/useUpdateEffect.js`]=Sm,$[`react-use@17.6.0/esm/useUpsert.js`]=jb,$[`react-use@17.6.0/esm/useVibrate.js`]=Nb,$[`react-use@17.6.0/esm/useVideo.js`]=Lb,$[`react-use@17.6.0/esm/useStateValidator.js`]=zb,$[`react-use@17.6.0/esm/useScrollbarWidth.js`]=Ub,$[`react-use@17.6.0/esm/useMultiStateValidator.js`]=Gb,$[`react-use@17.6.0/esm/useWindowScroll.js`]=qb,$[`react-use@17.6.0/esm/useWindowSize.js`]=Yb,$[`react-use@17.6.0/esm/useMeasure.js`]=Zb,$[`react-use@17.6.0/esm/usePinchZoom.js`]=tx,$[`react-use@17.6.0/esm/useRendersCount.js`]=ix,$[`react-use@17.6.0/esm/useFirstMountState.js`]=bm,$[`react-use@17.6.0/esm/useSet.js`]=ox,$[`react-use@17.6.0/esm/factory/createGlobalState.js`]=cx,$[`react-router@7.15.0/dist/development/chunk-RMD3H4O3.mjs`]=Bl,$[`react-is@16.13.1/index.js`]=XT,$[`@tanstack/react-query@5.100.9/build/modern/suspense.js`]=jw,$[`prop-types@15.8.1/factoryWithTypeCheckers.js`]=ZT,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/route.jsx`]=tS,$[`@tanstack/react-query@5.100.9/build/modern/errorBoundaryUtils.js`]=Dw,$[`use-sync-external-store@1.6.0/with-selector.js`]=re,$[`@tanstack/react-query@5.100.9/build/modern/useBaseQuery.js`]=zw,$[`history@5.3.0/index.js`]=hx,$[`@ebay/muse-lib-react@2.0.0/src/common/configStore.js`]=Np,$[`@ebay/muse-lib-react@2.0.0/src/features/home/index.js`]=Xp,$[`@ebay/muse-lib-react@2.0.0/src/features/common/index.js`]=dm,$[`@ebay/muse-lib-react@2.0.0/src/features/common/route.js`]=mm,$[`@ebay/muse-lib-react@2.0.0/src/features/home/route.js`]=fm,$[`@tanstack/query-core@5.100.9/build/modern/types.js`]=cw,$[`react-dom@19.2.5/index.js`]=xd,$[`@tanstack/query-core@5.100.9/build/modern/focusManager.js`]=fS,$[`@tanstack/query-core@5.100.9/build/modern/environmentManager.js`]=JS,$[`@tanstack/query-core@5.100.9/build/modern/hydration.js`]=$S,$[`@tanstack/query-core@5.100.9/build/modern/infiniteQueryObserver.js`]=HC,$[`@tanstack/query-core@5.100.9/build/modern/mutationCache.js`]=qC,$[`@tanstack/query-core@5.100.9/build/modern/notifyManager.js`]=cC,$[`@tanstack/query-core@5.100.9/build/modern/mutationObserver.js`]=XC,$[`@tanstack/query-core@5.100.9/build/modern/queryCache.js`]=nw,$[`@tanstack/query-core@5.100.9/build/modern/queryClient.js`]=iw,$[`@tanstack/query-core@5.100.9/build/modern/retryer.js`]=hC,$[`@tanstack/query-core@5.100.9/build/modern/onlineManager.js`]=fC,$[`@tanstack/query-core@5.100.9/build/modern/queriesObserver.js`]=QC,$[`@tanstack/query-core@5.100.9/build/modern/timeoutManager.js`]=hS,$[`@tanstack/query-core@5.100.9/build/modern/queryObserver.js`]=PC,$[`@tanstack/query-core@5.100.9/build/modern/utils.js`]=bS,$[`@tanstack/query-core@5.100.9/build/modern/streamedQuery.js`]=ow,$[`@tanstack/query-core@5.100.9/build/modern/mutation.js`]=WC,$[`@tanstack/query-core@5.100.9/build/modern/query.js`]=kC,$[`scheduler@0.27.0/index.js`]=QT,$[`react-use@17.6.0/esm/misc/util.js`]=Ah,$[`tslib@2.8.1/tslib.es6.mjs`]=km,$[`react-use@17.6.0/esm/factory/createHTMLMediaHook.js`]=Eh,$[`react-use@17.6.0/esm/misc/isDeepEqual.js`]=Fh,$[`js-cookie@2.2.1/src/js.cookie.js`]=ng,$[`copy-to-clipboard@3.3.3/index.js`]=sg,$[`react-use@17.6.0/esm/misc/hookState.js`]=fg,$[`nano-css@5.6.2/index.js`]=wg,$[`nano-css@5.6.2/addon/vcssom.js`]=Eg,$[`nano-css@5.6.2/addon/cssom.js`]=Tg,$[`nano-css@5.6.2/addon/vcssom/cssToTree.js`]=Dg,$[`prop-types@15.8.1/lib/ReactPropTypesSecret.js`]=$T,$[`screenfull@5.2.0/dist/screenfull.js`]=p_,$[`set-harmonic-interval@1.0.1/lib/index.esm.js`]=y_,$[`throttle-debounce@3.0.1/esm/index.js`]=j_,$[`react-universal-interface@0.6.2/lib/index.js`]=Iy,$[`fast-shallow-equal@1.0.0/index.js`]=qy,$[`ts-easing@0.2.0/lib/index.js`]=Db,$[`@xobotyi/scrollbar-width@1.9.5/dist/index.esm.js`]=Vb,$[`react-is@16.13.1/cjs/react-is.development.js`]=eE,$[`react-is@16.13.1/cjs/react-is.production.min.js`]=tE,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/index.js`]=eS,$[`prop-types@15.8.1/checkPropTypes.js`]=nE,$[`prop-types@15.8.1/lib/has.js`]=rE,$[`object-assign@4.1.1/index.js`]=iE,$[`@ebay/muse-lib-react@2.0.0/src/features/common/HelloWorld.jsx`]=lm,$[`@ebay/muse-lib-react@2.0.0/src/common/rootReducer.js`]=Ap,$[`redux@5.0.1/dist/redux.mjs`]=Hf,$[`redux-thunk@3.1.0/dist/redux-thunk.mjs`]=rp,$[`@ebay/muse-lib-react@2.0.0/src/features/common/useExtPoint.jsx`]=am,$[`@ebay/muse-lib-react@2.0.0/src/features/common/Nodes.jsx`]=rm,$[`@ebay/muse-lib-react@2.0.0/src/features/common/PageNotFound.jsx`]=Zp,$[`@ebay/muse-lib-react@2.0.0/src/features/common/ErrorBoundary.jsx`]=$p,$[`use-sync-external-store@1.6.0/cjs/use-sync-external-store-with-selector.development.js`]=aE,$[`use-sync-external-store@1.6.0/cjs/use-sync-external-store-with-selector.production.js`]=oE,$[`@babel/runtime@7.29.2/helpers/esm/extends.js`]=px,$[`@ebay/muse-lib-react@2.0.0/src/features/home/Homepage.jsx`]=Jp,$[`@ebay/muse-lib-react@2.0.0/src/features/home/App.jsx`]=Wp,$[`react-dom@19.2.5/cjs/react-dom.production.js`]=sE,$[`@tanstack/query-core@5.100.9/build/modern/subscribable.js`]=uS,$[`react-dom@19.2.5/cjs/react-dom.development.js`]=cE,$[`@tanstack/query-core@5.100.9/build/modern/thenable.js`]=XS,$[`set-cookie-parser@2.7.2/lib/set-cookie.js`]=Hl,$[`@tanstack/query-core@5.100.9/build/modern/infiniteQueryBehavior.js`]=CC,$[`cookie@1.1.1/dist/index.js`]=Vl,$[`@tanstack/query-core@5.100.9/build/modern/removable.js`]=xC,$[`scheduler@0.27.0/cjs/scheduler.development.js`]=lE,$[`toggle-selection@1.0.6/index.js`]=uE,$[`react-use@17.6.0/esm/misc/parseTimeRanges.js`]=wh,$[`react-universal-interface@0.6.2/lib/hookToRenderProp.js`]=dE,$[`fast-deep-equal@3.1.3/react.js`]=Ih,$[`nano-css@5.6.2/addon/__dev__/warnOnMissingDependencies.js`]=fE,$[`scheduler@0.27.0/cjs/scheduler.production.js`]=pE,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/C2SProxyFailed.jsx`]=Qx,$[`react-universal-interface@0.6.2/lib/render.js`]=mE,$[`nano-css@5.6.2/addon/vcssom/removeRule.js`]=hE,$[`react-universal-interface@0.6.2/lib/createEnhancer.js`]=gE,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/SubAppContainer.jsx`]=Rx,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/FixedSubAppContainer.jsx`]=Ux,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/LoadingSkeleton.jsx`]=qx,$[`@ebay/muse-lib-react@2.0.0/src/features/common/Test1.jsx`]=sm,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/redux/reducer.js`]=Dp,$[`@ebay/muse-lib-react@2.0.0/src/features/home/redux/reducer.js`]=lp,$[`@ebay/muse-lib-react@2.0.0/src/features/common/redux/reducer.js`]=mp,$[`@ebay/muse-lib-react@2.0.0/src/features/common/utils.js`]=tm,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/hooks/useParentRouteChange.js`]=zp,$[`@ebay/muse-lib-react@2.0.0/src/features/home/redux/initialState.js`]=sp,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/urlUtils.js`]=Fx,$[`@ebay/muse-lib-react@2.0.0/src/features/common/redux/initialState.js`]=fp,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/redux/setSubAppState.js`]=Sp,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/redux/initialState.js`]=_p,$[`react-universal-interface@0.6.2/lib/addClassDecoratorSupport.js`]=_E,$[`@ebay/muse-lib-react@2.0.0/src/images/logo.png`]=Kp,$[`@ebay/muse-lib-react@2.0.0/src/features/sub-app/redux/constants.js`]=yp,$[`path-to-regexp@8.4.2/dist/index.js`]=Ix,$[`react-universal-interface@0.6.2/lib/wrapInStatefulComponent.js`]=vE,MUSE_GLOBAL.__shared__.register($,e=>$[e]);
97
+ Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return h(t)}function O(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(O);if(t===null||e(t))return!0;var n=u(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!O(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!O(a[1]))return!1}}else return!1;return!0;default:return!1}}function te(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function ne(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:te(t,e)?`symbol`:t}function re(e){if(e==null)return``+e;var t=ne(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function ie(e){var t=re(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function k(e){return!e.constructor||!e.constructor.name?d:e.constructor.name}return f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f}})),LT=s(((e,t)=>{var n=NT();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 a={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:i,resetWarningCache:r};return a.PropTypes=a,a}})),RT=s(((e,t)=>{t.exports=LT()()})),zT=u(s(((e,t)=>{var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function a(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=m(),s=RT(),c=[],l=[];function u(e){return(typeof __webpack_modules__>`u`?`undefined`:n(__webpack_modules__))===`object`?e().every(function(e){return e!==void 0&&__webpack_modules__[e]!==void 0}):!1}function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}function f(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach(function(r){var i=d(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then(function(e){t.loaded[r]=e}).catch(function(e){t.error=e})})}catch(e){t.error=e}return t.promise=Promise.all(n).then(function(e){return t.loading=!1,e}).catch(function(e){throw t.loading=!1,e}),t}function p(e){return e&&e.__esModule?e.default:e}function h(e,t){return o.createElement(p(e),t)}function g(e,t){var n,d;if(!t.loading)throw Error("react-loadable requires a `loading` component");var f=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:h,webpack:null,modules:null},t),p=null;function m(){return p||=e(f.loader),p.promise}return c.push(m),typeof f.webpack==`function`&&l.push(function(){if(u(f.webpack))return m()}),d=n=function(t){a(n,t);function n(a){r(this,n);var o=i(this,t.call(this,a));return o.retry=function(){o.setState({error:null,loading:!0,timedOut:!1}),p=e(f.loader),o._loadModule()},m(),o.state={error:p.error,pastDelay:!1,timedOut:!1,loading:p.loading,loaded:p.loaded},o}return n.preload=function(){return m()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(f.modules)&&f.modules.forEach(function(t){e.context.loadable.report(t)}),p.loading){typeof f.delay==`number`&&(f.delay===0?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){e.setState({pastDelay:!0})},f.delay)),typeof f.timeout==`number`&&(this._timeout=setTimeout(function(){e.setState({timedOut:!0})},f.timeout));var t=function(){e._mounted&&(e.setState({error:p.error,loaded:p.loaded,loading:p.loading}),e._clearTimeouts())};p.promise.then(function(){t()}).catch(function(e){t()})}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?o.createElement(f.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?f.render(this.state.loaded,this.props):null},n}(o.Component),n.contextTypes={loadable:s.shape({report:s.func.isRequired})},d}function _(e){return g(d,e)}function v(e){if(typeof e.render!=`function`)throw Error("LoadableMap requires a `render(loaded, props)` function");return g(f,e)}_.Map=v;var y=function(e){a(t,e);function t(){return r(this,t),i(this,e.apply(this,arguments))}return t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return o.Children.only(this.props.children)},t}(o.Component);y.propTypes={report:s.func.isRequired},y.childContextTypes={loadable:s.shape({report:s.func.isRequired}).isRequired},_.Capture=y;function b(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then(function(){if(e.length)return b(e)})}_.preloadAll=function(){return new Promise(function(e,t){b(c).then(e,t)})},_.preloadReady=function(){return new Promise(function(e,t){b(l).then(e,e)})},t.exports=_}))(),1),BT=c({}),VT=c({default:()=>HT});Vf.default.register({name:`@ebay/muse-lib-react`}),window.MUSE_GLOBAL.appEntries.push({name:`@ebay/muse-lib-react`,func:()=>{let e=document.getElementById(`muse-react-root`);e||(e=document.createElement(`div`),e.id=`muse-react-root`,document.body.appendChild(e)),e.innerHTML=``,Vf.default.invoke(`root.beforeRender`);let t=(0,ee.createRoot)(e);window.__js_plugin=Vf.default,t.render((0,X.jsx)(OT,{})),Vf.default.invoke(`root.afterRender`),Vf.default.invoke(`onReady`)}});var HT={Loadable:zT.default,_:Zd.default,reactUse:px,reactRouterDom:Xd,reactQuery:vT},UT=u(S()),WT=u(Up()),GT=u(p()),KT=u(RT()),qT=u(Hp()),JT=u(x()),YT=u(f()),XT=u(LT()),ZT=u(jT()),QT=u(IT());mh();var $T=u(T()),eE=u(w()),tE=u(_()),nE=u(AT()),rE=u(kT()),iE=u(FT()),aE=u(NT()),oE=u(MT()),sE=u(PT()),cE=u(y()),lE=u(v()),uE=u(Np()),dE=u(ag()),fE=u(bg()),pE=u(g()),mE=u(h()),hE=u(Sg()),gE=u(Py()),_E=u(Ny()),vE=u(Ay()),yE=u(My()),bE=u(jy()),$={};$[`@ebay/muse-lib-react@2.0.1/src/index.jsx`]=VT,$[`js-plugin@1.1.0/plugin.js`]=Vf,$[`@ebay/muse-lib-react@2.0.1/src/Root.jsx`]=CT,$[`react-use@17.6.0/esm/index.js`]=px,$[`react-dom@19.2.5/client.js`]=ee,$[`react-loadable@5.5.0/lib/index.js`]=zT,$[`react@19.2.5/jsx-runtime.js`]=X,$[`react@19.2.5/index.js`]=O,$[`lodash@4.18.1/lodash.js`]=Zd,$[`react-router-dom@7.15.0/dist/index.mjs`]=Xd,$[`@tanstack/react-query@5.100.9/build/modern/index.js`]=vT,$[`@ebay/muse-lib-react@2.0.1/src/styles/index.less`]=BT,$[`@ebay/muse-lib-react@2.0.1/src/utils.js`]=yT,$[`react-dom@19.2.5/cjs/react-dom-client.development.js`]=UT,$[`react@19.2.5/cjs/react-jsx-runtime.development.js`]=WT,$[`react-redux@9.2.0/dist/react-redux.mjs`]=D,$[`@ebay/nice-modal-react@1.2.13/lib/esm/index.js`]=Qd,$[`react@19.2.5/cjs/react.development.js`]=GT,$[`@ebay/muse-lib-react@2.0.1/src/common/store.js`]=Rp,$[`prop-types@15.8.1/index.js`]=KT,$[`@ebay/muse-lib-react@2.0.1/src/common/history.js`]=jx,$[`@ebay/muse-lib-react@2.0.1/src/common/routeConfig.jsx`]=oS,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/SubAppContext.js`]=Zx,$[`react@19.2.5/cjs/react-jsx-runtime.production.js`]=qT,$[`react-dom@19.2.5/cjs/react-dom-client.production.js`]=JT,$[`react@19.2.5/cjs/react.production.js`]=YT,$[`react-router@7.15.0/dist/development/index.mjs`]=Yd,$[`react-router@7.15.0/dist/development/dom-export.mjs`]=bd,$[`@tanstack/react-query@5.100.9/build/modern/IsRestoringProvider.js`]=yw,$[`@tanstack/query-core@5.100.9/build/modern/index.js`]=pw,$[`@tanstack/react-query@5.100.9/build/modern/types.js`]=mw,$[`@tanstack/react-query@5.100.9/build/modern/useQueries.js`]=Rw,$[`@tanstack/react-query@5.100.9/build/modern/useQuery.js`]=Hw,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseQuery.js`]=Ww,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseInfiniteQuery.js`]=Kw,$[`@tanstack/react-query@5.100.9/build/modern/useSuspenseQueries.js`]=Jw,$[`@tanstack/react-query@5.100.9/build/modern/usePrefetchQuery.js`]=Xw,$[`@tanstack/react-query@5.100.9/build/modern/usePrefetchInfiniteQuery.js`]=Qw,$[`@tanstack/react-query@5.100.9/build/modern/queryOptions.js`]=eT,$[`@tanstack/react-query@5.100.9/build/modern/infiniteQueryOptions.js`]=nT,$[`@tanstack/react-query@5.100.9/build/modern/QueryClientProvider.js`]=hw,$[`@tanstack/react-query@5.100.9/build/modern/HydrationBoundary.js`]=iT,$[`@tanstack/react-query@5.100.9/build/modern/QueryErrorResetBoundary.js`]=Cw,$[`@tanstack/react-query@5.100.9/build/modern/useIsFetching.js`]=oT,$[`@tanstack/react-query@5.100.9/build/modern/useMutationState.js`]=cT,$[`@tanstack/react-query@5.100.9/build/modern/useMutation.js`]=fT,$[`@tanstack/react-query@5.100.9/build/modern/mutationOptions.js`]=mT,$[`@tanstack/react-query@5.100.9/build/modern/useInfiniteQuery.js`]=gT,$[`react-use@17.6.0/esm/useHash.js`]=dx,$[`react-use@17.6.0/esm/factory/createMemo.js`]=_m,$[`react-use@17.6.0/esm/factory/createReducer.js`]=Tm,$[`react-use@17.6.0/esm/factory/createReducerContext.js`]=ym,$[`react-use@17.6.0/esm/factory/createStateContext.js`]=Om,$[`react-use@17.6.0/esm/useAsyncFn.js`]=_h,$[`react-use@17.6.0/esm/useAsync.js`]=yh,$[`react-use@17.6.0/esm/useBeforeUnload.js`]=Gh,$[`react-use@17.6.0/esm/useBoolean.js`]=Xh,$[`react-use@17.6.0/esm/useAsyncRetry.js`]=xh,$[`react-use@17.6.0/esm/useBattery.js`]=zh,$[`react-use@17.6.0/esm/useClickAway.js`]=Qh,$[`react-use@17.6.0/esm/useCookie.js`]=ng,$[`react-use@17.6.0/esm/useCopyToClipboard.js`]=sg,$[`react-use@17.6.0/esm/useAudio.js`]=kh,$[`react-use@17.6.0/esm/useCounter.js`]=_g,$[`react-use@17.6.0/esm/useCss.js`]=jg,$[`react-use@17.6.0/esm/useCustomCompareEffect.js`]=Fg,$[`react-use@17.6.0/esm/useDebounce.js`]=zg,$[`react-use@17.6.0/esm/useDeepCompareEffect.js`]=Vg,$[`react-use@17.6.0/esm/useDefault.js`]=Ug,$[`react-use@17.6.0/esm/useDrop.js`]=Gg,$[`react-use@17.6.0/esm/useDropArea.js`]=Jg,$[`react-use@17.6.0/esm/useEffectOnce.js`]=Qg,$[`@tanstack/query-core@5.100.9/build/modern/types.js`]=lw,$[`react-use@17.6.0/esm/useEnsuredForwardedRef.js`]=e_,$[`react-use@17.6.0/esm/useEvent.js`]=r_,$[`react-use@17.6.0/esm/useError.js`]=c_,$[`react-use@17.6.0/esm/useFavicon.js`]=u_,$[`react-use@17.6.0/esm/useFullscreen.js`]=p_,$[`react-use@17.6.0/esm/useGeolocation.js`]=g_,$[`use-sync-external-store@1.6.0/with-selector.js`]=te,$[`react-use@17.6.0/esm/useGetSet.js`]=hg,$[`react-use@17.6.0/esm/useGetSetState.js`]=v_,$[`react-use@17.6.0/esm/useHarmonicIntervalFn.js`]=T_,$[`react-use@17.6.0/esm/useHover.js`]=D_,$[`react-use@17.6.0/esm/useHoverDirty.js`]=A_,$[`react-use@17.6.0/esm/useIdle.js`]=F_,$[`react-use@17.6.0/esm/useIntersection.js`]=z_,$[`react-use@17.6.0/esm/useInterval.js`]=V_,$[`react-use@17.6.0/esm/useIsomorphicLayoutEffect.js`]=kg,$[`react-use@17.6.0/esm/useKey.js`]=U_,$[`react-use@17.6.0/esm/factory/createBreakpoint.js`]=K_,$[`react-use@17.6.0/esm/useKeyPress.js`]=J_,$[`react-use@17.6.0/esm/useKeyPressEvent.js`]=X_,$[`react-use@17.6.0/esm/useLatest.js`]=Q_,$[`react-use@17.6.0/esm/useLifecycles.js`]=ev,$[`react-use@17.6.0/esm/useList.js`]=nv,$[`react-use@17.6.0/esm/useLocalStorage.js`]=iv,$[`react-use@17.6.0/esm/useLocation.js`]=ov,$[`react-use@17.6.0/esm/useLockBodyScroll.js`]=dv,$[`react-use@17.6.0/esm/useLogger.js`]=yv,$[`react-use@17.6.0/esm/useLongPress.js`]=xv,$[`react-use@17.6.0/esm/useMap.js`]=Tv,$[`react-use@17.6.0/esm/useMedia.js`]=Dv,$[`react-use@17.6.0/esm/useMediaDevices.js`]=Av,$[`react-use@17.6.0/esm/useMediatedState.js`]=Mv,$[`react-use@17.6.0/esm/useMethods.js`]=Pv,$[`react-use@17.6.0/esm/useMotion.js`]=Iv,$[`react-use@17.6.0/esm/useMount.js`]=zv,$[`react-use@17.6.0/esm/useMouseHovered.js`]=qv,$[`react-use@17.6.0/esm/useMouse.js`]=Gv,$[`react-use@17.6.0/esm/useMountedState.js`]=hh,$[`react-use@17.6.0/esm/useMouseWheel.js`]=Xv,$[`react-use@17.6.0/esm/useNetworkState.js`]=Qv,$[`react-use@17.6.0/esm/useNumber.js`]=ry,$[`react-use@17.6.0/esm/useObservable.js`]=ay,$[`react-use@17.6.0/esm/useOrientation.js`]=sy,$[`react-use@17.6.0/esm/usePageLeave.js`]=uy,$[`react-use@17.6.0/esm/usePermission.js`]=fy,$[`react-use@17.6.0/esm/usePrevious.js`]=my,$[`react-use@17.6.0/esm/usePreviousDistinct.js`]=gy,$[`react-use@17.6.0/esm/usePromise.js`]=yy,$[`react-use@17.6.0/esm/useQueue.js`]=xy,$[`react-use@17.6.0/esm/useRaf.js`]=Cy,$[`react-use@17.6.0/esm/useRafLoop.js`]=Ty,$[`react-use@17.6.0/esm/useRafState.js`]=Uv,$[`react-use@17.6.0/esm/useSearchParam.js`]=Dy,$[`react-use@17.6.0/esm/useScratch.js`]=Iy,$[`react-use@17.6.0/esm/useScroll.js`]=By,$[`react-use@17.6.0/esm/useScrolling.js`]=Hy,$[`react-use@17.6.0/esm/useSessionStorage.js`]=Wy,$[`react-use@17.6.0/esm/useSetState.js`]=Ch,$[`react-use@17.6.0/esm/useShallowCompareEffect.js`]=qy,$[`react-use@17.6.0/esm/useSize.js`]=Zy,$[`react-use@17.6.0/esm/useSlider.js`]=rb,$[`react-use@17.6.0/esm/useSpeech.js`]=ab,$[`react-use@17.6.0/esm/useStartTyping.js`]=cb,$[`react-use@17.6.0/esm/useStateWithHistory.js`]=fb,$[`react-use@17.6.0/esm/useStateList.js`]=mb,$[`react-use@17.6.0/esm/useThrottle.js`]=gb,$[`react-use@17.6.0/esm/useTimeout.js`]=bb,$[`react-use@17.6.0/esm/useThrottleFn.js`]=vb,$[`react-use@17.6.0/esm/useTimeoutFn.js`]=Lg,$[`react-use@17.6.0/esm/useTitle.js`]=Sb,$[`react-use@17.6.0/esm/useToggle.js`]=qh,$[`react-use@17.6.0/esm/useUnmount.js`]=Vv,$[`react-use@17.6.0/esm/useTween.js`]=Db,$[`react-use@17.6.0/esm/useUnmountPromise.js`]=Ab,$[`react-use@17.6.0/esm/useUpdate.js`]=ug,$[`react-use@17.6.0/esm/useUpdateEffect.js`]=Cm,$[`react-use@17.6.0/esm/useUpsert.js`]=Mb,$[`react-use@17.6.0/esm/useVibrate.js`]=Pb,$[`react-use@17.6.0/esm/useVideo.js`]=Rb,$[`react-use@17.6.0/esm/useStateValidator.js`]=Bb,$[`react-use@17.6.0/esm/useScrollbarWidth.js`]=Wb,$[`react-use@17.6.0/esm/useMultiStateValidator.js`]=Kb,$[`react-use@17.6.0/esm/useWindowScroll.js`]=Jb,$[`react-use@17.6.0/esm/useWindowSize.js`]=Xb,$[`react-use@17.6.0/esm/useMeasure.js`]=Qb,$[`react-use@17.6.0/esm/usePinchZoom.js`]=nx,$[`react-use@17.6.0/esm/useRendersCount.js`]=ax,$[`react-use@17.6.0/esm/useFirstMountState.js`]=xm,$[`react-use@17.6.0/esm/useSet.js`]=sx,$[`react-use@17.6.0/esm/factory/createGlobalState.js`]=lx,$[`@tanstack/query-core@5.100.9/build/modern/focusManager.js`]=pS,$[`@tanstack/query-core@5.100.9/build/modern/environmentManager.js`]=YS,$[`@tanstack/query-core@5.100.9/build/modern/hydration.js`]=eC,$[`@tanstack/query-core@5.100.9/build/modern/infiniteQueryObserver.js`]=UC,$[`@tanstack/query-core@5.100.9/build/modern/mutationCache.js`]=JC,$[`@tanstack/query-core@5.100.9/build/modern/mutationObserver.js`]=ZC,$[`@tanstack/query-core@5.100.9/build/modern/notifyManager.js`]=lC,$[`@tanstack/query-core@5.100.9/build/modern/onlineManager.js`]=pC,$[`@tanstack/query-core@5.100.9/build/modern/queriesObserver.js`]=$C,$[`@tanstack/query-core@5.100.9/build/modern/queryCache.js`]=rw,$[`@tanstack/query-core@5.100.9/build/modern/queryClient.js`]=aw,$[`@tanstack/query-core@5.100.9/build/modern/queryObserver.js`]=FC,$[`@tanstack/query-core@5.100.9/build/modern/retryer.js`]=gC,$[`@tanstack/query-core@5.100.9/build/modern/timeoutManager.js`]=gS,$[`@tanstack/query-core@5.100.9/build/modern/utils.js`]=xS,$[`@tanstack/query-core@5.100.9/build/modern/streamedQuery.js`]=sw,$[`@tanstack/query-core@5.100.9/build/modern/mutation.js`]=GC,$[`@tanstack/query-core@5.100.9/build/modern/query.js`]=AC,$[`prop-types@15.8.1/factoryWithThrowingShims.js`]=XT,$[`history@5.3.0/index.js`]=gx,$[`react-is@16.13.1/index.js`]=ZT,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/route.jsx`]=nS,$[`prop-types@15.8.1/factoryWithTypeCheckers.js`]=QT,$[`@ebay/muse-lib-react@2.0.1/src/common/configStore.js`]=Pp,$[`react-router@7.15.0/dist/development/chunk-5KNZJZUH.mjs`]=bt,$[`react-router@7.15.0/dist/development/chunk-RMD3H4O3.mjs`]=zl,$[`@tanstack/react-query@5.100.9/build/modern/suspense.js`]=Mw,$[`react-dom@19.2.5/index.js`]=xd,$[`@tanstack/react-query@5.100.9/build/modern/errorBoundaryUtils.js`]=Ow,$[`@ebay/muse-lib-react@2.0.1/src/features/common/index.js`]=fm,$[`@ebay/muse-lib-react@2.0.1/src/features/home/index.js`]=Zp,$[`@ebay/muse-lib-react@2.0.1/src/features/home/route.js`]=pm,$[`@ebay/muse-lib-react@2.0.1/src/features/common/route.js`]=hm,$[`@tanstack/react-query@5.100.9/build/modern/useBaseQuery.js`]=Bw,$[`react-use@17.6.0/esm/misc/util.js`]=jh,$[`react-use@17.6.0/esm/misc/isDeepEqual.js`]=Ih,$[`tslib@2.8.1/tslib.es6.mjs`]=Am,$[`js-cookie@2.2.1/src/js.cookie.js`]=rg,$[`react-use@17.6.0/esm/factory/createHTMLMediaHook.js`]=Dh,$[`copy-to-clipboard@3.3.3/index.js`]=cg,$[`react-use@17.6.0/esm/misc/hookState.js`]=pg,$[`screenfull@5.2.0/dist/screenfull.js`]=m_,$[`set-harmonic-interval@1.0.1/lib/index.esm.js`]=b_,$[`nano-css@5.6.2/addon/vcssom/cssToTree.js`]=Og,$[`nano-css@5.6.2/index.js`]=Tg,$[`nano-css@5.6.2/addon/cssom.js`]=Eg,$[`nano-css@5.6.2/addon/vcssom.js`]=Dg,$[`use-sync-external-store@1.6.0/cjs/use-sync-external-store-with-selector.development.js`]=$T,$[`use-sync-external-store@1.6.0/cjs/use-sync-external-store-with-selector.production.js`]=eE,$[`throttle-debounce@3.0.1/esm/index.js`]=M_,$[`scheduler@0.27.0/index.js`]=tE,$[`react-universal-interface@0.6.2/lib/index.js`]=Ly,$[`fast-shallow-equal@1.0.0/index.js`]=Jy,$[`ts-easing@0.2.0/lib/index.js`]=Ob,$[`@xobotyi/scrollbar-width@1.9.5/dist/index.esm.js`]=Hb,$[`@tanstack/query-core@5.100.9/build/modern/infiniteQueryBehavior.js`]=wC,$[`@tanstack/query-core@5.100.9/build/modern/subscribable.js`]=dS,$[`@tanstack/query-core@5.100.9/build/modern/thenable.js`]=ZS,$[`@tanstack/query-core@5.100.9/build/modern/removable.js`]=SC,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/index.js`]=tS,$[`react-is@16.13.1/cjs/react-is.development.js`]=nE,$[`react-is@16.13.1/cjs/react-is.production.min.js`]=rE,$[`prop-types@15.8.1/checkPropTypes.js`]=iE,$[`prop-types@15.8.1/lib/ReactPropTypesSecret.js`]=aE,$[`object-assign@4.1.1/index.js`]=oE,$[`prop-types@15.8.1/lib/has.js`]=sE,$[`react-dom@19.2.5/cjs/react-dom.development.js`]=cE,$[`react-dom@19.2.5/cjs/react-dom.production.js`]=lE,$[`@babel/runtime@7.29.2/helpers/esm/extends.js`]=mx,$[`@ebay/muse-lib-react@2.0.1/src/features/common/HelloWorld.jsx`]=um,$[`redux-logger@3.0.6/dist/redux-logger.js`]=uE,$[`@ebay/muse-lib-react@2.0.1/src/common/rootReducer.js`]=Ap,$[`redux-thunk@3.1.0/dist/redux-thunk.mjs`]=rp,$[`redux@5.0.1/dist/redux.mjs`]=Hf,$[`set-cookie-parser@2.7.2/lib/set-cookie.js`]=Vl,$[`cookie@1.1.1/dist/index.js`]=Bl,$[`@ebay/muse-lib-react@2.0.1/src/features/common/useExtPoint.jsx`]=om,$[`@ebay/muse-lib-react@2.0.1/src/features/common/Nodes.jsx`]=im,$[`@ebay/muse-lib-react@2.0.1/src/features/common/ErrorBoundary.jsx`]=em,$[`@ebay/muse-lib-react@2.0.1/src/features/common/PageNotFound.jsx`]=Qp,$[`@ebay/muse-lib-react@2.0.1/src/features/home/Homepage.jsx`]=Yp,$[`@ebay/muse-lib-react@2.0.1/src/features/home/App.jsx`]=Gp,$[`react-use@17.6.0/esm/misc/parseTimeRanges.js`]=Th,$[`fast-deep-equal@3.1.3/react.js`]=Lh,$[`toggle-selection@1.0.6/index.js`]=dE,$[`nano-css@5.6.2/addon/__dev__/warnOnMissingDependencies.js`]=fE,$[`scheduler@0.27.0/cjs/scheduler.development.js`]=pE,$[`scheduler@0.27.0/cjs/scheduler.production.js`]=mE,$[`nano-css@5.6.2/addon/vcssom/removeRule.js`]=hE,$[`react-universal-interface@0.6.2/lib/hookToRenderProp.js`]=gE,$[`react-universal-interface@0.6.2/lib/createEnhancer.js`]=_E,$[`react-universal-interface@0.6.2/lib/render.js`]=vE,$[`@ebay/muse-lib-react@2.0.1/src/features/common/Test1.jsx`]=cm,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/C2SProxyFailed.jsx`]=$x,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/FixedSubAppContainer.jsx`]=Wx,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/LoadingSkeleton.jsx`]=Jx,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/SubAppContainer.jsx`]=zx,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/redux/reducer.js`]=Dp,$[`@ebay/muse-lib-react@2.0.1/src/features/home/redux/reducer.js`]=lp,$[`@ebay/muse-lib-react@2.0.1/src/features/common/redux/reducer.js`]=mp,$[`@ebay/muse-lib-react@2.0.1/src/features/common/utils.js`]=nm,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/hooks/useParentRouteChange.js`]=Bp,$[`react-universal-interface@0.6.2/lib/addClassDecoratorSupport.js`]=yE,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/urlUtils.js`]=Ix,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/redux/setSubAppState.js`]=Sp,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/redux/initialState.js`]=_p,$[`@ebay/muse-lib-react@2.0.1/src/features/home/redux/initialState.js`]=sp,$[`@ebay/muse-lib-react@2.0.1/src/features/common/redux/initialState.js`]=fp,$[`@ebay/muse-lib-react@2.0.1/src/images/logo.png`]=qp,$[`react-universal-interface@0.6.2/lib/wrapInStatefulComponent.js`]=bE,$[`@ebay/muse-lib-react@2.0.1/src/features/sub-app/redux/constants.js`]=yp,$[`path-to-regexp@8.4.2/dist/index.js`]=Lx,MUSE_GLOBAL.__shared__.register($,e=>$[e]);
75
98
  //# sourceMappingURL=main.js.map
76
99
 
77
100
  const cssInject = (fileName) => {