mediacms/static/chapters_editor/chapters-editor.js
Yiannis Christodoulou ac2aee8b8b build assets
2025-10-16 16:01:36 +03:00

204 lines
394 KiB
JavaScript

(function(){"use strict";var cm={exports:{}},Jc={exports:{}},ll={exports:{}};ll.exports;var fm;function NS(){return fm||(fm=1,function(k,M){/**
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var ee="18.3.1",ke=Symbol.for("react.element"),He=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),xt=Symbol.for("react.profiler"),fe=Symbol.for("react.provider"),pe=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),Yt=Symbol.iterator,ft="@@iterator";function Ve(s){if(s===null||typeof s!="object")return null;var m=Yt&&s[Yt]||s[ft];return typeof m=="function"?m:null}var De={current:null},Ze={transition:null},O={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},et={current:null},P={},It=null;function Ie(s){It=s}P.setExtraStackFrame=function(s){It=s},P.getCurrentStack=null,P.getStackAddendum=function(){var s="";It&&(s+=It);var m=P.getCurrentStack;return m&&(s+=m()||""),s};var Rt=!1,At=!1,Ce=!1,q=!1,Xe=!1,te={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:Ze,ReactCurrentOwner:et};te.ReactDebugCurrentFrame=P,te.ReactCurrentActQueue=O;function de(s){{for(var m=arguments.length,D=new Array(m>1?m-1:0),L=1;L<m;L++)D[L-1]=arguments[L];Y("warn",s,D)}}function I(s){{for(var m=arguments.length,D=new Array(m>1?m-1:0),L=1;L<m;L++)D[L-1]=arguments[L];Y("error",s,D)}}function Y(s,m,D){{var L=te.ReactDebugCurrentFrame,G=L.getStackAddendum();G!==""&&(m+="%s",D=D.concat([G]));var Le=D.map(function(ge){return String(ge)});Le.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Le)}}var Ne={};function Wt(s,m){{var D=s.constructor,L=D&&(D.displayName||D.name)||"ReactClass",G=L+"."+m;if(Ne[G])return;I("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,L),Ne[G]=!0}}var _n={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,D){Wt(s,"forceUpdate")},enqueueReplaceState:function(s,m,D,L){Wt(s,"replaceState")},enqueueSetState:function(s,m,D,L){Wt(s,"setState")}},Vt=Object.assign,ln={};Object.freeze(ln);function Ut(s,m,D){this.props=s,this.context=m,this.refs=ln,this.updater=D||_n}Ut.prototype.isReactComponent={},Ut.prototype.setState=function(s,m){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,m,"setState")},Ut.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var Ct={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},qt=function(s,m){Object.defineProperty(Ut.prototype,s,{get:function(){de("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var ht in Ct)Ct.hasOwnProperty(ht)&&qt(ht,Ct[ht])}function Un(){}Un.prototype=Ut.prototype;function st(s,m,D){this.props=s,this.context=m,this.refs=ln,this.updater=D||_n}var tn=st.prototype=new Un;tn.constructor=st,Vt(tn,Ut.prototype),tn.isPureReactComponent=!0;function wt(){var s={current:null};return Object.seal(s),s}var Qe=Array.isArray;function Zt(s){return Qe(s)}function nn(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,D=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return D}}function cn(s){try{return U(s),!1}catch{return!0}}function U(s){return""+s}function Z(s){if(cn(s))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nn(s)),U(s)}function Se(s,m,D){var L=s.displayName;if(L)return L;var G=m.displayName||m.name||"";return G!==""?D+"("+G+")":D}function he(s){return s.displayName||"Context"}function je(s){if(s==null)return null;if(typeof s.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case X:return"Fragment";case He:return"Portal";case xt:return"Profiler";case c:return"StrictMode";case ae:return"Suspense";case Ae:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case pe:var m=s;return he(m)+".Consumer";case fe:var D=s;return he(D._context)+".Provider";case ut:return Se(s,s.render,"ForwardRef");case re:var L=s.displayName||null;return L!==null?L:je(s.type)||"Memo";case me:{var G=s,Le=G._payload,ge=G._init;try{return je(ge(Le))}catch{return null}}}return null}var We=Object.prototype.hasOwnProperty,qe={key:!0,ref:!0,__self:!0,__source:!0},_e,dt,Je;Je={};function vt(s){if(We.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function an(s){if(We.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function mn(s,m){var D=function(){_e||(_e=!0,I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};D.isReactWarning=!0,Object.defineProperty(s,"key",{get:D,configurable:!0})}function hn(s,m){var D=function(){dt||(dt=!0,I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};D.isReactWarning=!0,Object.defineProperty(s,"ref",{get:D,configurable:!0})}function Q(s){if(typeof s.ref=="string"&&et.current&&s.__self&&et.current.stateNode!==s.__self){var m=je(et.current.type);Je[m]||(I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',m,s.ref),Je[m]=!0)}}var xe=function(s,m,D,L,G,Le,ge){var Pe={$$typeof:ke,type:s,key:m,ref:D,props:ge,_owner:Le};return Pe._store={},Object.defineProperty(Pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(Pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(Pe.props),Object.freeze(Pe)),Pe};function $e(s,m,D){var L,G={},Le=null,ge=null,Pe=null,rt=null;if(m!=null){vt(m)&&(ge=m.ref,Q(m)),an(m)&&(Z(m.key),Le=""+m.key),Pe=m.__self===void 0?null:m.__self,rt=m.__source===void 0?null:m.__source;for(L in m)We.call(m,L)&&!qe.hasOwnProperty(L)&&(G[L]=m[L])}var _t=arguments.length-2;if(_t===1)G.children=D;else if(_t>1){for(var Bt=Array(_t),$t=0;$t<_t;$t++)Bt[$t]=arguments[$t+2];Object.freeze&&Object.freeze(Bt),G.children=Bt}if(s&&s.defaultProps){var nt=s.defaultProps;for(L in nt)G[L]===void 0&&(G[L]=nt[L])}if(Le||ge){var Jt=typeof s=="function"?s.displayName||s.name||"Unknown":s;Le&&mn(G,Jt),ge&&hn(G,Jt)}return xe(s,Le,ge,Pe,rt,et.current,G)}function yt(s,m){var D=xe(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return D}function Nt(s,m,D){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var L,G=Vt({},s.props),Le=s.key,ge=s.ref,Pe=s._self,rt=s._source,_t=s._owner;if(m!=null){vt(m)&&(ge=m.ref,_t=et.current),an(m)&&(Z(m.key),Le=""+m.key);var Bt;s.type&&s.type.defaultProps&&(Bt=s.type.defaultProps);for(L in m)We.call(m,L)&&!qe.hasOwnProperty(L)&&(m[L]===void 0&&Bt!==void 0?G[L]=Bt[L]:G[L]=m[L])}var $t=arguments.length-2;if($t===1)G.children=D;else if($t>1){for(var nt=Array($t),Jt=0;Jt<$t;Jt++)nt[Jt]=arguments[Jt+2];G.children=nt}return xe(s.type,Le,ge,Pe,rt,_t,G)}function Gt(s){return typeof s=="object"&&s!==null&&s.$$typeof===ke}var Lt=".",Hn=":";function Ft(s){var m=/[=:]/g,D={"=":"=0",":":"=2"},L=s.replace(m,function(G){return D[G]});return"$"+L}var jt=!1,Dt=/\/+/g;function $a(s){return s.replace(Dt,"$&/")}function Ta(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(Z(s.key),Ft(""+s.key)):m.toString(36)}function Ea(s,m,D,L,G){var Le=typeof s;(Le==="undefined"||Le==="boolean")&&(s=null);var ge=!1;if(s===null)ge=!0;else switch(Le){case"string":case"number":ge=!0;break;case"object":switch(s.$$typeof){case ke:case He:ge=!0}}if(ge){var Pe=s,rt=G(Pe),_t=L===""?Lt+Ta(Pe,0):L;if(Zt(rt)){var Bt="";_t!=null&&(Bt=$a(_t)+"/"),Ea(rt,m,Bt,"",function(uf){return uf})}else rt!=null&&(Gt(rt)&&(rt.key&&(!Pe||Pe.key!==rt.key)&&Z(rt.key),rt=yt(rt,D+(rt.key&&(!Pe||Pe.key!==rt.key)?$a(""+rt.key)+"/":"")+_t)),m.push(rt));return 1}var $t,nt,Jt=0,fn=L===""?Lt:L+Hn;if(Zt(s))for(var Li=0;Li<s.length;Li++)$t=s[Li],nt=fn+Ta($t,Li),Jt+=Ea($t,m,D,nt,G);else{var ml=Ve(s);if(typeof ml=="function"){var Or=s;ml===Or.entries&&(jt||de("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jt=!0);for(var hl=ml.call(Or),yl,lf=0;!(yl=hl.next()).done;)$t=yl.value,nt=fn+Ta($t,lf++),Jt+=Ea($t,m,D,nt,G)}else if(Le==="object"){var Zu=String(s);throw new Error("Objects are not valid as a React child (found: "+(Zu==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Zu)+"). If you meant to render a collection of children, use an array instead.")}}return Jt}function or(s,m,D){if(s==null)return s;var L=[],G=0;return Ea(s,L,"","",function(Le){return m.call(D,Le,G++)}),L}function Oa(s){var m=0;return or(s,function(){m++}),m}function Zr(s,m,D){or(s,function(){m.apply(this,arguments)},D)}function xr(s){return or(s,function(m){return m})||[]}function ei(s){if(!Gt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function ti(s){var m={$$typeof:pe,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:fe,_context:m};var D=!1,L=!1,G=!1;{var Le={$$typeof:pe,_context:m};Object.defineProperties(Le,{Provider:{get:function(){return L||(L=!0,I("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),m.Provider},set:function(ge){m.Provider=ge}},_currentValue:{get:function(){return m._currentValue},set:function(ge){m._currentValue=ge}},_currentValue2:{get:function(){return m._currentValue2},set:function(ge){m._currentValue2=ge}},_threadCount:{get:function(){return m._threadCount},set:function(ge){m._threadCount=ge}},Consumer:{get:function(){return D||(D=!0,I("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(ge){G||(de("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ge),G=!0)}}}),m.Consumer=Le}return m._currentRenderer=null,m._currentRenderer2=null,m}var yn=-1,gn=0,ta=1,na=2;function Rr(s){if(s._status===yn){var m=s._result,D=m();if(D.then(function(Le){if(s._status===gn||s._status===yn){var ge=s;ge._status=ta,ge._result=Le}},function(Le){if(s._status===gn||s._status===yn){var ge=s;ge._status=na,ge._result=Le}}),s._status===yn){var L=s;L._status=gn,L._result=D}}if(s._status===ta){var G=s._result;return G===void 0&&I(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,G),"default"in G||I(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,G),G.default}else throw s._result}function wr(s){var m={_status:yn,_result:s},D={$$typeof:me,_payload:m,_init:Rr};{var L,G;Object.defineProperties(D,{defaultProps:{configurable:!0,get:function(){return L},set:function(Le){I("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),L=Le,Object.defineProperty(D,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return G},set:function(Le){I("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),G=Le,Object.defineProperty(D,"propTypes",{enumerable:!0})}}})}return D}function Dr(s){s!=null&&s.$$typeof===re?I("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?I("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&I("forwardRef render functions accept exactly two parameters: props and ref. %s",s.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),s!=null&&(s.defaultProps!=null||s.propTypes!=null)&&I("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:ut,render:s};{var D;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(L){D=L,!s.name&&!s.displayName&&(s.displayName=L)}})}return m}var h;h=Symbol.for("react.module.reference");function V(s){return!!(typeof s=="string"||typeof s=="function"||s===X||s===xt||Xe||s===c||s===ae||s===Ae||q||s===ie||Rt||At||Ce||typeof s=="object"&&s!==null&&(s.$$typeof===me||s.$$typeof===re||s.$$typeof===fe||s.$$typeof===pe||s.$$typeof===ut||s.$$typeof===h||s.getModuleId!==void 0))}function K(s,m){V(s)||I("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var D={$$typeof:re,type:s,compare:m===void 0?null:m};{var L;Object.defineProperty(D,"displayName",{enumerable:!1,configurable:!0,get:function(){return L},set:function(G){L=G,!s.name&&!s.displayName&&(s.displayName=G)}})}return D}function ve(){var s=De.current;return s===null&&I(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function tt(s){var m=ve();if(s._context!==void 0){var D=s._context;D.Consumer===s?I("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):D.Provider===s&&I("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function p(s){var m=ve();return m.useState(s)}function C(s,m,D){var L=ve();return L.useReducer(s,m,D)}function b(s){var m=ve();return m.useRef(s)}function T(s,m){var D=ve();return D.useEffect(s,m)}function E(s,m){var D=ve();return D.useInsertionEffect(s,m)}function j(s,m){var D=ve();return D.useLayoutEffect(s,m)}function S(s,m){var D=ve();return D.useCallback(s,m)}function B(s,m){var D=ve();return D.useMemo(s,m)}function z(s,m,D){var L=ve();return L.useImperativeHandle(s,m,D)}function be(s,m){{var D=ve();return D.useDebugValue(s,m)}}function Te(){var s=ve();return s.useTransition()}function Oe(s){var m=ve();return m.useDeferredValue(s)}function ct(){var s=ve();return s.useId()}function Qt(s,m,D){var L=ve();return L.useSyncExternalStore(s,m,D)}var bn=0,kn,_r,La,Mn,lr,zn,Ht;function aa(){}aa.__reactDisabledLog=!0;function ur(){{if(bn===0){kn=console.log,_r=console.info,La=console.warn,Mn=console.error,lr=console.group,zn=console.groupCollapsed,Ht=console.groupEnd;var s={configurable:!0,enumerable:!0,value:aa,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}bn++}}function Pa(){{if(bn--,bn===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Vt({},s,{value:kn}),info:Vt({},s,{value:_r}),warn:Vt({},s,{value:La}),error:Vt({},s,{value:Mn}),group:Vt({},s,{value:lr}),groupCollapsed:Vt({},s,{value:zn}),groupEnd:Vt({},s,{value:Ht})})}bn<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var sr=te.ReactCurrentDispatcher,Gn;function pa(s,m,D){{if(Gn===void 0)try{throw Error()}catch(G){var L=G.stack.trim().match(/\n( *(at )?)/);Gn=L&&L[1]||""}return`
`+Gn+s}}var cr=!1,ni;{var un=typeof WeakMap=="function"?WeakMap:Map;ni=new un}function Tt(s,m){if(!s||cr)return"";{var D=ni.get(s);if(D!==void 0)return D}var L;cr=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Le;Le=sr.current,sr.current=null,ur();try{if(m){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(fn){L=fn}Reflect.construct(s,[],ge)}else{try{ge.call()}catch(fn){L=fn}s.call(ge.prototype)}}else{try{throw Error()}catch(fn){L=fn}s()}}catch(fn){if(fn&&L&&typeof fn.stack=="string"){for(var Pe=fn.stack.split(`
`),rt=L.stack.split(`
`),_t=Pe.length-1,Bt=rt.length-1;_t>=1&&Bt>=0&&Pe[_t]!==rt[Bt];)Bt--;for(;_t>=1&&Bt>=0;_t--,Bt--)if(Pe[_t]!==rt[Bt]){if(_t!==1||Bt!==1)do if(_t--,Bt--,Bt<0||Pe[_t]!==rt[Bt]){var $t=`
`+Pe[_t].replace(" at new "," at ");return s.displayName&&$t.includes("<anonymous>")&&($t=$t.replace("<anonymous>",s.displayName)),typeof s=="function"&&ni.set(s,$t),$t}while(_t>=1&&Bt>=0);break}}}finally{cr=!1,sr.current=Le,Pa(),Error.prepareStackTrace=G}var nt=s?s.displayName||s.name:"",Jt=nt?pa(nt):"";return typeof s=="function"&&ni.set(s,Jt),Jt}function Aa(s,m,D){return Tt(s,!1)}function Ya(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function Ia(s,m,D){if(s==null)return"";if(typeof s=="function")return Tt(s,Ya(s));if(typeof s=="string")return pa(s);switch(s){case ae:return pa("Suspense");case Ae:return pa("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case ut:return Aa(s.render);case re:return Ia(s.type,m,D);case me:{var L=s,G=L._payload,Le=L._init;try{return Ia(Le(G),m,D)}catch{}}}return""}var qu={},sl=te.ReactDebugCurrentFrame;function gt(s){if(s){var m=s._owner,D=Ia(s.type,s._source,m?m.type:null);sl.setExtraStackFrame(D)}else sl.setExtraStackFrame(null)}function nf(s,m,D,L,G){{var Le=Function.call.bind(We);for(var ge in s)if(Le(s,ge)){var Pe=void 0;try{if(typeof s[ge]!="function"){var rt=Error((L||"React class")+": "+D+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw rt.name="Invariant Violation",rt}Pe=s[ge](m,ge,L,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_t){Pe=_t}Pe&&!(Pe instanceof Error)&&(gt(G),I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",D,ge,typeof Pe),gt(null)),Pe instanceof Error&&!(Pe.message in qu)&&(qu[Pe.message]=!0,gt(G),I("Failed %s type: %s",D,Pe.message),gt(null))}}}function kr(s){if(s){var m=s._owner,D=Ia(s.type,s._source,m?m.type:null);Ie(D)}else Ie(null)}var Ge;Ge=!1;function cl(){if(et.current){var s=je(et.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function ra(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),D=s.lineNumber;return`
Check your code at `+m+":"+D+"."}return""}function Mi(s){return s!=null?ra(s.__source):""}var ai={};function af(s){var m=cl();if(!m){var D=typeof s=="string"?s:s.displayName||s.name;D&&(m=`
Check the top-level render call using <`+D+">.")}return m}function On(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var D=af(m);if(!ai[D]){ai[D]=!0;var L="";s&&s._owner&&s._owner!==et.current&&(L=" It was passed a child from "+je(s._owner.type)+"."),kr(s),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,L),kr(null)}}}function Kt(s,m){if(typeof s=="object"){if(Zt(s))for(var D=0;D<s.length;D++){var L=s[D];Gt(L)&&On(L,m)}else if(Gt(s))s._store&&(s._store.validated=!0);else if(s){var G=Ve(s);if(typeof G=="function"&&G!==s.entries)for(var Le=G.call(s),ge;!(ge=Le.next()).done;)Gt(ge.value)&&On(ge.value,m)}}}function Gu(s){{var m=s.type;if(m==null||typeof m=="string")return;var D;if(typeof m=="function")D=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===ut||m.$$typeof===re))D=m.propTypes;else return;if(D){var L=je(m);nf(D,s.props,"prop",L,s)}else if(m.PropTypes!==void 0&&!Ge){Ge=!0;var G=je(m);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Na(s){{for(var m=Object.keys(s.props),D=0;D<m.length;D++){var L=m[D];if(L!=="children"&&L!=="key"){kr(s),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),kr(null);break}}s.ref!==null&&(kr(s),I("Invalid attribute `ref` supplied to `React.Fragment`."),kr(null))}}function ia(s,m,D){var L=V(s);if(!L){var G="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Le=Mi(m);Le?G+=Le:G+=cl();var ge;s===null?ge="null":Zt(s)?ge="array":s!==void 0&&s.$$typeof===ke?(ge="<"+(je(s.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof s,I("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,G)}var Pe=$e.apply(this,arguments);if(Pe==null)return Pe;if(L)for(var rt=2;rt<arguments.length;rt++)Kt(arguments[rt],s);return s===X?Na(Pe):Gu(Pe),Pe}var Wa=!1;function rf(s){var m=ia.bind(null,s);return m.type=s,Wa||(Wa=!0,de("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return de("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function fl(s,m,D){for(var L=Nt.apply(this,arguments),G=2;G<arguments.length;G++)Kt(arguments[G],L.type);return Gu(L),L}function Xu(s,m){var D=Ze.transition;Ze.transition={};var L=Ze.transition;Ze.transition._updatedFibers=new Set;try{s()}finally{if(Ze.transition=D,D===null&&L._updatedFibers){var G=L._updatedFibers.size;G>10&&de("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),L._updatedFibers.clear()}}}var dl=!1,uo=null;function of(s){if(uo===null)try{var m=("require"+Math.random()).slice(0,7),D=k&&k[m];uo=D.call(k,"timers").setImmediate}catch{uo=function(G){dl===!1&&(dl=!0,typeof MessageChannel>"u"&&I("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Le=new MessageChannel;Le.port1.onmessage=G,Le.port2.postMessage(void 0)}}return uo(s)}var ri=0,Oi=!1;function vl(s){{var m=ri;ri++,O.current===null&&(O.current=[]);var D=O.isBatchingLegacy,L;try{if(O.isBatchingLegacy=!0,L=s(),!D&&O.didScheduleLegacyUpdate){var G=O.current;G!==null&&(O.didScheduleLegacyUpdate=!1,fo(G))}}catch(nt){throw Mr(m),nt}finally{O.isBatchingLegacy=D}if(L!==null&&typeof L=="object"&&typeof L.then=="function"){var Le=L,ge=!1,Pe={then:function(nt,Jt){ge=!0,Le.then(function(fn){Mr(m),ri===0?so(fn,nt,Jt):nt(fn)},function(fn){Mr(m),Jt(fn)})}};return!Oi&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ge||(Oi=!0,I("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Pe}else{var rt=L;if(Mr(m),ri===0){var _t=O.current;_t!==null&&(fo(_t),O.current=null);var Bt={then:function(nt,Jt){O.current===null?(O.current=[],so(rt,nt,Jt)):nt(rt)}};return Bt}else{var $t={then:function(nt,Jt){nt(rt)}};return $t}}}}function Mr(s){s!==ri-1&&I("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ri=s}function so(s,m,D){{var L=O.current;if(L!==null)try{fo(L),of(function(){L.length===0?(O.current=null,m(s)):so(s,m,D)})}catch(G){D(G)}else m(s)}}var co=!1;function fo(s){if(!co){co=!0;var m=0;try{for(;m<s.length;m++){var D=s[m];do D=D(!0);while(D!==null)}s.length=0}catch(L){throw s=s.slice(m+1),L}finally{co=!1}}}var Qu=ia,Ku=fl,pl=rf,Ju={map:or,forEach:Zr,count:Oa,toArray:xr,only:ei};M.Children=Ju,M.Component=Ut,M.Fragment=X,M.Profiler=xt,M.PureComponent=st,M.StrictMode=c,M.Suspense=ae,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,M.act=vl,M.cloneElement=Ku,M.createContext=ti,M.createElement=Qu,M.createFactory=pl,M.createRef=wt,M.forwardRef=Dr,M.isValidElement=Gt,M.lazy=wr,M.memo=K,M.startTransition=Xu,M.unstable_act=vl,M.useCallback=S,M.useContext=tt,M.useDebugValue=be,M.useDeferredValue=Oe,M.useEffect=T,M.useId=ct,M.useImperativeHandle=z,M.useInsertionEffect=E,M.useLayoutEffect=j,M.useMemo=B,M.useReducer=C,M.useRef=b,M.useState=p,M.useSyncExternalStore=Qt,M.useTransition=Te,M.version=ee,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ll,ll.exports)),ll.exports}var dm;function Zc(){return dm||(dm=1,Jc.exports=NS()),Jc.exports}var ul={},vm;function jS(){if(vm)return ul;vm=1;/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return function(){var k=Zc(),M=Symbol.for("react.element"),ee=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),He=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),xt=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),me=Symbol.iterator,ie="@@iterator";function Yt(h){if(h===null||typeof h!="object")return null;var V=me&&h[me]||h[ie];return typeof V=="function"?V:null}var ft=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Ve(h){{for(var V=arguments.length,K=new Array(V>1?V-1:0),ve=1;ve<V;ve++)K[ve-1]=arguments[ve];De("error",h,K)}}function De(h,V,K){{var ve=ft.ReactDebugCurrentFrame,tt=ve.getStackAddendum();tt!==""&&(V+="%s",K=K.concat([tt]));var p=K.map(function(C){return String(C)});p.unshift("Warning: "+V),Function.prototype.apply.call(console[h],console,p)}}var Ze=!1,O=!1,et=!1,P=!1,It=!1,Ie;Ie=Symbol.for("react.module.reference");function Rt(h){return!!(typeof h=="string"||typeof h=="function"||h===ke||h===X||It||h===He||h===pe||h===ut||P||h===re||Ze||O||et||typeof h=="object"&&h!==null&&(h.$$typeof===Ae||h.$$typeof===ae||h.$$typeof===c||h.$$typeof===xt||h.$$typeof===fe||h.$$typeof===Ie||h.getModuleId!==void 0))}function At(h,V,K){var ve=h.displayName;if(ve)return ve;var tt=V.displayName||V.name||"";return tt!==""?K+"("+tt+")":K}function Ce(h){return h.displayName||"Context"}function q(h){if(h==null)return null;if(typeof h.tag=="number"&&Ve("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case ke:return"Fragment";case ee:return"Portal";case X:return"Profiler";case He:return"StrictMode";case pe:return"Suspense";case ut:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case xt:var V=h;return Ce(V)+".Consumer";case c:var K=h;return Ce(K._context)+".Provider";case fe:return At(h,h.render,"ForwardRef");case ae:var ve=h.displayName||null;return ve!==null?ve:q(h.type)||"Memo";case Ae:{var tt=h,p=tt._payload,C=tt._init;try{return q(C(p))}catch{return null}}}return null}var Xe=Object.assign,te=0,de,I,Y,Ne,Wt,_n,Vt;function ln(){}ln.__reactDisabledLog=!0;function Ut(){{if(te===0){de=console.log,I=console.info,Y=console.warn,Ne=console.error,Wt=console.group,_n=console.groupCollapsed,Vt=console.groupEnd;var h={configurable:!0,enumerable:!0,value:ln,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}te++}}function Ct(){{if(te--,te===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Xe({},h,{value:de}),info:Xe({},h,{value:I}),warn:Xe({},h,{value:Y}),error:Xe({},h,{value:Ne}),group:Xe({},h,{value:Wt}),groupCollapsed:Xe({},h,{value:_n}),groupEnd:Xe({},h,{value:Vt})})}te<0&&Ve("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qt=ft.ReactCurrentDispatcher,ht;function Un(h,V,K){{if(ht===void 0)try{throw Error()}catch(tt){var ve=tt.stack.trim().match(/\n( *(at )?)/);ht=ve&&ve[1]||""}return`
`+ht+h}}var st=!1,tn;{var wt=typeof WeakMap=="function"?WeakMap:Map;tn=new wt}function Qe(h,V){if(!h||st)return"";{var K=tn.get(h);if(K!==void 0)return K}var ve;st=!0;var tt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=qt.current,qt.current=null,Ut();try{if(V){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(be){ve=be}Reflect.construct(h,[],C)}else{try{C.call()}catch(be){ve=be}h.call(C.prototype)}}else{try{throw Error()}catch(be){ve=be}h()}}catch(be){if(be&&ve&&typeof be.stack=="string"){for(var b=be.stack.split(`
`),T=ve.stack.split(`
`),E=b.length-1,j=T.length-1;E>=1&&j>=0&&b[E]!==T[j];)j--;for(;E>=1&&j>=0;E--,j--)if(b[E]!==T[j]){if(E!==1||j!==1)do if(E--,j--,j<0||b[E]!==T[j]){var S=`
`+b[E].replace(" at new "," at ");return h.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",h.displayName)),typeof h=="function"&&tn.set(h,S),S}while(E>=1&&j>=0);break}}}finally{st=!1,qt.current=p,Ct(),Error.prepareStackTrace=tt}var B=h?h.displayName||h.name:"",z=B?Un(B):"";return typeof h=="function"&&tn.set(h,z),z}function Zt(h,V,K){return Qe(h,!1)}function nn(h){var V=h.prototype;return!!(V&&V.isReactComponent)}function cn(h,V,K){if(h==null)return"";if(typeof h=="function")return Qe(h,nn(h));if(typeof h=="string")return Un(h);switch(h){case pe:return Un("Suspense");case ut:return Un("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case fe:return Zt(h.render);case ae:return cn(h.type,V,K);case Ae:{var ve=h,tt=ve._payload,p=ve._init;try{return cn(p(tt),V,K)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,Z={},Se=ft.ReactDebugCurrentFrame;function he(h){if(h){var V=h._owner,K=cn(h.type,h._source,V?V.type:null);Se.setExtraStackFrame(K)}else Se.setExtraStackFrame(null)}function je(h,V,K,ve,tt){{var p=Function.call.bind(U);for(var C in h)if(p(h,C)){var b=void 0;try{if(typeof h[C]!="function"){var T=Error((ve||"React class")+": "+K+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}b=h[C](V,C,ve,K,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){b=E}b&&!(b instanceof Error)&&(he(tt),Ve("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",K,C,typeof b),he(null)),b instanceof Error&&!(b.message in Z)&&(Z[b.message]=!0,he(tt),Ve("Failed %s type: %s",K,b.message),he(null))}}}var We=Array.isArray;function qe(h){return We(h)}function _e(h){{var V=typeof Symbol=="function"&&Symbol.toStringTag,K=V&&h[Symbol.toStringTag]||h.constructor.name||"Object";return K}}function dt(h){try{return Je(h),!1}catch{return!0}}function Je(h){return""+h}function vt(h){if(dt(h))return Ve("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_e(h)),Je(h)}var an=ft.ReactCurrentOwner,mn={key:!0,ref:!0,__self:!0,__source:!0},hn,Q;function xe(h){if(U.call(h,"ref")){var V=Object.getOwnPropertyDescriptor(h,"ref").get;if(V&&V.isReactWarning)return!1}return h.ref!==void 0}function $e(h){if(U.call(h,"key")){var V=Object.getOwnPropertyDescriptor(h,"key").get;if(V&&V.isReactWarning)return!1}return h.key!==void 0}function yt(h,V){typeof h.ref=="string"&&an.current}function Nt(h,V){{var K=function(){hn||(hn=!0,Ve("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};K.isReactWarning=!0,Object.defineProperty(h,"key",{get:K,configurable:!0})}}function Gt(h,V){{var K=function(){Q||(Q=!0,Ve("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};K.isReactWarning=!0,Object.defineProperty(h,"ref",{get:K,configurable:!0})}}var Lt=function(h,V,K,ve,tt,p,C){var b={$$typeof:M,type:h,key:V,ref:K,props:C,_owner:p};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:tt}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Hn(h,V,K,ve,tt){{var p,C={},b=null,T=null;K!==void 0&&(vt(K),b=""+K),$e(V)&&(vt(V.key),b=""+V.key),xe(V)&&(T=V.ref,yt(V,tt));for(p in V)U.call(V,p)&&!mn.hasOwnProperty(p)&&(C[p]=V[p]);if(h&&h.defaultProps){var E=h.defaultProps;for(p in E)C[p]===void 0&&(C[p]=E[p])}if(b||T){var j=typeof h=="function"?h.displayName||h.name||"Unknown":h;b&&Nt(C,j),T&&Gt(C,j)}return Lt(h,b,T,tt,ve,an.current,C)}}var Ft=ft.ReactCurrentOwner,jt=ft.ReactDebugCurrentFrame;function Dt(h){if(h){var V=h._owner,K=cn(h.type,h._source,V?V.type:null);jt.setExtraStackFrame(K)}else jt.setExtraStackFrame(null)}var $a;$a=!1;function Ta(h){return typeof h=="object"&&h!==null&&h.$$typeof===M}function Ea(){{if(Ft.current){var h=q(Ft.current.type);if(h)return`
Check the render method of \``+h+"`."}return""}}function or(h){return""}var Oa={};function Zr(h){{var V=Ea();if(!V){var K=typeof h=="string"?h:h.displayName||h.name;K&&(V=`
Check the top-level render call using <`+K+">.")}return V}}function xr(h,V){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var K=Zr(V);if(Oa[K])return;Oa[K]=!0;var ve="";h&&h._owner&&h._owner!==Ft.current&&(ve=" It was passed a child from "+q(h._owner.type)+"."),Dt(h),Ve('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,ve),Dt(null)}}function ei(h,V){{if(typeof h!="object")return;if(qe(h))for(var K=0;K<h.length;K++){var ve=h[K];Ta(ve)&&xr(ve,V)}else if(Ta(h))h._store&&(h._store.validated=!0);else if(h){var tt=Yt(h);if(typeof tt=="function"&&tt!==h.entries)for(var p=tt.call(h),C;!(C=p.next()).done;)Ta(C.value)&&xr(C.value,V)}}}function ti(h){{var V=h.type;if(V==null||typeof V=="string")return;var K;if(typeof V=="function")K=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===fe||V.$$typeof===ae))K=V.propTypes;else return;if(K){var ve=q(V);je(K,h.props,"prop",ve,h)}else if(V.PropTypes!==void 0&&!$a){$a=!0;var tt=q(V);Ve("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",tt||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&Ve("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yn(h){{for(var V=Object.keys(h.props),K=0;K<V.length;K++){var ve=V[K];if(ve!=="children"&&ve!=="key"){Dt(h),Ve("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),Dt(null);break}}h.ref!==null&&(Dt(h),Ve("Invalid attribute `ref` supplied to `React.Fragment`."),Dt(null))}}var gn={};function ta(h,V,K,ve,tt,p){{var C=Rt(h);if(!C){var b="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=or();T?b+=T:b+=Ea();var E;h===null?E="null":qe(h)?E="array":h!==void 0&&h.$$typeof===M?(E="<"+(q(h.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):E=typeof h,Ve("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,b)}var j=Hn(h,V,K,tt,p);if(j==null)return j;if(C){var S=V.children;if(S!==void 0)if(ve)if(qe(S)){for(var B=0;B<S.length;B++)ei(S[B],h);Object.freeze&&Object.freeze(S)}else Ve("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ei(S,h)}if(U.call(V,"key")){var z=q(h),be=Object.keys(V).filter(function(ct){return ct!=="key"}),Te=be.length>0?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}";if(!gn[z+Te]){var Oe=be.length>0?"{"+be.join(": ..., ")+": ...}":"{}";Ve(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,Te,z,Oe,z),gn[z+Te]=!0}}return h===ke?yn(j):ti(j),j}}function na(h,V,K){return ta(h,V,K,!0)}function Rr(h,V,K){return ta(h,V,K,!1)}var wr=Rr,Dr=na;ul.Fragment=ke,ul.jsx=wr,ul.jsxs=Dr}(),ul}cm.exports=jS();var v=cm.exports,pm={exports:{}},ef={exports:{}},tf={},mm;function US(){return mm||(mm=1,function(k){/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var M=!1,ee=5;function ke(Q,xe){var $e=Q.length;Q.push(xe),c(Q,xe,$e)}function He(Q){return Q.length===0?null:Q[0]}function X(Q){if(Q.length===0)return null;var xe=Q[0],$e=Q.pop();return $e!==xe&&(Q[0]=$e,xt(Q,$e,0)),xe}function c(Q,xe,$e){for(var yt=$e;yt>0;){var Nt=yt-1>>>1,Gt=Q[Nt];if(fe(Gt,xe)>0)Q[Nt]=xe,Q[yt]=Gt,yt=Nt;else return}}function xt(Q,xe,$e){for(var yt=$e,Nt=Q.length,Gt=Nt>>>1;yt<Gt;){var Lt=(yt+1)*2-1,Hn=Q[Lt],Ft=Lt+1,jt=Q[Ft];if(fe(Hn,xe)<0)Ft<Nt&&fe(jt,Hn)<0?(Q[yt]=jt,Q[Ft]=xe,yt=Ft):(Q[yt]=Hn,Q[Lt]=xe,yt=Lt);else if(Ft<Nt&&fe(jt,xe)<0)Q[yt]=jt,Q[Ft]=xe,yt=Ft;else return}}function fe(Q,xe){var $e=Q.sortIndex-xe.sortIndex;return $e!==0?$e:Q.id-xe.id}var pe=1,ut=2,ae=3,Ae=4,re=5;function me(Q,xe){}var ie=typeof performance=="object"&&typeof performance.now=="function";if(ie){var Yt=performance;k.unstable_now=function(){return Yt.now()}}else{var ft=Date,Ve=ft.now();k.unstable_now=function(){return ft.now()-Ve}}var De=1073741823,Ze=-1,O=250,et=5e3,P=1e4,It=De,Ie=[],Rt=[],At=1,Ce=null,q=ae,Xe=!1,te=!1,de=!1,I=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Ne=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Wt(Q){for(var xe=He(Rt);xe!==null;){if(xe.callback===null)X(Rt);else if(xe.startTime<=Q)X(Rt),xe.sortIndex=xe.expirationTime,ke(Ie,xe);else return;xe=He(Rt)}}function _n(Q){if(de=!1,Wt(Q),!te)if(He(Ie)!==null)te=!0,Je(Vt);else{var xe=He(Rt);xe!==null&&vt(_n,xe.startTime-Q)}}function Vt(Q,xe){te=!1,de&&(de=!1,an()),Xe=!0;var $e=q;try{var yt;if(!M)return ln(Q,xe)}finally{Ce=null,q=$e,Xe=!1}}function ln(Q,xe){var $e=xe;for(Wt($e),Ce=He(Ie);Ce!==null&&!(Ce.expirationTime>$e&&(!Q||Se()));){var yt=Ce.callback;if(typeof yt=="function"){Ce.callback=null,q=Ce.priorityLevel;var Nt=Ce.expirationTime<=$e,Gt=yt(Nt);$e=k.unstable_now(),typeof Gt=="function"?Ce.callback=Gt:Ce===He(Ie)&&X(Ie),Wt($e)}else X(Ie);Ce=He(Ie)}if(Ce!==null)return!0;var Lt=He(Rt);return Lt!==null&&vt(_n,Lt.startTime-$e),!1}function Ut(Q,xe){switch(Q){case pe:case ut:case ae:case Ae:case re:break;default:Q=ae}var $e=q;q=Q;try{return xe()}finally{q=$e}}function Ct(Q){var xe;switch(q){case pe:case ut:case ae:xe=ae;break;default:xe=q;break}var $e=q;q=xe;try{return Q()}finally{q=$e}}function qt(Q){var xe=q;return function(){var $e=q;q=xe;try{return Q.apply(this,arguments)}finally{q=$e}}}function ht(Q,xe,$e){var yt=k.unstable_now(),Nt;if(typeof $e=="object"&&$e!==null){var Gt=$e.delay;typeof Gt=="number"&&Gt>0?Nt=yt+Gt:Nt=yt}else Nt=yt;var Lt;switch(Q){case pe:Lt=Ze;break;case ut:Lt=O;break;case re:Lt=It;break;case Ae:Lt=P;break;case ae:default:Lt=et;break}var Hn=Nt+Lt,Ft={id:At++,callback:xe,priorityLevel:Q,startTime:Nt,expirationTime:Hn,sortIndex:-1};return Nt>yt?(Ft.sortIndex=Nt,ke(Rt,Ft),He(Ie)===null&&Ft===He(Rt)&&(de?an():de=!0,vt(_n,Nt-yt))):(Ft.sortIndex=Hn,ke(Ie,Ft),!te&&!Xe&&(te=!0,Je(Vt))),Ft}function Un(){}function st(){!te&&!Xe&&(te=!0,Je(Vt))}function tn(){return He(Ie)}function wt(Q){Q.callback=null}function Qe(){return q}var Zt=!1,nn=null,cn=-1,U=ee,Z=-1;function Se(){var Q=k.unstable_now()-Z;return!(Q<U)}function he(){}function je(Q){if(Q<0||Q>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Q>0?U=Math.floor(1e3/Q):U=ee}var We=function(){if(nn!==null){var Q=k.unstable_now();Z=Q;var xe=!0,$e=!0;try{$e=nn(xe,Q)}finally{$e?qe():(Zt=!1,nn=null)}}else Zt=!1},qe;if(typeof Ne=="function")qe=function(){Ne(We)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,dt=_e.port2;_e.port1.onmessage=We,qe=function(){dt.postMessage(null)}}else qe=function(){I(We,0)};function Je(Q){nn=Q,Zt||(Zt=!0,qe())}function vt(Q,xe){cn=I(function(){Q(k.unstable_now())},xe)}function an(){Y(cn),cn=-1}var mn=he,hn=null;k.unstable_IdlePriority=re,k.unstable_ImmediatePriority=pe,k.unstable_LowPriority=Ae,k.unstable_NormalPriority=ae,k.unstable_Profiling=hn,k.unstable_UserBlockingPriority=ut,k.unstable_cancelCallback=wt,k.unstable_continueExecution=st,k.unstable_forceFrameRate=je,k.unstable_getCurrentPriorityLevel=Qe,k.unstable_getFirstCallbackNode=tn,k.unstable_next=Ct,k.unstable_pauseExecution=Un,k.unstable_requestPaint=mn,k.unstable_runWithPriority=Ut,k.unstable_scheduleCallback=ht,k.unstable_shouldYield=Se,k.unstable_wrapCallback=qt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(tf)),tf}var hm;function HS(){return hm||(hm=1,ef.exports=US()),ef.exports}var va={},ym;function zS(){if(ym)return va;ym=1;/**
* @license React
* react-dom.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var k=Zc(),M=HS(),ee=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ke=!1;function He(e){ke=e}function X(e){if(!ke){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];xt("warn",e,n)}}function c(e){if(!ke){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];xt("error",e,n)}}function xt(e,t,n){{var a=ee.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var fe=0,pe=1,ut=2,ae=3,Ae=4,re=5,me=6,ie=7,Yt=8,ft=9,Ve=10,De=11,Ze=12,O=13,et=14,P=15,It=16,Ie=17,Rt=18,At=19,Ce=21,q=22,Xe=23,te=24,de=25,I=!0,Y=!1,Ne=!1,Wt=!1,_n=!1,Vt=!0,ln=!0,Ut=!0,Ct=!0,qt=new Set,ht={},Un={};function st(e,t){tn(e,t),tn(e+"Capture",t)}function tn(e,t){ht[e]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ht[e]=t;{var n=e.toLowerCase();Un[n]=e,e==="onDoubleClick"&&(Un.ondblclick=e)}for(var a=0;a<t.length;a++)qt.add(t[a])}var wt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Qe=Object.prototype.hasOwnProperty;function Zt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function nn(e){try{return cn(e),!1}catch{return!0}}function cn(e){return""+e}function U(e,t){if(nn(e))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Zt(e)),cn(e)}function Z(e){if(nn(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Zt(e)),cn(e)}function Se(e,t){if(nn(e))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Zt(e)),cn(e)}function he(e,t){if(nn(e))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Zt(e)),cn(e)}function je(e){if(nn(e))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Zt(e)),cn(e)}function We(e){if(nn(e))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Zt(e)),cn(e)}var qe=0,_e=1,dt=2,Je=3,vt=4,an=5,mn=6,hn=":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",Q=hn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xe=new RegExp("^["+hn+"]["+Q+"]*$"),$e={},yt={};function Nt(e){return Qe.call(yt,e)?!0:Qe.call($e,e)?!1:xe.test(e)?(yt[e]=!0,!0):($e[e]=!0,c("Invalid attribute name: `%s`",e),!1)}function Gt(e,t,n){return t!==null?t.type===qe:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Lt(e,t,n,a){if(n!==null&&n.type===qe)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(a)return!1;if(n!==null)return!n.acceptsBooleans;var r=e.toLowerCase().slice(0,5);return r!=="data-"&&r!=="aria-"}default:return!1}}function Hn(e,t,n,a){if(t===null||typeof t>"u"||Lt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Je:return!t;case vt:return t===!1;case an:return isNaN(t);case mn:return isNaN(t)||t<1}return!1}function Ft(e){return Dt.hasOwnProperty(e)?Dt[e]:null}function jt(e,t,n,a,r,i,o){this.acceptsBooleans=t===dt||t===Je||t===vt,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Dt={},$a=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];$a.forEach(function(e){Dt[e]=new jt(e,qe,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];Dt[t]=new jt(t,_e,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Dt[e]=new jt(e,dt,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Dt[e]=new jt(e,dt,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){Dt[e]=new jt(e,Je,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Dt[e]=new jt(e,Je,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Dt[e]=new jt(e,vt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Dt[e]=new jt(e,mn,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Dt[e]=new jt(e,an,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-\:]([a-z])/g,Ea=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(Ta,Ea);Dt[t]=new jt(t,_e,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Ta,Ea);Dt[t]=new jt(t,_e,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ta,Ea);Dt[t]=new jt(t,_e,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Dt[e]=new jt(e,_e,!1,e.toLowerCase(),null,!1,!1)});var or="xlinkHref";Dt[or]=new jt("xlinkHref",_e,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Dt[e]=new jt(e,_e,!1,e.toLowerCase(),null,!0,!0)});var Oa=/^[\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,Zr=!1;function xr(e){!Zr&&Oa.test(e)&&(Zr=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function ei(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{U(n,t),a.sanitizeURL&&xr(""+n);var i=a.attributeName,o=null;if(a.type===vt){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:Hn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(Hn(t,n,a,!1))return e.getAttribute(i);if(a.type===Je)return n;o=e.getAttribute(i)}return Hn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function ti(e,t,n,a){{if(!Nt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return U(n,t),r===""+n?n:r}}function yn(e,t,n,a){var r=Ft(t);if(!Gt(t,r,a)){if(Hn(t,n,r,a)&&(n=null),a||r===null){if(Nt(t)){var i=t;n===null?e.removeAttribute(i):(U(n,t),e.setAttribute(i,""+n))}return}var o=r.mustUseProperty;if(o){var l=r.propertyName;if(n===null){var u=r.type;e[l]=u===Je?!1:""}else e[l]=n;return}var f=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var g=r.type,y;g===Je||g===vt&&n===!0?y="":(U(n,f),y=""+n,r.sanitizeURL&&xr(y.toString())),d?e.setAttributeNS(d,f,y):e.setAttribute(f,y)}}}var gn=Symbol.for("react.element"),ta=Symbol.for("react.portal"),na=Symbol.for("react.fragment"),Rr=Symbol.for("react.strict_mode"),wr=Symbol.for("react.profiler"),Dr=Symbol.for("react.provider"),h=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),tt=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),C=Symbol.for("react.scope"),b=Symbol.for("react.debug_trace_mode"),T=Symbol.for("react.offscreen"),E=Symbol.for("react.legacy_hidden"),j=Symbol.for("react.cache"),S=Symbol.for("react.tracing_marker"),B=Symbol.iterator,z="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=B&&e[B]||e[z];return typeof t=="function"?t:null}var Te=Object.assign,Oe=0,ct,Qt,bn,kn,_r,La,Mn;function lr(){}lr.__reactDisabledLog=!0;function zn(){{if(Oe===0){ct=console.log,Qt=console.info,bn=console.warn,kn=console.error,_r=console.group,La=console.groupCollapsed,Mn=console.groupEnd;var e={configurable:!0,enumerable:!0,value:lr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Oe++}}function Ht(){{if(Oe--,Oe===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Te({},e,{value:ct}),info:Te({},e,{value:Qt}),warn:Te({},e,{value:bn}),error:Te({},e,{value:kn}),group:Te({},e,{value:_r}),groupCollapsed:Te({},e,{value:La}),groupEnd:Te({},e,{value:Mn})})}Oe<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var aa=ee.ReactCurrentDispatcher,ur;function Pa(e,t,n){{if(ur===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);ur=a&&a[1]||""}return`
`+ur+e}}var sr=!1,Gn;{var pa=typeof WeakMap=="function"?WeakMap:Map;Gn=new pa}function cr(e,t){if(!e||sr)return"";{var n=Gn.get(e);if(n!==void 0)return n}var a;sr=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=aa.current,aa.current=null,zn();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(_){a=_}Reflect.construct(e,[],o)}else{try{o.call()}catch(_){a=_}e.call(o.prototype)}}else{try{throw Error()}catch(_){a=_}e()}}catch(_){if(_&&a&&typeof _.stack=="string"){for(var l=_.stack.split(`
`),u=a.stack.split(`
`),f=l.length-1,d=u.length-1;f>=1&&d>=0&&l[f]!==u[d];)d--;for(;f>=1&&d>=0;f--,d--)if(l[f]!==u[d]){if(f!==1||d!==1)do if(f--,d--,d<0||l[f]!==u[d]){var g=`
`+l[f].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&Gn.set(e,g),g}while(f>=1&&d>=0);break}}}finally{sr=!1,aa.current=i,Ht(),Error.prepareStackTrace=r}var y=e?e.displayName||e.name:"",w=y?Pa(y):"";return typeof e=="function"&&Gn.set(e,w),w}function ni(e,t,n){return cr(e,!0)}function un(e,t,n){return cr(e,!1)}function Tt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Aa(e,t,n){if(e==null)return"";if(typeof e=="function")return cr(e,Tt(e));if(typeof e=="string")return Pa(e);switch(e){case K:return Pa("Suspense");case ve:return Pa("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case V:return un(e.render);case tt:return Aa(e.type,t,n);case p:{var a=e,r=a._payload,i=a._init;try{return Aa(i(r),t,n)}catch{}}}return""}function Ya(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case re:return Pa(e.type);case It:return Pa("Lazy");case O:return Pa("Suspense");case At:return Pa("SuspenseList");case fe:case ut:case P:return un(e.type);case De:return un(e.type.render);case pe:return ni(e.type);default:return""}}function Ia(e){try{var t="",n=e;do t+=Ya(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function qu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function sl(e){return e.displayName||"Context"}function gt(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case na:return"Fragment";case ta:return"Portal";case wr:return"Profiler";case Rr:return"StrictMode";case K:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return sl(t)+".Consumer";case Dr:var n=e;return sl(n._context)+".Provider";case V:return qu(e,e.render,"ForwardRef");case tt:var a=e.displayName||null;return a!==null?a:gt(e.type)||"Memo";case p:{var r=e,i=r._payload,o=r._init;try{return gt(o(i))}catch{return null}}}return null}function nf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function kr(e){return e.displayName||"Context"}function Ge(e){var t=e.tag,n=e.type;switch(t){case te:return"Cache";case ft:var a=n;return kr(a)+".Consumer";case Ve:var r=n;return kr(r._context)+".Provider";case Rt:return"DehydratedFragment";case De:return nf(n,n.render,"ForwardRef");case ie:return"Fragment";case re:return n;case Ae:return"Portal";case ae:return"Root";case me:return"Text";case It:return gt(n);case Yt:return n===Rr?"StrictMode":"Mode";case q:return"Offscreen";case Ze:return"Profiler";case Ce:return"Scope";case O:return"Suspense";case At:return"SuspenseList";case de:return"TracingMarker";case pe:case fe:case Ie:case ut:case et:case P:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var cl=ee.ReactDebugCurrentFrame,ra=null,Mi=!1;function ai(){{if(ra===null)return null;var e=ra._debugOwner;if(e!==null&&typeof e<"u")return Ge(e)}return null}function af(){return ra===null?"":Ia(ra)}function On(){cl.getCurrentStack=null,ra=null,Mi=!1}function Kt(e){cl.getCurrentStack=e===null?null:af,ra=e,Mi=!1}function Gu(){return ra}function Na(e){Mi=e}function ia(e){return""+e}function Wa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return We(e),e;default:return""}}var rf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function fl(e,t){rf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||c("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||c("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Xu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dl(e){return e._valueTracker}function uo(e){e._valueTracker=null}function of(e){var t="";return e&&(Xu(e)?t=e.checked?"true":"false":t=e.value),t}function ri(e){var t=Xu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);We(e[t]);var a=""+e[t];if(!(e.hasOwnProperty(t)||typeof n>"u"||typeof n.get!="function"||typeof n.set!="function")){var r=n.get,i=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){We(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){We(l),a=""+l},stopTracking:function(){uo(e),delete e[t]}};return o}}function Oi(e){dl(e)||(e._valueTracker=ri(e))}function vl(e){if(!e)return!1;var t=dl(e);if(!t)return!0;var n=t.getValue(),a=of(e);return a!==n?(t.setValue(a),!0):!1}function Mr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var so=!1,co=!1,fo=!1,Qu=!1;function Ku(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function pl(e,t){var n=e,a=t.checked,r=Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Ju(e,t){fl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!co&&(c("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ai()||"A component",t.type),co=!0),t.value!==void 0&&t.defaultValue!==void 0&&!so&&(c("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ai()||"A component",t.type),so=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Wa(t.value!=null?t.value:a),controlled:Ku(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&yn(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Ku(t);!n._wrapperState.controlled&&a&&!Qu&&(c("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Qu=!0),n._wrapperState.controlled&&!a&&!fo&&(c("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),fo=!0)}s(e,t);var r=Wa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ia(r)):n.value!==ia(r)&&(n.value=ia(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Le(n,t.type,r):t.hasOwnProperty("defaultValue")&&Le(n,t.type,Wa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function D(e,t,n){var a=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type,i=r==="submit"||r==="reset";if(i&&(t.value===void 0||t.value===null))return;var o=ia(a._wrapperState.initialValue);n||o!==a.value&&(a.value=o),a.defaultValue=o}var l=a.name;l!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,l!==""&&(a.name=l)}function L(e,t){var n=e;m(n,t),G(n,t)}function G(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;U(n,"name");for(var r=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),i=0;i<r.length;i++){var o=r[i];if(!(o===e||o.form!==e.form)){var l=zs(o);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");vl(o),m(o,l)}}}}function Le(e,t,n){(t!=="number"||Mr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ia(e._wrapperState.initialValue):e.defaultValue!==ia(n)&&(e.defaultValue=ia(n)))}var ge=!1,Pe=!1,rt=!1;function _t(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?k.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||Pe||(Pe=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(rt||(rt=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!ge&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ge=!0)}function Bt(e,t){t.value!=null&&e.setAttribute("value",ia(Wa(t.value)))}var $t=Array.isArray;function nt(e){return $t(e)}var Jt;Jt=!1;function fn(){var e=ai();return e?`
Check the render method of \``+e+"`.":""}var Li=["value","defaultValue"];function ml(e){{fl("select",e);for(var t=0;t<Li.length;t++){var n=Li[t];if(e[n]!=null){var a=nt(e[n]);e.multiple&&!a?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,fn()):!e.multiple&&a&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,fn())}}}}function Or(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var f=o.hasOwnProperty("$"+r[u].value);r[u].selected!==f&&(r[u].selected=f),f&&a&&(r[u].defaultSelected=!0)}}else{for(var d=ia(Wa(n)),g=null,y=0;y<r.length;y++){if(r[y].value===d){r[y].selected=!0,a&&(r[y].defaultSelected=!0);return}g===null&&!r[y].disabled&&(g=r[y])}g!==null&&(g.selected=!0)}}function hl(e,t){return Te({},t,{value:void 0})}function yl(e,t){var n=e;ml(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!Jt&&(c("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Jt=!0)}function lf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Or(n,!!t.multiple,a,!1):t.defaultValue!=null&&Or(n,!!t.multiple,t.defaultValue,!0)}function Zu(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?Or(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Or(n,!!t.multiple,t.defaultValue,!0):Or(n,!!t.multiple,t.multiple?[]:"",!1))}function uf(e,t){var n=e,a=t.value;a!=null&&Or(n,!!t.multiple,a,!1)}var wm=!1;function sf(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=Te({},t,{value:void 0,defaultValue:void 0,children:ia(n._wrapperState.initialValue)});return a}function Dm(e,t){var n=e;fl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!wm&&(c("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",ai()||"A component"),wm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(nt(r)){if(r.length>1)throw new Error("<textarea> can only have at most one child.");r=r[0]}i=r}}i==null&&(i=""),a=i}n._wrapperState={initialValue:Wa(a)}}function _m(e,t){var n=e,a=Wa(t.value),r=Wa(t.defaultValue);if(a!=null){var i=ia(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ia(r))}function km(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function t0(e,t){_m(e,t)}var Lr="http://www.w3.org/1999/xhtml",n0="http://www.w3.org/1998/Math/MathML",cf="http://www.w3.org/2000/svg";function ff(e){switch(e){case"svg":return cf;case"math":return n0;default:return Lr}}function df(e,t){return e==null||e===Lr?ff(t):e===cf&&t==="foreignObject"?Lr:e}var a0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},es,Mm=a0(function(e,t){if(e.namespaceURI===cf&&!("innerHTML"in e)){es=es||document.createElement("div"),es.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=es.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ma=1,Ar=3,dn=8,Nr=9,vf=11,ts=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Ar){n.nodeValue=t;return}}e.textContent=t},r0={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},gl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function i0(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o0=["Webkit","ms","Moz","O"];Object.keys(gl).forEach(function(e){o0.forEach(function(t){gl[i0(t,e)]=gl[e]})});function pf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(gl.hasOwnProperty(e)&&gl[e])?t+"px":(he(t,e),(""+t).trim())}var l0=/([A-Z])/g,u0=/^ms-/;function s0(e){return e.replace(l0,"-$1").toLowerCase().replace(u0,"-ms-")}var Om=function(){};{var c0=/^(?:webkit|moz|o)[A-Z]/,f0=/^-ms-/,d0=/-(.)/g,Lm=/;\s*$/,vo={},mf={},Am=!1,Nm=!1,v0=function(e){return e.replace(d0,function(t,n){return n.toUpperCase()})},p0=function(e){vo.hasOwnProperty(e)&&vo[e]||(vo[e]=!0,c("Unsupported style property %s. Did you mean %s?",e,v0(e.replace(f0,"ms-"))))},m0=function(e){vo.hasOwnProperty(e)&&vo[e]||(vo[e]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},h0=function(e,t){mf.hasOwnProperty(t)&&mf[t]||(mf[t]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Lm,"")))},y0=function(e,t){Am||(Am=!0,c("`NaN` is an invalid value for the `%s` css style property.",e))},g0=function(e,t){Nm||(Nm=!0,c("`Infinity` is an invalid value for the `%s` css style property.",e))};Om=function(e,t){e.indexOf("-")>-1?p0(e):c0.test(e)?m0(e):Lm.test(t)&&h0(e,t),typeof t=="number"&&(isNaN(t)?y0(e,t):isFinite(t)||g0(e,t))}}var b0=Om;function S0(e){{var t="",n="";for(var a in e)if(e.hasOwnProperty(a)){var r=e[a];if(r!=null){var i=a.indexOf("--")===0;t+=n+(i?a:s0(a))+":",t+=pf(a,r,i),n=";"}}return t||null}}function jm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||b0(a,t[a]);var i=pf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function T0(e){return e==null||typeof e=="boolean"||e===""}function Um(e){var t={};for(var n in e)for(var a=r0[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function E0(e,t){{if(!t)return;var n=Um(e),a=Um(t),r={};for(var i in n){var o=n[i],l=a[i];if(l&&o!==l){var u=o+","+l;if(r[u])continue;r[u]=!0,c("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",T0(e[o])?"Removing":"Updating",o,l)}}}}var C0={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},x0=Te({menuitem:!0},C0),R0="__html";function hf(e,t){if(t){if(x0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(R0 in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&c("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Ai(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ns={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Hm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},po={},w0=new RegExp("^(aria)-["+Q+"]*$"),D0=new RegExp("^(aria)[A-Z]["+Q+"]*$");function _0(e,t){{if(Qe.call(po,t)&&po[t])return!0;if(D0.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Hm.hasOwnProperty(n)?n:null;if(a==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),po[t]=!0,!0;if(t!==a)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),po[t]=!0,!0}if(w0.test(t)){var r=t.toLowerCase(),i=Hm.hasOwnProperty(r)?r:null;if(i==null)return po[t]=!0,!1;if(t!==i)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),po[t]=!0,!0}}return!0}function k0(e,t){{var n=[];for(var a in t){var r=_0(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function M0(e,t){Ai(e,t)||k0(e,t)}var zm=!1;function O0(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!zm&&(zm=!0,e==="select"&&t.multiple?c("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Vm=function(){};{var oa={},Fm=/^on./,L0=/^on[^A-Z]/,A0=new RegExp("^(aria)-["+Q+"]*$"),N0=new RegExp("^(aria)[A-Z]["+Q+"]*$");Vm=function(e,t,n,a){if(Qe.call(oa,t)&&oa[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return c("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),oa[t]=!0,!0;if(a!=null){var i=a.registrationNameDependencies,o=a.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var l=o.hasOwnProperty(r)?o[r]:null;if(l!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",t,l),oa[t]=!0,!0;if(Fm.test(t))return c("Unknown event handler property `%s`. It will be ignored.",t),oa[t]=!0,!0}else if(Fm.test(t))return L0.test(t)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),oa[t]=!0,!0;if(A0.test(t)||N0.test(t))return!0;if(r==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),oa[t]=!0,!0;if(r==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),oa[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),oa[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),oa[t]=!0,!0;var u=Ft(t),f=u!==null&&u.type===qe;if(ns.hasOwnProperty(r)){var d=ns[r];if(d!==t)return c("Invalid DOM property `%s`. Did you mean `%s`?",t,d),oa[t]=!0,!0}else if(!f&&t!==r)return c("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),oa[t]=!0,!0;return typeof n=="boolean"&&Lt(t,n,u,!1)?(n?c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),oa[t]=!0,!0):f?!0:Lt(t,n,u,!1)?(oa[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===Je&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),oa[t]=!0),!0)}}var j0=function(e,t,n){{var a=[];for(var r in t){var i=Vm(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e):a.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e)}};function U0(e,t,n){Ai(e,t)||j0(e,t,n)}var Bm=1,yf=2,bl=4,H0=Bm|yf|bl,Sl=null;function z0(e){Sl!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Sl=e}function V0(){Sl===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Sl=null}function F0(e){return e===Sl}function gf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Ar?t.parentNode:t}var bf=null,mo=null,ho=null;function $m(e){var t=vi(e);if(t){if(typeof bf!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var a=zs(n);bf(t.stateNode,t.type,a)}}}function B0(e){bf=e}function Pm(e){mo?ho?ho.push(e):ho=[e]:mo=e}function $0(){return mo!==null||ho!==null}function Ym(){if(mo){var e=mo,t=ho;if(mo=null,ho=null,$m(e),t)for(var n=0;n<t.length;n++)$m(t[n])}}var Im=function(e,t){return e(t)},Wm=function(){},Sf=!1;function P0(){var e=$0();e&&(Wm(),Ym())}function qm(e,t,n){if(Sf)return e(t,n);Sf=!0;try{return Im(e,t,n)}finally{Sf=!1,P0()}}function Y0(e,t,n){Im=e,Wm=n}function I0(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function W0(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(n.disabled&&I0(t));default:return!1}}function Tl(e,t){var n=e.stateNode;if(n===null)return null;var a=zs(n);if(a===null)return null;var r=a[t];if(W0(t,e.type,a))return null;if(r&&typeof r!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}var Tf=!1;if(wt)try{var El={};Object.defineProperty(El,"passive",{get:function(){Tf=!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{Tf=!1}function Gm(e,t,n,a,r,i,o,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(d){this.onError(d)}}var Xm=Gm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Ef=document.createElement("react");Xm=function(t,n,a,r,i,o,l,u,f){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var d=document.createEvent("Event"),g=!1,y=!0,w=window.event,_=Object.getOwnPropertyDescriptor(window,"event");function A(){Ef.removeEventListener(N,we,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=w)}var ne=Array.prototype.slice.call(arguments,3);function we(){g=!0,A(),n.apply(a,ne),y=!1}var Ee,lt=!1,at=!1;function x(R){if(Ee=R.error,lt=!0,Ee===null&&R.colno===0&&R.lineno===0&&(at=!0),R.defaultPrevented&&Ee!=null&&typeof Ee=="object")try{Ee._suppressLogging=!0}catch{}}var N="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",x),Ef.addEventListener(N,we,!1),d.initEvent(N,!1,!1),Ef.dispatchEvent(d),_&&Object.defineProperty(window,"event",_),g&&y&&(lt?at&&(Ee=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Ee=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Ee)),window.removeEventListener("error",x),!g)return A(),Gm.apply(this,arguments)}}var q0=Xm,yo=!1,as=null,rs=!1,Cf=null,G0={onError:function(e){yo=!0,as=e}};function xf(e,t,n,a,r,i,o,l,u){yo=!1,as=null,q0.apply(G0,arguments)}function X0(e,t,n,a,r,i,o,l,u){if(xf.apply(this,arguments),yo){var f=Rf();rs||(rs=!0,Cf=f)}}function Q0(){if(rs){var e=Cf;throw rs=!1,Cf=null,e}}function K0(){return yo}function Rf(){if(yo){var e=as;return yo=!1,as=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function go(e){return e._reactInternals}function J0(e){return e._reactInternals!==void 0}function Z0(e,t){e._reactInternals=t}var Ue=0,bo=1,vn=2,bt=4,Ni=16,Cl=32,Qm=64,St=128,jr=256,ji=512,So=1024,ii=2048,Ur=4096,Ui=8192,wf=16384,eT=32767,is=32768,la=65536,Df=131072,Km=1048576,_f=2097152,Hi=4194304,kf=8388608,oi=16777216,Mf=33554432,Of=bt|So|0,Lf=vn|bt|Ni|Cl|ji|Ur|Ui,xl=bt|Qm|ji|Ui,To=ii|Ni,Hr=Hi|kf|_f,tT=ee.ReactCurrentOwner;function zi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(vn|Ur))!==Ue&&(n=t.return),a=t.return;while(a)}return t.tag===ae?n:null}function Jm(e){if(e.tag===O){var t=e.memoizedState;if(t===null){var n=e.alternate;n!==null&&(t=n.memoizedState)}if(t!==null)return t.dehydrated}return null}function Zm(e){return e.tag===ae?e.stateNode.containerInfo:null}function nT(e){return zi(e)===e}function aT(e){{var t=tT.current;if(t!==null&&t.tag===pe){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Ge(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=go(e);return r?zi(r)===r:!1}function eh(e){if(zi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function th(e){var t=e.alternate;if(!t){var n=zi(e);if(n===null)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var a=e,r=t;;){var i=a.return;if(i===null)break;var o=i.alternate;if(o===null){var l=i.return;if(l!==null){a=r=l;continue}break}if(i.child===o.child){for(var u=i.child;u;){if(u===a)return eh(i),e;if(u===r)return eh(i),t;u=u.sibling}throw new Error("Unable to find node on an unmounted component.")}if(a.return!==r.return)a=i,r=o;else{for(var f=!1,d=i.child;d;){if(d===a){f=!0,a=i,r=o;break}if(d===r){f=!0,r=i,a=o;break}d=d.sibling}if(!f){for(d=o.child;d;){if(d===a){f=!0,a=o,r=i;break}if(d===r){f=!0,r=o,a=i;break}d=d.sibling}if(!f)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==r)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==ae)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function nh(e){var t=th(e);return t!==null?ah(t):null}function ah(e){if(e.tag===re||e.tag===me)return e;for(var t=e.child;t!==null;){var n=ah(t);if(n!==null)return n;t=t.sibling}return null}function rT(e){var t=th(e);return t!==null?rh(t):null}function rh(e){if(e.tag===re||e.tag===me)return e;for(var t=e.child;t!==null;){if(t.tag!==Ae){var n=rh(t);if(n!==null)return n}t=t.sibling}return null}var ih=M.unstable_scheduleCallback,iT=M.unstable_cancelCallback,oT=M.unstable_shouldYield,lT=M.unstable_requestPaint,Ln=M.unstable_now,uT=M.unstable_getCurrentPriorityLevel,os=M.unstable_ImmediatePriority,Af=M.unstable_UserBlockingPriority,Vi=M.unstable_NormalPriority,sT=M.unstable_LowPriority,Nf=M.unstable_IdlePriority,cT=M.unstable_yieldValue,fT=M.unstable_setDisableYieldValue,Eo=null,Xn=null,le=null,fr=!1,qa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function dT(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{ln&&(e=Te({},e,{getLaneLabelMap:gT,injectProfilingHooks:yT})),Eo=t.inject(e),Xn=t}catch(n){c("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function vT(e,t){if(Xn&&typeof Xn.onScheduleFiberRoot=="function")try{Xn.onScheduleFiberRoot(Eo,e,t)}catch(n){fr||(fr=!0,c("React instrumentation encountered an error: %s",n))}}function pT(e,t){if(Xn&&typeof Xn.onCommitFiberRoot=="function")try{var n=(e.current.flags&St)===St;if(Ut){var a;switch(t){case Ra:a=os;break;case Vr:a=Af;break;case Fr:a=Vi;break;case vs:a=Nf;break;default:a=Vi;break}Xn.onCommitFiberRoot(Eo,e,a,n)}}catch(r){fr||(fr=!0,c("React instrumentation encountered an error: %s",r))}}function mT(e){if(Xn&&typeof Xn.onPostCommitFiberRoot=="function")try{Xn.onPostCommitFiberRoot(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function hT(e){if(Xn&&typeof Xn.onCommitFiberUnmount=="function")try{Xn.onCommitFiberUnmount(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function An(e){if(typeof cT=="function"&&(fT(e),He(e)),Xn&&typeof Xn.setStrictMode=="function")try{Xn.setStrictMode(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function yT(e){le=e}function gT(){{for(var e=new Map,t=1,n=0;n<Uf;n++){var a=zT(t);e.set(t,a),t*=2}return e}}function bT(e){le!==null&&typeof le.markCommitStarted=="function"&&le.markCommitStarted(e)}function oh(){le!==null&&typeof le.markCommitStopped=="function"&&le.markCommitStopped()}function Rl(e){le!==null&&typeof le.markComponentRenderStarted=="function"&&le.markComponentRenderStarted(e)}function Co(){le!==null&&typeof le.markComponentRenderStopped=="function"&&le.markComponentRenderStopped()}function ST(e){le!==null&&typeof le.markComponentPassiveEffectMountStarted=="function"&&le.markComponentPassiveEffectMountStarted(e)}function TT(){le!==null&&typeof le.markComponentPassiveEffectMountStopped=="function"&&le.markComponentPassiveEffectMountStopped()}function ET(e){le!==null&&typeof le.markComponentPassiveEffectUnmountStarted=="function"&&le.markComponentPassiveEffectUnmountStarted(e)}function CT(){le!==null&&typeof le.markComponentPassiveEffectUnmountStopped=="function"&&le.markComponentPassiveEffectUnmountStopped()}function xT(e){le!==null&&typeof le.markComponentLayoutEffectMountStarted=="function"&&le.markComponentLayoutEffectMountStarted(e)}function RT(){le!==null&&typeof le.markComponentLayoutEffectMountStopped=="function"&&le.markComponentLayoutEffectMountStopped()}function lh(e){le!==null&&typeof le.markComponentLayoutEffectUnmountStarted=="function"&&le.markComponentLayoutEffectUnmountStarted(e)}function uh(){le!==null&&typeof le.markComponentLayoutEffectUnmountStopped=="function"&&le.markComponentLayoutEffectUnmountStopped()}function wT(e,t,n){le!==null&&typeof le.markComponentErrored=="function"&&le.markComponentErrored(e,t,n)}function DT(e,t,n){le!==null&&typeof le.markComponentSuspended=="function"&&le.markComponentSuspended(e,t,n)}function _T(e){le!==null&&typeof le.markLayoutEffectsStarted=="function"&&le.markLayoutEffectsStarted(e)}function kT(){le!==null&&typeof le.markLayoutEffectsStopped=="function"&&le.markLayoutEffectsStopped()}function MT(e){le!==null&&typeof le.markPassiveEffectsStarted=="function"&&le.markPassiveEffectsStarted(e)}function OT(){le!==null&&typeof le.markPassiveEffectsStopped=="function"&&le.markPassiveEffectsStopped()}function sh(e){le!==null&&typeof le.markRenderStarted=="function"&&le.markRenderStarted(e)}function LT(){le!==null&&typeof le.markRenderYielded=="function"&&le.markRenderYielded()}function ch(){le!==null&&typeof le.markRenderStopped=="function"&&le.markRenderStopped()}function AT(e){le!==null&&typeof le.markRenderScheduled=="function"&&le.markRenderScheduled(e)}function NT(e,t){le!==null&&typeof le.markForceUpdateScheduled=="function"&&le.markForceUpdateScheduled(e,t)}function jf(e,t){le!==null&&typeof le.markStateUpdateScheduled=="function"&&le.markStateUpdateScheduled(e,t)}var Me=0,it=1,kt=2,rn=8,dr=16,fh=Math.clz32?Math.clz32:HT,jT=Math.log,UT=Math.LN2;function HT(e){var t=e>>>0;return t===0?32:31-(jT(t)/UT|0)|0}var Uf=31,F=0,Nn=0,Fe=1,xo=2,zr=4,Fi=8,vr=16,wl=32,Ro=4194240,Dl=64,Hf=128,zf=256,Vf=512,Ff=1024,Bf=2048,$f=4096,Pf=8192,Yf=16384,If=32768,Wf=65536,qf=131072,Gf=262144,Xf=524288,Qf=1048576,Kf=2097152,ls=130023424,wo=4194304,Jf=8388608,Zf=16777216,ed=33554432,td=67108864,dh=wo,_l=134217728,vh=268435455,kl=268435456,Bi=536870912,Ca=1073741824;function zT(e){{if(e&Fe)return"Sync";if(e&xo)return"InputContinuousHydration";if(e&zr)return"InputContinuous";if(e&Fi)return"DefaultHydration";if(e&vr)return"Default";if(e&wl)return"TransitionHydration";if(e&Ro)return"Transition";if(e&ls)return"Retry";if(e&_l)return"SelectiveHydration";if(e&kl)return"IdleHydration";if(e&Bi)return"Idle";if(e&Ca)return"Offscreen"}}var Pt=-1,us=Dl,ss=wo;function Ml(e){switch($i(e)){case Fe:return Fe;case xo:return xo;case zr:return zr;case Fi:return Fi;case vr:return vr;case wl:return wl;case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:return e&Ro;case wo:case Jf:case Zf:case ed:case td:return e&ls;case _l:return _l;case kl:return kl;case Bi:return Bi;case Ca:return Ca;default:return c("Should have found matching lanes. This is a bug in React."),e}}function cs(e,t){var n=e.pendingLanes;if(n===F)return F;var a=F,r=e.suspendedLanes,i=e.pingedLanes,o=n&vh;if(o!==F){var l=o&~r;if(l!==F)a=Ml(l);else{var u=o&i;u!==F&&(a=Ml(u))}}else{var f=n&~r;f!==F?a=Ml(f):i!==F&&(a=Ml(i))}if(a===F)return F;if(t!==F&&t!==a&&(t&r)===F){var d=$i(a),g=$i(t);if(d>=g||d===vr&&(g&Ro)!==F)return t}(a&zr)!==F&&(a|=n&vr);var y=e.entangledLanes;if(y!==F)for(var w=e.entanglements,_=a&y;_>0;){var A=Pi(_),ne=1<<A;a|=w[A],_&=~ne}return a}function VT(e,t){for(var n=e.eventTimes,a=Pt;t>0;){var r=Pi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function FT(e,t){switch(e){case Fe:case xo:case zr:return t+250;case Fi:case vr:case wl:case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:return t+5e3;case wo:case Jf:case Zf:case ed:case td:return Pt;case _l:case kl:case Bi:case Ca:return Pt;default:return c("Should have found matching lanes. This is a bug in React."),Pt}}function BT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Pi(o),u=1<<l,f=i[l];f===Pt?((u&a)===F||(u&r)!==F)&&(i[l]=FT(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function $T(e){return Ml(e.pendingLanes)}function nd(e){var t=e.pendingLanes&~Ca;return t!==F?t:t&Ca?Ca:F}function PT(e){return(e&Fe)!==F}function ad(e){return(e&vh)!==F}function ph(e){return(e&ls)===e}function YT(e){var t=Fe|zr|vr;return(e&t)===F}function IT(e){return(e&Ro)===e}function fs(e,t){var n=xo|zr|Fi|vr;return(t&n)!==F}function WT(e,t){return(t&e.expiredLanes)!==F}function mh(e){return(e&Ro)!==F}function hh(){var e=us;return us<<=1,(us&Ro)===F&&(us=Dl),e}function qT(){var e=ss;return ss<<=1,(ss&ls)===F&&(ss=wo),e}function $i(e){return e&-e}function Ol(e){return $i(e)}function Pi(e){return 31-fh(e)}function rd(e){return Pi(e)}function xa(e,t){return(e&t)!==F}function Do(e,t){return(e&t)===t}function Ke(e,t){return e|t}function ds(e,t){return e&~t}function yh(e,t){return e&t}function p_(e){return e}function GT(e,t){return e!==Nn&&e<t?e:t}function id(e){for(var t=[],n=0;n<Uf;n++)t.push(e);return t}function Ll(e,t,n){e.pendingLanes|=t,t!==Bi&&(e.suspendedLanes=F,e.pingedLanes=F);var a=e.eventTimes,r=rd(t);a[r]=n}function XT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Pi(a),i=1<<r;n[r]=Pt,a&=~i}}function gh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function QT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=F,e.pingedLanes=F,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var a=e.entanglements,r=e.eventTimes,i=e.expirationTimes,o=n;o>0;){var l=Pi(o),u=1<<l;a[l]=F,r[l]=Pt,i[l]=Pt,o&=~u}}function od(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Pi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function KT(e,t){var n=$i(t),a;switch(n){case zr:a=xo;break;case vr:a=Fi;break;case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case wo:case Jf:case Zf:case ed:case td:a=wl;break;case Bi:a=kl;break;default:a=Nn;break}return(a&(e.suspendedLanes|t))!==Nn?Nn:a}function bh(e,t,n){if(qa)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=rd(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function Sh(e,t){if(qa)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=rd(t),i=1<<r,o=n[r];o.size>0&&(o.forEach(function(l){var u=l.alternate;(u===null||!a.has(u))&&a.add(l)}),o.clear()),t&=~i}}function Th(e,t){return null}var Ra=Fe,Vr=zr,Fr=vr,vs=Bi,Al=Nn;function Ga(){return Al}function jn(e){Al=e}function JT(e,t){var n=Al;try{return Al=e,t()}finally{Al=n}}function ZT(e,t){return e!==0&&e<t?e:t}function eE(e,t){return e>t?e:t}function ld(e,t){return e!==0&&e<t}function Eh(e){var t=$i(e);return ld(Ra,t)?ld(Vr,t)?ad(t)?Fr:vs:Vr:Ra}function ps(e){var t=e.current.memoizedState;return t.isDehydrated}var Ch;function tE(e){Ch=e}function nE(e){Ch(e)}var ud;function aE(e){ud=e}var xh;function rE(e){xh=e}var Rh;function iE(e){Rh=e}var wh;function oE(e){wh=e}var sd=!1,ms=[],li=null,ui=null,si=null,Nl=new Map,jl=new Map,ci=[],lE=["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","submit"];function uE(e){return lE.indexOf(e)>-1}function sE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function Dh(e,t){switch(e){case"focusin":case"focusout":li=null;break;case"dragenter":case"dragleave":ui=null;break;case"mouseover":case"mouseout":si=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Nl.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;jl.delete(a);break}}}function Ul(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=sE(t,n,a,r,i);if(t!==null){var l=vi(t);l!==null&&ud(l)}return o}e.eventSystemFlags|=a;var u=e.targetContainers;return r!==null&&u.indexOf(r)===-1&&u.push(r),e}function cE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return li=Ul(li,e,t,n,a,i),!0}case"dragenter":{var o=r;return ui=Ul(ui,e,t,n,a,o),!0}case"mouseover":{var l=r;return si=Ul(si,e,t,n,a,l),!0}case"pointerover":{var u=r,f=u.pointerId;return Nl.set(f,Ul(Nl.get(f)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var d=r,g=d.pointerId;return jl.set(g,Ul(jl.get(g)||null,e,t,n,a,d)),!0}}return!1}function _h(e){var t=Wi(e.target);if(t!==null){var n=zi(t);if(n!==null){var a=n.tag;if(a===O){var r=Jm(n);if(r!==null){e.blockedOn=r,wh(e.priority,function(){xh(n)});return}}else if(a===ae){var i=n.stateNode;if(ps(i)){e.blockedOn=Zm(n);return}}}}e.blockedOn=null}function fE(e){for(var t=Rh(),n={blockedOn:null,target:e,priority:t},a=0;a<ci.length&&ld(t,ci[a].priority);a++);ci.splice(a,0,n),a===0&&_h(n)}function hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],a=dd(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(a===null){var r=e.nativeEvent,i=new r.constructor(r.type,r);z0(i),r.target.dispatchEvent(i),V0()}else{var o=vi(a);return o!==null&&ud(o),e.blockedOn=a,!1}t.shift()}return!0}function kh(e,t,n){hs(e)&&n.delete(t)}function dE(){sd=!1,li!==null&&hs(li)&&(li=null),ui!==null&&hs(ui)&&(ui=null),si!==null&&hs(si)&&(si=null),Nl.forEach(kh),jl.forEach(kh)}function Hl(e,t){e.blockedOn===t&&(e.blockedOn=null,sd||(sd=!0,M.unstable_scheduleCallback(M.unstable_NormalPriority,dE)))}function zl(e){if(ms.length>0){Hl(ms[0],e);for(var t=1;t<ms.length;t++){var n=ms[t];n.blockedOn===e&&(n.blockedOn=null)}}li!==null&&Hl(li,e),ui!==null&&Hl(ui,e),si!==null&&Hl(si,e);var a=function(l){return Hl(l,e)};Nl.forEach(a),jl.forEach(a);for(var r=0;r<ci.length;r++){var i=ci[r];i.blockedOn===e&&(i.blockedOn=null)}for(;ci.length>0;){var o=ci[0];if(o.blockedOn!==null)break;_h(o),o.blockedOn===null&&ci.shift()}}var _o=ee.ReactCurrentBatchConfig,cd=!0;function Mh(e){cd=!!e}function vE(){return cd}function pE(e,t,n){var a=Oh(t),r;switch(a){case Ra:r=mE;break;case Vr:r=hE;break;case Fr:default:r=fd;break}return r.bind(null,t,n,e)}function mE(e,t,n,a){var r=Ga(),i=_o.transition;_o.transition=null;try{jn(Ra),fd(e,t,n,a)}finally{jn(r),_o.transition=i}}function hE(e,t,n,a){var r=Ga(),i=_o.transition;_o.transition=null;try{jn(Vr),fd(e,t,n,a)}finally{jn(r),_o.transition=i}}function fd(e,t,n,a){cd&&yE(e,t,n,a)}function yE(e,t,n,a){var r=dd(e,t,n,a);if(r===null){wd(e,t,a,ys,n),Dh(e,a);return}if(cE(r,e,t,n,a)){a.stopPropagation();return}if(Dh(e,a),t&bl&&uE(e)){for(;r!==null;){var i=vi(r);i!==null&&nE(i);var o=dd(e,t,n,a);if(o===null&&wd(e,t,a,ys,n),o===r)break;r=o}r!==null&&a.stopPropagation();return}wd(e,t,a,null,n)}var ys=null;function dd(e,t,n,a){ys=null;var r=gf(a),i=Wi(r);if(i!==null){var o=zi(i);if(o===null)i=null;else{var l=o.tag;if(l===O){var u=Jm(o);if(u!==null)return u;i=null}else if(l===ae){var f=o.stateNode;if(ps(f))return Zm(o);i=null}else o!==i&&(i=null)}}return ys=i,null}function Oh(e){switch(e){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"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 Ra;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Vr;case"message":{var t=uT();switch(t){case os:return Ra;case Af:return Vr;case Vi:case sT:return Fr;case Nf:return vs;default:return Fr}}default:return Fr}}function gE(e,t,n){return e.addEventListener(t,n,!1),n}function bE(e,t,n){return e.addEventListener(t,n,!0),n}function SE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function TE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var Vl=null,vd=null,Fl=null;function EE(e){return Vl=e,vd=Ah(),!0}function CE(){Vl=null,vd=null,Fl=null}function Lh(){if(Fl)return Fl;var e,t=vd,n=t.length,a,r=Ah(),i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var o=n-e;for(a=1;a<=o&&t[n-a]===r[i-a];a++);var l=a>1?1-a:void 0;return Fl=r.slice(e,l),Fl}function Ah(){return"value"in Vl?Vl.value:Vl.textContent}function gs(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),t>=32||t===13?t:0}function bs(){return!0}function Nh(){return!1}function wa(e){function t(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];u?this[l]=u(i):this[l]=i[l]}var f=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return f?this.isDefaultPrevented=bs:this.isDefaultPrevented=Nh,this.isPropagationStopped=Nh,this}return Te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bs)},persist:function(){},isPersistent:bs}),t}var ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pd=wa(ko),Bl=Te({},ko,{view:0,detail:0}),xE=wa(Bl),md,hd,$l;function RE(e){e!==$l&&($l&&e.type==="mousemove"?(md=e.screenX-$l.screenX,hd=e.screenY-$l.screenY):(md=0,hd=0),$l=e)}var Ss=Te({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gd,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:(RE(e),md)},movementY:function(e){return"movementY"in e?e.movementY:hd}}),jh=wa(Ss),wE=Te({},Ss,{dataTransfer:0}),DE=wa(wE),_E=Te({},Bl,{relatedTarget:0}),yd=wa(_E),kE=Te({},ko,{animationName:0,elapsedTime:0,pseudoElement:0}),ME=wa(kE),OE=Te({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LE=wa(OE),AE=Te({},ko,{data:0}),Uh=wa(AE),NE=Uh,jE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UE={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"};function HE(e){if(e.key){var t=jE[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=gs(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?UE[e.keyCode]||"Unidentified":""}var zE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=zE[e];return a?!!n[a]:!1}function gd(e){return VE}var FE=Te({},Bl,{key:HE,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gd,charCode:function(e){return e.type==="keypress"?gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BE=wa(FE),$E=Te({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hh=wa($E),PE=Te({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),YE=wa(PE),IE=Te({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),WE=wa(IE),qE=Te({},Ss,{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}),GE=wa(qE),XE=[9,13,27,32],zh=229,bd=wt&&"CompositionEvent"in window,Pl=null;wt&&"documentMode"in document&&(Pl=document.documentMode);var QE=wt&&"TextEvent"in window&&!Pl,Vh=wt&&(!bd||Pl&&Pl>8&&Pl<=11),Fh=32,Bh=String.fromCharCode(Fh);function KE(){st("onBeforeInput",["compositionend","keypress","textInput","paste"]),st("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),st("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),st("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var $h=!1;function JE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function ZE(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function eC(e,t){return e==="keydown"&&t.keyCode===zh}function Ph(e,t){switch(e){case"keyup":return XE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==zh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Ih(e){return e.locale==="ko"}var Mo=!1;function tC(e,t,n,a,r){var i,o;if(bd?i=ZE(t):Mo?Ph(t,a)&&(i="onCompositionEnd"):eC(t,a)&&(i="onCompositionStart"),!i)return null;Vh&&!Ih(a)&&(!Mo&&i==="onCompositionStart"?Mo=EE(r):i==="onCompositionEnd"&&Mo&&(o=Lh()));var l=Rs(n,i);if(l.length>0){var u=new Uh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var f=Yh(a);f!==null&&(u.data=f)}}}function nC(e,t){switch(e){case"compositionend":return Yh(t);case"keypress":var n=t.which;return n!==Fh?null:($h=!0,Bh);case"textInput":var a=t.data;return a===Bh&&$h?null:a;default:return null}}function aC(e,t){if(Mo){if(e==="compositionend"||!bd&&Ph(e,t)){var n=Lh();return CE(),Mo=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!JE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vh&&!Ih(t)?null:t.data;default:return null}}function rC(e,t,n,a,r){var i;if(QE?i=nC(t,a):i=aC(t,a),!i)return null;var o=Rs(n,"onBeforeInput");if(o.length>0){var l=new NE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function iC(e,t,n,a,r,i,o){tC(e,t,n,a,r),rC(e,t,n,a,r)}var oC={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 Wh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oC[e.type]:t==="textarea"}/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function lC(e){if(!wt)return!1;var t="on"+e,n=t in document;if(!n){var a=document.createElement("div");a.setAttribute(t,"return;"),n=typeof a[t]=="function"}return n}function uC(){st("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function qh(e,t,n,a){Pm(a);var r=Rs(t,"onChange");if(r.length>0){var i=new pd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Yl=null,Il=null;function sC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function cC(e){var t=[];qh(t,Il,e,gf(e)),qm(fC,t)}function fC(e){fy(e,0)}function Ts(e){var t=Uo(e);if(vl(t))return e}function dC(e,t){if(e==="change")return t}var Gh=!1;wt&&(Gh=lC("input")&&(!document.documentMode||document.documentMode>9));function vC(e,t){Yl=e,Il=t,Yl.attachEvent("onpropertychange",Qh)}function Xh(){Yl&&(Yl.detachEvent("onpropertychange",Qh),Yl=null,Il=null)}function Qh(e){e.propertyName==="value"&&Ts(Il)&&cC(e)}function pC(e,t,n){e==="focusin"?(Xh(),vC(t,n)):e==="focusout"&&Xh()}function mC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Il)}function hC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function yC(e,t){if(e==="click")return Ts(t)}function gC(e,t){if(e==="input"||e==="change")return Ts(t)}function bC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Le(e,"number",e.value)}function SC(e,t,n,a,r,i,o){var l=n?Uo(n):window,u,f;if(sC(l)?u=dC:Wh(l)?Gh?u=gC:(u=mC,f=pC):hC(l)&&(u=yC),u){var d=u(t,n);if(d){qh(e,d,a,r);return}}f&&f(t,l,n),t==="focusout"&&bC(l)}function TC(){tn("onMouseEnter",["mouseout","mouseover"]),tn("onMouseLeave",["mouseout","mouseover"]),tn("onPointerEnter",["pointerout","pointerover"]),tn("onPointerLeave",["pointerout","pointerover"])}function EC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!F0(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Wi(f)||ou(f)))return}if(!(!u&&!l)){var d;if(r.window===r)d=r;else{var g=r.ownerDocument;g?d=g.defaultView||g.parentWindow:d=window}var y,w;if(u){var _=a.relatedTarget||a.toElement;if(y=n,w=_?Wi(_):null,w!==null){var A=zi(w);(w!==A||w.tag!==re&&w.tag!==me)&&(w=null)}}else y=null,w=n;if(y!==w){var ne=jh,we="onMouseLeave",Ee="onMouseEnter",lt="mouse";(t==="pointerout"||t==="pointerover")&&(ne=Hh,we="onPointerLeave",Ee="onPointerEnter",lt="pointer");var at=y==null?d:Uo(y),x=w==null?d:Uo(w),N=new ne(we,lt+"leave",y,a,r);N.target=at,N.relatedTarget=x;var R=null,$=Wi(r);if($===n){var ce=new ne(Ee,lt+"enter",w,a,r);ce.target=x,ce.relatedTarget=at,R=ce}WC(e,N,R,y,w)}}}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Da=typeof Object.is=="function"?Object.is:CC;function Wl(e,t){if(Da(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(!Qe.call(t,i)||!Da(e[i],t[i]))return!1}return!0}function Kh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Jh(e,t){for(var n=Kh(e),a=0,r=0;n;){if(n.nodeType===Ar){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Kh(xC(n))}}function RC(e){var t=e.ownerDocument,n=t&&t.defaultView||window,a=n.getSelection&&n.getSelection();if(!a||a.rangeCount===0)return null;var r=a.anchorNode,i=a.anchorOffset,o=a.focusNode,l=a.focusOffset;try{r.nodeType,o.nodeType}catch{return null}return wC(e,r,i,o,l)}function wC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,d=e,g=null;e:for(;;){for(var y=null;d===t&&(n===0||d.nodeType===Ar)&&(o=i+n),d===a&&(r===0||d.nodeType===Ar)&&(l=i+r),d.nodeType===Ar&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)g=d,d=y;for(;;){if(d===e)break e;if(g===t&&++u===n&&(o=i),g===a&&++f===r&&(l=i),(y=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=y}return o===-1||l===-1?null:{start:o,end:l}}function DC(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelection){var r=a.getSelection(),i=e.textContent.length,o=Math.min(t.start,i),l=t.end===void 0?o:Math.min(t.end,i);if(!r.extend&&o>l){var u=l;l=o,o=u}var f=Jh(e,o),d=Jh(e,l);if(f&&d){if(r.rangeCount===1&&r.anchorNode===f.node&&r.anchorOffset===f.offset&&r.focusNode===d.node&&r.focusOffset===d.offset)return;var g=n.createRange();g.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(g),r.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),r.addRange(g))}}}function Zh(e){return e&&e.nodeType===Ar}function ey(e,t){return!e||!t?!1:e===t?!0:Zh(e)?!1:Zh(t)?ey(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function _C(e){return e&&e.ownerDocument&&ey(e.ownerDocument.documentElement,e)}function kC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ty(){for(var e=window,t=Mr();t instanceof e.HTMLIFrameElement;){if(kC(t))e=t.contentWindow;else return t;t=Mr(e.document)}return t}function Sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function MC(){var e=ty();return{focusedElem:e,selectionRange:Sd(e)?LC(e):null}}function OC(e){var t=ty(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&_C(n)){a!==null&&Sd(n)&&AC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ma&&r.push({element:i,left:i.scrollLeft,top:i.scrollTop});typeof n.focus=="function"&&n.focus();for(var o=0;o<r.length;o++){var l=r[o];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function LC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=RC(e),t||{start:0,end:0}}function AC(e,t){var n=t.start,a=t.end;a===void 0&&(a=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(a,e.value.length)):DC(e,t)}var NC=wt&&"documentMode"in document&&document.documentMode<=11;function jC(){st("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Oo=null,Td=null,ql=null,Ed=!1;function UC(e){if("selectionStart"in e&&Sd(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,n=t.getSelection();return{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}function HC(e){return e.window===e?e.document:e.nodeType===Nr?e:e.ownerDocument}function ny(e,t,n){var a=HC(n);if(!(Ed||Oo==null||Oo!==Mr(a))){var r=UC(Oo);if(!ql||!Wl(ql,r)){ql=r;var i=Rs(Td,"onSelect");if(i.length>0){var o=new pd("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=Oo}}}}function zC(e,t,n,a,r,i,o){var l=n?Uo(n):window;switch(t){case"focusin":(Wh(l)||l.contentEditable==="true")&&(Oo=l,Td=n,ql=null);break;case"focusout":Oo=null,Td=null,ql=null;break;case"mousedown":Ed=!0;break;case"contextmenu":case"mouseup":case"dragend":Ed=!1,ny(e,a,r);break;case"selectionchange":if(NC)break;case"keydown":case"keyup":ny(e,a,r)}}function Es(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Lo={animationend:Es("Animation","AnimationEnd"),animationiteration:Es("Animation","AnimationIteration"),animationstart:Es("Animation","AnimationStart"),transitionend:Es("Transition","TransitionEnd")},Cd={},ay={};wt&&(ay=document.createElement("div").style,"AnimationEvent"in window||(delete Lo.animationend.animation,delete Lo.animationiteration.animation,delete Lo.animationstart.animation),"TransitionEvent"in window||delete Lo.transitionend.transition);function Cs(e){if(Cd[e])return Cd[e];if(!Lo[e])return e;var t=Lo[e];for(var n in t)if(t.hasOwnProperty(n)&&n in ay)return Cd[e]=t[n];return e}var ry=Cs("animationend"),iy=Cs("animationiteration"),oy=Cs("animationstart"),ly=Cs("transitionend"),uy=new Map,sy=["abort","auxClick","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"];function fi(e,t){uy.set(e,t),st(t,[e])}function VC(){for(var e=0;e<sy.length;e++){var t=sy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);fi(n,"on"+a)}fi(ry,"onAnimationEnd"),fi(iy,"onAnimationIteration"),fi(oy,"onAnimationStart"),fi("dblclick","onDoubleClick"),fi("focusin","onFocus"),fi("focusout","onBlur"),fi(ly,"onTransitionEnd")}function FC(e,t,n,a,r,i,o){var l=uy.get(t);if(l!==void 0){var u=pd,f=t;switch(t){case"keypress":if(gs(a)===0)return;case"keydown":case"keyup":u=BE;break;case"focusin":f="focus",u=yd;break;case"focusout":f="blur",u=yd;break;case"beforeblur":case"afterblur":u=yd;break;case"click":if(a.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=DE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=YE;break;case ry:case iy:case oy:u=ME;break;case ly:u=WE;break;case"scroll":u=xE;break;case"wheel":u=GE;break;case"copy":case"cut":case"paste":u=LE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Hh;break}var d=(i&bl)!==0;{var g=!d&&t==="scroll",y=YC(n,l,a.type,d,g);if(y.length>0){var w=new u(l,f,null,a,r);e.push({event:w,listeners:y})}}}}VC(),TC(),uC(),jC(),KE();function BC(e,t,n,a,r,i,o){FC(e,t,n,a,r,i);var l=(i&H0)===0;l&&(EC(e,t,n,a,r),SC(e,t,n,a,r),zC(e,t,n,a,r),iC(e,t,n,a,r))}var Gl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],xd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Gl));function cy(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,X0(a,t,void 0,e),e.currentTarget=null}function $C(e,t,n){var a;if(n)for(var r=t.length-1;r>=0;r--){var i=t[r],o=i.instance,l=i.currentTarget,u=i.listener;if(o!==a&&e.isPropagationStopped())return;cy(e,u,l),a=o}else for(var f=0;f<t.length;f++){var d=t[f],g=d.instance,y=d.currentTarget,w=d.listener;if(g!==a&&e.isPropagationStopped())return;cy(e,w,y),a=g}}function fy(e,t){for(var n=(t&bl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;$C(i,o,n)}Q0()}function PC(e,t,n,a,r){var i=gf(n),o=[];BC(o,e,a,n,i,t),fy(o,t)}function Xt(e,t){xd.has(e)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=bR(t),r=qC(e);a.has(r)||(dy(t,e,yf,n),a.add(r))}function Rd(e,t,n){xd.has(e)&&!t&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var a=0;t&&(a|=bl),dy(n,e,a,t)}var xs="_reactListening"+Math.random().toString(36).slice(2);function Xl(e){if(!e[xs]){e[xs]=!0,qt.forEach(function(n){n!=="selectionchange"&&(xd.has(n)||Rd(n,!1,e),Rd(n,!0,e))});var t=e.nodeType===Nr?e:e.ownerDocument;t!==null&&(t[xs]||(t[xs]=!0,Rd("selectionchange",!1,t)))}}function dy(e,t,n,a,r){var i=pE(e,t,n),o=void 0;Tf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?SE(e,t,i,o):bE(e,t,i):o!==void 0?TE(e,t,i,o):gE(e,t,i)}function vy(e,t){return e===t||e.nodeType===dn&&e.parentNode===t}function wd(e,t,n,a,r){var i=a;if(!(t&Bm)&&!(t&yf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===ae||u===Ae){var f=l.stateNode.containerInfo;if(vy(f,o))break;if(u===Ae)for(var d=l.return;d!==null;){var g=d.tag;if(g===ae||g===Ae){var y=d.stateNode.containerInfo;if(vy(y,o))return}d=d.return}for(;f!==null;){var w=Wi(f);if(w===null)return;var _=w.tag;if(_===re||_===me){l=i=w;continue e}f=f.parentNode}}l=l.return}}}qm(function(){return PC(e,t,n,i)})}function Ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function YC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],f=e,d=null;f!==null;){var g=f,y=g.stateNode,w=g.tag;if(w===re&&y!==null&&(d=y,l!==null)){var _=Tl(f,l);_!=null&&u.push(Ql(f,_,d))}if(r)break;f=f.return}return u}function Rs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===re&&o!==null){var u=o,f=Tl(r,n);f!=null&&a.unshift(Ql(r,f,u));var d=Tl(r,t);d!=null&&a.push(Ql(r,d,u))}r=r.return}return a}function Ao(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==re);return e||null}function IC(e,t){for(var n=e,a=t,r=0,i=n;i;i=Ao(i))r++;for(var o=0,l=a;l;l=Ao(l))o++;for(;r-o>0;)n=Ao(n),r--;for(;o-r>0;)a=Ao(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=Ao(n),a=Ao(a)}return null}function py(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,f=u.alternate,d=u.stateNode,g=u.tag;if(f!==null&&f===a)break;if(g===re&&d!==null){var y=d;if(r){var w=Tl(l,i);w!=null&&o.unshift(Ql(l,w,y))}else if(!r){var _=Tl(l,i);_!=null&&o.push(Ql(l,_,y))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function WC(e,t,n,a,r){var i=a&&r?IC(a,r):null;a!==null&&py(e,t,a,i,!1),r!==null&&n!==null&&py(e,n,r,i,!0)}function qC(e,t){return e+"__bubble"}var ha=!1,Kl="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",di="suppressHydrationWarning",my="autoFocus",Yi="children",Ii="style",Ds="__html",Dd,_s,Jl,hy,ks,yy,gy;Dd={dialog:!0,webview:!0},_s=function(e,t){M0(e,t),O0(e,t),U0(e,t,{registrationNameDependencies:ht,possibleRegistrationNames:Un})},yy=wt&&!document.documentMode,Jl=function(e,t,n){if(!ha){var a=Ms(n),r=Ms(t);r!==a&&(ha=!0,c("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},hy=function(e){if(!ha){ha=!0;var t=[];e.forEach(function(n){t.push(n)}),c("Extra attributes from the server: %s",t)}},ks=function(e,t){t===!1?c("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},gy=function(e,t){var n=e.namespaceURI===Lr?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var GC=/\r\n?/g,XC=/\u0000|\uFFFD/g;function Ms(e){je(e);var t=typeof e=="string"?e:""+e;return t.replace(GC,`
`).replace(XC,"")}function Os(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(ha||(ha=!0,c('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&I))throw new Error("Text content does not match server-rendered HTML.")}function by(e){return e.nodeType===Nr?e:e.ownerDocument}function QC(){}function Ls(e){e.onclick=QC}function KC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Ii)o&&Object.freeze(o),jm(t,o);else if(i===Kl){var l=o?o[Ds]:void 0;l!=null&&Mm(t,l)}else if(i===Yi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&ts(t,o)}else typeof o=="number"&&ts(t,""+o);else i===ws||i===di||i===my||(ht.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&ks(i,o),i==="onScroll"&&Xt("scroll",t)):o!=null&&yn(t,i,o,r))}}function JC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Ii?jm(e,o):i===Kl?Mm(e,o):i===Yi?ts(e,o):yn(e,i,o,a)}}function ZC(e,t,n,a){var r,i=by(n),o,l=a;if(l===Lr&&(l=ff(e)),l===Lr){if(r=Ai(e,t),!r&&e!==e.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var f=u.firstChild;o=u.removeChild(f)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var d=o;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else o=i.createElementNS(l,e);return l===Lr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!Qe.call(Dd,e)&&(Dd[e]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),o}function ex(e,t){return by(t).createTextNode(e)}function tx(e,t,n,a){var r=Ai(t,n);_s(t,n);var i;switch(t){case"dialog":Xt("cancel",e),Xt("close",e),i=n;break;case"iframe":case"object":case"embed":Xt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Gl.length;o++)Xt(Gl[o],e);i=n;break;case"source":Xt("error",e),i=n;break;case"img":case"image":case"link":Xt("error",e),Xt("load",e),i=n;break;case"details":Xt("toggle",e),i=n;break;case"input":Ju(e,n),i=pl(e,n),Xt("invalid",e);break;case"option":_t(e,n),i=n;break;case"select":yl(e,n),i=hl(e,n),Xt("invalid",e);break;case"textarea":Dm(e,n),i=sf(e,n),Xt("invalid",e);break;default:i=n}switch(hf(t,i),KC(t,e,a,i,r),t){case"input":Oi(e),D(e,n,!1);break;case"textarea":Oi(e),km(e);break;case"option":Bt(e,n);break;case"select":lf(e,n);break;default:typeof i.onClick=="function"&&Ls(e);break}}function nx(e,t,n,a,r){_s(t,a);var i=null,o,l;switch(t){case"input":o=pl(e,n),l=pl(e,a),i=[];break;case"select":o=hl(e,n),l=hl(e,a),i=[];break;case"textarea":o=sf(e,n),l=sf(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Ls(e);break}hf(t,l);var u,f,d=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Ii){var g=o[u];for(f in g)g.hasOwnProperty(f)&&(d||(d={}),d[f]="")}else u===Kl||u===Yi||u===ws||u===di||u===my||(ht.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var y=l[u],w=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||y===w||y==null&&w==null))if(u===Ii)if(y&&Object.freeze(y),w){for(f in w)w.hasOwnProperty(f)&&(!y||!y.hasOwnProperty(f))&&(d||(d={}),d[f]="");for(f in y)y.hasOwnProperty(f)&&w[f]!==y[f]&&(d||(d={}),d[f]=y[f])}else d||(i||(i=[]),i.push(u,d)),d=y;else if(u===Kl){var _=y?y[Ds]:void 0,A=w?w[Ds]:void 0;_!=null&&A!==_&&(i=i||[]).push(u,_)}else u===Yi?(typeof y=="string"||typeof y=="number")&&(i=i||[]).push(u,""+y):u===ws||u===di||(ht.hasOwnProperty(u)?(y!=null&&(typeof y!="function"&&ks(u,y),u==="onScroll"&&Xt("scroll",e)),!i&&w!==y&&(i=[])):(i=i||[]).push(u,y))}return d&&(E0(d,l[Ii]),(i=i||[]).push(Ii,d)),i}function ax(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ai(n,a),o=Ai(n,r);switch(JC(e,t,i,o),n){case"input":m(e,r);break;case"textarea":_m(e,r);break;case"select":Zu(e,r);break}}function rx(e){{var t=e.toLowerCase();return ns.hasOwnProperty(t)&&ns[t]||null}}function ix(e,t,n,a,r,i,o){var l,u;switch(l=Ai(t,n),_s(t,n),t){case"dialog":Xt("cancel",e),Xt("close",e);break;case"iframe":case"object":case"embed":Xt("load",e);break;case"video":case"audio":for(var f=0;f<Gl.length;f++)Xt(Gl[f],e);break;case"source":Xt("error",e);break;case"img":case"image":case"link":Xt("error",e),Xt("load",e);break;case"details":Xt("toggle",e);break;case"input":Ju(e,n),Xt("invalid",e);break;case"option":_t(e,n);break;case"select":yl(e,n),Xt("invalid",e);break;case"textarea":Dm(e,n),Xt("invalid",e);break}hf(t,n);{u=new Set;for(var d=e.attributes,g=0;g<d.length;g++){var y=d[g].name.toLowerCase();switch(y){case"value":break;case"checked":break;case"selected":break;default:u.add(d[g].name)}}}var w=null;for(var _ in n)if(n.hasOwnProperty(_)){var A=n[_];if(_===Yi)typeof A=="string"?e.textContent!==A&&(n[di]!==!0&&Os(e.textContent,A,i,o),w=[Yi,A]):typeof A=="number"&&e.textContent!==""+A&&(n[di]!==!0&&Os(e.textContent,A,i,o),w=[Yi,""+A]);else if(ht.hasOwnProperty(_))A!=null&&(typeof A!="function"&&ks(_,A),_==="onScroll"&&Xt("scroll",e));else if(o&&typeof l=="boolean"){var ne=void 0,we=Ft(_);if(n[di]!==!0){if(!(_===ws||_===di||_==="value"||_==="checked"||_==="selected")){if(_===Kl){var Ee=e.innerHTML,lt=A?A[Ds]:void 0;if(lt!=null){var at=gy(e,lt);at!==Ee&&Jl(_,Ee,at)}}else if(_===Ii){if(u.delete(_),yy){var x=S0(A);ne=e.getAttribute("style"),x!==ne&&Jl(_,ne,x)}}else if(l&&!_n)u.delete(_.toLowerCase()),ne=ti(e,_,A),A!==ne&&Jl(_,ne,A);else if(!Gt(_,we,l)&&!Hn(_,A,we,l)){var N=!1;if(we!==null)u.delete(we.attributeName),ne=ei(e,_,A,we);else{var R=a;if(R===Lr&&(R=ff(t)),R===Lr)u.delete(_.toLowerCase());else{var $=rx(_);$!==null&&$!==_&&(N=!0,u.delete($)),u.delete(_)}ne=ti(e,_,A)}var ce=_n;!ce&&A!==ne&&!N&&Jl(_,ne,A)}}}}}switch(o&&u.size>0&&n[di]!==!0&&hy(u),t){case"input":Oi(e),D(e,n,!0);break;case"textarea":Oi(e),km(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Ls(e);break}return w}function ox(e,t,n){var a=e.nodeValue!==t;return a}function _d(e,t){{if(ha)return;ha=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function kd(e,t){{if(ha)return;ha=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Md(e,t,n){{if(ha)return;ha=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Od(e,t){{if(t===""||ha)return;ha=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function lx(e,t,n){switch(t){case"input":L(e,n);return;case"textarea":t0(e,n);return;case"select":uf(e,n);return}}var Zl=function(){},eu=function(){};{var ux=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],Sy=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],sx=Sy.concat(["button"]),cx=["dd","dt","li","option","optgroup","p","rp","rt"],Ty={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};eu=function(e,t){var n=Te({},e||Ty),a={tag:t};return Sy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),sx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ux.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=a,t==="form"&&(n.formTag=a),t==="a"&&(n.aTagInScope=a),t==="button"&&(n.buttonTagInScope=a),t==="nobr"&&(n.nobrTagInScope=a),t==="p"&&(n.pTagInButtonScope=a),t==="li"&&(n.listItemTagAutoclosing=a),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=a),n};var fx=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return cx.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},dx=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},Ey={};Zl=function(e,t,n){n=n||Ty;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=fx(e,r)?null:a,o=i?null:dx(e,n),l=i||o;if(l){var u=l.tag,f=!!i+"|"+e+"|"+u;if(!Ey[f]){Ey[f]=!0;var d=e,g="";if(e==="#text"?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",g=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var y="";u==="table"&&e==="tr"&&(y+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,g,y)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}}}var As="suppressHydrationWarning",Ns="$",js="/$",tu="$?",nu="$!",vx="style",Ld=null,Ad=null;function px(e){var t,n,a=e.nodeType;switch(a){case Nr:case vf:{t=a===Nr?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:df(null,"");break}default:{var i=a===dn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=df(o,t);break}}{var l=t.toLowerCase(),u=eu(null,l);return{namespace:n,ancestorInfo:u}}}function mx(e,t,n){{var a=e,r=df(a.namespace,t),i=eu(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function m_(e){return e}function hx(e){Ld=vE(),Ad=MC();var t=null;return Mh(!1),t}function yx(e){OC(Ad),Mh(Ld),Ld=null,Ad=null}function gx(e,t,n,a,r){var i;{var o=a;if(Zl(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=eu(o.ancestorInfo,e);Zl(null,l,u)}i=o.namespace}var f=ZC(e,t,n,i);return iu(r,f),Bd(f,t),f}function bx(e,t){e.appendChild(t)}function Sx(e,t,n,a,r){switch(tx(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Tx(e,t,n,a,r,i){{var o=i;if(typeof a.children!=typeof n.children&&(typeof a.children=="string"||typeof a.children=="number")){var l=""+a.children,u=eu(o.ancestorInfo,t);Zl(null,l,u)}}return nx(e,t,n,a)}function Nd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Ex(e,t,n,a){{var r=n;Zl(null,e,r.ancestorInfo)}var i=ex(e,t);return iu(a,i),i}function Cx(){var e=window.event;return e===void 0?Fr:Oh(e.type)}var jd=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,Ud=-1,Cy=typeof Promise=="function"?Promise:void 0,Rx=typeof queueMicrotask=="function"?queueMicrotask:typeof Cy<"u"?function(e){return Cy.resolve(null).then(e).catch(wx)}:jd;function wx(e){setTimeout(function(){throw e})}function Dx(e,t,n,a){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();return;case"img":{n.src&&(e.src=n.src);return}}}function _x(e,t,n,a,r,i){ax(e,t,n,a,r),Bd(e,r)}function xy(e){ts(e,"")}function kx(e,t,n){e.nodeValue=n}function Mx(e,t){e.appendChild(t)}function Ox(e,t){var n;e.nodeType===dn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Ls(n)}function Lx(e,t,n){e.insertBefore(t,n)}function Ax(e,t,n){e.nodeType===dn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Nx(e,t){e.removeChild(t)}function jx(e,t){e.nodeType===dn?e.parentNode.removeChild(t):e.removeChild(t)}function Hd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===dn){var i=r.data;if(i===js)if(a===0){e.removeChild(r),zl(t);return}else a--;else(i===Ns||i===tu||i===nu)&&a++}n=r}while(n);zl(t)}function Ux(e,t){e.nodeType===dn?Hd(e.parentNode,t):e.nodeType===ma&&Hd(e,t),zl(e)}function Hx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function zx(e){e.nodeValue=""}function Vx(e,t){e=e;var n=t[vx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=pf("display",a)}function Fx(e,t){e.nodeValue=t}function Bx(e){e.nodeType===ma?e.textContent="":e.nodeType===Nr&&e.documentElement&&e.removeChild(e.documentElement)}function $x(e,t,n){return e.nodeType!==ma||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Px(e,t){return t===""||e.nodeType!==Ar?null:e}function Yx(e){return e.nodeType!==dn?null:e}function Ry(e){return e.data===tu}function zd(e){return e.data===nu}function Ix(e){var t=e.nextSibling&&e.nextSibling.dataset,n,a,r;return t&&(n=t.dgst,a=t.msg,r=t.stck),{message:a,digest:n,stack:r}}function Wx(e,t){e._reactRetry=t}function Us(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ma||t===Ar)break;if(t===dn){var n=e.data;if(n===Ns||n===nu||n===tu)break;if(n===js)return null}}return e}function au(e){return Us(e.nextSibling)}function qx(e){return Us(e.firstChild)}function Gx(e){return Us(e.firstChild)}function Xx(e){return Us(e.nextSibling)}function Qx(e,t,n,a,r,i,o){iu(i,e),Bd(e,n);var l;{var u=r;l=u.namespace}var f=(i.mode&it)!==Me;return ix(e,t,n,l,a,f,o)}function Kx(e,t,n,a){return iu(n,e),n.mode&it,ox(e,t)}function Jx(e,t){iu(t,e)}function Zx(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===dn){var a=t.data;if(a===js){if(n===0)return au(t);n--}else(a===Ns||a===nu||a===tu)&&n++}t=t.nextSibling}return null}function wy(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===dn){var a=t.data;if(a===Ns||a===nu||a===tu){if(n===0)return t;n--}else a===js&&n++}t=t.previousSibling}return null}function eR(e){zl(e)}function tR(e){zl(e)}function nR(e){return e!=="head"&&e!=="body"}function aR(e,t,n,a){var r=!0;Os(t.nodeValue,n,a,r)}function rR(e,t,n,a,r,i){if(t[As]!==!0){var o=!0;Os(a.nodeValue,r,i,o)}}function iR(e,t){t.nodeType===ma?_d(e,t):t.nodeType===dn||kd(e,t)}function oR(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ma?_d(n,t):t.nodeType===dn||kd(n,t))}}function lR(e,t,n,a,r){(r||t[As]!==!0)&&(a.nodeType===ma?_d(n,a):a.nodeType===dn||kd(n,a))}function uR(e,t,n){Md(e,t)}function sR(e,t){Od(e,t)}function cR(e,t,n){{var a=e.parentNode;a!==null&&Md(a,t)}}function fR(e,t){{var n=e.parentNode;n!==null&&Od(n,t)}}function dR(e,t,n,a,r,i){(i||t[As]!==!0)&&Md(n,a)}function vR(e,t,n,a,r){(r||t[As]!==!0)&&Od(n,a)}function pR(e){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function mR(e){Xl(e)}var No=Math.random().toString(36).slice(2),jo="__reactFiber$"+No,Vd="__reactProps$"+No,ru="__reactContainer$"+No,Fd="__reactEvents$"+No,hR="__reactListeners$"+No,yR="__reactHandles$"+No;function gR(e){delete e[jo],delete e[Vd],delete e[Fd],delete e[hR],delete e[yR]}function iu(e,t){t[jo]=e}function Hs(e,t){t[ru]=e}function Dy(e){e[ru]=null}function ou(e){return!!e[ru]}function Wi(e){var t=e[jo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ru]||n[jo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=wy(e);r!==null;){var i=r[jo];if(i)return i;r=wy(r)}return t}e=n,n=e.parentNode}return null}function vi(e){var t=e[jo]||e[ru];return t&&(t.tag===re||t.tag===me||t.tag===O||t.tag===ae)?t:null}function Uo(e){if(e.tag===re||e.tag===me)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zs(e){return e[Vd]||null}function Bd(e,t){e[Vd]=t}function bR(e){var t=e[Fd];return t===void 0&&(t=e[Fd]=new Set),t}var _y={},ky=ee.ReactDebugCurrentFrame;function Vs(e){if(e){var t=e._owner,n=Aa(e.type,e._source,t?t.type:null);ky.setExtraStackFrame(n)}else ky.setExtraStackFrame(null)}function Xa(e,t,n,a,r){{var i=Function.call.bind(Qe);for(var o in e)if(i(e,o)){var l=void 0;try{if(typeof e[o]!="function"){var u=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[o](t,o,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){l=f}l&&!(l instanceof Error)&&(Vs(r),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,o,typeof l),Vs(null)),l instanceof Error&&!(l.message in _y)&&(_y[l.message]=!0,Vs(r),c("Failed %s type: %s",n,l.message),Vs(null))}}}var $d=[],Fs;Fs=[];var Br=-1;function pi(e){return{current:e}}function Qn(e,t){if(Br<0){c("Unexpected pop.");return}t!==Fs[Br]&&c("Unexpected Fiber popped."),e.current=$d[Br],$d[Br]=null,Fs[Br]=null,Br--}function Kn(e,t,n){Br++,$d[Br]=e.current,Fs[Br]=n,e.current=t}var Pd;Pd={};var _a={};Object.freeze(_a);var $r=pi(_a),pr=pi(!1),Yd=_a;function Ho(e,t,n){return n&&mr(t)?Yd:$r.current}function My(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function zo(e,t){{var n=e.type,a=n.contextTypes;if(!a)return _a;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={};for(var o in a)i[o]=t[o];{var l=Ge(e)||"Unknown";Xa(a,i,"context",l)}return r&&My(e,t,i),i}}function Bs(){return pr.current}function mr(e){{var t=e.childContextTypes;return t!=null}}function $s(e){Qn(pr,e),Qn($r,e)}function Id(e){Qn(pr,e),Qn($r,e)}function Oy(e,t,n){{if($r.current!==_a)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Kn($r,t,e),Kn(pr,n,e)}}function Ly(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Ge(e)||"Unknown";Pd[i]||(Pd[i]=!0,c("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i))}return n}var o=a.getChildContext();for(var l in o)if(!(l in r))throw new Error((Ge(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Ge(e)||"Unknown";Xa(r,o,"child context",u)}return Te({},n,o)}}function Ps(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||_a;return Yd=$r.current,Kn($r,n,e),Kn(pr,pr.current,e),!0}}function Ay(e,t,n){{var a=e.stateNode;if(!a)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var r=Ly(e,t,Yd);a.__reactInternalMemoizedMergedChildContext=r,Qn(pr,e),Qn($r,e),Kn($r,r,e),Kn(pr,n,e)}else Qn(pr,e),Kn(pr,n,e)}}function SR(e){{if(!nT(e)||e.tag!==pe)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case ae:return t.stateNode.context;case pe:{var n=t.type;if(mr(n))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var mi=0,Ys=1,Pr=null,Wd=!1,qd=!1;function Ny(e){Pr===null?Pr=[e]:Pr.push(e)}function TR(e){Wd=!0,Ny(e)}function jy(){Wd&&hi()}function hi(){if(!qd&&Pr!==null){qd=!0;var e=0,t=Ga();try{var n=!0,a=Pr;for(jn(Ra);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Pr=null,Wd=!1}catch(i){throw Pr!==null&&(Pr=Pr.slice(e+1)),ih(os,hi),i}finally{jn(t),qd=!1}}return null}var Vo=[],Fo=0,Is=null,Ws=0,ja=[],Ua=0,qi=null,Yr=1,Ir="";function ER(e){return Xi(),(e.flags&Km)!==Ue}function CR(e){return Xi(),Ws}function xR(){var e=Ir,t=Yr,n=t&~RR(t);return n.toString(32)+e}function Gi(e,t){Xi(),Vo[Fo++]=Ws,Vo[Fo++]=Is,Is=e,Ws=t}function Uy(e,t,n){Xi(),ja[Ua++]=Yr,ja[Ua++]=Ir,ja[Ua++]=qi,qi=e;var a=Yr,r=Ir,i=qs(a)-1,o=a&~(1<<i),l=n+1,u=qs(t)+i;if(u>30){var f=i-i%5,d=(1<<f)-1,g=(o&d).toString(32),y=o>>f,w=i-f,_=qs(t)+w,A=l<<w,ne=A|y,we=g+r;Yr=1<<_|ne,Ir=we}else{var Ee=l<<i,lt=Ee|o,at=r;Yr=1<<u|lt,Ir=at}}function Gd(e){Xi();var t=e.return;if(t!==null){var n=1,a=0;Gi(e,n),Uy(e,n,a)}}function qs(e){return 32-fh(e)}function RR(e){return 1<<qs(e)-1}function Xd(e){for(;e===Is;)Is=Vo[--Fo],Vo[Fo]=null,Ws=Vo[--Fo],Vo[Fo]=null;for(;e===qi;)qi=ja[--Ua],ja[Ua]=null,Ir=ja[--Ua],ja[Ua]=null,Yr=ja[--Ua],ja[Ua]=null}function wR(){return Xi(),qi!==null?{id:Yr,overflow:Ir}:null}function DR(e,t){Xi(),ja[Ua++]=Yr,ja[Ua++]=Ir,ja[Ua++]=qi,Yr=t.id,Ir=t.overflow,qi=e}function Xi(){Fn()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Vn=null,Ha=null,Qa=!1,Qi=!1,yi=null;function _R(){Qa&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Hy(){Qi=!0}function kR(){return Qi}function MR(e){var t=e.stateNode.containerInfo;return Ha=Gx(t),Vn=e,Qa=!0,yi=null,Qi=!1,!0}function OR(e,t,n){return Ha=Xx(t),Vn=e,Qa=!0,yi=null,Qi=!1,n!==null&&DR(e,n),!0}function zy(e,t){switch(e.tag){case ae:{iR(e.stateNode.containerInfo,t);break}case re:{var n=(e.mode&it)!==Me;lR(e.type,e.memoizedProps,e.stateNode,t,n);break}case O:{var a=e.memoizedState;a.dehydrated!==null&&oR(a.dehydrated,t);break}}}function Vy(e,t){zy(e,t);var n=jD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=Ni):a.push(n)}function Qd(e,t){{if(Qi)return;switch(e.tag){case ae:{var n=e.stateNode.containerInfo;switch(t.tag){case re:var a=t.type;t.pendingProps,uR(n,a);break;case me:var r=t.pendingProps;sR(n,r);break}break}case re:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case re:{var u=t.type,f=t.pendingProps,d=(e.mode&it)!==Me;dR(i,o,l,u,f,d);break}case me:{var g=t.pendingProps,y=(e.mode&it)!==Me;vR(i,o,l,g,y);break}}break}case O:{var w=e.memoizedState,_=w.dehydrated;if(_!==null)switch(t.tag){case re:var A=t.type;t.pendingProps,cR(_,A);break;case me:var ne=t.pendingProps;fR(_,ne);break}break}default:return}}}function Fy(e,t){t.flags=t.flags&~Ur|vn,Qd(e,t)}function By(e,t){switch(e.tag){case re:{var n=e.type;e.pendingProps;var a=$x(t,n);return a!==null?(e.stateNode=a,Vn=e,Ha=qx(a),!0):!1}case me:{var r=e.pendingProps,i=Px(t,r);return i!==null?(e.stateNode=i,Vn=e,Ha=null,!0):!1}case O:{var o=Yx(t);if(o!==null){var l={dehydrated:o,treeContext:wR(),retryLane:Ca};e.memoizedState=l;var u=UD(o);return u.return=e,e.child=u,Vn=e,Ha=null,!0}return!1}default:return!1}}function Kd(e){return(e.mode&it)!==Me&&(e.flags&St)===Ue}function Jd(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Zd(e){if(Qa){var t=Ha;if(!t){Kd(e)&&(Qd(Vn,e),Jd()),Fy(Vn,e),Qa=!1,Vn=e;return}var n=t;if(!By(e,t)){Kd(e)&&(Qd(Vn,e),Jd()),t=au(n);var a=Vn;if(!t||!By(e,t)){Fy(Vn,e),Qa=!1,Vn=e;return}Vy(a,n)}}}function LR(e,t,n){var a=e.stateNode,r=!Qi,i=Qx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function AR(e){var t=e.stateNode,n=e.memoizedProps,a=Kx(t,n,e);if(a){var r=Vn;if(r!==null)switch(r.tag){case ae:{var i=r.stateNode.containerInfo,o=(r.mode&it)!==Me;aR(i,t,n,o);break}case re:{var l=r.type,u=r.memoizedProps,f=r.stateNode,d=(r.mode&it)!==Me;rR(l,u,f,t,n,d);break}}}return a}function NR(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Jx(n,e)}function jR(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Zx(n)}function $y(e){for(var t=e.return;t!==null&&t.tag!==re&&t.tag!==ae&&t.tag!==O;)t=t.return;Vn=t}function Gs(e){if(e!==Vn)return!1;if(!Qa)return $y(e),Qa=!0,!1;if(e.tag!==ae&&(e.tag!==re||nR(e.type)&&!Nd(e.type,e.memoizedProps))){var t=Ha;if(t)if(Kd(e))Py(e),Jd();else for(;t;)Vy(e,t),t=au(t)}return $y(e),e.tag===O?Ha=jR(e):Ha=Vn?au(e.stateNode):null,!0}function UR(){return Qa&&Ha!==null}function Py(e){for(var t=Ha;t;)zy(e,t),t=au(t)}function Bo(){Vn=null,Ha=null,Qa=!1,Qi=!1}function Yy(){yi!==null&&(Hb(yi),yi=null)}function Fn(){return Qa}function ev(e){yi===null?yi=[e]:yi.push(e)}var HR=ee.ReactCurrentBatchConfig,zR=null;function VR(){return HR.transition}var Ka={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var FR=function(e){for(var t=null,n=e;n!==null;)n.mode&rn&&(t=n),n=n.return;return t},Ki=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},lu=[],uu=[],su=[],cu=[],fu=[],du=[],Ji=new Set;Ka.recordUnsafeLifecycleWarnings=function(e,t){Ji.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&rn&&typeof t.UNSAFE_componentWillMount=="function"&&uu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&su.push(e),e.mode&rn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&cu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&fu.push(e),e.mode&rn&&typeof t.UNSAFE_componentWillUpdate=="function"&&du.push(e))},Ka.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;lu.length>0&&(lu.forEach(function(y){e.add(Ge(y)||"Component"),Ji.add(y.type)}),lu=[]);var t=new Set;uu.length>0&&(uu.forEach(function(y){t.add(Ge(y)||"Component"),Ji.add(y.type)}),uu=[]);var n=new Set;su.length>0&&(su.forEach(function(y){n.add(Ge(y)||"Component"),Ji.add(y.type)}),su=[]);var a=new Set;cu.length>0&&(cu.forEach(function(y){a.add(Ge(y)||"Component"),Ji.add(y.type)}),cu=[]);var r=new Set;fu.length>0&&(fu.forEach(function(y){r.add(Ge(y)||"Component"),Ji.add(y.type)}),fu=[]);var i=new Set;if(du.length>0&&(du.forEach(function(y){i.add(Ge(y)||"Component"),Ji.add(y.type)}),du=[]),t.size>0){var o=Ki(t);c(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,o)}if(a.size>0){var l=Ki(a);c(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
Please update the following components: %s`,l)}if(i.size>0){var u=Ki(i);c(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,u)}if(e.size>0){var f=Ki(e);X(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,f)}if(n.size>0){var d=Ki(n);X(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,d)}if(r.size>0){var g=Ki(r);X(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,g)}};var Xs=new Map,Iy=new Set;Ka.recordLegacyContextWarning=function(e,t){var n=FR(e);if(n===null){c("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!Iy.has(e.type)){var a=Xs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Xs.set(n,a)),a.push(e))}},Ka.flushLegacyContextWarning=function(){Xs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Ge(i)||"Component"),Iy.add(i.type)});var r=Ki(a);try{Kt(n),c(`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)}finally{On()}}})},Ka.discardPendingWarnings=function(){lu=[],uu=[],su=[],cu=[],fu=[],du=[],Xs=new Map}}var tv,nv,av,rv,iv,Wy=function(e,t){};tv=!1,nv=!1,av={},rv={},iv={},Wy=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Ge(t)||"Component";rv[n]||(rv[n]=!0,c('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function BR(e){return e.prototype&&e.prototype.isReactComponent}function vu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&rn||Vt)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==pe)&&!(typeof n.type=="function"&&!BR(n.type))&&n._owner){var r=Ge(e)||"Component";av[r]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,a),av[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==pe)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=l.stateNode}if(!o)throw new Error("Missing owner for string ref "+a+". This error is likely caused by a bug in React. Please file an issue.");var u=o;Se(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var d=function(g){var y=u.refs;g===null?delete y[f]:y[f]=g};return d._stringRef=f,d}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function Qs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Ks(e){{var t=Ge(e)||"Component";if(iv[t])return;iv[t]=!0,c("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function qy(e){var t=e._payload,n=e._init;return n(t)}function Gy(e){function t(x,N){if(e){var R=x.deletions;R===null?(x.deletions=[N],x.flags|=Ni):R.push(N)}}function n(x,N){if(!e)return null;for(var R=N;R!==null;)t(x,R),R=R.sibling;return null}function a(x,N){for(var R=new Map,$=N;$!==null;)$.key!==null?R.set($.key,$):R.set($.index,$),$=$.sibling;return R}function r(x,N){var R=lo(x,N);return R.index=0,R.sibling=null,R}function i(x,N,R){if(x.index=R,!e)return x.flags|=Km,N;var $=x.alternate;if($!==null){var ce=$.index;return ce<N?(x.flags|=vn,N):ce}else return x.flags|=vn,N}function o(x){return e&&x.alternate===null&&(x.flags|=vn),x}function l(x,N,R,$){if(N===null||N.tag!==me){var ce=em(R,x.mode,$);return ce.return=x,ce}else{var oe=r(N,R);return oe.return=x,oe}}function u(x,N,R,$){var ce=R.type;if(ce===na)return d(x,N,R.props.children,$,R.key);if(N!==null&&(N.elementType===ce||Zb(N,R)||typeof ce=="object"&&ce!==null&&ce.$$typeof===p&&qy(ce)===N.type)){var oe=r(N,R.props);return oe.ref=vu(x,N,R),oe.return=x,oe._debugSource=R._source,oe._debugOwner=R._owner,oe}var ze=Zp(R,x.mode,$);return ze.ref=vu(x,N,R),ze.return=x,ze}function f(x,N,R,$){if(N===null||N.tag!==Ae||N.stateNode.containerInfo!==R.containerInfo||N.stateNode.implementation!==R.implementation){var ce=tm(R,x.mode,$);return ce.return=x,ce}else{var oe=r(N,R.children||[]);return oe.return=x,oe}}function d(x,N,R,$,ce){if(N===null||N.tag!==ie){var oe=_i(R,x.mode,$,ce);return oe.return=x,oe}else{var ze=r(N,R);return ze.return=x,ze}}function g(x,N,R){if(typeof N=="string"&&N!==""||typeof N=="number"){var $=em(""+N,x.mode,R);return $.return=x,$}if(typeof N=="object"&&N!==null){switch(N.$$typeof){case gn:{var ce=Zp(N,x.mode,R);return ce.ref=vu(x,null,N),ce.return=x,ce}case ta:{var oe=tm(N,x.mode,R);return oe.return=x,oe}case p:{var ze=N._payload,Ye=N._init;return g(x,Ye(ze),R)}}if(nt(N)||be(N)){var Ot=_i(N,x.mode,R,null);return Ot.return=x,Ot}Qs(x,N)}return typeof N=="function"&&Ks(x),null}function y(x,N,R,$){var ce=N!==null?N.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return ce!==null?null:l(x,N,""+R,$);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case gn:return R.key===ce?u(x,N,R,$):null;case ta:return R.key===ce?f(x,N,R,$):null;case p:{var oe=R._payload,ze=R._init;return y(x,N,ze(oe),$)}}if(nt(R)||be(R))return ce!==null?null:d(x,N,R,$,null);Qs(x,R)}return typeof R=="function"&&Ks(x),null}function w(x,N,R,$,ce){if(typeof $=="string"&&$!==""||typeof $=="number"){var oe=x.get(R)||null;return l(N,oe,""+$,ce)}if(typeof $=="object"&&$!==null){switch($.$$typeof){case gn:{var ze=x.get($.key===null?R:$.key)||null;return u(N,ze,$,ce)}case ta:{var Ye=x.get($.key===null?R:$.key)||null;return f(N,Ye,$,ce)}case p:var Ot=$._payload,pt=$._init;return w(x,N,R,pt(Ot),ce)}if(nt($)||be($)){var sn=x.get(R)||null;return d(N,sn,$,ce,null)}Qs(N,$)}return typeof $=="function"&&Ks(N),null}function _(x,N,R){{if(typeof x!="object"||x===null)return N;switch(x.$$typeof){case gn:case ta:Wy(x,R);var $=x.key;if(typeof $!="string")break;if(N===null){N=new Set,N.add($);break}if(!N.has($)){N.add($);break}c("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",$);break;case p:var ce=x._payload,oe=x._init;_(oe(ce),N,R);break}}return N}function A(x,N,R,$){for(var ce=null,oe=0;oe<R.length;oe++){var ze=R[oe];ce=_(ze,ce,x)}for(var Ye=null,Ot=null,pt=N,sn=0,mt=0,on=null;pt!==null&&mt<R.length;mt++){pt.index>mt?(on=pt,pt=null):on=pt.sibling;var Zn=y(x,pt,R[mt],$);if(Zn===null){pt===null&&(pt=on);break}e&&pt&&Zn.alternate===null&&t(x,pt),sn=i(Zn,sn,mt),Ot===null?Ye=Zn:Ot.sibling=Zn,Ot=Zn,pt=on}if(mt===R.length){if(n(x,pt),Fn()){var qn=mt;Gi(x,qn)}return Ye}if(pt===null){for(;mt<R.length;mt++){var Ma=g(x,R[mt],$);Ma!==null&&(sn=i(Ma,sn,mt),Ot===null?Ye=Ma:Ot.sibling=Ma,Ot=Ma)}if(Fn()){var fa=mt;Gi(x,fa)}return Ye}for(var da=a(x,pt);mt<R.length;mt++){var ea=w(da,x,mt,R[mt],$);ea!==null&&(e&&ea.alternate!==null&&da.delete(ea.key===null?mt:ea.key),sn=i(ea,sn,mt),Ot===null?Ye=ea:Ot.sibling=ea,Ot=ea)}if(e&&da.forEach(function(ol){return t(x,ol)}),Fn()){var Jr=mt;Gi(x,Jr)}return Ye}function ne(x,N,R,$){var ce=be(R);if(typeof ce!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&R[Symbol.toStringTag]==="Generator"&&(nv||c("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),nv=!0),R.entries===ce&&(tv||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),tv=!0);var oe=ce.call(R);if(oe)for(var ze=null,Ye=oe.next();!Ye.done;Ye=oe.next()){var Ot=Ye.value;ze=_(Ot,ze,x)}}var pt=ce.call(R);if(pt==null)throw new Error("An iterable object provided no iterator.");for(var sn=null,mt=null,on=N,Zn=0,qn=0,Ma=null,fa=pt.next();on!==null&&!fa.done;qn++,fa=pt.next()){on.index>qn?(Ma=on,on=null):Ma=on.sibling;var da=y(x,on,fa.value,$);if(da===null){on===null&&(on=Ma);break}e&&on&&da.alternate===null&&t(x,on),Zn=i(da,Zn,qn),mt===null?sn=da:mt.sibling=da,mt=da,on=Ma}if(fa.done){if(n(x,on),Fn()){var ea=qn;Gi(x,ea)}return sn}if(on===null){for(;!fa.done;qn++,fa=pt.next()){var Jr=g(x,fa.value,$);Jr!==null&&(Zn=i(Jr,Zn,qn),mt===null?sn=Jr:mt.sibling=Jr,mt=Jr)}if(Fn()){var ol=qn;Gi(x,ol)}return sn}for(var Iu=a(x,on);!fa.done;qn++,fa=pt.next()){var Cr=w(Iu,x,qn,fa.value,$);Cr!==null&&(e&&Cr.alternate!==null&&Iu.delete(Cr.key===null?qn:Cr.key),Zn=i(Cr,Zn,qn),mt===null?sn=Cr:mt.sibling=Cr,mt=Cr)}if(e&&Iu.forEach(function(v_){return t(x,v_)}),Fn()){var d_=qn;Gi(x,d_)}return sn}function we(x,N,R,$){if(N!==null&&N.tag===me){n(x,N.sibling);var ce=r(N,R);return ce.return=x,ce}n(x,N);var oe=em(R,x.mode,$);return oe.return=x,oe}function Ee(x,N,R,$){for(var ce=R.key,oe=N;oe!==null;){if(oe.key===ce){var ze=R.type;if(ze===na){if(oe.tag===ie){n(x,oe.sibling);var Ye=r(oe,R.props.children);return Ye.return=x,Ye._debugSource=R._source,Ye._debugOwner=R._owner,Ye}}else if(oe.elementType===ze||Zb(oe,R)||typeof ze=="object"&&ze!==null&&ze.$$typeof===p&&qy(ze)===oe.type){n(x,oe.sibling);var Ot=r(oe,R.props);return Ot.ref=vu(x,oe,R),Ot.return=x,Ot._debugSource=R._source,Ot._debugOwner=R._owner,Ot}n(x,oe);break}else t(x,oe);oe=oe.sibling}if(R.type===na){var pt=_i(R.props.children,x.mode,$,R.key);return pt.return=x,pt}else{var sn=Zp(R,x.mode,$);return sn.ref=vu(x,N,R),sn.return=x,sn}}function lt(x,N,R,$){for(var ce=R.key,oe=N;oe!==null;){if(oe.key===ce)if(oe.tag===Ae&&oe.stateNode.containerInfo===R.containerInfo&&oe.stateNode.implementation===R.implementation){n(x,oe.sibling);var ze=r(oe,R.children||[]);return ze.return=x,ze}else{n(x,oe);break}else t(x,oe);oe=oe.sibling}var Ye=tm(R,x.mode,$);return Ye.return=x,Ye}function at(x,N,R,$){var ce=typeof R=="object"&&R!==null&&R.type===na&&R.key===null;if(ce&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case gn:return o(Ee(x,N,R,$));case ta:return o(lt(x,N,R,$));case p:var oe=R._payload,ze=R._init;return at(x,N,ze(oe),$)}if(nt(R))return A(x,N,R,$);if(be(R))return ne(x,N,R,$);Qs(x,R)}return typeof R=="string"&&R!==""||typeof R=="number"?o(we(x,N,""+R,$)):(typeof R=="function"&&Ks(x),n(x,N))}return at}var $o=Gy(!0),Xy=Gy(!1);function $R(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var n=t.child,a=lo(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=lo(n,n.pendingProps),a.return=t;a.sibling=null}}function PR(e,t){for(var n=e.child;n!==null;)MD(n,t),n=n.sibling}var ov=pi(null),lv;lv={};var Js=null,Po=null,uv=null,Zs=!1;function ec(){Js=null,Po=null,uv=null,Zs=!1}function Qy(){Zs=!0}function Ky(){Zs=!1}function Jy(e,t,n){Kn(ov,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==lv&&c("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=lv}function sv(e,t){var n=ov.current;Qn(ov,t),e._currentValue=n}function cv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(Do(a.childLanes,t)?r!==null&&!Do(r.childLanes,t)&&(r.childLanes=Ke(r.childLanes,t)):(a.childLanes=Ke(a.childLanes,t),r!==null&&(r.childLanes=Ke(r.childLanes,t))),a===n)break;a=a.return}a!==n&&c("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function YR(e,t,n){IR(e,t,n)}function IR(e,t,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var r=void 0,i=a.dependencies;if(i!==null){r=a.child;for(var o=i.firstContext;o!==null;){if(o.context===t){if(a.tag===pe){var l=Ol(n),u=Wr(Pt,l);u.tag=nc;var f=a.updateQueue;if(f!==null){var d=f.shared,g=d.pending;g===null?u.next=u:(u.next=g.next,g.next=u),d.pending=u}}a.lanes=Ke(a.lanes,n);var y=a.alternate;y!==null&&(y.lanes=Ke(y.lanes,n)),cv(a.return,n,e),i.lanes=Ke(i.lanes,n);break}o=o.next}}else if(a.tag===Ve)r=a.type===e.type?null:a.child;else if(a.tag===Rt){var w=a.return;if(w===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");w.lanes=Ke(w.lanes,n);var _=w.alternate;_!==null&&(_.lanes=Ke(_.lanes,n)),cv(w,n,e),r=a.sibling}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}var A=r.sibling;if(A!==null){A.return=r.return,r=A;break}r=r.return}a=r}}function Yo(e,t){Js=e,Po=null,uv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(xa(n.lanes,t)&&_u(),n.firstContext=null)}}function pn(e){Zs&&c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(uv!==e){var n={context:e,memoizedValue:t,next:null};if(Po===null){if(Js===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Po=n,Js.dependencies={lanes:F,firstContext:n}}else Po=Po.next=n}return t}var Zi=null;function fv(e){Zi===null?Zi=[e]:Zi.push(e)}function WR(){if(Zi!==null){for(var e=0;e<Zi.length;e++){var t=Zi[e],n=t.interleaved;if(n!==null){t.interleaved=null;var a=n.next,r=t.pending;if(r!==null){var i=r.next;r.next=a,n.next=i}t.pending=n}}Zi=null}}function Zy(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n,tc(e,a)}function qR(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function GR(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n,tc(e,a)}function ya(e,t){return tc(e,t)}var XR=tc;function tc(e,t){e.lanes=Ke(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=Ke(n.lanes,t)),n===null&&(e.flags&(vn|Ur))!==Ue&&Xb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=Ke(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=Ke(n.childLanes,t):(r.flags&(vn|Ur))!==Ue&&Xb(e),a=r,r=r.return;if(a.tag===ae){var i=a.stateNode;return i}else return null}var eg=0,tg=1,nc=2,dv=3,ac=!1,vv,rc;vv=!1,rc=null;function pv(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:F},effects:null};e.updateQueue=t}function ng(e,t){var n=t.updateQueue,a=e.updateQueue;if(n===a){var r={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects};t.updateQueue=r}}function Wr(e,t){var n={eventTime:e,lane:t,tag:eg,payload:null,callback:null,next:null};return n}function gi(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(rc===r&&!vv&&(c("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),vv=!0),qw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,XR(e,n)}else return GR(e,r,t,n)}function ic(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(mh(n)){var i=r.lanes;i=yh(i,e.pendingLanes);var o=Ke(i,n);r.lanes=o,od(e,o)}}}function mv(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null){var r=a.updateQueue;if(n===r){var i=null,o=null,l=n.firstBaseUpdate;if(l!==null){var u=l;do{var f={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=f:(o.next=f,o=f),u=u.next}while(u!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}}var d=n.lastBaseUpdate;d===null?n.firstBaseUpdate=t:d.next=t,n.lastBaseUpdate=t}function QR(e,t,n,a,r,i){switch(n.tag){case tg:{var o=n.payload;if(typeof o=="function"){Qy();var l=o.call(i,a,r);{if(e.mode&rn){An(!0);try{o.call(i,a,r)}finally{An(!1)}}Ky()}return l}return o}case dv:e.flags=e.flags&~la|St;case eg:{var u=n.payload,f;if(typeof u=="function"){Qy(),f=u.call(i,a,r);{if(e.mode&rn){An(!0);try{u.call(i,a,r)}finally{An(!1)}}Ky()}}else f=u;return f==null?a:Te({},a,f)}case nc:return ac=!0,a}return a}function oc(e,t,n,a){var r=e.updateQueue;ac=!1,rc=r.shared;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var u=l,f=u.next;u.next=null,o===null?i=f:o.next=f,o=u;var d=e.alternate;if(d!==null){var g=d.updateQueue,y=g.lastBaseUpdate;y!==o&&(y===null?g.firstBaseUpdate=f:y.next=f,g.lastBaseUpdate=u)}}if(i!==null){var w=r.baseState,_=F,A=null,ne=null,we=null,Ee=i;do{var lt=Ee.lane,at=Ee.eventTime;if(Do(a,lt)){if(we!==null){var N={eventTime:at,lane:Nn,tag:Ee.tag,payload:Ee.payload,callback:Ee.callback,next:null};we=we.next=N}w=QR(e,r,Ee,w,t,n);var R=Ee.callback;if(R!==null&&Ee.lane!==Nn){e.flags|=Qm;var $=r.effects;$===null?r.effects=[Ee]:$.push(Ee)}}else{var x={eventTime:at,lane:lt,tag:Ee.tag,payload:Ee.payload,callback:Ee.callback,next:null};we===null?(ne=we=x,A=w):we=we.next=x,_=Ke(_,lt)}if(Ee=Ee.next,Ee===null){if(l=r.shared.pending,l===null)break;var ce=l,oe=ce.next;ce.next=null,Ee=oe,r.lastBaseUpdate=ce,r.shared.pending=null}}while(!0);we===null&&(A=w),r.baseState=A,r.firstBaseUpdate=ne,r.lastBaseUpdate=we;var ze=r.shared.interleaved;if(ze!==null){var Ye=ze;do _=Ke(_,Ye.lane),Ye=Ye.next;while(Ye!==ze)}else i===null&&(r.shared.lanes=F);Fu(_),e.lanes=_,e.memoizedState=w}rc=null}function KR(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function ag(){ac=!1}function lc(){return ac}function rg(e,t,n){var a=t.effects;if(t.effects=null,a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.callback;o!==null&&(i.callback=null,KR(o,n))}}var pu={},bi=pi(pu),mu=pi(pu),uc=pi(pu);function sc(e){if(e===pu)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function ig(){var e=sc(uc.current);return e}function hv(e,t){Kn(uc,t,e),Kn(mu,e,e),Kn(bi,pu,e);var n=px(t);Qn(bi,e),Kn(bi,n,e)}function Io(e){Qn(bi,e),Qn(mu,e),Qn(uc,e)}function yv(){var e=sc(bi.current);return e}function og(e){sc(uc.current);var t=sc(bi.current),n=mx(t,e.type);t!==n&&(Kn(mu,e,e),Kn(bi,n,e))}function gv(e){mu.current===e&&(Qn(bi,e),Qn(mu,e))}var JR=0,lg=1,ug=1,hu=2,Ja=pi(JR);function bv(e,t){return(e&t)!==0}function Wo(e){return e&lg}function Sv(e,t){return e&lg|t}function ZR(e,t){return e|t}function Si(e,t){Kn(Ja,t,e)}function qo(e){Qn(Ja,e)}function e1(e,t){var n=e.memoizedState;return n!==null?n.dehydrated!==null:(e.memoizedProps,!0)}function cc(e){for(var t=e;t!==null;){if(t.tag===O){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||Ry(a)||zd(a))return t}}else if(t.tag===At&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&St)!==Ue;if(r)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;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 ga=0,Sn=1,hr=2,Tn=4,Bn=8,Tv=[];function Ev(){for(var e=0;e<Tv.length;e++){var t=Tv[e];t._workInProgressVersionPrimary=null}Tv.length=0}function t1(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var se=ee.ReactCurrentDispatcher,yu=ee.ReactCurrentBatchConfig,Cv,Go;Cv=new Set;var eo=F,Mt=null,En=null,Cn=null,fc=!1,gu=!1,bu=0,n1=0,a1=25,H=null,za=null,Ti=-1,xv=!1;function Et(){{var e=H;za===null?za=[e]:za.push(e)}}function J(){{var e=H;za!==null&&(Ti++,za[Ti]!==e&&r1(e))}}function Xo(e){e!=null&&!nt(e)&&c("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function r1(e){{var t=Ge(Mt);if(!Cv.has(t)&&(Cv.add(t),za!==null)){for(var n="",a=30,r=0;r<=Ti;r++){for(var i=za[r],o=r===Ti?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
`,n+=l}c(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,t,n)}}}function Jn(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Rv(e,t){if(xv)return!1;if(t===null)return c("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",H),!1;e.length!==t.length&&c(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Da(e[n],t[n]))return!1;return!0}function Qo(e,t,n,a,r,i){eo=i,Mt=t,za=e!==null?e._debugHookTypes:null,Ti=-1,xv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=F,e!==null&&e.memoizedState!==null?se.current=Mg:za!==null?se.current=kg:se.current=_g;var o=n(a,r);if(gu){var l=0;do{if(gu=!1,bu=0,l>=a1)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,xv=!1,En=null,Cn=null,t.updateQueue=null,Ti=-1,se.current=Og,o=n(a,r)}while(gu)}se.current=xc,t._debugHookTypes=za;var u=En!==null&&En.next!==null;if(eo=F,Mt=null,En=null,Cn=null,H=null,za=null,Ti=-1,e!==null&&(e.flags&Hr)!==(t.flags&Hr)&&(e.mode&it)!==Me&&c("Internal React error: Expected static flag was missing. Please notify the React team."),fc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Ko(){var e=bu!==0;return bu=0,e}function sg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&dr)!==Me?t.flags&=-50333701:t.flags&=-2053,e.lanes=ds(e.lanes,n)}function cg(){if(se.current=xc,fc){for(var e=Mt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fc=!1}eo=F,Mt=null,En=null,Cn=null,za=null,Ti=-1,H=null,Cg=!1,gu=!1,bu=0}function yr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?Mt.memoizedState=Cn=e:Cn=Cn.next=e,Cn}function Va(){var e;if(En===null){var t=Mt.alternate;t!==null?e=t.memoizedState:e=null}else e=En.next;var n;if(Cn===null?n=Mt.memoizedState:n=Cn.next,n!==null)Cn=n,n=Cn.next,En=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");En=e;var a={memoizedState:En.memoizedState,baseState:En.baseState,baseQueue:En.baseQueue,queue:En.queue,next:null};Cn===null?Mt.memoizedState=Cn=a:Cn=Cn.next=a}return Cn}function fg(){return{lastEffect:null,stores:null}}function wv(e,t){return typeof t=="function"?t(e):t}function Dv(e,t,n){var a=yr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:F,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=u1.bind(null,Mt,i);return[a.memoizedState,o]}function _v(e,t,n){var a=Va(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=En,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,f=l.next;o.next=f,l.next=u}i.baseQueue!==o&&c("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var d=o.next,g=i.baseState,y=null,w=null,_=null,A=d;do{var ne=A.lane;if(Do(eo,ne)){if(_!==null){var Ee={lane:Nn,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};_=_.next=Ee}if(A.hasEagerState)g=A.eagerState;else{var lt=A.action;g=e(g,lt)}}else{var we={lane:ne,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};_===null?(w=_=we,y=g):_=_.next=we,Mt.lanes=Ke(Mt.lanes,ne),Fu(ne)}A=A.next}while(A!==null&&A!==d);_===null?y=g:_.next=w,Da(g,a.memoizedState)||_u(),a.memoizedState=g,a.baseState=y,a.baseQueue=_,r.lastRenderedState=g}var at=r.interleaved;if(at!==null){var x=at;do{var N=x.lane;Mt.lanes=Ke(Mt.lanes,N),Fu(N),x=x.next}while(x!==at)}else o===null&&(r.lanes=F);var R=r.dispatch;return[a.memoizedState,R]}function kv(e,t,n){var a=Va(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,l=a.memoizedState;if(o!==null){r.pending=null;var u=o.next,f=u;do{var d=f.action;l=e(l,d),f=f.next}while(f!==u);Da(l,a.memoizedState)||_u(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function h_(e,t,n){}function y_(e,t,n){}function Mv(e,t,n){var a=Mt,r=yr(),i,o=Fn();if(o){if(n===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");i=n(),Go||i!==n()&&(c("The result of getServerSnapshot should be cached to avoid an infinite loop"),Go=!0)}else{if(i=t(),!Go){var l=t();Da(i,l)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Go=!0)}var u=Pc();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");fs(u,eo)||dg(a,t,i)}r.memoizedState=i;var f={value:i,getSnapshot:t};return r.queue=f,hc(pg.bind(null,a,f,e),[e]),a.flags|=ii,Su(Sn|Bn,vg.bind(null,a,f,i,t),void 0,null),i}function dc(e,t,n){var a=Mt,r=Va(),i=t();if(!Go){var o=t();Da(i,o)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Go=!0)}var l=r.memoizedState,u=!Da(l,i);u&&(r.memoizedState=i,_u());var f=r.queue;if(Eu(pg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||Cn!==null&&Cn.memoizedState.tag&Sn){a.flags|=ii,Su(Sn|Bn,vg.bind(null,a,f,i,t),void 0,null);var d=Pc();if(d===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");fs(d,eo)||dg(a,t,i)}return i}function dg(e,t,n){e.flags|=wf;var a={getSnapshot:t,value:n},r=Mt.updateQueue;if(r===null)r=fg(),Mt.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function vg(e,t,n,a){t.value=n,t.getSnapshot=a,mg(t)&&hg(e)}function pg(e,t,n){var a=function(){mg(t)&&hg(e)};return n(a)}function mg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Da(n,a)}catch{return!0}}function hg(e){var t=ya(e,Fe);t!==null&&Dn(t,e,Fe,Pt)}function vc(e){var t=yr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:F,dispatch:null,lastRenderedReducer:wv,lastRenderedState:e};t.queue=n;var a=n.dispatch=s1.bind(null,Mt,n);return[t.memoizedState,a]}function Ov(e){return _v(wv)}function Lv(e){return kv(wv)}function Su(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Mt.updateQueue;if(i===null)i=fg(),Mt.updateQueue=i,i.lastEffect=r.next=r;else{var o=i.lastEffect;if(o===null)i.lastEffect=r.next=r;else{var l=o.next;o.next=r,r.next=l,i.lastEffect=r}}return r}function Av(e){var t=yr();{var n={current:e};return t.memoizedState=n,n}}function pc(e){var t=Va();return t.memoizedState}function Tu(e,t,n,a){var r=yr(),i=a===void 0?null:a;Mt.flags|=e,r.memoizedState=Su(Sn|t,n,void 0,i)}function mc(e,t,n,a){var r=Va(),i=a===void 0?null:a,o=void 0;if(En!==null){var l=En.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Rv(i,u)){r.memoizedState=Su(t,n,o,i);return}}}Mt.flags|=e,r.memoizedState=Su(Sn|t,n,o,i)}function hc(e,t){return(Mt.mode&dr)!==Me?Tu(Mf|ii|kf,Bn,e,t):Tu(ii|kf,Bn,e,t)}function Eu(e,t){return mc(ii,Bn,e,t)}function Nv(e,t){return Tu(bt,hr,e,t)}function yc(e,t){return mc(bt,hr,e,t)}function jv(e,t){var n=bt;return n|=Hi,(Mt.mode&dr)!==Me&&(n|=oi),Tu(n,Tn,e,t)}function gc(e,t){return mc(bt,Tn,e,t)}function yg(e,t){if(typeof t=="function"){var n=t,a=e();return n(a),function(){n(null)}}else if(t!=null){var r=t;r.hasOwnProperty("current")||c("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}");var i=e();return r.current=i,function(){r.current=null}}}function Uv(e,t,n){typeof t!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null,r=bt;return r|=Hi,(Mt.mode&dr)!==Me&&(r|=oi),Tu(r,Tn,yg.bind(null,t,e),a)}function bc(e,t,n){typeof t!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null;return mc(bt,Tn,yg.bind(null,t,e),a)}function i1(e,t){}var Sc=i1;function Hv(e,t){var n=yr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Tc(e,t){var n=Va(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Rv(a,i))return r[0]}return n.memoizedState=[e,a],e}function zv(e,t){var n=yr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Ec(e,t){var n=Va(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Rv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Vv(e){var t=yr();return t.memoizedState=e,e}function gg(e){var t=Va(),n=En,a=n.memoizedState;return Sg(t,a,e)}function bg(e){var t=Va();if(En===null)return t.memoizedState=e,e;var n=En.memoizedState;return Sg(t,n,e)}function Sg(e,t,n){var a=!YT(eo);if(a){if(!Da(n,t)){var r=hh();Mt.lanes=Ke(Mt.lanes,r),Fu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,_u()),e.memoizedState=n,n}function o1(e,t,n){var a=Ga();jn(ZT(a,Vr)),e(!0);var r=yu.transition;yu.transition={};var i=yu.transition;yu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(jn(a),yu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),i._updatedFibers.clear()}}}function Fv(){var e=vc(!1),t=e[0],n=e[1],a=o1.bind(null,n),r=yr();return r.memoizedState=a,[t,a]}function Tg(){var e=Ov(),t=e[0],n=Va(),a=n.memoizedState;return[t,a]}function Eg(){var e=Lv(),t=e[0],n=Va(),a=n.memoizedState;return[t,a]}var Cg=!1;function l1(){return Cg}function Bv(){var e=yr(),t=Pc(),n=t.identifierPrefix,a;if(Fn()){var r=xR();a=":"+n+"R"+r;var i=bu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=n1++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Cc(){var e=Va(),t=e.memoizedState;return t}function u1(e,t,n){typeof arguments[3]=="function"&&c("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a=wi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(xg(e))Rg(t,r);else{var i=Zy(e,t,r,a);if(i!==null){var o=ca();Dn(i,e,a,o),wg(i,t,a)}}Dg(e,a)}function s1(e,t,n){typeof arguments[3]=="function"&&c("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a=wi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(xg(e))Rg(t,r);else{var i=e.alternate;if(e.lanes===F&&(i===null||i.lanes===F)){var o=t.lastRenderedReducer;if(o!==null){var l;l=se.current,se.current=Za;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,Da(f,u)){qR(e,t,r,a);return}}catch{}finally{se.current=l}}}var d=Zy(e,t,r,a);if(d!==null){var g=ca();Dn(d,e,a,g),wg(d,t,a)}}Dg(e,a)}function xg(e){var t=e.alternate;return e===Mt||t!==null&&t===Mt}function Rg(e,t){gu=fc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wg(e,t,n){if(mh(n)){var a=t.lanes;a=yh(a,e.pendingLanes);var r=Ke(a,n);t.lanes=r,od(e,r)}}function Dg(e,t,n){jf(e,t)}var xc={readContext:pn,useCallback:Jn,useContext:Jn,useEffect:Jn,useImperativeHandle:Jn,useInsertionEffect:Jn,useLayoutEffect:Jn,useMemo:Jn,useReducer:Jn,useRef:Jn,useState:Jn,useDebugValue:Jn,useDeferredValue:Jn,useTransition:Jn,useMutableSource:Jn,useSyncExternalStore:Jn,useId:Jn,unstable_isNewReconciler:Y},_g=null,kg=null,Mg=null,Og=null,gr=null,Za=null,Rc=null;{var $v=function(){c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Be=function(){c("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};_g={readContext:function(e){return pn(e)},useCallback:function(e,t){return H="useCallback",Et(),Xo(t),Hv(e,t)},useContext:function(e){return H="useContext",Et(),pn(e)},useEffect:function(e,t){return H="useEffect",Et(),Xo(t),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Et(),Xo(n),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Et(),Xo(t),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Et(),Xo(t),jv(e,t)},useMemo:function(e,t){H="useMemo",Et(),Xo(t);var n=se.current;se.current=gr;try{return zv(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",Et();var a=se.current;se.current=gr;try{return Dv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",Et(),Av(e)},useState:function(e){H="useState",Et();var t=se.current;se.current=gr;try{return vc(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Et(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Et(),Vv(e)},useTransition:function(){return H="useTransition",Et(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",Et(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Et(),Mv(e,t,n)},useId:function(){return H="useId",Et(),Bv()},unstable_isNewReconciler:Y},kg={readContext:function(e){return pn(e)},useCallback:function(e,t){return H="useCallback",J(),Hv(e,t)},useContext:function(e){return H="useContext",J(),pn(e)},useEffect:function(e,t){return H="useEffect",J(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",J(),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",J(),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",J(),jv(e,t)},useMemo:function(e,t){H="useMemo",J();var n=se.current;se.current=gr;try{return zv(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",J();var a=se.current;se.current=gr;try{return Dv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",J(),Av(e)},useState:function(e){H="useState",J();var t=se.current;se.current=gr;try{return vc(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",J(),void 0},useDeferredValue:function(e){return H="useDeferredValue",J(),Vv(e)},useTransition:function(){return H="useTransition",J(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",J(),Mv(e,t,n)},useId:function(){return H="useId",J(),Bv()},unstable_isNewReconciler:Y},Mg={readContext:function(e){return pn(e)},useCallback:function(e,t){return H="useCallback",J(),Tc(e,t)},useContext:function(e){return H="useContext",J(),pn(e)},useEffect:function(e,t){return H="useEffect",J(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",J(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",J(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",J(),gc(e,t)},useMemo:function(e,t){H="useMemo",J();var n=se.current;se.current=Za;try{return Ec(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",J();var a=se.current;se.current=Za;try{return _v(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",J(),pc()},useState:function(e){H="useState",J();var t=se.current;se.current=Za;try{return Ov(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",J(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",J(),gg(e)},useTransition:function(){return H="useTransition",J(),Tg()},useMutableSource:function(e,t,n){return H="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",J(),dc(e,t)},useId:function(){return H="useId",J(),Cc()},unstable_isNewReconciler:Y},Og={readContext:function(e){return pn(e)},useCallback:function(e,t){return H="useCallback",J(),Tc(e,t)},useContext:function(e){return H="useContext",J(),pn(e)},useEffect:function(e,t){return H="useEffect",J(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",J(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",J(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",J(),gc(e,t)},useMemo:function(e,t){H="useMemo",J();var n=se.current;se.current=Rc;try{return Ec(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",J();var a=se.current;se.current=Rc;try{return kv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",J(),pc()},useState:function(e){H="useState",J();var t=se.current;se.current=Rc;try{return Lv(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",J(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",J(),bg(e)},useTransition:function(){return H="useTransition",J(),Eg()},useMutableSource:function(e,t,n){return H="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",J(),dc(e,t)},useId:function(){return H="useId",J(),Cc()},unstable_isNewReconciler:Y},gr={readContext:function(e){return $v(),pn(e)},useCallback:function(e,t){return H="useCallback",Be(),Et(),Hv(e,t)},useContext:function(e){return H="useContext",Be(),Et(),pn(e)},useEffect:function(e,t){return H="useEffect",Be(),Et(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Be(),Et(),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Be(),Et(),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Be(),Et(),jv(e,t)},useMemo:function(e,t){H="useMemo",Be(),Et();var n=se.current;se.current=gr;try{return zv(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",Be(),Et();var a=se.current;se.current=gr;try{return Dv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",Be(),Et(),Av(e)},useState:function(e){H="useState",Be(),Et();var t=se.current;se.current=gr;try{return vc(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Be(),Et(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Be(),Et(),Vv(e)},useTransition:function(){return H="useTransition",Be(),Et(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",Be(),Et(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Be(),Et(),Mv(e,t,n)},useId:function(){return H="useId",Be(),Et(),Bv()},unstable_isNewReconciler:Y},Za={readContext:function(e){return $v(),pn(e)},useCallback:function(e,t){return H="useCallback",Be(),J(),Tc(e,t)},useContext:function(e){return H="useContext",Be(),J(),pn(e)},useEffect:function(e,t){return H="useEffect",Be(),J(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Be(),J(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Be(),J(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Be(),J(),gc(e,t)},useMemo:function(e,t){H="useMemo",Be(),J();var n=se.current;se.current=Za;try{return Ec(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",Be(),J();var a=se.current;se.current=Za;try{return _v(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",Be(),J(),pc()},useState:function(e){H="useState",Be(),J();var t=se.current;se.current=Za;try{return Ov(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Be(),J(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Be(),J(),gg(e)},useTransition:function(){return H="useTransition",Be(),J(),Tg()},useMutableSource:function(e,t,n){return H="useMutableSource",Be(),J(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Be(),J(),dc(e,t)},useId:function(){return H="useId",Be(),J(),Cc()},unstable_isNewReconciler:Y},Rc={readContext:function(e){return $v(),pn(e)},useCallback:function(e,t){return H="useCallback",Be(),J(),Tc(e,t)},useContext:function(e){return H="useContext",Be(),J(),pn(e)},useEffect:function(e,t){return H="useEffect",Be(),J(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Be(),J(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Be(),J(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Be(),J(),gc(e,t)},useMemo:function(e,t){H="useMemo",Be(),J();var n=se.current;se.current=Za;try{return Ec(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",Be(),J();var a=se.current;se.current=Za;try{return kv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",Be(),J(),pc()},useState:function(e){H="useState",Be(),J();var t=se.current;se.current=Za;try{return Lv(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Be(),J(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Be(),J(),bg(e)},useTransition:function(){return H="useTransition",Be(),J(),Eg()},useMutableSource:function(e,t,n){return H="useMutableSource",Be(),J(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Be(),J(),dc(e,t)},useId:function(){return H="useId",Be(),J(),Cc()},unstable_isNewReconciler:Y}}var Ei=M.unstable_now,Lg=0,wc=-1,Cu=-1,Dc=-1,Pv=!1,_c=!1;function Ag(){return Pv}function c1(){_c=!0}function f1(){Pv=!1,_c=!1}function d1(){Pv=_c,_c=!1}function Ng(){return Lg}function jg(){Lg=Ei()}function Yv(e){Cu=Ei(),e.actualStartTime<0&&(e.actualStartTime=Ei())}function Ug(e){Cu=-1}function kc(e,t){if(Cu>=0){var n=Ei()-Cu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Cu=-1}}function br(e){if(wc>=0){var t=Ei()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case ae:var a=n.stateNode;a.effectDuration+=t;return;case Ze:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function Iv(e){if(Dc>=0){var t=Ei()-Dc;Dc=-1;for(var n=e.return;n!==null;){switch(n.tag){case ae:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case Ze:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function Sr(){wc=Ei()}function Wv(){Dc=Ei()}function qv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function er(e,t){if(e&&e.defaultProps){var n=Te({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Gv={},Xv,Qv,Kv,Jv,Zv,Hg,Mc,ep,tp,np,xu;{Xv=new Set,Qv=new Set,Kv=new Set,Jv=new Set,ep=new Set,Zv=new Set,tp=new Set,np=new Set,xu=new Set;var zg=new Set;Mc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;zg.has(n)||(zg.add(n),c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Hg=function(e,t){if(t===void 0){var n=gt(e)||"Component";Zv.has(n)||(Zv.add(n),c("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Gv,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Gv)}function ap(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&rn){An(!0);try{i=n(a,r)}finally{An(!1)}}Hg(t,i)}var o=i==null?r:Te({},r,i);if(e.memoizedState=o,e.lanes===F){var l=e.updateQueue;l.baseState=o}}var rp={isMounted:aT,enqueueSetState:function(e,t,n){var a=go(e),r=ca(),i=wi(a),o=Wr(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=gi(a,o,i);l!==null&&(Dn(l,a,i,r),ic(l,a,i)),jf(a,i)},enqueueReplaceState:function(e,t,n){var a=go(e),r=ca(),i=wi(a),o=Wr(r,i);o.tag=tg,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=gi(a,o,i);l!==null&&(Dn(l,a,i,r),ic(l,a,i)),jf(a,i)},enqueueForceUpdate:function(e,t){var n=go(e),a=ca(),r=wi(n),i=Wr(a,r);i.tag=nc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=gi(n,i,r);o!==null&&(Dn(o,n,r,a),ic(o,n,r)),NT(n,r)}};function Vg(e,t,n,a,r,i,o){var l=e.stateNode;if(typeof l.shouldComponentUpdate=="function"){var u=l.shouldComponentUpdate(a,i,o);{if(e.mode&rn){An(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{An(!1)}}u===void 0&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",gt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Wl(n,a)||!Wl(r,i):!0}function v1(e,t,n){var a=e.stateNode;{var r=gt(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?c("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):c("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",r)),a.getInitialState&&!a.getInitialState.isReactClassApproved&&!a.state&&c("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",r),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&c("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",r),a.propTypes&&c("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&c("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!xu.has(t)&&(e.mode&rn)===Me&&(xu.add(t),c(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),t.contextTypes&&!xu.has(t)&&(e.mode&rn)===Me&&(xu.add(t),c(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),a.contextTypes&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!tp.has(t)&&(tp.add(t),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&c("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",r),t.prototype&&t.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",gt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&c("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",r),typeof a.componentWillRecieveProps=="function"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&c("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),a.defaultProps&&c("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",r,r),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!Kv.has(t)&&(Kv.add(t),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",gt(t))),typeof a.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&c("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r);var l=a.state;l&&(typeof l!="object"||nt(l))&&c("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Fg(e,t){t.updater=rp,e.stateNode=t,Z0(t,e),t._reactInternalInstance=Gv}function Bg(e,t,n){var a=!1,r=_a,i=_a,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===h&&o._context===void 0;if(!l&&!np.has(t)){np.add(t);var u="";o===void 0?u=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===Dr?u=" Did you accidentally pass the Context.Provider instead?":o._context!==void 0?u=" Did you accidentally pass the Context.Consumer instead?":u=" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",gt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=pn(o);else{r=Ho(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?zo(e,r):_a}var d=new t(n,i);if(e.mode&rn){An(!0);try{d=new t(n,i)}finally{An(!1)}}var g=e.memoizedState=d.state!==null&&d.state!==void 0?d.state:null;Fg(e,d);{if(typeof t.getDerivedStateFromProps=="function"&&g===null){var y=gt(t)||"Component";Qv.has(y)||(Qv.add(y),c("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",y,d.state===null?"null":"undefined",y))}if(typeof t.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var w=null,_=null,A=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?w="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(w="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?A="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(A="UNSAFE_componentWillUpdate"),w!==null||_!==null||A!==null){var ne=gt(t)||"Component",we=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Jv.has(ne)||(Jv.add(ne),c(`Unsafe legacy lifecycles will not be called for components using new component APIs.
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://reactjs.org/link/unsafe-component-lifecycles`,ne,we,w!==null?`
`+w:"",_!==null?`
`+_:"",A!==null?`
`+A:""))}}}return a&&My(e,r,i),d}function p1(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ge(e)||"Component"),rp.enqueueReplaceState(t,t.state,null))}function $g(e,t,n,a){var r=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==r){{var i=Ge(e)||"Component";Xv.has(i)||(Xv.add(i),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}rp.enqueueReplaceState(t,t.state,null)}}function ip(e,t,n,a){v1(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},pv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=pn(i);else{var o=Ho(e,t,!0);r.context=zo(e,o)}{if(r.state===n){var l=gt(t)||"Component";ep.has(l)||(ep.add(l),c("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}e.mode&rn&&Ka.recordLegacyContextWarning(e,r),Ka.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ap(e,t,u,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function"&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(p1(e,r),oc(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=bt;f|=Hi,(e.mode&dr)!==Me&&(f|=oi),e.flags|=f}}function m1(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=_a;if(typeof l=="object"&&l!==null)u=pn(l);else{var f=Ho(e,t,!0);u=zo(e,f)}var d=t.getDerivedStateFromProps,g=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function";!g&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&$g(e,r,n,u),ag();var y=e.memoizedState,w=r.state=y;if(oc(e,n,r,a),w=e.memoizedState,i===n&&y===w&&!Bs()&&!lc()){if(typeof r.componentDidMount=="function"){var _=bt;_|=Hi,(e.mode&dr)!==Me&&(_|=oi),e.flags|=_}return!1}typeof d=="function"&&(ap(e,t,d,n),w=e.memoizedState);var A=lc()||Vg(e,t,i,n,y,w,u);if(A){if(!g&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"){var ne=bt;ne|=Hi,(e.mode&dr)!==Me&&(ne|=oi),e.flags|=ne}}else{if(typeof r.componentDidMount=="function"){var we=bt;we|=Hi,(e.mode&dr)!==Me&&(we|=oi),e.flags|=we}e.memoizedProps=n,e.memoizedState=w}return r.props=n,r.state=w,r.context=u,A}function h1(e,t,n,a,r){var i=t.stateNode;ng(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:er(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,d=n.contextType,g=_a;if(typeof d=="object"&&d!==null)g=pn(d);else{var y=Ho(t,n,!0);g=zo(t,y)}var w=n.getDerivedStateFromProps,_=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function";!_&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==g)&&$g(t,i,a,g),ag();var A=t.memoizedState,ne=i.state=A;if(oc(t,a,i,r),ne=t.memoizedState,o===u&&A===ne&&!Bs()&&!lc()&&!Ne)return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=bt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=So),!1;typeof w=="function"&&(ap(t,n,w,a),ne=t.memoizedState);var we=lc()||Vg(t,n,l,a,A,ne,g)||Ne;return we?(!_&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,ne,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,ne,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=bt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=So)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=bt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=So),t.memoizedProps=a,t.memoizedState=ne),i.props=a,i.state=ne,i.context=g,we}function to(e,t){return{value:e,source:t,stack:Ia(t),digest:null}}function op(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function y1(e,t){return!0}function lp(e,t){try{var n=y1(e,t);if(n===!1)return;var a=t.value,r=t.source,i=t.stack,o=i!==null?i:"";if(a!=null&&a._suppressLogging){if(e.tag===pe)return;console.error(a)}var l=r?Ge(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",f;if(e.tag===ae)f=`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var d=Ge(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+d+".")}var g=u+`
`+o+`
`+(""+f);console.error(g)}catch(y){setTimeout(function(){throw y})}}var g1=typeof WeakMap=="function"?WeakMap:Map;function Pg(e,t,n){var a=Wr(Pt,n);a.tag=dv,a.payload={element:null};var r=t.value;return a.callback=function(){cD(r),lp(e,t)},a}function up(e,t,n){var a=Wr(Pt,n);a.tag=dv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){eS(e),lp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){eS(e),lp(e,t),typeof r!="function"&&uD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(xa(e.lanes,Fe)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ge(e)||"Unknown"))}),a}function Yg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new g1,r=new Set,a.set(t,r)):(r=a.get(t),r===void 0&&(r=new Set,a.set(t,r))),!r.has(n)){r.add(n);var i=fD.bind(null,e,t,n);qa&&Bu(e,n),t.then(i,i)}}function b1(e,t,n,a){var r=e.updateQueue;if(r===null){var i=new Set;i.add(n),e.updateQueue=i}else r.add(n)}function S1(e,t){var n=e.tag;if((e.mode&it)===Me&&(n===fe||n===De||n===P)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Ig(e){var t=e;do{if(t.tag===O&&e1(t))return t;t=t.return}while(t!==null);return null}function Wg(e,t,n,a,r){if((e.mode&it)===Me){if(e===t)e.flags|=la;else{if(e.flags|=St,n.flags|=Df,n.flags&=-52805,n.tag===pe){var i=n.alternate;if(i===null)n.tag=Ie;else{var o=Wr(Pt,Fe);o.tag=nc,gi(n,o,Fe)}}n.lanes=Ke(n.lanes,Fe)}return e}return e.flags|=la,e.lanes=r,e}function T1(e,t,n,a,r){if(n.flags|=is,qa&&Bu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;S1(n),Fn()&&n.mode&it&&Hy();var o=Ig(t);if(o!==null){o.flags&=~jr,Wg(o,t,n,e,r),o.mode&it&&Yg(e,i,r),b1(o,e,i);return}else{if(!PT(r)){Yg(e,i,r),Bp();return}var l=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");a=l}}else if(Fn()&&n.mode&it){Hy();var u=Ig(t);if(u!==null){(u.flags&la)===Ue&&(u.flags|=jr),Wg(u,t,n,e,r),ev(to(a,n));return}}a=to(a,n),eD(a);var f=t;do{switch(f.tag){case ae:{var d=a;f.flags|=la;var g=Ol(r);f.lanes=Ke(f.lanes,g);var y=Pg(f,d,g);mv(f,y);return}case pe:var w=a,_=f.type,A=f.stateNode;if((f.flags&St)===Ue&&(typeof _.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&!Ib(A))){f.flags|=la;var ne=Ol(r);f.lanes=Ke(f.lanes,ne);var we=up(f,w,ne);mv(f,we);return}break}f=f.return}while(f!==null)}function E1(){return null}var Ru=ee.ReactCurrentOwner,tr=!1,sp,wu,cp,fp,dp,no,vp,Oc,Du;sp={},wu={},cp={},fp={},dp={},no=!1,vp={},Oc={},Du={};function ua(e,t,n,a){e===null?t.child=Xy(t,null,n,a):t.child=$o(t,e.child,n,a)}function C1(e,t,n,a){t.child=$o(t,e.child,null,a),t.child=$o(t,null,n,a)}function qg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Xa(i,a,"prop",gt(n))}var o=n.render,l=t.ref,u,f;Yo(t,r),Rl(t);{if(Ru.current=t,Na(!0),u=Qo(e,t,o,a,l,r),f=Ko(),t.mode&rn){An(!0);try{u=Qo(e,t,o,a,l,r),f=Ko()}finally{An(!1)}}Na(!1)}return Co(),e!==null&&!tr?(sg(e,t,r),qr(e,t,r)):(Fn()&&f&&Gd(t),t.flags|=bo,ua(e,t,u,r),t.child)}function Gg(e,t,n,a,r){if(e===null){var i=n.type;if(_D(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=il(i),t.tag=P,t.type=o,hp(t,i),Xg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Xa(l,a,"prop",gt(i)),n.defaultProps!==void 0){var u=gt(i)||"Unknown";Du[u]||(c("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Du[u]=!0)}}var f=Jp(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var d=n.type,g=d.propTypes;g&&Xa(g,a,"prop",gt(d))}var y=e.child,w=Ep(e,r);if(!w){var _=y.memoizedProps,A=n.compare;if(A=A!==null?A:Wl,A(_,a)&&e.ref===t.ref)return qr(e,t,r)}t.flags|=bo;var ne=lo(y,a);return ne.ref=t.ref,ne.return=t,t.child=ne,ne}function Xg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===p){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Xa(f,a,"prop",gt(i))}}if(e!==null){var d=e.memoizedProps;if(Wl(d,a)&&e.ref===t.ref&&t.type===e.type)if(tr=!1,t.pendingProps=a=d,Ep(e,r))(e.flags&Df)!==Ue&&(tr=!0);else return t.lanes=e.lanes,qr(e,t,r)}return pp(e,t,n,a,r)}function Qg(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||Wt)if((t.mode&it)===Me){var o={baseLanes:F,cachePool:null,transitions:null};t.memoizedState=o,Yc(t,n)}else if(xa(n,Ca)){var g={baseLanes:F,cachePool:null,transitions:null};t.memoizedState=g;var y=i!==null?i.baseLanes:n;Yc(t,y)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=Ke(f,n)}else u=n;t.lanes=t.childLanes=Ca;var d={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=d,t.updateQueue=null,Yc(t,u),null}else{var w;i!==null?(w=Ke(i.baseLanes,n),t.memoizedState=null):w=n,Yc(t,w)}return ua(e,t,r,n),t.child}function x1(e,t,n){var a=t.pendingProps;return ua(e,t,a,n),t.child}function R1(e,t,n){var a=t.pendingProps.children;return ua(e,t,a,n),t.child}function w1(e,t,n){{t.flags|=bt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return ua(e,t,i,n),t.child}function Kg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=ji,t.flags|=_f)}function pp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Xa(i,a,"prop",gt(n))}var o;{var l=Ho(t,n,!0);o=zo(t,l)}var u,f;Yo(t,r),Rl(t);{if(Ru.current=t,Na(!0),u=Qo(e,t,n,a,o,r),f=Ko(),t.mode&rn){An(!0);try{u=Qo(e,t,n,a,o,r),f=Ko()}finally{An(!1)}}Na(!1)}return Co(),e!==null&&!tr?(sg(e,t,r),qr(e,t,r)):(Fn()&&f&&Gd(t),t.flags|=bo,ua(e,t,u,r),t.child)}function Jg(e,t,n,a,r){{switch(PD(t)){case!1:{var i=t.stateNode,o=t.type,l=new o(t.memoizedProps,i.context),u=l.state;i.updater.enqueueSetState(i,u,null);break}case!0:{t.flags|=St,t.flags|=la;var f=new Error("Simulated error coming from DevTools"),d=Ol(r);t.lanes=Ke(t.lanes,d);var g=up(t,to(f,t),d);mv(t,g);break}}if(t.type!==t.elementType){var y=n.propTypes;y&&Xa(y,a,"prop",gt(n))}}var w;mr(n)?(w=!0,Ps(t)):w=!1,Yo(t,r);var _=t.stateNode,A;_===null?(Ac(e,t),Bg(t,n,a),ip(t,n,a,r),A=!0):e===null?A=m1(t,n,a,r):A=h1(e,t,n,a,r);var ne=mp(e,t,n,A,w,r);{var we=t.stateNode;A&&we.props!==a&&(no||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ge(t)||"a component"),no=!0)}return ne}function mp(e,t,n,a,r,i){Kg(e,t);var o=(t.flags&St)!==Ue;if(!a&&!o)return r&&Ay(t,n,!1),qr(e,t,i);var l=t.stateNode;Ru.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Ug();else{Rl(t);{if(Na(!0),u=l.render(),t.mode&rn){An(!0);try{l.render()}finally{An(!1)}}Na(!1)}Co()}return t.flags|=bo,e!==null&&o?C1(e,t,u,i):ua(e,t,u,i),t.memoizedState=l.state,r&&Ay(t,n,!0),t.child}function Zg(e){var t=e.stateNode;t.pendingContext?Oy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Oy(e,t.context,!1),hv(e,t.containerInfo)}function D1(e,t,n){if(Zg(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var a=t.pendingProps,r=t.memoizedState,i=r.element;ng(e,t),oc(t,a,null,n);var o=t.memoizedState;t.stateNode;var l=o.element;if(r.isDehydrated){var u={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},f=t.updateQueue;if(f.baseState=u,t.memoizedState=u,t.flags&jr){var d=to(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return eb(e,t,l,n,d)}else if(l!==i){var g=to(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return eb(e,t,l,n,g)}else{MR(t);var y=Xy(t,null,l,n);t.child=y;for(var w=y;w;)w.flags=w.flags&~vn|Ur,w=w.sibling}}else{if(Bo(),l===i)return qr(e,t,n);ua(e,t,l,n)}return t.child}function eb(e,t,n,a,r){return Bo(),ev(r),t.flags|=jr,ua(e,t,n,a),t.child}function _1(e,t,n){og(t),e===null&&Zd(t);var a=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,l=Nd(a,r);return l?o=null:i!==null&&Nd(a,i)&&(t.flags|=Cl),Kg(e,t),ua(e,t,o,n),t.child}function k1(e,t){return e===null&&Zd(t),null}function M1(e,t,n,a){Ac(e,t);var r=t.pendingProps,i=n,o=i._payload,l=i._init,u=l(o);t.type=u;var f=t.tag=kD(u),d=er(u,r),g;switch(f){case fe:return hp(t,u),t.type=u=il(u),g=pp(null,t,u,d,a),g;case pe:return t.type=u=Wp(u),g=Jg(null,t,u,d,a),g;case De:return t.type=u=qp(u),g=qg(null,t,u,d,a),g;case et:{if(t.type!==t.elementType){var y=u.propTypes;y&&Xa(y,d,"prop",gt(u))}return g=Gg(null,t,u,er(u.type,d),a),g}}var w="";throw u!==null&&typeof u=="object"&&u.$$typeof===p&&(w=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+u+". "+("Lazy element type must resolve to a class or function."+w))}function O1(e,t,n,a,r){Ac(e,t),t.tag=pe;var i;return mr(n)?(i=!0,Ps(t)):i=!1,Yo(t,r),Bg(t,n,a),ip(t,n,a,r),mp(null,t,n,!0,i,r)}function L1(e,t,n,a){Ac(e,t);var r=t.pendingProps,i;{var o=Ho(t,n,!1);i=zo(t,o)}Yo(t,a);var l,u;Rl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var f=gt(n)||"Unknown";sp[f]||(c("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",f,f),sp[f]=!0)}t.mode&rn&&Ka.recordLegacyContextWarning(t,null),Na(!0),Ru.current=t,l=Qo(null,t,n,r,i,a),u=Ko(),Na(!1)}if(Co(),t.flags|=bo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var d=gt(n)||"Unknown";wu[d]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),wu[d]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var g=gt(n)||"Unknown";wu[g]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",g,g,g),wu[g]=!0)}t.tag=pe,t.memoizedState=null,t.updateQueue=null;var y=!1;return mr(n)?(y=!0,Ps(t)):y=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pv(t),Fg(t,l),ip(t,n,r,a),mp(null,t,n,!0,y,a)}else{if(t.tag=fe,t.mode&rn){An(!0);try{l=Qo(null,t,n,r,i,a),u=Ko()}finally{An(!1)}}return Fn()&&u&&Gd(t),ua(null,t,l,a),hp(t,n),t.child}}function hp(e,t){{if(t&&t.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=ai();a&&(n+=`
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),dp[r]||(dp[r]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var o=gt(t)||"Unknown";Du[o]||(c("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),Du[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=gt(t)||"Unknown";fp[l]||(c("%s: Function components do not support getDerivedStateFromProps.",l),fp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=gt(t)||"Unknown";cp[u]||(c("%s: Function components do not support contextType.",u),cp[u]=!0)}}}var yp={dehydrated:null,treeContext:null,retryLane:Nn};function gp(e){return{baseLanes:e,cachePool:E1(),transitions:null}}function A1(e,t){var n=null;return{baseLanes:Ke(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function N1(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return bv(e,hu)}function j1(e,t){return ds(e.childLanes,t)}function tb(e,t,n){var a=t.pendingProps;YD(t)&&(t.flags|=St);var r=Ja.current,i=!1,o=(t.flags&St)!==Ue;if(o||N1(r,e)?(i=!0,t.flags&=~St):(e===null||e.memoizedState!==null)&&(r=ZR(r,ug)),r=Wo(r),Si(t,r),e===null){Zd(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return F1(t,u)}var f=a.children,d=a.fallback;if(i){var g=U1(t,f,d,n),y=t.child;return y.memoizedState=gp(n),t.memoizedState=yp,g}else return bp(t,f)}else{var w=e.memoizedState;if(w!==null){var _=w.dehydrated;if(_!==null)return B1(e,t,o,a,_,w,n)}if(i){var A=a.fallback,ne=a.children,we=z1(e,t,ne,A,n),Ee=t.child,lt=e.child.memoizedState;return Ee.memoizedState=lt===null?gp(n):A1(lt,n),Ee.childLanes=j1(e,n),t.memoizedState=yp,we}else{var at=a.children,x=H1(e,t,at,n);return t.memoizedState=null,x}}}function bp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Sp(r,a);return i.return=e,e.child=i,i}function U1(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&it)===Me&&i!==null?(l=i,l.childLanes=F,l.pendingProps=o,e.mode&kt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=_i(n,r,a,null)):(l=Sp(o,r),u=_i(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Sp(e,t,n){return nS(e,t,F,null)}function nb(e,t){return lo(e,t)}function H1(e,t,n,a){var r=e.child,i=r.sibling,o=nb(r,{mode:"visible",children:n});if((t.mode&it)===Me&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=Ni):l.push(i)}return t.child=o,o}function z1(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&it)===Me&&t.child!==o){var d=t.child;f=d,f.childLanes=F,f.pendingProps=u,t.mode&kt&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=nb(o,u),f.subtreeFlags=o.subtreeFlags&Hr;var g;return l!==null?g=lo(l,a):(g=_i(a,i,r,null),g.flags|=vn),g.return=t,f.return=t,f.sibling=g,t.child=f,g}function Lc(e,t,n,a){a!==null&&ev(a),$o(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=bp(t,i);return o.flags|=vn,t.memoizedState=null,o}function V1(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Sp(o,i),u=_i(a,i,r,null);return u.flags|=vn,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&it)!==Me&&$o(t,e.child,null,r),u}function F1(e,t,n){return(e.mode&it)===Me?(c("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Fe):zd(t)?e.lanes=Fi:e.lanes=Ca,null}function B1(e,t,n,a,r,i,o){if(n)if(t.flags&jr){t.flags&=~jr;var x=op(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Lc(e,t,o,x)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=St,null;var N=a.children,R=a.fallback,$=V1(e,t,N,R,o),ce=t.child;return ce.memoizedState=gp(o),t.memoizedState=yp,$}else{if(_R(),(t.mode&it)===Me)return Lc(e,t,o,null);if(zd(r)){var l,u,f;{var d=Ix(r);l=d.digest,u=d.message,f=d.stack}var g;u?g=new Error(u):g=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var y=op(g,l,f);return Lc(e,t,o,y)}var w=xa(o,e.childLanes);if(tr||w){var _=Pc();if(_!==null){var A=KT(_,o);if(A!==Nn&&A!==i.retryLane){i.retryLane=A;var ne=Pt;ya(e,A),Dn(_,e,A,ne)}}Bp();var we=op(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return Lc(e,t,o,we)}else if(Ry(r)){t.flags|=St,t.child=e.child;var Ee=dD.bind(null,e);return Wx(r,Ee),null}else{OR(t,r,i.treeContext);var lt=a.children,at=bp(t,lt);return at.flags|=Ur,at}}}function ab(e,t,n){e.lanes=Ke(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=Ke(a.lanes,t)),cv(e.return,t,n)}function $1(e,t,n){for(var a=t;a!==null;){if(a.tag===O){var r=a.memoizedState;r!==null&&ab(a,n,e)}else if(a.tag===At)ab(a,n,e);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function P1(e){for(var t=e,n=null;t!==null;){var a=t.alternate;a!==null&&cc(a)===null&&(n=t),t=t.sibling}return n}function Y1(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!vp[e])if(vp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function I1(e,t){e!==void 0&&!Oc[e]&&(e!=="collapsed"&&e!=="hidden"?(Oc[e]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Oc[e]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function rb(e,t){{var n=nt(e),a=!n&&typeof be(e)=="function";if(n||a){var r=n?"array":"iterable";return c("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",r,t,r),!1}}return!0}function W1(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(nt(e)){for(var n=0;n<e.length;n++)if(!rb(e[n],n))return}else{var a=be(e);if(typeof a=="function"){var r=a.call(e);if(r)for(var i=r.next(),o=0;!i.done;i=r.next()){if(!rb(i.value,o))return;o++}}else c('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function Tp(e,t,n,a,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function ib(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;Y1(r),I1(i,r),W1(o,r),ua(e,t,o,n);var l=Ja.current,u=bv(l,hu);if(u)l=Sv(l,hu),t.flags|=St;else{var f=e!==null&&(e.flags&St)!==Ue;f&&$1(t,t.child,n),l=Wo(l)}if(Si(t,l),(t.mode&it)===Me)t.memoizedState=null;else switch(r){case"forwards":{var d=P1(t.child),g;d===null?(g=t.child,t.child=null):(g=d.sibling,d.sibling=null),Tp(t,!1,g,d,i);break}case"backwards":{var y=null,w=t.child;for(t.child=null;w!==null;){var _=w.alternate;if(_!==null&&cc(_)===null){t.child=w;break}var A=w.sibling;w.sibling=y,y=w,w=A}Tp(t,!0,y,null,i);break}case"together":{Tp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function q1(e,t,n){hv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=$o(t,null,a,n):ua(e,t,a,n),t.child}var ob=!1;function G1(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||ob||(ob=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Xa(u,i,"prop","Context.Provider")}if(Jy(t,r,l),o!==null){var f=o.value;if(Da(f,l)){if(o.children===i.children&&!Bs())return qr(e,t,n)}else YR(t,r,n)}var d=i.children;return ua(e,t,d,n),t.child}var lb=!1;function X1(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(lb||(lb=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):a=a._context;var r=t.pendingProps,i=r.children;typeof i!="function"&&c("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Yo(t,n);var o=pn(a);Rl(t);var l;return Ru.current=t,Na(!0),l=i(o),Na(!1),Co(),t.flags|=bo,ua(e,t,l,n),t.child}function _u(){tr=!0}function Ac(e,t){(t.mode&it)===Me&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=vn)}function qr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Ug(),Fu(t.lanes),xa(n,t.childLanes)?($R(e,t),t.child):null}function Q1(e,t,n){{var a=t.return;if(a===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===a.child)a.child=n;else{var r=a.child;if(r===null)throw new Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw new Error("Expected to find the previous sibling.");r.sibling=n}var i=a.deletions;return i===null?(a.deletions=[e],a.flags|=Ni):i.push(e),n.flags|=vn,n}}function Ep(e,t){var n=e.lanes;return!!xa(n,t)}function K1(e,t,n){switch(t.tag){case ae:Zg(t),t.stateNode,Bo();break;case re:og(t);break;case pe:{var a=t.type;mr(a)&&Ps(t);break}case Ae:hv(t,t.stateNode.containerInfo);break;case Ve:{var r=t.memoizedProps.value,i=t.type._context;Jy(t,i,r);break}case Ze:{var o=xa(n,t.childLanes);o&&(t.flags|=bt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case O:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return Si(t,Wo(Ja.current)),t.flags|=St,null;var f=t.child,d=f.childLanes;if(xa(n,d))return tb(e,t,n);Si(t,Wo(Ja.current));var g=qr(e,t,n);return g!==null?g.sibling:null}else Si(t,Wo(Ja.current));break}case At:{var y=(e.flags&St)!==Ue,w=xa(n,t.childLanes);if(y){if(w)return ib(e,t,n);t.flags|=St}var _=t.memoizedState;if(_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),Si(t,Ja.current),w)break;return null}case q:case Xe:return t.lanes=F,Qg(e,t,n)}return qr(e,t,n)}function ub(e,t,n){if(t._debugNeedsRemount&&e!==null)return Q1(e,t,Jp(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var a=e.memoizedProps,r=t.pendingProps;if(a!==r||Bs()||t.type!==e.type)tr=!0;else{var i=Ep(e,n);if(!i&&(t.flags&St)===Ue)return tr=!1,K1(e,t,n);(e.flags&Df)!==Ue?tr=!0:tr=!1}}else if(tr=!1,Fn()&&ER(t)){var o=t.index,l=CR();Uy(t,l,o)}switch(t.lanes=F,t.tag){case ut:return L1(e,t,t.type,n);case It:{var u=t.elementType;return M1(e,t,u,n)}case fe:{var f=t.type,d=t.pendingProps,g=t.elementType===f?d:er(f,d);return pp(e,t,f,g,n)}case pe:{var y=t.type,w=t.pendingProps,_=t.elementType===y?w:er(y,w);return Jg(e,t,y,_,n)}case ae:return D1(e,t,n);case re:return _1(e,t,n);case me:return k1(e,t);case O:return tb(e,t,n);case Ae:return q1(e,t,n);case De:{var A=t.type,ne=t.pendingProps,we=t.elementType===A?ne:er(A,ne);return qg(e,t,A,we,n)}case ie:return x1(e,t,n);case Yt:return R1(e,t,n);case Ze:return w1(e,t,n);case Ve:return G1(e,t,n);case ft:return X1(e,t,n);case et:{var Ee=t.type,lt=t.pendingProps,at=er(Ee,lt);if(t.type!==t.elementType){var x=Ee.propTypes;x&&Xa(x,at,"prop",gt(Ee))}return at=er(Ee.type,at),Gg(e,t,Ee,at,n)}case P:return Xg(e,t,t.type,t.pendingProps,n);case Ie:{var N=t.type,R=t.pendingProps,$=t.elementType===N?R:er(N,R);return O1(e,t,N,$,n)}case At:return ib(e,t,n);case Ce:break;case q:return Qg(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jo(e){e.flags|=bt}function sb(e){e.flags|=ji,e.flags|=_f}var cb,Cp,fb,db;cb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===re||r.tag===me)bx(e,r.stateNode);else if(r.tag!==Ae){if(r.child!==null){r.child.return=r,r=r.child;continue}}if(r===t)return;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Cp=function(e,t){},fb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=yv(),u=Tx(o,n,i,a,r,l);t.updateQueue=u,u&&Jo(t)}},db=function(e,t,n,a){n!==a&&Jo(t)};function ku(e,t){if(!Fn())switch(e.tailMode){case"hidden":{for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break}case"collapsed":{for(var r=e.tail,i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:i.sibling=null;break}}}function $n(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=F,a=Ue;if(t){if((e.mode&kt)!==Me){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=Ke(n,Ke(f.lanes,f.childLanes)),a|=f.subtreeFlags&Hr,a|=f.flags&Hr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var d=e.child;d!==null;)n=Ke(n,Ke(d.lanes,d.childLanes)),a|=d.subtreeFlags&Hr,a|=d.flags&Hr,d.return=e,d=d.sibling;e.subtreeFlags|=a}else{if((e.mode&kt)!==Me){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=Ke(n,Ke(o.lanes,o.childLanes)),a|=o.subtreeFlags,a|=o.flags,r+=o.actualDuration,i+=o.treeBaseDuration,o=o.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(var l=e.child;l!==null;)n=Ke(n,Ke(l.lanes,l.childLanes)),a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;e.subtreeFlags|=a}return e.childLanes=n,t}function J1(e,t,n){if(UR()&&(t.mode&it)!==Me&&(t.flags&St)===Ue)return Py(t),Bo(),t.flags|=jr|is|la,!1;var a=Gs(t);if(n!==null&&n.dehydrated!==null)if(e===null){if(!a)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(NR(t),$n(t),(t.mode&kt)!==Me){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Bo(),(t.flags&St)===Ue&&(t.memoizedState=null),t.flags|=bt,$n(t),(t.mode&kt)!==Me){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Yy(),!0}function vb(e,t,n){var a=t.pendingProps;switch(Xd(t),t.tag){case ut:case It:case P:case fe:case De:case ie:case Yt:case Ze:case ft:case et:return $n(t),null;case pe:{var r=t.type;return mr(r)&&$s(t),$n(t),null}case ae:{var i=t.stateNode;if(Io(t),Id(t),Ev(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=Gs(t);if(o)Jo(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&jr)!==Ue)&&(t.flags|=So,Yy())}}return Cp(e,t),$n(t),null}case re:{gv(t);var u=ig(),f=t.type;if(e!==null&&t.stateNode!=null)fb(e,t,f,a,u),e.ref!==t.ref&&sb(t);else{if(!a){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return $n(t),null}var d=yv(),g=Gs(t);if(g)LR(t,u,d)&&Jo(t);else{var y=gx(f,a,u,d,t);cb(y,t,!1,!1),t.stateNode=y,Sx(y,f,a,u)&&Jo(t)}t.ref!==null&&sb(t)}return $n(t),null}case me:{var w=a;if(e&&t.stateNode!=null){var _=e.memoizedProps;db(e,t,_,w)}else{if(typeof w!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var A=ig(),ne=yv(),we=Gs(t);we?AR(t)&&Jo(t):t.stateNode=Ex(w,A,ne,t)}return $n(t),null}case O:{qo(t);var Ee=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var lt=J1(e,t,Ee);if(!lt)return t.flags&la?t:null}if((t.flags&St)!==Ue)return t.lanes=n,(t.mode&kt)!==Me&&qv(t),t;var at=Ee!==null,x=e!==null&&e.memoizedState!==null;if(at!==x&&at){var N=t.child;if(N.flags|=Ui,(t.mode&it)!==Me){var R=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);R||bv(Ja.current,ug)?Zw():Bp()}}var $=t.updateQueue;if($!==null&&(t.flags|=bt),$n(t),(t.mode&kt)!==Me&&at){var ce=t.child;ce!==null&&(t.treeBaseDuration-=ce.treeBaseDuration)}return null}case Ae:return Io(t),Cp(e,t),e===null&&mR(t.stateNode.containerInfo),$n(t),null;case Ve:var oe=t.type._context;return sv(oe,t),$n(t),null;case Ie:{var ze=t.type;return mr(ze)&&$s(t),$n(t),null}case At:{qo(t);var Ye=t.memoizedState;if(Ye===null)return $n(t),null;var Ot=(t.flags&St)!==Ue,pt=Ye.rendering;if(pt===null)if(Ot)ku(Ye,!1);else{var sn=tD()&&(e===null||(e.flags&St)===Ue);if(!sn)for(var mt=t.child;mt!==null;){var on=cc(mt);if(on!==null){Ot=!0,t.flags|=St,ku(Ye,!1);var Zn=on.updateQueue;return Zn!==null&&(t.updateQueue=Zn,t.flags|=bt),t.subtreeFlags=Ue,PR(t,n),Si(t,Sv(Ja.current,hu)),t.child}mt=mt.sibling}Ye.tail!==null&&Ln()>Nb()&&(t.flags|=St,Ot=!0,ku(Ye,!1),t.lanes=dh)}else{if(!Ot){var qn=cc(pt);if(qn!==null){t.flags|=St,Ot=!0;var Ma=qn.updateQueue;if(Ma!==null&&(t.updateQueue=Ma,t.flags|=bt),ku(Ye,!0),Ye.tail===null&&Ye.tailMode==="hidden"&&!pt.alternate&&!Fn())return $n(t),null}else Ln()*2-Ye.renderingStartTime>Nb()&&n!==Ca&&(t.flags|=St,Ot=!0,ku(Ye,!1),t.lanes=dh)}if(Ye.isBackwards)pt.sibling=t.child,t.child=pt;else{var fa=Ye.last;fa!==null?fa.sibling=pt:t.child=pt,Ye.last=pt}}if(Ye.tail!==null){var da=Ye.tail;Ye.rendering=da,Ye.tail=da.sibling,Ye.renderingStartTime=Ln(),da.sibling=null;var ea=Ja.current;return Ot?ea=Sv(ea,hu):ea=Wo(ea),Si(t,ea),da}return $n(t),null}case Ce:break;case q:case Xe:{Fp(t);var Jr=t.memoizedState,ol=Jr!==null;if(e!==null){var Iu=e.memoizedState,Cr=Iu!==null;Cr!==ol&&!Wt&&(t.flags|=Ui)}return!ol||(t.mode&it)===Me?$n(t):xa(Er,Ca)&&($n(t),t.subtreeFlags&(vn|bt)&&(t.flags|=Ui)),null}case te:return null;case de:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Z1(e,t,n){switch(Xd(t),t.tag){case pe:{var a=t.type;mr(a)&&$s(t);var r=t.flags;return r&la?(t.flags=r&~la|St,(t.mode&kt)!==Me&&qv(t),t):null}case ae:{t.stateNode,Io(t),Id(t),Ev();var i=t.flags;return(i&la)!==Ue&&(i&St)===Ue?(t.flags=i&~la|St,t):null}case re:return gv(t),null;case O:{qo(t);var o=t.memoizedState;if(o!==null&&o.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Bo()}var l=t.flags;return l&la?(t.flags=l&~la|St,(t.mode&kt)!==Me&&qv(t),t):null}case At:return qo(t),null;case Ae:return Io(t),null;case Ve:var u=t.type._context;return sv(u,t),null;case q:case Xe:return Fp(t),null;case te:return null;default:return null}}function pb(e,t,n){switch(Xd(t),t.tag){case pe:{var a=t.type.childContextTypes;a!=null&&$s(t);break}case ae:{t.stateNode,Io(t),Id(t),Ev();break}case re:{gv(t);break}case Ae:Io(t);break;case O:qo(t);break;case At:qo(t);break;case Ve:var r=t.type._context;sv(r,t);break;case q:case Xe:Fp(t);break}}var mb=null;mb=new Set;var Nc=!1,Pn=!1,ew=typeof WeakSet=="function"?WeakSet:Set,ye=null,Zo=null,el=null;function tw(e){xf(null,function(){throw e}),Rf()}var nw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&kt)try{Sr(),t.componentWillUnmount()}finally{br(e)}else t.componentWillUnmount()};function hb(e,t){try{Ci(Tn,e)}catch(n){zt(e,t,n)}}function xp(e,t,n){try{nw(e,n)}catch(a){zt(e,t,a)}}function aw(e,t,n){try{n.componentDidMount()}catch(a){zt(e,t,a)}}function yb(e,t){try{bb(e)}catch(n){zt(e,t,n)}}function tl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Ut&&Ct&&e.mode&kt)try{Sr(),a=n(null)}finally{br(e)}else a=n(null)}catch(r){zt(e,t,r)}typeof a=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ge(e))}else n.current=null}function jc(e,t,n){try{n()}catch(a){zt(e,t,a)}}var gb=!1;function rw(e,t){hx(e.containerInfo),ye=t,iw();var n=gb;return gb=!1,n}function iw(){for(;ye!==null;){var e=ye,t=e.child;(e.subtreeFlags&Of)!==Ue&&t!==null?(t.return=e,ye=t):ow()}}function ow(){for(;ye!==null;){var e=ye;Kt(e);try{lw(e)}catch(n){zt(e,e.return,n)}On();var t=e.sibling;if(t!==null){t.return=e.return,ye=t;return}ye=e.return}}function lw(e){var t=e.alternate,n=e.flags;if((n&So)!==Ue){switch(Kt(e),e.tag){case fe:case De:case P:break;case pe:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!no&&(i.props!==e.memoizedProps&&c("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ge(e)||"instance"),i.state!==e.memoizedState&&c("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ge(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:er(e.type,a),r);{var l=mb;o===void 0&&!l.has(e.type)&&(l.add(e.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ge(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case ae:{{var u=e.stateNode;Bx(u.containerInfo)}break}case re:case me:case Ae:case Ie:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}On()}}function nr(e,t,n){var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var i=r.next,o=i;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&((e&Bn)!==ga?ET(t):(e&Tn)!==ga&&lh(t),(e&hr)!==ga&&$u(!0),jc(t,n,l),(e&hr)!==ga&&$u(!1),(e&Bn)!==ga?CT():(e&Tn)!==ga&&uh())}o=o.next}while(o!==i)}}function Ci(e,t){var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next,i=r;do{if((i.tag&e)===e){(e&Bn)!==ga?ST(t):(e&Tn)!==ga&&xT(t);var o=i.create;(e&hr)!==ga&&$u(!0),i.destroy=o(),(e&hr)!==ga&&$u(!1),(e&Bn)!==ga?TT():(e&Tn)!==ga&&RT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&Tn)!==Ue?u="useLayoutEffect":(i.tag&hr)!==Ue?u="useInsertionEffect":u="useEffect";var f=void 0;l===null?f=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?f=`
It looks like you wrote `+u+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+u+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:f=" You returned: "+l,c("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function uw(e,t){if((t.flags&bt)!==Ue)switch(t.tag){case Ze:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Ng(),l=t.alternate===null?"mount":"update";Ag()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case ae:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case Ze:var d=u.stateNode;d.passiveEffectDuration+=n;break e}u=u.return}break}}}function sw(e,t,n,a){if((n.flags&xl)!==Ue)switch(n.tag){case fe:case De:case P:{if(!Pn)if(n.mode&kt)try{Sr(),Ci(Tn|Sn,n)}finally{br(n)}else Ci(Tn|Sn,n);break}case pe:{var r=n.stateNode;if(n.flags&bt&&!Pn)if(t===null)if(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ge(n)||"instance")),n.mode&kt)try{Sr(),r.componentDidMount()}finally{br(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:er(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ge(n)||"instance")),n.mode&kt)try{Sr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{br(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ge(n)||"instance")),rg(n,l,r));break}case ae:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case re:f=n.child.stateNode;break;case pe:f=n.child.stateNode;break}rg(n,u,f)}break}case re:{var d=n.stateNode;if(t===null&&n.flags&bt){var g=n.type,y=n.memoizedProps;Dx(d,g,y)}break}case me:break;case Ae:break;case Ze:{{var w=n.memoizedProps,_=w.onCommit,A=w.onRender,ne=n.stateNode.effectDuration,we=Ng(),Ee=t===null?"mount":"update";Ag()&&(Ee="nested-update"),typeof A=="function"&&A(n.memoizedProps.id,Ee,n.actualDuration,n.treeBaseDuration,n.actualStartTime,we);{typeof _=="function"&&_(n.memoizedProps.id,Ee,ne,we),oD(n);var lt=n.return;e:for(;lt!==null;){switch(lt.tag){case ae:var at=lt.stateNode;at.effectDuration+=ne;break e;case Ze:var x=lt.stateNode;x.effectDuration+=ne;break e}lt=lt.return}}}break}case O:{yw(e,n);break}case At:case Ie:case Ce:case q:case Xe:case de:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Pn||n.flags&ji&&bb(n)}function cw(e){switch(e.tag){case fe:case De:case P:{if(e.mode&kt)try{Sr(),hb(e,e.return)}finally{br(e)}else hb(e,e.return);break}case pe:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aw(e,e.return,t),yb(e,e.return);break}case re:{yb(e,e.return);break}}}function fw(e,t){for(var n=null,a=e;;){if(a.tag===re){if(n===null){n=a;try{var r=a.stateNode;t?Hx(r):Vx(a.stateNode,a.memoizedProps)}catch(o){zt(e,e.return,o)}}}else if(a.tag===me){if(n===null)try{var i=a.stateNode;t?zx(i):Fx(i,a.memoizedProps)}catch(o){zt(e,e.return,o)}}else if(!((a.tag===q||a.tag===Xe)&&a.memoizedState!==null&&a!==e)){if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;n===a&&(n=null),a=a.return}n===a&&(n=null),a.sibling.return=a.return,a=a.sibling}}function bb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case re:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&kt)try{Sr(),r=t(a)}finally{br(e)}else r=t(a);typeof r=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ge(e))}else t.hasOwnProperty("current")||c("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ge(e)),t.current=a}}function dw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function Sb(e){var t=e.alternate;t!==null&&(e.alternate=null,Sb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===re){var n=e.stateNode;n!==null&&gR(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function vw(e){for(var t=e.return;t!==null;){if(Tb(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function Tb(e){return e.tag===re||e.tag===ae||e.tag===Ae}function Eb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Tb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==re&&t.tag!==me&&t.tag!==Rt;){if(t.flags&vn||t.child===null||t.tag===Ae)continue e;t.child.return=t,t=t.child}if(!(t.flags&vn))return t.stateNode}}function pw(e){var t=vw(e);switch(t.tag){case re:{var n=t.stateNode;t.flags&Cl&&(xy(n),t.flags&=~Cl);var a=Eb(e);wp(e,a,n);break}case ae:case Ae:{var r=t.stateNode.containerInfo,i=Eb(e);Rp(e,i,r);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Rp(e,t,n){var a=e.tag,r=a===re||a===me;if(r){var i=e.stateNode;t?Ax(n,i,t):Ox(n,i)}else if(a!==Ae){var o=e.child;if(o!==null){Rp(o,t,n);for(var l=o.sibling;l!==null;)Rp(l,t,n),l=l.sibling}}}function wp(e,t,n){var a=e.tag,r=a===re||a===me;if(r){var i=e.stateNode;t?Lx(n,i,t):Mx(n,i)}else if(a!==Ae){var o=e.child;if(o!==null){wp(o,t,n);for(var l=o.sibling;l!==null;)wp(l,t,n),l=l.sibling}}}var Yn=null,ar=!1;function mw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case re:{Yn=a.stateNode,ar=!1;break e}case ae:{Yn=a.stateNode.containerInfo,ar=!0;break e}case Ae:{Yn=a.stateNode.containerInfo,ar=!0;break e}}a=a.return}if(Yn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Cb(e,t,n),Yn=null,ar=!1}dw(n)}function xi(e,t,n){for(var a=n.child;a!==null;)Cb(e,t,a),a=a.sibling}function Cb(e,t,n){switch(hT(n),n.tag){case re:Pn||tl(n,t);case me:{{var a=Yn,r=ar;Yn=null,xi(e,t,n),Yn=a,ar=r,Yn!==null&&(ar?jx(Yn,n.stateNode):Nx(Yn,n.stateNode))}return}case Rt:{Yn!==null&&(ar?Ux(Yn,n.stateNode):Hd(Yn,n.stateNode));return}case Ae:{{var i=Yn,o=ar;Yn=n.stateNode.containerInfo,ar=!0,xi(e,t,n),Yn=i,ar=o}return}case fe:case De:case et:case P:{if(!Pn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,d=f;do{var g=d,y=g.destroy,w=g.tag;y!==void 0&&((w&hr)!==ga?jc(n,t,y):(w&Tn)!==ga&&(lh(n),n.mode&kt?(Sr(),jc(n,t,y),br(n)):jc(n,t,y),uh())),d=d.next}while(d!==f)}}}xi(e,t,n);return}case pe:{if(!Pn){tl(n,t);var _=n.stateNode;typeof _.componentWillUnmount=="function"&&xp(n,t,_)}xi(e,t,n);return}case Ce:{xi(e,t,n);return}case q:{if(n.mode&it){var A=Pn;Pn=A||n.memoizedState!==null,xi(e,t,n),Pn=A}else xi(e,t,n);break}default:{xi(e,t,n);return}}}function hw(e){e.memoizedState}function yw(e,t){var n=t.memoizedState;if(n===null){var a=t.alternate;if(a!==null){var r=a.memoizedState;if(r!==null){var i=r.dehydrated;i!==null&&tR(i)}}}}function xb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ew),t.forEach(function(a){var r=vD.bind(null,e,a);if(!n.has(a)){if(n.add(a),qa)if(Zo!==null&&el!==null)Bu(el,Zo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function gw(e,t,n){Zo=n,el=e,Kt(t),Rb(t,e),Kt(t),Zo=null,el=null}function rr(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{mw(e,t,i)}catch(u){zt(i,t,u)}}var o=Gu();if(t.subtreeFlags&Lf)for(var l=t.child;l!==null;)Kt(l),Rb(l,e),l=l.sibling;Kt(o)}function Rb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case fe:case De:case et:case P:{if(rr(t,e),Tr(e),r&bt){try{nr(hr|Sn,e,e.return),Ci(hr|Sn,e)}catch(ze){zt(e,e.return,ze)}if(e.mode&kt){try{Sr(),nr(Tn|Sn,e,e.return)}catch(ze){zt(e,e.return,ze)}br(e)}else try{nr(Tn|Sn,e,e.return)}catch(ze){zt(e,e.return,ze)}}return}case pe:{rr(t,e),Tr(e),r&ji&&a!==null&&tl(a,a.return);return}case re:{rr(t,e),Tr(e),r&ji&&a!==null&&tl(a,a.return);{if(e.flags&Cl){var i=e.stateNode;try{xy(i)}catch(ze){zt(e,e.return,ze)}}if(r&bt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,f=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{_x(o,d,f,u,l,e)}catch(ze){zt(e,e.return,ze)}}}}return}case me:{if(rr(t,e),Tr(e),r&bt){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var g=e.stateNode,y=e.memoizedProps,w=a!==null?a.memoizedProps:y;try{kx(g,w,y)}catch(ze){zt(e,e.return,ze)}}return}case ae:{if(rr(t,e),Tr(e),r&bt&&a!==null){var _=a.memoizedState;if(_.isDehydrated)try{eR(t.containerInfo)}catch(ze){zt(e,e.return,ze)}}return}case Ae:{rr(t,e),Tr(e);return}case O:{rr(t,e),Tr(e);var A=e.child;if(A.flags&Ui){var ne=A.stateNode,we=A.memoizedState,Ee=we!==null;if(ne.isHidden=Ee,Ee){var lt=A.alternate!==null&&A.alternate.memoizedState!==null;lt||Jw()}}if(r&bt){try{hw(e)}catch(ze){zt(e,e.return,ze)}xb(e)}return}case q:{var at=a!==null&&a.memoizedState!==null;if(e.mode&it){var x=Pn;Pn=x||at,rr(t,e),Pn=x}else rr(t,e);if(Tr(e),r&Ui){var N=e.stateNode,R=e.memoizedState,$=R!==null,ce=e;if(N.isHidden=$,$&&!at&&(ce.mode&it)!==Me){ye=ce;for(var oe=ce.child;oe!==null;)ye=oe,Sw(oe),oe=oe.sibling}fw(ce,$)}return}case At:{rr(t,e),Tr(e),r&bt&&xb(e);return}case Ce:return;default:{rr(t,e),Tr(e);return}}}function Tr(e){var t=e.flags;if(t&vn){try{pw(e)}catch(n){zt(e,e.return,n)}e.flags&=~vn}t&Ur&&(e.flags&=~Ur)}function bw(e,t,n){Zo=n,el=t,ye=e,wb(e,t,n),Zo=null,el=null}function wb(e,t,n){for(var a=(e.mode&it)!==Me;ye!==null;){var r=ye,i=r.child;if(r.tag===q&&a){var o=r.memoizedState!==null,l=o||Nc;if(l){Dp(e,t,n);continue}else{var u=r.alternate,f=u!==null&&u.memoizedState!==null,d=f||Pn,g=Nc,y=Pn;Nc=l,Pn=d,Pn&&!y&&(ye=r,Tw(r));for(var w=i;w!==null;)ye=w,wb(w,t,n),w=w.sibling;ye=r,Nc=g,Pn=y,Dp(e,t,n);continue}}(r.subtreeFlags&xl)!==Ue&&i!==null?(i.return=r,ye=i):Dp(e,t,n)}}function Dp(e,t,n){for(;ye!==null;){var a=ye;if((a.flags&xl)!==Ue){var r=a.alternate;Kt(a);try{sw(t,r,a,n)}catch(o){zt(a,a.return,o)}On()}if(a===e){ye=null;return}var i=a.sibling;if(i!==null){i.return=a.return,ye=i;return}ye=a.return}}function Sw(e){for(;ye!==null;){var t=ye,n=t.child;switch(t.tag){case fe:case De:case et:case P:{if(t.mode&kt)try{Sr(),nr(Tn,t,t.return)}finally{br(t)}else nr(Tn,t,t.return);break}case pe:{tl(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&xp(t,t.return,a);break}case re:{tl(t,t.return);break}case q:{var r=t.memoizedState!==null;if(r){Db(e);continue}break}}n!==null?(n.return=t,ye=n):Db(e)}}function Db(e){for(;ye!==null;){var t=ye;if(t===e){ye=null;return}var n=t.sibling;if(n!==null){n.return=t.return,ye=n;return}ye=t.return}}function Tw(e){for(;ye!==null;){var t=ye,n=t.child;if(t.tag===q){var a=t.memoizedState!==null;if(a){_b(e);continue}}n!==null?(n.return=t,ye=n):_b(e)}}function _b(e){for(;ye!==null;){var t=ye;Kt(t);try{cw(t)}catch(a){zt(t,t.return,a)}if(On(),t===e){ye=null;return}var n=t.sibling;if(n!==null){n.return=t.return,ye=n;return}ye=t.return}}function Ew(e,t,n,a){ye=t,Cw(t,e,n,a)}function Cw(e,t,n,a){for(;ye!==null;){var r=ye,i=r.child;(r.subtreeFlags&To)!==Ue&&i!==null?(i.return=r,ye=i):xw(e,t,n,a)}}function xw(e,t,n,a){for(;ye!==null;){var r=ye;if((r.flags&ii)!==Ue){Kt(r);try{Rw(t,r,n,a)}catch(o){zt(r,r.return,o)}On()}if(r===e){ye=null;return}var i=r.sibling;if(i!==null){i.return=r.return,ye=i;return}ye=r.return}}function Rw(e,t,n,a){switch(t.tag){case fe:case De:case P:{if(t.mode&kt){Wv();try{Ci(Bn|Sn,t)}finally{Iv(t)}}else Ci(Bn|Sn,t);break}}}function ww(e){ye=e,Dw()}function Dw(){for(;ye!==null;){var e=ye,t=e.child;if((ye.flags&Ni)!==Ue){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];ye=r,Mw(r,e)}{var i=e.alternate;if(i!==null){var o=i.child;if(o!==null){i.child=null;do{var l=o.sibling;o.sibling=null,o=l}while(o!==null)}}}ye=e}}(e.subtreeFlags&To)!==Ue&&t!==null?(t.return=e,ye=t):_w()}}function _w(){for(;ye!==null;){var e=ye;(e.flags&ii)!==Ue&&(Kt(e),kw(e),On());var t=e.sibling;if(t!==null){t.return=e.return,ye=t;return}ye=e.return}}function kw(e){switch(e.tag){case fe:case De:case P:{e.mode&kt?(Wv(),nr(Bn|Sn,e,e.return),Iv(e)):nr(Bn|Sn,e,e.return);break}}}function Mw(e,t){for(;ye!==null;){var n=ye;Kt(n),Lw(n,t),On();var a=n.child;a!==null?(a.return=n,ye=a):Ow(e)}}function Ow(e){for(;ye!==null;){var t=ye,n=t.sibling,a=t.return;if(Sb(t),t===e){ye=null;return}if(n!==null){n.return=a,ye=n;return}ye=a}}function Lw(e,t){switch(e.tag){case fe:case De:case P:{e.mode&kt?(Wv(),nr(Bn,e,t),Iv(e)):nr(Bn,e,t);break}}}function Aw(e){switch(e.tag){case fe:case De:case P:{try{Ci(Tn|Sn,e)}catch(n){zt(e,e.return,n)}break}case pe:{var t=e.stateNode;try{t.componentDidMount()}catch(n){zt(e,e.return,n)}break}}}function Nw(e){switch(e.tag){case fe:case De:case P:{try{Ci(Bn|Sn,e)}catch(t){zt(e,e.return,t)}break}}}function jw(e){switch(e.tag){case fe:case De:case P:{try{nr(Tn|Sn,e,e.return)}catch(n){zt(e,e.return,n)}break}case pe:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&xp(e,e.return,t);break}}}function Uw(e){switch(e.tag){case fe:case De:case P:try{nr(Bn|Sn,e,e.return)}catch(t){zt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Mu=Symbol.for;Mu("selector.component"),Mu("selector.has_pseudo_class"),Mu("selector.role"),Mu("selector.test_id"),Mu("selector.text")}var Hw=[];function zw(){Hw.forEach(function(e){return e()})}var Vw=ee.ReactCurrentActQueue;function Fw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function kb(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Vw.current!==null&&c("The current testing environment is not configured to support act(...)"),e}}var Bw=Math.ceil,_p=ee.ReactCurrentDispatcher,kp=ee.ReactCurrentOwner,In=ee.ReactCurrentBatchConfig,ir=ee.ReactCurrentActQueue,xn=0,Mb=1,Wn=2,Fa=4,Gr=0,Ou=1,ao=2,Uc=3,Lu=4,Ob=5,Mp=6,ot=xn,sa=null,en=null,Rn=F,Er=F,Op=pi(F),wn=Gr,Au=null,Hc=F,Nu=F,zc=F,ju=null,ba=null,Lp=0,Lb=500,Ab=1/0,$w=500,Xr=null;function Uu(){Ab=Ln()+$w}function Nb(){return Ab}var Vc=!1,Ap=null,nl=null,ro=!1,Ri=null,Hu=F,Np=[],jp=null,Pw=50,zu=0,Up=null,Hp=!1,Fc=!1,Yw=50,al=0,Bc=null,Vu=Pt,$c=F,jb=!1;function Pc(){return sa}function ca(){return(ot&(Wn|Fa))!==xn?Ln():(Vu!==Pt||(Vu=Ln()),Vu)}function wi(e){var t=e.mode;if((t&it)===Me)return Fe;if((ot&Wn)!==xn&&Rn!==F)return Ol(Rn);var n=VR()!==zR;if(n){if(In.transition!==null){var a=In.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return $c===Nn&&($c=hh()),$c}var r=Ga();if(r!==Nn)return r;var i=Cx();return i}function Iw(e){var t=e.mode;return(t&it)===Me?Fe:qT()}function Dn(e,t,n,a){mD(),jb&&c("useInsertionEffect must not schedule updates."),Hp&&(Fc=!0),Ll(e,n,a),(ot&Wn)!==F&&e===sa?gD(t):(qa&&bh(e,t,n),bD(t),e===sa&&((ot&Wn)===xn&&(Nu=Ke(Nu,n)),wn===Lu&&Di(e,Rn)),Sa(e,a),n===Fe&&ot===xn&&(t.mode&it)===Me&&!ir.isBatchingLegacy&&(Uu(),jy()))}function Ww(e,t,n){var a=e.current;a.lanes=t,Ll(e,t,n),Sa(e,n)}function qw(e){return(ot&Wn)!==xn}function Sa(e,t){var n=e.callbackNode;BT(e,t);var a=cs(e,e===sa?Rn:F);if(a===F){n!==null&&Kb(n),e.callbackNode=null,e.callbackPriority=Nn;return}var r=$i(a),i=e.callbackPriority;if(i===r&&!(ir.current!==null&&n!==Yp)){n==null&&i!==Fe&&c("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&Kb(n);var o;if(r===Fe)e.tag===mi?(ir.isBatchingLegacy!==null&&(ir.didScheduleLegacyUpdate=!0),TR(zb.bind(null,e))):Ny(zb.bind(null,e)),ir.current!==null?ir.current.push(hi):Rx(function(){(ot&(Wn|Fa))===xn&&hi()}),o=null;else{var l;switch(Eh(a)){case Ra:l=os;break;case Vr:l=Af;break;case Fr:l=Vi;break;case vs:l=Nf;break;default:l=Vi;break}o=Ip(l,Ub.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Ub(e,t){if(f1(),Vu=Pt,$c=F,(ot&(Wn|Fa))!==xn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Kr();if(a&&e.callbackNode!==n)return null;var r=cs(e,e===sa?Rn:F);if(r===F)return null;var i=!fs(e,r)&&!WT(e,r)&&!t,o=i?aD(e,r):Ic(e,r);if(o!==Gr){if(o===ao){var l=nd(e);l!==F&&(r=l,o=zp(e,l))}if(o===Ou){var u=Au;throw io(e,F),Di(e,r),Sa(e,Ln()),u}if(o===Mp)Di(e,r);else{var f=!fs(e,r),d=e.current.alternate;if(f&&!Xw(d)){if(o=Ic(e,r),o===ao){var g=nd(e);g!==F&&(r=g,o=zp(e,g))}if(o===Ou){var y=Au;throw io(e,F),Di(e,r),Sa(e,Ln()),y}}e.finishedWork=d,e.finishedLanes=r,Gw(e,o,r)}}return Sa(e,Ln()),e.callbackNode===n?Ub.bind(null,e):null}function zp(e,t){var n=ju;if(ps(e)){var a=io(e,t);a.flags|=jr,pR(e.containerInfo)}var r=Ic(e,t);if(r!==ao){var i=ba;ba=n,i!==null&&Hb(i)}return r}function Hb(e){ba===null?ba=e:ba.push.apply(ba,e)}function Gw(e,t,n){switch(t){case Gr:case Ou:throw new Error("Root did not complete. This is a bug in React.");case ao:{oo(e,ba,Xr);break}case Uc:{if(Di(e,n),ph(n)&&!Jb()){var a=Lp+Lb-Ln();if(a>10){var r=cs(e,F);if(r!==F)break;var i=e.suspendedLanes;if(!Do(i,n)){ca(),gh(e,i);break}e.timeoutHandle=jd(oo.bind(null,e,ba,Xr),a);break}}oo(e,ba,Xr);break}case Lu:{if(Di(e,n),IT(n))break;if(!Jb()){var o=VT(e,n),l=o,u=Ln()-l,f=pD(u)-u;if(f>10){e.timeoutHandle=jd(oo.bind(null,e,ba,Xr),f);break}}oo(e,ba,Xr);break}case Ob:{oo(e,ba,Xr);break}default:throw new Error("Unknown root exit status.")}}function Xw(e){for(var t=e;;){if(t.flags&wf){var n=t.updateQueue;if(n!==null){var a=n.stores;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.getSnapshot,l=i.value;try{if(!Da(o(),l))return!1}catch{return!1}}}}var u=t.child;if(t.subtreeFlags&wf&&u!==null){u.return=t,t=u;continue}if(t===e)return!0;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 Di(e,t){t=ds(t,zc),t=ds(t,Nu),XT(e,t)}function zb(e){if(d1(),(ot&(Wn|Fa))!==xn)throw new Error("Should not already be working.");Kr();var t=cs(e,F);if(!xa(t,Fe))return Sa(e,Ln()),null;var n=Ic(e,t);if(e.tag!==mi&&n===ao){var a=nd(e);a!==F&&(t=a,n=zp(e,a))}if(n===Ou){var r=Au;throw io(e,F),Di(e,t),Sa(e,Ln()),r}if(n===Mp)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,oo(e,ba,Xr),Sa(e,Ln()),null}function Qw(e,t){t!==F&&(od(e,Ke(t,Fe)),Sa(e,Ln()),(ot&(Wn|Fa))===xn&&(Uu(),hi()))}function Vp(e,t){var n=ot;ot|=Mb;try{return e(t)}finally{ot=n,ot===xn&&!ir.isBatchingLegacy&&(Uu(),jy())}}function Kw(e,t,n,a,r){var i=Ga(),o=In.transition;try{return In.transition=null,jn(Ra),e(t,n,a,r)}finally{jn(i),In.transition=o,ot===xn&&Uu()}}function Qr(e){Ri!==null&&Ri.tag===mi&&(ot&(Wn|Fa))===xn&&Kr();var t=ot;ot|=Mb;var n=In.transition,a=Ga();try{return In.transition=null,jn(Ra),e?e():void 0}finally{jn(a),In.transition=n,ot=t,(ot&(Wn|Fa))===xn&&hi()}}function Vb(){return(ot&(Wn|Fa))!==xn}function Yc(e,t){Kn(Op,Er,e),Er=Ke(Er,t)}function Fp(e){Er=Op.current,Qn(Op,e)}function io(e,t){e.finishedWork=null,e.finishedLanes=F;var n=e.timeoutHandle;if(n!==Ud&&(e.timeoutHandle=Ud,xx(n)),en!==null)for(var a=en.return;a!==null;){var r=a.alternate;pb(r,a),a=a.return}sa=e;var i=lo(e.current,null);return en=i,Rn=Er=t,wn=Gr,Au=null,Hc=F,Nu=F,zc=F,ju=null,ba=null,WR(),Ka.discardPendingWarnings(),i}function Fb(e,t){do{var n=en;try{if(ec(),cg(),On(),kp.current=null,n===null||n.return===null){wn=Ou,Au=t,en=null;return}if(Ut&&n.mode&kt&&kc(n,!0),ln)if(Co(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;DT(n,a,Rn)}else wT(n,t,Rn);T1(e,n.return,n,t,Rn),Yb(n)}catch(r){t=r,en===n&&n!==null?(n=n.return,en=n):n=en;continue}return}while(!0)}function Bb(){var e=_p.current;return _p.current=xc,e===null?xc:e}function $b(e){_p.current=e}function Jw(){Lp=Ln()}function Fu(e){Hc=Ke(e,Hc)}function Zw(){wn===Gr&&(wn=Uc)}function Bp(){(wn===Gr||wn===Uc||wn===ao)&&(wn=Lu),sa!==null&&(ad(Hc)||ad(Nu))&&Di(sa,Rn)}function eD(e){wn!==Lu&&(wn=ao),ju===null?ju=[e]:ju.push(e)}function tD(){return wn===Gr}function Ic(e,t){var n=ot;ot|=Wn;var a=Bb();if(sa!==e||Rn!==t){if(qa){var r=e.memoizedUpdaters;r.size>0&&(Bu(e,Rn),r.clear()),Sh(e,t)}Xr=Th(),io(e,t)}sh(t);do try{nD();break}catch(i){Fb(e,i)}while(!0);if(ec(),ot=n,$b(a),en!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ch(),sa=null,Rn=F,wn}function nD(){for(;en!==null;)Pb(en)}function aD(e,t){var n=ot;ot|=Wn;var a=Bb();if(sa!==e||Rn!==t){if(qa){var r=e.memoizedUpdaters;r.size>0&&(Bu(e,Rn),r.clear()),Sh(e,t)}Xr=Th(),Uu(),io(e,t)}sh(t);do try{rD();break}catch(i){Fb(e,i)}while(!0);return ec(),$b(a),ot=n,en!==null?(LT(),Gr):(ch(),sa=null,Rn=F,wn)}function rD(){for(;en!==null&&!oT();)Pb(en)}function Pb(e){var t=e.alternate;Kt(e);var n;(e.mode&kt)!==Me?(Yv(e),n=$p(t,e,Er),kc(e,!0)):n=$p(t,e,Er),On(),e.memoizedProps=e.pendingProps,n===null?Yb(e):en=n,kp.current=null}function Yb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&is)===Ue){Kt(t);var r=void 0;if((t.mode&kt)===Me?r=vb(n,t,Er):(Yv(t),r=vb(n,t,Er),kc(t,!1)),On(),r!==null){en=r;return}}else{var i=Z1(n,t);if(i!==null){i.flags&=eT,en=i;return}if((t.mode&kt)!==Me){kc(t,!1);for(var o=t.actualDuration,l=t.child;l!==null;)o+=l.actualDuration,l=l.sibling;t.actualDuration=o}if(a!==null)a.flags|=is,a.subtreeFlags=Ue,a.deletions=null;else{wn=Mp,en=null;return}}var u=t.sibling;if(u!==null){en=u;return}t=a,en=t}while(t!==null);wn===Gr&&(wn=Ob)}function oo(e,t,n){var a=Ga(),r=In.transition;try{In.transition=null,jn(Ra),iD(e,t,n,a)}finally{In.transition=r,jn(a)}return null}function iD(e,t,n,a){do Kr();while(Ri!==null);if(hD(),(ot&(Wn|Fa))!==xn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(bT(i),r===null)return oh(),null;if(i===F&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=F,r===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=Nn;var o=Ke(r.lanes,r.childLanes);QT(e,o),e===sa&&(sa=null,en=null,Rn=F),((r.subtreeFlags&To)!==Ue||(r.flags&To)!==Ue)&&(ro||(ro=!0,jp=n,Ip(Vi,function(){return Kr(),null})));var l=(r.subtreeFlags&(Of|Lf|xl|To))!==Ue,u=(r.flags&(Of|Lf|xl|To))!==Ue;if(l||u){var f=In.transition;In.transition=null;var d=Ga();jn(Ra);var g=ot;ot|=Fa,kp.current=null,rw(e,r),jg(),gw(e,r,i),yx(e.containerInfo),e.current=r,_T(i),bw(r,e,i),kT(),lT(),ot=g,jn(d),In.transition=f}else e.current=r,jg();var y=ro;if(ro?(ro=!1,Ri=e,Hu=i):(al=0,Bc=null),o=e.pendingLanes,o===F&&(nl=null),y||Gb(e.current,!1),pT(r.stateNode,a),qa&&e.memoizedUpdaters.clear(),zw(),Sa(e,Ln()),t!==null)for(var w=e.onRecoverableError,_=0;_<t.length;_++){var A=t[_],ne=A.stack,we=A.digest;w(A.value,{componentStack:ne,digest:we})}if(Vc){Vc=!1;var Ee=Ap;throw Ap=null,Ee}return xa(Hu,Fe)&&e.tag!==mi&&Kr(),o=e.pendingLanes,xa(o,Fe)?(c1(),e===Up?zu++:(zu=0,Up=e)):zu=0,hi(),oh(),null}function Kr(){if(Ri!==null){var e=Eh(Hu),t=eE(Fr,e),n=In.transition,a=Ga();try{return In.transition=null,jn(t),lD()}finally{jn(a),In.transition=n}}return!1}function oD(e){Np.push(e),ro||(ro=!0,Ip(Vi,function(){return Kr(),null}))}function lD(){if(Ri===null)return!1;var e=jp;jp=null;var t=Ri,n=Hu;if(Ri=null,Hu=F,(ot&(Wn|Fa))!==xn)throw new Error("Cannot flush passive effects while already rendering.");Hp=!0,Fc=!1,MT(n);var a=ot;ot|=Fa,ww(t.current),Ew(t,t.current,n,e);{var r=Np;Np=[];for(var i=0;i<r.length;i++){var o=r[i];uw(t,o)}}OT(),Gb(t.current,!0),ot=a,hi(),Fc?t===Bc?al++:(al=0,Bc=t):al=0,Hp=!1,Fc=!1,mT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Ib(e){return nl!==null&&nl.has(e)}function uD(e){nl===null?nl=new Set([e]):nl.add(e)}function sD(e){Vc||(Vc=!0,Ap=e)}var cD=sD;function Wb(e,t,n){var a=to(n,t),r=Pg(e,a,Fe),i=gi(e,r,Fe),o=ca();i!==null&&(Ll(i,Fe,o),Sa(i,o))}function zt(e,t,n){if(tw(n),$u(!1),e.tag===ae){Wb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===ae){Wb(a,e,n);return}else if(a.tag===pe){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Ib(i)){var o=to(n,e),l=up(a,o,Fe),u=gi(a,l,Fe),f=ca();u!==null&&(Ll(u,Fe,f),Sa(u,f));return}}a=a.return}c(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,n)}function fD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ca();gh(e,n),SD(e),sa===e&&Do(Rn,n)&&(wn===Lu||wn===Uc&&ph(Rn)&&Ln()-Lp<Lb?io(e,F):zc=Ke(zc,n)),Sa(e,r)}function qb(e,t){t===Nn&&(t=Iw(e));var n=ca(),a=ya(e,t);a!==null&&(Ll(a,t,n),Sa(a,n))}function dD(e){var t=e.memoizedState,n=Nn;t!==null&&(n=t.retryLane),qb(e,n)}function vD(e,t){var n=Nn,a;switch(e.tag){case O:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case At:a=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),qb(e,n)}function pD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Bw(e/1960)*1960}function mD(){if(zu>Pw)throw zu=0,Up=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");al>Yw&&(al=0,Bc=null,c("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function hD(){Ka.flushLegacyContextWarning(),Ka.flushPendingUnsafeLifecycleWarnings()}function Gb(e,t){Kt(e),Wc(e,oi,jw),t&&Wc(e,Mf,Uw),Wc(e,oi,Aw),t&&Wc(e,Mf,Nw),On()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==Ue?a=a.child:((a.flags&t)!==Ue&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var qc=null;function Xb(e){{if((ot&Wn)!==xn||!(e.mode&it))return;var t=e.tag;if(t!==ut&&t!==ae&&t!==pe&&t!==fe&&t!==De&&t!==et&&t!==P)return;var n=Ge(e)||"ReactComponent";if(qc!==null){if(qc.has(n))return;qc.add(n)}else qc=new Set([n]);var a=ra;try{Kt(e),c("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{a?Kt(e):On()}}}var $p;{var yD=null;$p=function(e,t,n){var a=aS(yD,t);try{return ub(e,t,n)}catch(i){if(kR()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(ec(),cg(),pb(e,t),aS(t,a),t.mode&kt&&Yv(t),xf(null,ub,null,e,t,n),K0()){var r=Rf();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var Qb=!1,Pp;Pp=new Set;function gD(e){if(Mi&&!l1())switch(e.tag){case fe:case De:case P:{var t=en&&Ge(en)||"Unknown",n=t;if(!Pp.has(n)){Pp.add(n);var a=Ge(e)||"Unknown";c("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",a,t,t)}break}case pe:{Qb||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Qb=!0);break}}}function Bu(e,t){if(qa){var n=e.memoizedUpdaters;n.forEach(function(a){bh(e,a,t)})}}var Yp={};function Ip(e,t){{var n=ir.current;return n!==null?(n.push(t),Yp):ih(e,t)}}function Kb(e){if(e!==Yp)return iT(e)}function Jb(){return ir.current!==null}function bD(e){{if(e.mode&it){if(!kb())return}else if(!Fw()||ot!==xn||e.tag!==fe&&e.tag!==De&&e.tag!==P)return;if(ir.current===null){var t=ra;try{Kt(e),c(`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Ge(e))}finally{t?Kt(e):On()}}}}function SD(e){e.tag!==mi&&kb()&&ir.current===null&&c(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function $u(e){jb=e}var Ba=null,rl=null,TD=function(e){Ba=e};function il(e){{if(Ba===null)return e;var t=Ba(e);return t===void 0?e:t.current}}function Wp(e){return il(e)}function qp(e){{if(Ba===null)return e;var t=Ba(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=il(e.render);if(e.render!==n){var a={$$typeof:V,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function Zb(e,t){{if(Ba===null)return!1;var n=e.elementType,a=t.type,r=!1,i=typeof a=="object"&&a!==null?a.$$typeof:null;switch(e.tag){case pe:{typeof a=="function"&&(r=!0);break}case fe:{(typeof a=="function"||i===p)&&(r=!0);break}case De:{(i===V||i===p)&&(r=!0);break}case et:case P:{(i===tt||i===p)&&(r=!0);break}default:return!1}if(r){var o=Ba(n);if(o!==void 0&&o===Ba(a))return!0}return!1}}function eS(e){{if(Ba===null||typeof WeakSet!="function")return;rl===null&&(rl=new WeakSet),rl.add(e)}}var ED=function(e,t){{if(Ba===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Kr(),Qr(function(){Gp(e.current,a,n)})}},CD=function(e,t){{if(e.context!==_a)return;Kr(),Qr(function(){Pu(t,e,null,null)})}};function Gp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case fe:case P:case pe:u=l;break;case De:u=l.render;break}if(Ba===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,d=!1;if(u!==null){var g=Ba(u);g!==void 0&&(n.has(g)?d=!0:t.has(g)&&(o===pe?d=!0:f=!0))}if(rl!==null&&(rl.has(e)||a!==null&&rl.has(a))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||f){var y=ya(e,Fe);y!==null&&Dn(y,e,Fe,Pt)}r!==null&&!d&&Gp(r,t,n),i!==null&&Gp(i,t,n)}}var xD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Xp(e.current,a,n),n}};function Xp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case fe:case P:case pe:l=o;break;case De:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?RD(e,n):a!==null&&Xp(a,t,n),r!==null&&Xp(r,t,n)}}function RD(e,t){{var n=wD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case re:t.add(a.stateNode);return;case Ae:t.add(a.stateNode.containerInfo);return;case ae:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function wD(e,t){for(var n=e,a=!1;;){if(n.tag===re)a=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return a;for(;n.sibling===null;){if(n.return===null||n.return===e)return a;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Qp;{Qp=!1;try{var tS=Object.preventExtensions({})}catch{Qp=!0}}function DD(e,t,n,a){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=a,this.flags=Ue,this.subtreeFlags=Ue,this.deletions=null,this.lanes=F,this.childLanes=F,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Qp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ka=function(e,t,n,a){return new DD(e,t,n,a)};function Kp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _D(e){return typeof e=="function"&&!Kp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Kp(e)?pe:fe;if(e!=null){var t=e.$$typeof;if(t===V)return De;if(t===tt)return et}return ut}function lo(e,t){var n=e.alternate;n===null?(n=ka(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=Ue,n.subtreeFlags=Ue,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Hr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var a=e.dependencies;switch(n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case ut:case fe:case P:n.type=il(e.type);break;case pe:n.type=Wp(e.type);break;case De:n.type=qp(e.type);break}return n}function MD(e,t){e.flags&=Hr|vn;var n=e.alternate;if(n===null)e.childLanes=F,e.lanes=t,e.child=null,e.subtreeFlags=Ue,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=Ue,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var a=n.dependencies;e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function OD(e,t,n){var a;return e===Ys?(a=it,t===!0&&(a|=rn,a|=dr)):a=Me,qa&&(a|=kt),ka(ae,null,null,a)}function Jp(e,t,n,a,r,i){var o=ut,l=e;if(typeof e=="function")Kp(e)?(o=pe,l=Wp(l)):l=il(l);else if(typeof e=="string")o=re;else e:switch(e){case na:return _i(n.children,r,i,t);case Rr:o=Yt,r|=rn,(r&it)!==Me&&(r|=dr);break;case wr:return LD(n,r,i,t);case K:return AD(n,r,i,t);case ve:return ND(n,r,i,t);case T:return nS(n,r,i,t);case E:case C:case j:case S:case b:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dr:o=Ve;break e;case h:o=ft;break e;case V:o=De,l=qp(l);break e;case tt:o=et;break e;case p:o=It,l=null;break e}var u="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var f=a?Ge(a):null;f&&(u+=`
Check the render method of \``+f+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var d=ka(o,n,t,r);return d.elementType=e,d.type=l,d.lanes=i,d._debugOwner=a,d}function Zp(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=Jp(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function _i(e,t,n,a){var r=ka(ie,e,a,t);return r.lanes=n,r}function LD(e,t,n,a){typeof e.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=ka(Ze,e,a,t|kt);return r.elementType=wr,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function AD(e,t,n,a){var r=ka(O,e,a,t);return r.elementType=K,r.lanes=n,r}function ND(e,t,n,a){var r=ka(At,e,a,t);return r.elementType=ve,r.lanes=n,r}function nS(e,t,n,a){var r=ka(q,e,a,t);r.elementType=T,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function em(e,t,n){var a=ka(me,e,null,t);return a.lanes=n,a}function jD(){var e=ka(re,null,null,Me);return e.elementType="DELETED",e}function UD(e){var t=ka(Rt,null,null,Me);return t.stateNode=e,t}function tm(e,t,n){var a=e.children!==null?e.children:[],r=ka(Ae,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function aS(e,t){return e===null&&(e=ka(ut,null,null,Me)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function HD(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ud,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Nn,this.eventTimes=id(F),this.expirationTimes=id(Pt),this.pendingLanes=F,this.suspendedLanes=F,this.pingedLanes=F,this.expiredLanes=F,this.mutableReadLanes=F,this.finishedLanes=F,this.entangledLanes=F,this.entanglements=id(F),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],o=0;o<Uf;o++)i.push(new Set)}switch(t){case Ys:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case mi:this._debugRootType=n?"hydrate()":"render()";break}}function rS(e,t,n,a,r,i,o,l,u,f){var d=new HD(e,t,n,l,u),g=OD(t,i);d.current=g,g.stateNode=d;{var y={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};g.memoizedState=y}return pv(g),d}var nm="18.3.1";function zD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Z(a),{$$typeof:ta,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var am,rm;am=!1,rm={};function iS(e){if(!e)return _a;var t=go(e),n=SR(t);if(t.tag===pe){var a=t.type;if(mr(a))return Ly(t,a,n)}return n}function VD(e,t){{var n=go(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var a=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+a)}var r=nh(n);if(r===null)return null;if(r.mode&rn){var i=Ge(n)||"Component";if(!rm[i]){rm[i]=!0;var o=ra;try{Kt(r),n.mode&rn?c("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):c("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{o?Kt(o):On()}}}return r.stateNode}}function oS(e,t,n,a,r,i,o,l){var u=!1,f=null;return rS(e,t,u,f,n,a,r,i,o)}function lS(e,t,n,a,r,i,o,l,u,f){var d=!0,g=rS(n,a,d,e,r,i,o,l,u);g.context=iS(null);var y=g.current,w=ca(),_=wi(y),A=Wr(w,_);return A.callback=t??null,gi(y,A,_),Ww(g,_,w),g}function Pu(e,t,n,a){vT(t,e);var r=t.current,i=ca(),o=wi(r);AT(o);var l=iS(n);t.context===null?t.context=l:t.pendingContext=l,Mi&&ra!==null&&!am&&(am=!0,c(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of %s.`,Ge(ra)||"Unknown"));var u=Wr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=gi(r,u,o);return f!==null&&(Dn(f,r,o,i),ic(f,r,o)),o}function Gc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case re:return t.child.stateNode;default:return t.child.stateNode}}function FD(e){switch(e.tag){case ae:{var t=e.stateNode;if(ps(t)){var n=$T(t);Qw(t,n)}break}case O:{Qr(function(){var r=ya(e,Fe);if(r!==null){var i=ca();Dn(r,e,Fe,i)}});var a=Fe;im(e,a);break}}}function uS(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=GT(n.retryLane,t))}function im(e,t){uS(e,t);var n=e.alternate;n&&uS(n,t)}function BD(e){if(e.tag===O){var t=_l,n=ya(e,t);if(n!==null){var a=ca();Dn(n,e,t,a)}im(e,t)}}function $D(e){if(e.tag===O){var t=wi(e),n=ya(e,t);if(n!==null){var a=ca();Dn(n,e,t,a)}im(e,t)}}function sS(e){var t=rT(e);return t===null?null:t.stateNode}var cS=function(e){return null};function PD(e){return cS(e)}var fS=function(e){return!1};function YD(e){return fS(e)}var dS=null,vS=null,pS=null,mS=null,hS=null,yS=null,gS=null,bS=null,SS=null;{var TS=function(e,t,n){var a=t[n],r=nt(e)?e.slice():Te({},e);return n+1===t.length?(nt(r)?r.splice(a,1):delete r[a],r):(r[a]=TS(e[a],t,n+1),r)},ES=function(e,t){return TS(e,t,0)},CS=function(e,t,n,a){var r=t[a],i=nt(e)?e.slice():Te({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],nt(i)?i.splice(r,1):delete i[r]}else i[r]=CS(e[r],t,n,a+1);return i},xS=function(e,t,n){if(t.length!==n.length){X("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){X("copyWithRename() expects paths to be the same except for the deepest key");return}return CS(e,t,n,0)},RS=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=nt(e)?e.slice():Te({},e);return i[r]=RS(e[r],t,n+1,a),i},wS=function(e,t,n){return RS(e,t,0,n)},om=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};dS=function(e,t,n,a){var r=om(e,t);if(r!==null){var i=wS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Te({},e.memoizedProps);var o=ya(e,Fe);o!==null&&Dn(o,e,Fe,Pt)}},vS=function(e,t,n){var a=om(e,t);if(a!==null){var r=ES(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=Te({},e.memoizedProps);var i=ya(e,Fe);i!==null&&Dn(i,e,Fe,Pt)}},pS=function(e,t,n,a){var r=om(e,t);if(r!==null){var i=xS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Te({},e.memoizedProps);var o=ya(e,Fe);o!==null&&Dn(o,e,Fe,Pt)}},mS=function(e,t,n){e.pendingProps=wS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=ya(e,Fe);a!==null&&Dn(a,e,Fe,Pt)},hS=function(e,t){e.pendingProps=ES(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=ya(e,Fe);n!==null&&Dn(n,e,Fe,Pt)},yS=function(e,t,n){e.pendingProps=xS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=ya(e,Fe);a!==null&&Dn(a,e,Fe,Pt)},gS=function(e){var t=ya(e,Fe);t!==null&&Dn(t,e,Fe,Pt)},bS=function(e){cS=e},SS=function(e){fS=e}}function ID(e){var t=nh(e);return t===null?null:t.stateNode}function WD(e){return null}function qD(){return ra}function GD(e){var t=e.findFiberByHostInstance,n=ee.ReactCurrentDispatcher;return dT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:dS,overrideHookStateDeletePath:vS,overrideHookStateRenamePath:pS,overrideProps:mS,overridePropsDeletePath:hS,overridePropsRenamePath:yS,setErrorHandler:bS,setSuspenseHandler:SS,scheduleUpdate:gS,currentDispatcherRef:n,findHostInstanceByFiber:ID,findFiberByHostInstance:t||WD,findHostInstancesForRefresh:xD,scheduleRefresh:ED,scheduleRoot:CD,setRefreshHandler:TD,getCurrentFiber:qD,reconcilerVersion:nm})}var DS=typeof reportError=="function"?reportError:function(e){console.error(e)};function lm(e){this._internalRoot=e}Xc.prototype.render=lm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Qc(arguments[1])?c("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==dn){var a=sS(t.current);a&&a.parentNode!==n&&c("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Pu(e,t,null,null)},Xc.prototype.unmount=lm.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vb()&&c("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Qr(function(){Pu(null,e,null,null)}),Dy(t)}};function XD(e,t){if(!Qc(e))throw new Error("createRoot(...): Target container is not a DOM element.");_S(e);var n=!1,a=!1,r="",i=DS;t!=null&&(t.hydrate?X("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===gn&&c(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
let root = createRoot(domContainer);
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var o=oS(e,Ys,null,n,a,r,i);Hs(o.current,e);var l=e.nodeType===dn?e.parentNode:e;return Xl(l),new lm(o)}function Xc(e){this._internalRoot=e}function QD(e){e&&fE(e)}Xc.prototype.unstable_scheduleHydration=QD;function KD(e,t,n){if(!Qc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");_S(e),t===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=n??null,r=n!=null&&n.hydratedSources||null,i=!1,o=!1,l="",u=DS;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=lS(t,null,e,Ys,a,i,o,l,u);if(Hs(f.current,e),Xl(e),r)for(var d=0;d<r.length;d++){var g=r[d];t1(f,g)}return new Xc(f)}function Qc(e){return!!(e&&(e.nodeType===ma||e.nodeType===Nr||e.nodeType===vf))}function Yu(e){return!!(e&&(e.nodeType===ma||e.nodeType===Nr||e.nodeType===vf||e.nodeType===dn&&e.nodeValue===" react-mount-point-unstable "))}function _S(e){e.nodeType===ma&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),ou(e)&&(e._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var JD=ee.ReactCurrentOwner,kS;kS=function(e){if(e._reactRootContainer&&e.nodeType!==dn){var t=sS(e._reactRootContainer.current);t&&t.parentNode!==e&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,a=um(e),r=!!(a&&vi(a));r&&!n&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===ma&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function um(e){return e?e.nodeType===Nr?e.documentElement:e.firstChild:null}function MS(){}function ZD(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var y=Gc(o);i.call(y)}}var o=lS(t,a,e,mi,null,!1,!1,"",MS);e._reactRootContainer=o,Hs(o.current,e);var l=e.nodeType===dn?e.parentNode:e;return Xl(l),Qr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var y=Gc(d);f.call(y)}}var d=oS(e,mi,null,!1,!1,"",MS);e._reactRootContainer=d,Hs(d.current,e);var g=e.nodeType===dn?e.parentNode:e;return Xl(g),Qr(function(){Pu(t,d,n,a)}),d}}function e_(e,t){e!==null&&typeof e!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Kc(e,t,n,a,r){kS(n),e_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=ZD(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=Gc(o);l.call(u)}}Pu(t,o,e,r)}return Gc(o)}var OS=!1;function t_(e){{OS||(OS=!0,c("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=JD.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",gt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ma?e:VD(e,"findDOMNode")}function n_(e,t,n){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Yu(t))throw new Error("Target container is not a DOM element.");{var a=ou(t)&&t._reactRootContainer===void 0;a&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Kc(null,e,t,!0,n)}function a_(e,t,n){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Yu(t))throw new Error("Target container is not a DOM element.");{var a=ou(t)&&t._reactRootContainer===void 0;a&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Kc(null,e,t,!1,n)}function r_(e,t,n,a){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Yu(n))throw new Error("Target container is not a DOM element.");if(e==null||!J0(e))throw new Error("parentComponent must be a valid React Component");return Kc(e,t,n,!1,a)}var LS=!1;function i_(e){if(LS||(LS=!0,c("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Yu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=ou(e)&&e._reactRootContainer===void 0;t&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var n=um(e),a=n&&!vi(n);a&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Qr(function(){Kc(null,null,e,!1,function(){e._reactRootContainer=null,Dy(e)})}),!0}else{{var r=um(e),i=!!(r&&vi(r)),o=e.nodeType===ma&&Yu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}tE(FD),aE(BD),rE($D),iE(Ga),oE(JT),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&c("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),B0(lx),Y0(Vp,Kw,Qr);function o_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Qc(t))throw new Error("Target container is not a DOM element.");return zD(e,t,null,n)}function l_(e,t,n,a){return r_(e,t,n,a)}var sm={usingClientEntryPoint:!1,Events:[vi,Uo,zs,Pm,Ym,Vp]};function u_(e,t){return sm.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),XD(e,t)}function s_(e,t,n){return sm.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),KD(e,t,n)}function c_(e){return Vb()&&c("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Qr(e)}var f_=GD({findFiberByHostInstance:Wi,bundleType:1,version:nm,rendererPackageName:"react-dom"});if(!f_&&wt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var AS=window.location.protocol;/^(https?|file):$/.test(AS)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(AS==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}va.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sm,va.createPortal=o_,va.createRoot=u_,va.findDOMNode=t_,va.flushSync=c_,va.hydrate=n_,va.hydrateRoot=s_,va.render=a_,va.unmountComponentAtNode=i_,va.unstable_batchedUpdates=Vp,va.unstable_renderSubtreeIntoContainer=l_,va.version=nm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),va}pm.exports=zS();var VS=pm.exports,gm,bm=VS;{var Sm=bm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;gm=function(k,M){Sm.usingClientEntryPoint=!0;try{return bm.createRoot(k,M)}finally{Sm.usingClientEntryPoint=!1}}}const ue=k=>{if(isNaN(k))return"00:00:00.000";const M=Math.floor(k/3600),ee=Math.floor(k%3600/60),ke=Math.floor(k%60),He=Math.round(k%1*1e3),X=String(M).padStart(2,"0"),c=String(ee).padStart(2,"0"),xt=String(ke).padStart(2,"0"),fe=String(He).padStart(3,"0");return`${X}:${c}:${xt}.${fe}`},ki=k=>ue(k),FS=k=>ue(k),Re={debug:(...k)=>{},error:(...k)=>console.error(...k),warn:(...k)=>console.warn(...k),info:(...k)=>console.info(...k)};var W=Zc();const BS=({videoRef:k,currentTime:M,duration:ee,isPlaying:ke,isMuted:He=!1,onPlayPause:X,onSeek:c,onToggleMute:xt})=>{var te;const fe=W.useRef(null),[pe,ut]=W.useState(!1),[ae,Ae]=W.useState(!1),[re,me]=W.useState(null),[ie,Yt]=W.useState(!1),ft=W.useRef(!1),[Ve,De]=W.useState({x:0}),[Ze,O]=W.useState(0),et=typeof window<"u"&&((te=window.MEDIA_DATA)==null?void 0:te.videoUrl)||"/videos/sample-video.mp4";W.useEffect(()=>{if(ut((()=>{const I=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(I)&&!window.MSStream})()),typeof window<"u"){const I=localStorage.getItem("video_initialized")==="true";Ae(I)}},[]),W.useEffect(()=>{ke&&!ae&&(Ae(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[ke,ae]),W.useEffect(()=>{const de=k.current;if(!de)return;de.setAttribute("playsinline","true"),de.setAttribute("webkit-playsinline","true"),de.setAttribute("x-webkit-airplay","allow");const I=()=>{ft.current||(me(de.currentTime),typeof window<"u"&&(window.lastSeekedPosition=de.currentTime))},Y=()=>{pe&&(Ae(!0),localStorage.setItem("video_initialized","true"))},Ne=()=>{};return de.addEventListener("timeupdate",I),de.addEventListener("play",Y),de.addEventListener("pause",Ne),()=>{de.removeEventListener("timeupdate",I),de.removeEventListener("play",Y),de.removeEventListener("pause",Ne)}},[k,pe,ft]),W.useEffect(()=>{me(M)},[M]);const P=ee>0?M/ee*100:0,It=de=>{de.preventDefault(),Yt(!0),ft.current=!0,Ie(de);const I=Ne=>{ft.current&&Ie(Ne)},Y=()=>{Yt(!1),ft.current=!1,document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",Y)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",Y)},Ie=de=>{if(!fe.current)return;const I=fe.current.getBoundingClientRect(),Y=Math.max(0,Math.min(1,(de.clientX-I.left)/I.width)),Ne=ee*Y;De({x:de.clientX}),O(Ne),me(Ne),typeof window<"u"&&(window.lastSeekedPosition=Ne),c(Ne)},Rt=de=>{if(!fe.current||!de.touches[0])return;de.preventDefault(),Yt(!0),ft.current=!0,At(de);const I=Ne=>{ft.current&&At(Ne)},Y=()=>{Yt(!1),ft.current=!1,document.removeEventListener("touchmove",I),document.removeEventListener("touchend",Y),document.removeEventListener("touchcancel",Y)};document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",Y),document.addEventListener("touchcancel",Y)},At=de=>{if(!fe.current)return;const I="touches"in de?de.touches[0]:null;if(!I)return;de.preventDefault();const Y=fe.current.getBoundingClientRect(),Ne=Math.max(0,Math.min(1,(I.clientX-Y.left)/Y.width)),Wt=ee*Ne;De({x:I.clientX}),O(Wt),me(Wt),typeof window<"u"&&(window.lastSeekedPosition=Wt),c(Wt)},Ce=de=>{if(!ie&&fe.current){const I=fe.current.getBoundingClientRect(),Y=(de.clientX-I.left)/I.width,Ne=ee*Y;me(Ne),typeof window<"u"&&(window.lastSeekedPosition=Ne),c(Ne)}},q=()=>{k.current&&(document.fullscreenElement?document.exitFullscreen():k.current.requestFullscreen())},Xe=()=>{const de=k.current;de&&(de.paused?pe&&re!==null&&re>0?(de.currentTime=re,setTimeout(()=>{k.current&&k.current.play().then(()=>{var I;Re.debug("iOS: Play started successfully at position:",(I=k.current)==null?void 0:I.currentTime),X()}).catch(I=>{console.error("iOS: Error playing video:",I)})},50)):de.play().then(()=>{X()}).catch(I=>{console.error("Error playing video:",I)}):(de.pause(),X()))};return v.jsxs("div",{className:"video-player-container",children:[v.jsxs("video",{ref:k,preload:"auto",crossOrigin:"anonymous",onClick:Xe,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:He,children:[v.jsx("source",{src:et,type:"video/mp4"}),v.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),pe&&!ae&&!ke&&v.jsx("div",{className:"ios-first-play-indicator",children:v.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),v.jsx("div",{className:`play-pause-indicator ${ke?"pause-icon":"play-icon"}`}),v.jsxs("div",{className:"video-controls",children:[v.jsxs("div",{className:"video-time-display",children:[v.jsx("span",{className:"video-current-time",children:ki(M)}),v.jsxs("span",{className:"video-duration",children:["/ ",ki(ee)]})]}),v.jsxs("div",{ref:fe,className:`video-progress ${ie?"dragging":""}`,onClick:Ce,onMouseDown:It,onTouchStart:Rt,children:[v.jsx("div",{className:"video-progress-fill",style:{width:`${P}%`}}),v.jsx("div",{className:"video-scrubber",style:{left:`${P}%`}}),ie&&v.jsx("div",{className:"video-time-tooltip",style:{left:`${Ve.x}px`,transform:"translateX(-50%)"},children:ue(Ze)})]}),v.jsxs("div",{className:"video-controls-buttons",children:[xt&&v.jsx("button",{className:"mute-button","aria-label":He?"Unmute":"Mute",onClick:xt,"data-tooltip":He?"Unmute":"Mute",children:He?v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),v.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),v.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),v.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),v.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),v.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),v.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:q,"data-tooltip":"Toggle fullscreen",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h4a1 1 0 010 2H6.414l2.293 2.293a1 1 0 01-1.414 1.414L5 6.414V8a1 1 0 01-2 0V4zm9 1a1 1 0 010-2h4a1 1 0 011 1v4a1 1 0 01-2 0V6.414l-2.293 2.293a1 1 0 11-1.414-1.414L13.586 5H12zm-9 7a1 1 0 012 0v1.586l2.293-2.293a1 1 0 011.414 1.414L6.414 15H8a1 1 0 010 2H4a1 1 0 01-1-1v-4zm13-1a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 010-2h1.586l-2.293-2.293a1 1 0 011.414-1.414L15 13.586V12a1 1 0 011-1z",clipRule:"evenodd"})})})]})]})]})},$S=(k,M)=>{const ee=Math.min(Math.max(k/(M||1),0),1),ke=210,He=40+Math.floor(ee*20),X=85+Math.floor(ee*8);return`hsl(${ke}, ${He}%, ${X}%)`},Wu=({isOpen:k,onClose:M,title:ee,children:ke,actions:He})=>{if(W.useEffect(()=>{const c=xt=>{xt.key==="Escape"&&k&&M()};return document.addEventListener("keydown",c),k&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",c),document.body.style.overflow=""}},[k,M]),!k)return null;const X=c=>{c.target===c.currentTarget&&M()};return v.jsx("div",{className:"modal-overlay",onClick:X,children:v.jsxs("div",{className:"modal-container",onClick:c=>c.stopPropagation(),children:[v.jsxs("div",{className:"modal-header",children:[v.jsx("h2",{className:"modal-title",children:ee}),v.jsx("button",{className:"modal-close-button",onClick:M,"aria-label":"Close modal",style:{minWidth:"24px",minHeight:"24px"},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),v.jsx("div",{className:"modal-content",children:ke}),He&&v.jsx("div",{className:"modal-actions",children:He})]})})},PS=async(k,M)=>{try{const ee=await fetch(`/api/v1/media/${k}/chapters`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)});if(Re.debug("response",ee),!ee.ok){if(ee.status===404)return{success:!0,timestamp:new Date().toISOString()};try{const He=await ee.json();return{success:!1,timestamp:new Date().toISOString(),error:He.error||"Auto-save failed (videoApi.ts)"}}catch{return{success:!1,timestamp:new Date().toISOString(),error:"Auto-save failed (videoApi.ts)"}}}const ke=await ee.json();return{success:!0,timestamp:ke.updated_at||new Date().toISOString(),...ke}}catch{return{success:!0,timestamp:new Date().toISOString()}}},Tm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23333333;}%20.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%20%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cpath%20class='st0'%20d='M350.45,277.5l-164.08,94.73c-16.55,9.56-37.24-2.39-37.24-21.5V161.27c0-19.11,20.69-31.06,37.24-21.5%20l164.08,94.73C367,244.06,367,267.94,350.45,277.5z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Em="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M208.15,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C218.47,375.57,213.85,380.19,208.15,380.19z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M395.04,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C405.36,375.57,400.74,380.19,395.04,380.19z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Cm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M85.26,277.5l164.08,94.73c16.55,9.56,37.24-2.39,37.24-21.5V161.27c0-19.11-20.69-31.06-37.24-21.5%20L85.26,234.5C68.71,244.06,68.71,267.94,85.26,277.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M377.47,375.59h41.42c11.19,0,20.26-9.07,20.26-20.26V156.67c0-11.19-9.07-20.26-20.26-20.26h-41.42%20c-11.19,0-20.26,9.07-20.26,20.26v198.67C357.21,366.52,366.28,375.59,377.47,375.59z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",YS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle/%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M27,3V29a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V27H7v1H25V4H7V7H5V3A1,1,0,0,1,6,2H26A1,1,0,0,1,27,3Z'/%3e%3cg%20transform='translate(2,%200)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'%20id='logout_account_exit_door'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",IS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M5,3V29a1,1,0,0,0,1,1H26a1,1,0,0,0,1-1V25H25v3H7V4H25V7h2V3a1,1,0,0,0-1-1H6A1,1,0,0,0,5,3Z'/%3e%3cg%20transform='translate(28,%200)%20scale(-1,%201)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",WS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M5,3V29a1,1,0,0,0,1,1H26a1,1,0,0,0,1-1V25H25v3H7V4H25V7h2V3a1,1,0,0,0-1-1H6A1,1,0,0,0,5,3Z'/%3e%3cg%20transform='translate(30,%200)%20scale(-1,%201)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle/%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M27,3V29a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V27H7v1H25V4H7V7H5V3A1,1,0,0,1,6,2H26A1,1,0,0,1,27,3Z'/%3e%3cg%20transform='translate(2,%200)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'%20id='logout_account_exit_door'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",GS={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},xm=k=>{let X,c;if(k<=15)if(k<=0)X="0%",c="none";else{const fe=-50*((k-0)/15);X=`${k}%`,c=`translateX(${fe}%)`}else if(k>=75)if(k>=100)X="100%",c="translateX(-100%)";else{const fe=-50-50*((k-75)/25);X=`${k}%`,c=`translateX(${fe}%)`}else X=`${k}%`,c="translateX(-50%)";return{left:X,transform:c}},XS=({currentTime:k,duration:M,trimStart:ee,trimEnd:ke,splitPoints:He,zoomLevel:X,clipSegments:c,selectedSegmentId:xt,onSelectedSegmentChange:fe,onSegmentUpdate:pe,onChapterSave:ut,onTrimStartChange:ae,onTrimEndChange:Ae,onZoomChange:re,onSeek:me,videoRef:ie,hasUnsavedChanges:Yt=!1,isIOSUninitialized:ft=!1,isPlaying:Ve,setIsPlaying:De,onPlayPause:Ze,isPlayingSegments:O=!1})=>{const et=(p,C)=>`Chapter ${[...C,{startTime:p}].sort((j,S)=>j.startTime-S.startTime).findIndex(j=>j.startTime===p)+1}`,P=W.useRef(null),It=W.useRef(null),Ie=W.useRef(null),[Rt,At]=W.useState(null),Ce=xt!==void 0?xt:Rt,q=p=>{fe?fe(p):At(p)},[Xe,te]=W.useState(!1),[de,I]=W.useState({x:0,y:0}),[Y,Ne]=W.useState(0),[Wt,_n]=W.useState(!1),[Vt,ln]=W.useState(30),[Ut,Ct]=W.useState(!1),[qt,ht]=W.useState(null),[Un,st]=W.useState(0),[tn,wt]=W.useState(!1),Qe=W.useRef(null),[Zt,nn]=W.useState(""),[cn,U]=W.useState(!1),Se=[...c].sort((p,C)=>p.startTime-C.startTime).find(p=>p.id===Ce),[he,je]=W.useState(""),[We,qe]=W.useState(!1),_e=W.useRef(null),dt=W.useRef(c);W.useEffect(()=>{dt.current=c},[c]);const Je=W.useCallback(async()=>{var p;try{qe(!0);const C=dt.current.map(j=>({startTime:ue(j.startTime),endTime:ue(j.endTime),chapterTitle:j.chapterTitle}));Re.debug("chapters",C);const T=typeof window<"u"&&((p=window.MEDIA_DATA)==null?void 0:p.mediaId)||null||"1234";if(Re.debug("mediaId",T),!T||C.length===0){Re.debug("No mediaId or segments, skipping auto-save"),qe(!1);return}Re.debug("Auto-saving segments:",{mediaId:T,chapters:C});const E=await PS(T,{chapters:C});if(E.success===!0){Re.debug("Auto-save successful");const S=new Date(E.updated_at||new Date().toISOString()).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");je(S),Re.debug("Auto-save successful:",S)}else Re.error("Auto-save failed: (TimelineControls.tsx)")}catch(C){Re.error("Auto-save error: (TimelineControls.tsx)",C)}finally{qe(!1)}},[]),vt=W.useCallback(()=>{_e.current&&clearTimeout(_e.current);const p=setTimeout(()=>{Je()},1e3);_e.current=p},[Je]);W.useEffect(()=>{if(Se){const p=Se.chapterTitle&&/^Chapter \d+$/.test(Se.chapterTitle);nn(p?"":Se.chapterTitle||"")}else nn("")},[Ce,Se]);const an=p=>{nn(p),U(!0),Ce&&pe&&pe(Ce,{chapterTitle:p})},mn=p=>{const C=p;let b=null,T=null,E=Y;const j=()=>{const S=C<0?Math.max(0,E+C):Math.min(M,E+C);E=S;const B=Ut;if(me(S),Ne(S),st(S),P.current){const z=P.current.getBoundingClientRect(),be=S/M*100,Te=z.left+z.width*(be/100);I({x:Te,y:z.top-10});const Oe=c.find(ct=>S>=ct.startTime&&S<=ct.endTime);if(Oe)q(Oe.id),te(!1);else{q(null);const ct=yn(S);ln(ct),te(!0)}}B&&ie.current&&(ie.current.play(),Ct(!0))};return{onMouseDown:S=>{S.stopPropagation(),S.preventDefault(),E=Y,j(),b=setTimeout(()=>{T=setInterval(j,200)},750);const B=()=>{b&&(clearTimeout(b),b=null),T&&(clearInterval(T),T=null),document.removeEventListener("mouseup",B),document.removeEventListener("mouseleave",B)};document.addEventListener("mouseup",B),document.addEventListener("mouseleave",B)},onTouchStart:S=>{S.stopPropagation(),S.preventDefault(),E=Y,j(),b=setTimeout(()=>{T=setInterval(j,200)},750);const B=()=>{b&&(clearTimeout(b),b=null),T&&(clearInterval(T),T=null),document.removeEventListener("touchend",B),document.removeEventListener("touchcancel",B)};document.addEventListener("touchend",B),document.addEventListener("touchcancel",B)},onClick:S=>{S.stopPropagation()}}},[hn,Q]=W.useState(!1),[xe,$e]=W.useState(!1),[yt,Nt]=W.useState(!1),[Gt,Lt]=W.useState(!1),[Hn,Ft]=W.useState(""),[jt,Dt]=W.useState(""),[$a,Ta]=W.useState(""),[Ea,or]=W.useState("chapters"),Oa=M>0?k/M*100:0,Zr=M>0?ee/M*100:0,xr=M>0?ke/M*100:0,ei=async()=>{var p;Q(!1),$e(!0),or("chapters");try{const C=c.filter(b=>b.chapterTitle&&b.chapterTitle.trim()).map(b=>({chapterTitle:b.chapterTitle||`Chapter ${b.id}`,from:ue(b.startTime),to:ue(b.endTime)}));if(C.length===0){Dt("No chapters with titles found"),Lt(!0),$e(!1);return}if(ut){await ut(C),$e(!1),Ft("Chapters saved successfully!");const b=typeof window<"u"&&((p=window.MEDIA_DATA)==null?void 0:p.mediaId)||null;b&&Ta(`/view?m=${b}`),Nt(!0)}else Dt("Chapter save function not available"),Lt(!0),$e(!1)}catch(C){Re.error("Error saving chapters:",C),$e(!1);const b=C instanceof Error?C.message:"An error occurred while saving chapters";Dt(b),Lt(!0)}};W.useEffect(()=>{if(Qe.current&&P.current&&X>1){const p=Qe.current.clientWidth,C=P.current.clientWidth,b=k/M*C,T=Math.max(0,b-p/2);Qe.current.scrollTo({left:T,behavior:"smooth"});const E=P.current.getBoundingClientRect();Qe.current.getBoundingClientRect();const S=E.left-Qe.current.scrollLeft+Oa/100*E.width;(Ce!==null||Xe)&&(I({x:S,y:E.top-10}),Ne(k))}},[k,X,M,Ce,Xe,Oa]),W.useEffect(()=>{},[qt,Ut,tn,c]),W.useEffect(()=>{if(ie.current)if(ie.current.paused)ie.current.paused&&Ut&&(st(k),Ne(k),Ct(!1),Re.debug("Video paused at:",ue(k)));else{st(k),Ne(k),Ce!==null&&Ct(!0);const p=c.find(T=>k>=T.startTime&&k<=T.endTime),C=k/M*100;if(P.current){const T=P.current.offsetWidth,E=C/100*T;I({x:E,y:P.current.getBoundingClientRect().top-10})}const b=sessionStorage.getItem("continuingPastSegment")==="true";if(p){const T=ie.current,E=qt&&qt.id<0&&Ut;if((qt==null?void 0:qt.id)!==p.id&&!E&&!b&&!tn&&(Re.debug(`Entered a new segment during playback: ${p.id}, setting as active`),ht(p),q(p.id),te(!1),wt(!1),sessionStorage.removeItem("continuingPastSegment")),E&&T&&p){Re.debug(`CUTAWAY BOUNDARY REACHED: Current position ${ue(T.currentTime)} at segment ${p.id} - STOPPING at boundary ${ue(p.startTime)}`),T.pause(),setTimeout(()=>{if(ie.current){ie.current.currentTime=p.startTime,me(p.startTime),st(p.startTime),Ne(p.startTime),wt(!1),q(p.id),te(!1);const S=()=>{ie.current&&(ie.current.currentTime=p.startTime,me(p.startTime),st(p.startTime),Ne(p.startTime),Re.debug(`Position corrected to exact segment boundary: ${ue(ie.current.currentTime)} (target: ${ue(p.startTime)})`))};setTimeout(S,10),setTimeout(S,20),setTimeout(S,50),setTimeout(S,100),setTimeout(S,200),ie.current.addEventListener("seeked",S),ie.current.addEventListener("canplay",S),ie.current.addEventListener("waiting",S),setTimeout(()=>{ie.current&&(ie.current.removeEventListener("seeked",S),ie.current.removeEventListener("canplay",S),ie.current.removeEventListener("waiting",S))},300)}},10),Ct(!1),ht(null);return}qt===null&&Ut===!0||b||E?(Ce!==p.id||Xe)&&(Re.debug("Tooltip updated for segment during continued playback:",p.id,E?"(cutaway playback - keeping virtual segment)":""),q(p.id),te(!1),!E&&sessionStorage.getItem("lastSegmentId")!==p.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((qt==null?void 0:qt.id)!==p.id||Xe)&&(Re.debug("Playback moved into segment:",p.id),q(p.id),ht(p),te(!1),sessionStorage.setItem("lastSegmentId",p.id.toString()))}else if(qt!==null||!Xe){q(null),ht(null);const T=yn(k);ln(T),T>=.5?te(!0):te(!1)}}},[k,Ut,qt,Ce,c]),W.useEffect(()=>{const p=C=>{const b=C.target;Wt&&!b.closest(".zoom-dropdown-container")&&_n(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[Wt]),W.useEffect(()=>{const p=T=>{const{recordHistory:E,fromAutoSave:j}=T.detail;E&&!j&&vt()},C=()=>{vt()},b=T=>{const{recordHistory:E}=T.detail;E&&vt()};return document.addEventListener("update-segments",p),document.addEventListener("segment-drag-end",C),document.addEventListener("update-trim",b),document.addEventListener("delete-segment",vt),document.addEventListener("split-segment",vt),document.addEventListener("undo-redo-autosave",vt),()=>{document.removeEventListener("update-segments",p),document.removeEventListener("segment-drag-end",C),document.removeEventListener("update-trim",b),document.removeEventListener("delete-segment",vt),document.removeEventListener("split-segment",vt),document.removeEventListener("undo-redo-autosave",vt),_e.current&&(Re.debug("Clearing auto-save timer in cleanup:",_e.current),clearTimeout(_e.current))}},[vt]),W.useEffect(()=>{c.length>0&&!he&&setTimeout(()=>{Je()},500)},[he,Je]),W.useEffect(()=>{const p=()=>{var T;let b=typeof window<"u"&&((T=window.MEDIA_DATA)==null?void 0:T.chapters)||null;try{if(b&&b.chapters&&b.chapters.length>0){Re.debug("Found saved segments:",b);const E=b.chapters.map((S,B)=>({id:Date.now()+B,chapterTitle:S.chapterTitle||`Chapter ${B+1}`,startTime:C(S.startTime),endTime:C(S.endTime)})),j=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!1,fromAutoSave:!0}});if(document.dispatchEvent(j),b.updated_at){const B=new Date(b.updated_at).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");je(B)}}else Re.debug("No saved segments found")}catch(E){console.error("Error loading saved segments:",E)}},C=b=>{const T=b.split(":");if(T.length!==3)return 0;const E=parseInt(T[0])||0,j=parseInt(T[1])||0,S=T[2].split("."),B=parseInt(S[0])||0,z=parseInt(S[1])||0;return E*3600+j*60+B+z/1e3};setTimeout(p,100)},[]),W.useEffect(()=>()=>{},[Ce,Xe,Ut]),W.useEffect(()=>{const p=It.current,C=Ie.current,b=P.current;if(!p||!C||!b)return;const T=E=>j=>{j.preventDefault();const S=b.getBoundingClientRect();let B=!0,z=E?ee:ke;const be=ct=>new CustomEvent("trim-handle-event",{detail:{type:ct,isStart:E}});document.dispatchEvent(be("drag-start"));const Te=ct=>{if(!B)return;const Qt=S.width,kn=Math.max(0,Math.min(1,(ct.clientX-S.left)/Qt))*M;typeof window<"u"&&(window.lastSeekedPosition=kn),E?kn<ke&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:kn,isStart:!0,recordHistory:!1}})),z=kn):kn>ee&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:kn,isStart:!1,recordHistory:!1}})),z=kn)},Oe=()=>{B=!1,document.removeEventListener("mousemove",Te),document.removeEventListener("mouseup",Oe),E?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:z,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:z,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(be("drag-end"))};document.addEventListener("mousemove",Te),document.addEventListener("mouseup",Oe)};return p.addEventListener("mousedown",T(!0)),C.addEventListener("mousedown",T(!1)),()=>{p.removeEventListener("mousedown",T(!0)),C.removeEventListener("mousedown",T(!1))}},[M,ee,ke,ae,Ae]);const ti=()=>He.map((p,C)=>{const b=p/M*100;return v.jsx("div",{className:"split-point",style:{left:`${b}%`}},C)}),yn=p=>{const b=[...c].sort((S,B)=>S.startTime-B.startTime),T=b.find(S=>S.startTime>p),E=[...b].reverse().find(S=>S.endTime<p);let j;return T?j=T.startTime-p:j=M-p,Re.debug("Space calculation:",{position:ue(p),nextSegment:T?ue(T.startTime):"none",prevSegment:E?ue(E.endTime):"none",availableSpace:ue(Math.max(.1,j))}),Math.max(.1,j)},gn=p=>{if(!P.current)return;const C=c.find(z=>{const be=p>=z.startTime&&p<=z.endTime,Te=Math.abs(p-z.startTime)<.001,Oe=Math.abs(p-z.endTime)<.001;return be||Te||Oe}),b=[...c].sort((z,be)=>z.startTime-be.startTime),T=b.find(z=>z.startTime>p),E=[...b].reverse().find(z=>z.endTime<p);if(C)q(C.id),te(!1);else{const z=yn(p);ln(z),q(null),te(!0),Re.debug("Cutaway position:",{current:ue(p),prevSegmentEnd:E?ue(E.endTime):"none",nextSegmentStart:T?ue(T.startTime):"none",availableSpace:ue(z)})}const j=P.current.getBoundingClientRect(),S=p/M*100;let B;X>1&&Qe.current?B=j.left-Qe.current.scrollLeft+j.width*(S/100):B=j.left+j.width*(S/100),I({x:B,y:j.top-10})},ta=p=>{if(!P.current||!Qe.current||ft)return;const C=ie.current&&!ie.current.paused;wt(!1);const b=P.current.getBoundingClientRect();let T;if(X>1){const S=Qe.current.scrollLeft,B=P.current.clientWidth;T=(p.clientX-b.left+S)/B}else T=(p.clientX-b.left)/b.width;const E=T*M;Re.debug("Timeline clicked at:",ue(E),"distance from end:",ue(M-E)),typeof window<"u"&&(window.lastSeekedPosition=E),me(E),Ne(E),st(E);const j=c.find(S=>{const B=E>=S.startTime&&E<=S.endTime,z=Math.abs(E-S.startTime)<.01,be=Math.abs(E-S.endTime)<.01;return B||z||be});if(j&&ht(j),ie.current)if(O&&C){if(j){const B=[...c].sort((z,be)=>z.startTime-be.startTime).findIndex(z=>z.id===j.id);if(B!==-1){const z=new CustomEvent("update-segment-index",{detail:{segmentIndex:B}});document.dispatchEvent(z),Re.debug(`Segments playback mode: updating segment index to ${B} for timeline click in segment ${j.id}`)}}ie.current.play().then(()=>{Ct(!0)}).catch(S=>{console.error("Error resuming segments playback:",S),Ct(!1)})}else C&&!O&&ie.current.play().then(()=>{Ct(!0)}).catch(S=>{console.error("Error resuming playback:",S),Ct(!1)});if(p.target===P.current)if(j)q(j.id),te(!1);else{q(null);const S=yn(E);ln(S);let B;if(X>1){const Oe=b.left-Qe.current.scrollLeft,ct=E/M;B=Oe+ct*b.width}else B=p.clientX;I({x:B,y:b.top-10}),te(!0);const z=[...c].sort((Oe,ct)=>Oe.startTime-ct.startTime),be=[...z].reverse().find(Oe=>Oe.endTime<E),Te=z.find(Oe=>Oe.startTime>E);Re.debug("Clicked in cutaway area:",{position:ue(E),availableSpace:ue(S),prevSegmentEnd:be?ue(be.endTime):"none",nextSegmentStart:Te?ue(Te.startTime):"none"})}},na=(p,C)=>b=>{if(b.preventDefault(),b.stopPropagation(),!P.current)return;P.current.getBoundingClientRect().width;const E=c.find(Mn=>Mn.id===p);if(!E)return;const j=E.startTime,S=E.endTime,B={...E};document.body.style.cursor="ew-resize";const z=document.createElement("div");z.style.position="fixed",z.style.top="0",z.style.left="0",z.style.width="100vw",z.style.height="100vh",z.style.zIndex="1000",z.style.cursor="ew-resize",document.body.appendChild(z);let be=!0,Te=j,Oe=S;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:p}}));const ct=Mn=>{if(!be||!P.current)return;const lr=P.current.getBoundingClientRect(),Ht=Math.max(0,Math.min(1,(Mn-lr.left)/lr.width))*M,aa=C?Ht:j,ur=C?S:Ht;if(k>=aa&&k<=ur)q(p),te(!1);else{q(null);const un=yn(k);ln(un),te(!0)}const sr=c.filter(un=>un.id!==p);let Gn=j,pa=S;if(C){Gn=Math.min(Ht,S-.5);const Tt=sr.filter(Ya=>Ya.endTime<=j).sort((Ya,Ia)=>Ia.endTime-Ya.endTime)[0];Tt&&Gn<Tt.endTime&&(Gn=Tt.endTime),Tt&&Math.abs(Gn-Tt.endTime)<.3&&(Gn=Tt.endTime),Te=Gn}else{pa=Math.max(Ht,j+.5);const Tt=sr.filter(Ya=>Ya.startTime>=S).sort((Ya,Ia)=>Ya.startTime-Ia.startTime)[0];Tt&&pa>Tt.startTime&&(pa=Tt.startTime),Tt&&Math.abs(pa-Tt.startTime)<.3&&(pa=Tt.startTime),Oe=pa}const cr=c.map(un=>un.id===p?{...un,startTime:Gn,endTime:pa}:un),ni=new CustomEvent("update-segments",{detail:{segments:cr,recordHistory:!1}});if(document.dispatchEvent(ni),Ce===p&&ie.current){const un=ie.current.currentTime,Tt=cr.find(Aa=>Aa.id===p);if(Tt){const Aa=un>=Tt.startTime&&un<=Tt.endTime;Re.debug(`During drag - playhead at ${ue(un)} is ${Aa?"inside":"outside"} segment (${ue(Tt.startTime)} - ${ue(Tt.endTime)})`),!Aa&&Ut&&(ie.current.pause(),Ct(!1),ht(null)),un<Tt.startTime?(Re.debug(`Adjusting display time to segment start: ${ue(Tt.startTime)}`),st(Tt.startTime),Ne(Tt.startTime)):un>Tt.endTime&&(Re.debug(`Adjusting display time to segment end: ${ue(Tt.endTime)}`),st(Tt.endTime),Ne(Tt.endTime))}}},Qt=()=>{if(!be)return;be=!1,document.removeEventListener("mousemove",bn),document.removeEventListener("mouseup",kn),document.removeEventListener("touchmove",_r),document.removeEventListener("touchend",La),document.removeEventListener("touchcancel",La),document.body.style.cursor="",document.body.contains(z)&&document.body.removeChild(z);const Mn=c.map(zn=>zn.id===p?{...zn,startTime:Te,endTime:Oe}:zn),lr=C?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:Mn,recordHistory:!0,action:lr}})),Ce===p&&ie.current){const zn=ie.current.currentTime,Ht=Mn.find(aa=>aa.id===p);if(Ht){const aa=zn>=Ht.startTime&&zn<=Ht.endTime;Re.debug(`Drag complete - playhead at ${ue(zn)} is ${aa?"inside":"outside"} segment (${ue(Ht.startTime)} - ${ue(Ht.endTime)})`);const ur=zn>=B.startTime&&zn<=B.endTime;aa?(!ur&&aa||ur&&aa&&(Ht.startTime!==B.startTime||Ht.endTime!==B.endTime))&&ht(Ht):(Ut&&(ie.current.pause(),Ct(!1),ht(null),wt(!1)),zn<Ht.startTime?(Re.debug(`Final adjustment - setting display time to segment start: ${ue(Ht.startTime)}`),st(Ht.startTime),Ne(Ht.startTime)):zn>Ht.endTime&&(Re.debug(`Final adjustment - setting display time to segment end: ${ue(Ht.endTime)}`),st(Ht.endTime),Ne(Ht.endTime)))}}},bn=Mn=>{ct(Mn.clientX)},kn=()=>{Qt()},_r=Mn=>{Mn.touches.length>0&&(Mn.preventDefault(),ct(Mn.touches[0].clientX))},La=()=>{Qt()};document.addEventListener("mousemove",bn,{passive:!1}),document.addEventListener("mouseup",kn),document.addEventListener("touchmove",_r,{passive:!1}),document.addEventListener("touchend",La),document.addEventListener("touchcancel",La)},Rr=p=>C=>{if(C.target.classList.contains("clip-segment-handle"))return;C.preventDefault(),C.stopPropagation(),wt(!1);const b=ie.current&&!ie.current.paused;q(p);const T=c.find(Oe=>Oe.id===p);if(!T)return;const j=C.currentTarget.getBoundingClientRect(),S=(C.clientX-j.left)/j.width,B=T.startTime+S*(T.endTime-T.startTime),z=Math.max(T.startTime,Math.min(T.endTime,B));if(Ne(z),st(z),ie.current){const Oe=ie.current.currentTime,ct=Oe>=T.startTime&&Oe<=T.endTime;Re.debug(`Segment click - playhead at ${ue(Oe)} is ${ct?"inside":"outside"} segment (${ue(T.startTime)} - ${ue(T.endTime)})`),ct||(Math.abs(Oe-T.startTime)<Math.abs(Oe-T.endTime)?(Re.debug(`Playhead outside segment - adjusting to segment start: ${ue(T.startTime)}`),st(T.startTime)):(Re.debug(`Playhead outside segment - adjusting to segment end: ${ue(T.endTime)}`),st(T.endTime)))}if(me(z),ie.current)if(O&&b){const ct=[...c].sort((Qt,bn)=>Qt.startTime-bn.startTime).findIndex(Qt=>Qt.id===p);if(ct!==-1){const Qt=new CustomEvent("update-segment-index",{detail:{segmentIndex:ct}});document.dispatchEvent(Qt)}ie.current.play().then(()=>{Ct(!0)}).catch(Qt=>{console.error("Error continuing segments playback after segment click:",Qt)})}else b&&!O&&(ht(T),wt(!1),ie.current.play().then(()=>{Ct(!0)}).catch(Oe=>{console.error("Error resuming playback after segment click:",Oe)}));const be=C.clientX,Te=j.top-10;if(I({x:be,y:Te}),X>1&&P.current&&Qe.current){P.current.getBoundingClientRect();const Oe=P.current.clientWidth,ct=Qe.current.clientWidth,Qt=z/M*Oe,bn=Math.max(0,Qt-ct/2);Qe.current.scrollTo({left:bn,behavior:"smooth"}),setTimeout(()=>{if(P.current&&Qe.current){const kn=P.current.getBoundingClientRect(),La=z/M*Oe-Qe.current.scrollLeft+kn.left;I({x:La,y:Te})}},300)}},wr=()=>[...c].sort((C,b)=>C.startTime-b.startTime).map((C,b)=>{const T=C.startTime/M*100,E=(C.endTime-C.startTime)/M*100,j=$S((C.startTime+C.endTime)/2,M);return v.jsxs("div",{className:`clip-segment ${Ce===C.id?"selected":""}`,style:{left:`${T}%`,width:`${E}%`,backgroundColor:j,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:Rr(C.id),children:[v.jsxs("div",{className:"clip-segment-info",children:[v.jsxs("div",{className:"clip-segment-name",children:["Chapter ",b+1]}),v.jsxs("div",{className:"clip-segment-time",children:[ki(C.startTime)," - ",ki(C.endTime)]}),v.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",ki(C.endTime-C.startTime)]})]}),O?null:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:S=>{S.stopPropagation(),na(C.id,!0)(S)},onTouchStart:S=>{S.stopPropagation(),na(C.id,!0)(S)}}),v.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:S=>{S.stopPropagation(),na(C.id,!1)(S)},onTouchStart:S=>{S.stopPropagation(),na(C.id,!1)(S)}})]})]},C.id)});W.useEffect(()=>{const p=C=>{const{segmentId:b}=C.detail;if(c.filter(E=>E.id!==b).length===0){const E={id:Date.now(),chapterTitle:"Full Video",startTime:0,endTime:M},j=new CustomEvent("update-segments",{detail:{segments:[E],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(j),q(E.id),te(!1),Ne(k),st(k),ht(E),P.current){const S=P.current.getBoundingClientRect(),B=k/M*100,z=S.left+S.width*(B/100);I({x:z,y:S.top-10}),Re.debug("Created full video segment:",{id:E.id,duration:ue(M),currentPosition:ue(k)})}}else if(Ce===b){if(!c.find(S=>S.id===b))return;const j=yn(k);if(q(null),te(!0),ln(j),P.current){const S=P.current.getBoundingClientRect(),B=k/M*100,z=S.left+S.width*(B/100);I({x:z,y:S.top-10}),Re.debug("Segment deleted, showing cutaway tooltip:",{position:ue(k),availableSpace:ue(j)})}}};return document.addEventListener("delete-segment",p),()=>{document.removeEventListener("delete-segment",p)}},[Ce,c,k,M,P]),W.useEffect(()=>{const p=ie.current;if(!p)return;const C=()=>{De(!0),Ct(!0)},b=()=>{De(!1),Ct(!1)};return p.addEventListener("play",C),p.addEventListener("pause",b),()=>{p.removeEventListener("play",C),p.removeEventListener("pause",b)}},[]);const Dr=p=>{if(!P.current)return;const C=P.current.getBoundingClientRect(),T=(p.clientX-C.left)/C.width*M,E=Math.max(0,Math.min(M,T));typeof window<"u"&&(window.lastSeekedPosition=E)},[h,V]=W.useState(!1),K=W.useRef(!1),ve=p=>{if(ft)return;p.stopPropagation(),p.preventDefault(),V(!0),K.current=!0,gn(k);const C=T=>{if(!P.current||!Qe.current)return;const E=P.current.getBoundingClientRect();let j;if(X>1){const B=Qe.current.scrollLeft,z=P.current.clientWidth;j=(T.clientX-E.left+B)/z}else j=(T.clientX-E.left)/E.width;j=Math.max(0,Math.min(1,j));const S=j*M;Ne(S),st(S),gn(S),typeof window<"u"&&(window.lastSeekedPosition=S),me(S)},b=()=>{V(!1),K.current=!1,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",b)},tt=p=>{if(ft)return;p.stopPropagation(),p.preventDefault(),V(!0),K.current=!0,gn(k);const C=T=>{if(!P.current||!Qe.current||!T.touches[0])return;const E=P.current.getBoundingClientRect();let j;if(X>1){const B=Qe.current.scrollLeft,z=P.current.clientWidth;j=(T.touches[0].clientX-E.left+B)/z}else j=(T.touches[0].clientX-E.left)/E.width;j=Math.max(0,Math.min(1,j));const S=j*M;Ne(S),st(S),gn(S),typeof window<"u"&&(window.lastSeekedPosition=S),me(S)},b=()=>{V(!1),K.current=!1,document.removeEventListener("touchmove",C),document.removeEventListener("touchend",b),document.removeEventListener("touchcancel",b)};document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",b),document.addEventListener("touchcancel",b)};return W.useEffect(()=>{},[$a,Ea,yt]),v.jsxs("div",{className:`timeline-container-card ${O?"segments-playback-mode":""}`,children:[v.jsxs("div",{className:"timeline-header",children:[v.jsx("div",{className:"timeline-title",children:v.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),v.jsxs("div",{className:"duration-time",children:["Total Chapters:"," ",v.jsx("span",{children:ue(c.reduce((p,C)=>p+(C.endTime-C.startTime),0))})]})]}),v.jsx("div",{ref:Qe,className:`timeline-scroll-container ${O?"segments-playback-mode":""}`,style:{overflow:X>1?"auto":"hidden"},children:v.jsxs("div",{ref:P,className:"timeline-container",onClick:ta,onMouseMove:Dr,style:{width:`${X*100}%`,cursor:"pointer"},children:[v.jsxs("div",{className:"timeline-marker",style:{left:`${Oa}%`},children:[v.jsx("div",{className:"timeline-marker-head",onClick:p=>{if(p.stopPropagation(),c.find(C=>k>=C.startTime&&k<=C.endTime),Ce||Xe){q(null),te(!1);return}else gn(k),Re.debug("Opening tooltip at:",ue(k))},children:v.jsx("span",{className:"timeline-marker-head-icon",children:Ce||Xe?"-":"+"})}),O?null:v.jsx("div",{className:`timeline-marker-drag ${h?"dragging":""}`,onMouseDown:ve,onTouchStart:tt,children:v.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),c.length===0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"trim-line-marker",style:{left:`${Zr}%`},children:v.jsx("div",{ref:It,className:"trim-handle left"})}),v.jsx("div",{className:"trim-line-marker",style:{left:`${xr}%`},children:v.jsx("div",{ref:Ie,className:"trim-handle right"})})]}),wr(),ti(),Ce!==null&&v.jsxs("div",{className:`segment-tooltip two-row-tooltip ${O?"segments-playback-mode":""}`,style:{position:"absolute",...xm(Oa)},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:[Ce&&v.jsx("div",{className:"tooltip-chapter-editor",children:v.jsx("textarea",{className:"tooltip-chapter-input",placeholder:"Add Chapter Text",value:Zt,onChange:p=>an(p.target.value),onBlur:Je,onMouseLeave:Je,rows:2,maxLength:200,onClick:p=>p.stopPropagation(),onMouseDown:p=>p.stopPropagation(),onMouseUp:p=>p.stopPropagation()})}),v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek -50ms (click or hold)",disabled:O,...O?{}:mn(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),v.jsx("div",{className:`tooltip-time-display ${O?"disabled":""}`,style:{pointerEvents:O?"none":"auto",cursor:O?"not-allowed":"default",opacity:O?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:ue(Un)}),v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek +50ms (click or hold)",disabled:O,...O?{}:mn(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsx("button",{className:`tooltip-action-btn delete ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Delete segment",disabled:O,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},onClick:p=>{p.stopPropagation();const C=new CustomEvent("delete-segment",{detail:{segmentId:Ce}});document.dispatchEvent(C)},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M3 6h18"}),v.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),v.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),v.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),v.jsx("button",{className:`tooltip-action-btn scissors ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Split segment at current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const C=new CustomEvent("split-segment",{detail:{segmentId:Ce,time:Y}});document.dispatchEvent(C)},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"6",cy:"6",r:"3"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),v.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),v.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),v.jsx("button",{className:`tooltip-action-btn play-from-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Play segment from beginning",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const C=c.find(b=>b.id===Ce);if(C&&ie.current){if(wt(!0),Math.abs(ie.current.currentTime-C.endTime)<.05){Re.debug(`Already at end boundary (${ue(ie.current.currentTime)}), nudging position back slightly`);const b=Math.max(C.startTime,C.endTime-.1);ie.current.currentTime=b,me(b),Ne(b),Re.debug(`Position adjusted to ${ue(b)}`)}else me(C.startTime),Ne(C.startTime);ht(C),ie.current.play().then(()=>{Ct(!0)}).catch(b=>{console.error("Error playing from beginning:",b)})}},children:v.jsx("img",{src:Cm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${Ve?"pause":"play"} ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":Ve?"Pause playback":"Play from current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation(),Ve?ie.current&&(ie.current.pause(),Ct(!1),wt(!1)):Ze()},children:Ve?v.jsx("img",{src:Em,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:Tm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn set-in ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Set start point at current position",disabled:O,onClick:p=>{if(p.stopPropagation(),c.find(b=>b.id===Ce)){const b=c.map(E=>E.id===Ce?{...E,startTime:Y<E.endTime-.5?Y:E.endTime-.5}:E),T=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(T)}},children:v.jsx("img",{src:IS,alt:"Set start point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn set-out ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Set end point at current position",disabled:O,onClick:p=>{if(p.stopPropagation(),c.find(b=>b.id===Ce)){const b=c.map(E=>E.id===Ce?{...E,endTime:Y>E.startTime+.5?Y:E.startTime+.5}:E),T=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(T)}},children:v.jsx("img",{src:YS,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),Xe&&Ce===null&&v.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${O?"segments-playback-mode":""}`,style:{position:"absolute",...xm(Oa)},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:[v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek -50ms (click or hold)",disabled:O,...O?{}:mn(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),v.jsx("div",{className:`tooltip-time-display ${O?"disabled":""}`,style:{pointerEvents:O?"none":"auto",cursor:O?"not-allowed":"default",opacity:O?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:ue(Y)}),v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Seek +50ms (click or hold)",disabled:O,...O?{}:mn(.05),children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsxs("button",{className:`tooltip-action-btn new-segment ${Vt<.5||O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":Vt<.5?"Not enough space for new segment":"Create new segment",disabled:Vt<.5||O,onClick:async p=>{if(p.stopPropagation(),Vt<.5)return;const C=Y,b=C+Vt,T={id:Date.now(),chapterTitle:et(C,c),startTime:C,endTime:b},E=[...c,T],j=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(j),te(!1),setTimeout(()=>{const S=E[E.length-1];S&&(q(S.id),Re.debug("Created and selected new segment:",S.id))},100)},children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),v.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),v.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),v.jsx("button",{className:`tooltip-action-btn play-from-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Play from beginning of cutaway",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{if(p.stopPropagation(),ie.current){const C=Y;wt(!0);const b=[...c].sort((z,be)=>z.startTime-be.startTime),T=[...b].reverse().find(z=>z.endTime<C),E=T?T.endTime+.025:0,j=b.find(z=>z.startTime>C),S=j?j.startTime:M,B={id:-999,chapterTitle:"Cutaway",startTime:E,endTime:S};me(E),Ne(E),Ct(!1),setTimeout(()=>{ht(B)},0),setTimeout(()=>{ie.current&&ie.current.play().then(()=>{Ct(!0),Re.debug("CUTAWAY PLAYBACK STARTED:",ue(E),"to",ue(S),T?`(after segment ${T.id}, offset +25ms from ${ue(T.endTime)})`:"(from video start)",j?`(will stop at segment ${j.id})`:"(will play to end)")}).catch(z=>{console.error("Error playing cutaway:",z)})},50)}},children:v.jsx("img",{src:Cm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${Ve?"pause":"play"} ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":Ve?"Pause playback":"Play from here until next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation(),Ve?ie.current&&(ie.current.pause(),Ct(!1),wt(!1)):Ze()},children:Ve?v.jsx("img",{src:Em,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:Tm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn segment-end ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Adjust end of previous segment",disabled:O,onClick:p=>{p.stopPropagation();const b=[...c].sort((T,E)=>T.startTime-E.startTime).filter(T=>T.endTime<=Y).sort((T,E)=>E.endTime-T.endTime)[0];if(b){const T=c.map(j=>j.id===b.id?{...j,endTime:Y}:j),E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(E),Re.debug("Adjusted end of previous segment to:",ue(Y)),q(b.id),te(!1)}else if(c.length>0){const T=[...c].sort((S,B)=>S.startTime-B.startTime);let E=!1,j=0;for(let S=0;S<T.length-1;S++){const B=T[S].endTime,z=T[S+1].startTime;if(Y>B&&Y<z){E=!0,j=B;break}}if(E){const S={id:Date.now(),chapterTitle:et(j,c),startTime:j,endTime:Y},B=[...c,S],z=new CustomEvent("update-segments",{detail:{segments:B,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(z),Re.debug("Created new segment in gap from",ue(j),"to",ue(Y)),q(S.id),te(!1)}else if(Y<T[0].startTime){const S={id:Date.now(),chapterTitle:et(0,c),startTime:0,endTime:Y},B=[...c,S],z=new CustomEvent("update-segments",{detail:{segments:B,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(z),Re.debug("Created new segment from start to:",ue(Y)),q(S.id),te(!1)}else{const S=[...c].sort((B,z)=>z.endTime-B.endTime)[0];if(S&&S.endTime<M){const B=c.map(be=>be.id===S.id?{...be,endTime:M}:be),z=new CustomEvent("update-segments",{detail:{segments:B,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(z),q(S.id),te(!1)}}}else if(Y>0){const T={id:Date.now(),chapterTitle:et(0,c),startTime:0,endTime:Y},E=new CustomEvent("update-segments",{detail:{segments:[T],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(E),Re.debug("Created new segment from start to:",ue(Y)),q(T.id),te(!1)}},children:v.jsx("img",{src:qS,alt:"Set end point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn segment-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Adjust start of next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const b=[...c].sort((T,E)=>T.startTime-E.startTime).filter(T=>T.startTime>=Y).sort((T,E)=>T.startTime-E.startTime)[0];if(b){const T=c.map(j=>j.id===b.id?{...j,startTime:Y}:j),E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(E),Re.debug("Adjusted start of next segment to:",ue(Y)),q(b.id),te(!1)}else if(c.length>0){const T=[...c].sort((S,B)=>S.startTime-B.startTime);let E=!1,j=0;for(let S=0;S<T.length-1;S++){const B=T[S].endTime,z=T[S+1].startTime;if(Y>B&&Y<z){E=!0,j=z;break}}if(E){const S={id:Date.now(),chapterTitle:et(Y,c),startTime:Y,endTime:j},B=[...c,S],z=new CustomEvent("update-segments",{detail:{segments:B,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(z),Re.debug("Created new segment in gap from",ue(Y),"to",ue(j)),q(S.id),te(!1)}else if(Y<T[0].startTime){const S={id:Date.now(),chapterTitle:et(Y,c),startTime:Y,endTime:T[0].startTime},B=[...c,S],z=new CustomEvent("update-segments",{detail:{segments:B,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(z),Re.debug("Created new segment from",ue(Y),"to first segment"),q(S.id),te(!1)}else if(Y>T[T.length-1].endTime){const S={id:Date.now(),chapterTitle:et(Y,c),startTime:Y,endTime:M},B=[...c,S],z=new CustomEvent("update-segments",{detail:{segments:B,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(z),Re.debug("Created new segment from",ue(Y),"to end"),q(S.id),te(!1)}else{const S=T[0];if(S&&S.startTime>0){const B=c.map(be=>be.id===S.id?{...be,startTime:0}:be),z=new CustomEvent("update-segments",{detail:{segments:B,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(z),q(S.id),te(!1)}}}else if(Y<M){const T={id:Date.now(),chapterTitle:et(Y,c),startTime:Y,endTime:M},E=new CustomEvent("update-segments",{detail:{segments:[T],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(E),Re.debug("Created new segment from",ue(Y),"to end"),q(T.id),te(!1)}},children:v.jsx("img",{src:WS,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),v.jsxs("div",{className:"timeline-controls",children:[v.jsxs("div",{className:"time-navigation",children:[v.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),v.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:p=>{if(p.key==="Enter"){const C=p.currentTarget.value;try{const b=C.split(":");let T=0,E=0,j=0,S=0;if(b.length===3){T=parseInt(b[0]),E=parseInt(b[1]);const z=b[2].split(".");j=parseInt(z[0]),z.length>1&&(S=parseInt(z[1].padEnd(3,"0").substring(0,3)))}else if(b.length===2){E=parseInt(b[0]);const z=b[1].split(".");j=parseInt(z[0]),z.length>1&&(S=parseInt(z[1].padEnd(3,"0").substring(0,3)))}const B=T*3600+E*60+j+S/1e3;if(!isNaN(B)&&B>=0&&B<=M){me(B);const z=be=>{const Te=c.find(Oe=>{const ct=be>=Oe.startTime&&be<=Oe.endTime,Qt=Math.abs(be-Oe.startTime)<.001,bn=Math.abs(be-Oe.endTime)<.001;return ct||Qt||bn});if(P.current&&Qe.current){const Oe=P.current.getBoundingClientRect();let ct;if(X>1)ct=Oe.left-Qe.current.scrollLeft+be/M*Oe.width;else{const Qt=be/M;ct=Oe.left+Oe.width*Qt}I({x:ct,y:Oe.top-10}),Ne(be),Te?(q(Te.id),te(!1)):(q(null),te(!0))}};setTimeout(()=>z(B),10)}}catch(b){console.error("Invalid time format:",b)}}}}),v.jsx("div",{className:"time-button-group",children:(()=>{const p=()=>{const C=c.find(b=>{const T=k>=b.startTime&&k<=b.endTime,E=Math.abs(k-b.startTime)<.001,j=Math.abs(k-b.endTime)<.001;return T||E||j});if(P.current&&Qe.current){const b=P.current.getBoundingClientRect();let T;if(X>1)T=b.left-Qe.current.scrollLeft+k/M*b.width;else{const E=k/M;T=b.left+b.width*E}if(I({x:T,y:b.top-10}),Ne(k),C)q(C.id),te(!1);else{const E=yn(k);ln(E),E>=.5?(q(null),te(!0)):(q(null),te(!1))}}};return v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"time-button",onClick:()=>{me(k-.01),setTimeout(p,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),v.jsx("button",{className:"time-button",onClick:()=>{me(k-.001),setTimeout(p,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{me(k+.001),setTimeout(p,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{me(k+.01),setTimeout(p,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),v.jsxs("div",{className:"controls-right",children:[v.jsxs("div",{className:"zoom-dropdown-container",children:[v.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>_n(!Wt),children:["Zoom ",X,"x",v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),Wt&&v.jsx("div",{className:"zoom-dropdown",style:{position:"absolute",top:"100%",left:0,zIndex:1e3},children:[1,2,4,8,16,32,64,128,256,512,1024,2048,4096].map(p=>v.jsxs("div",{className:`zoom-option ${X===p?"selected":""}`,onClick:()=>{re(p),_n(!1)},children:[X===p&&v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",p,"x"]},p))})]}),v.jsx("div",{className:"auto-saved-time",style:{color:We?"#1976d2":"gray",fontSize:"12px",marginLeft:"10px",display:"flex",alignItems:"center",gap:"5px"},children:We?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"auto-save-spinner",style:{display:"inline-block",width:"12px",height:"12px",border:"2px solid #f3f3f3",borderTop:"2px solid #1976d2",borderRadius:"50%",animation:"spin 1s linear infinite"}}),"Auto saving..."]}):he?`Auto saved: ${he}`:"Not saved yet"}),v.jsx("div",{className:"save-buttons-row",children:v.jsx("button",{onClick:()=>Q(!0),className:"save-chapters-button","data-tooltip":"Save chapters",disabled:c.filter(p=>p.chapterTitle&&p.chapterTitle.trim()).length===0,children:"Save Chapters"})}),v.jsx(Wu,{isOpen:hn,onClose:()=>Q(!1),title:"Save Chapters",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Q(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:ei,children:"Save Chapters"})]}),children:v.jsxs("p",{className:"modal-message",children:["Are you sure you want to save the chapters? This will save"," ",c.filter(p=>p.chapterTitle&&p.chapterTitle.trim()).length," chapters to the database."]})}),v.jsxs(Wu,{isOpen:xe,onClose:()=>{},title:"Processing Video",children:[v.jsx("div",{className:"modal-spinner",children:v.jsx("div",{className:"spinner"})}),v.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),v.jsx(Wu,{isOpen:yt,onClose:()=>{Nt(!1)},title:"Video Edited Successfully",children:v.jsx("div",{className:"modal-success-content",children:v.jsxs("p",{className:"modal-message text-center redirect-message",children:[v.jsx("span",{style:{fontWeight:"bold"},children:"Your chapters have been saved successfully!"}),v.jsx("br",{}),v.jsx("a",{href:$a,className:"media-page-link",style:GS,children:"Click here to navigate to the media page"})," ","or close this window to continue editing the chapters."]})})}),v.jsxs(Wu,{isOpen:Gt,onClose:()=>Lt(!1),title:"Video Processing Error",children:[v.jsxs("div",{className:"modal-error-content",children:[v.jsx("div",{className:"modal-error-icon",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#F44336",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),v.jsx("p",{className:"modal-message text-center error-message",children:jt})]}),v.jsx("div",{className:"modal-choices",children:v.jsxs("button",{onClick:()=>Lt(!1),className:"modal-choice-button centered-choice",children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),ft&&v.jsx("div",{className:"mobile-timeline-overlay",children:v.jsxs("div",{className:"mobile-timeline-message",children:[v.jsx("p",{children:"Please play the video first to enable timeline controls"}),v.jsx("div",{className:"mobile-play-icon"})]})})]})},QS=({onSplit:k,onReset:M,onUndo:ee,onRedo:ke,onPlay:He,canUndo:X,canRedo:c,isPlaying:xt=!1})=>{const[fe,pe]=W.useState(!1);W.useEffect(()=>{const ae=()=>{pe(window.innerWidth<=640)};return ae(),window.addEventListener("resize",ae),()=>window.removeEventListener("resize",ae)},[]);const ut=()=>{He()};return v.jsx("div",{className:"editing-tools-container",children:v.jsxs("div",{className:"flex-container single-row",children:[v.jsx("div",{className:"button-group play-buttons-group",children:v.jsx("button",{className:"button play-button",onClick:ut,"data-tooltip":xt?"Pause video":"Play full video",style:{fontSize:"0.875rem"},children:xt?v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),v.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),v.jsx("span",{className:"full-text",children:"Pause"}),v.jsx("span",{className:"short-text",children:"Pause"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),v.jsx("span",{className:"full-text",children:"Play"}),v.jsx("span",{className:"short-text",children:"Play"})]})})}),v.jsxs("div",{className:"button-group secondary",children:[v.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":"Undo last action",disabled:!X,onClick:ee,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M9 14 4 9l5-5"}),v.jsx("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11"})]}),v.jsx("span",{className:"button-text",children:"Undo"})]}),v.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":"Redo last undone action",disabled:!c,onClick:ke,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"m15 14 5-5-5-5"}),v.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),v.jsx("span",{className:"button-text",children:"Redo"})]}),v.jsx("div",{className:"divider"}),v.jsxs("button",{className:"button",onClick:M,"data-tooltip":"Reset to full video",children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})}),v.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},KS=({segments:k,selectedSegmentId:M})=>{const ee=[...k].sort((X,c)=>X.startTime-c.startTime),ke=X=>{const c=new CustomEvent("delete-segment",{detail:{segmentId:X}});document.dispatchEvent(c)},He=X=>`segment-default-color segment-color-${X%8+1}`;return ee.find(X=>X.id===M),v.jsxs("div",{className:"clip-segments-container",children:[v.jsx("h3",{className:"clip-segments-title",children:"Chapters"}),ee.map((X,c)=>v.jsxs("div",{className:`segment-item ${He(c)} ${M===X.id?"selected":""}`,children:[v.jsx("div",{className:"segment-content",children:v.jsxs("div",{className:"segment-info",children:[v.jsx("div",{className:"segment-title",children:X.chapterTitle?v.jsx("span",{className:"chapter-title",children:X.chapterTitle}):v.jsxs("span",{className:"default-title",children:["Chapter ",c+1]})}),v.jsxs("div",{className:"segment-time",children:[ki(X.startTime)," - ",ki(X.endTime)]}),v.jsxs("div",{className:"segment-duration",children:["Duration: ",FS(X.endTime-X.startTime)]})]})}),v.jsx("div",{className:"segment-actions",children:v.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>ke(X.id),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})})})})]},X.id)),ee.length===0&&v.jsx("div",{className:"empty-message",children:"No chapters created yet. Use the split button to create chapter segments."})]})},JS=({videoRef:k,onPlay:M})=>{const[ee,ke]=W.useState(!1);W.useEffect(()=>{const c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);ke(c)},[]),W.useEffect(()=>{const X=k.current;if(!X)return;const c=()=>{ke(!1)};return X.addEventListener("play",c),()=>{X.removeEventListener("play",c)}},[k]);const He=()=>{M()};return ee?v.jsx("div",{className:"mobile-play-prompt-overlay",children:v.jsx("div",{className:"mobile-play-prompt",children:v.jsx("button",{className:"mobile-play-button",onClick:He,children:"Click to start editing..."})})}):null},ZS=()=>{const k=(U,Z)=>`Chapter ${[...Z,{startTime:U}].sort((We,qe)=>We.startTime-qe.startTime).findIndex(We=>We.startTime===U)+1}`,M=U=>{const Z=U.split(":");if(Z.length!==3)return 0;const Se=parseInt(Z[0],10)||0,he=parseInt(Z[1],10)||0,je=parseFloat(Z[2])||0;return Se*3600+he*60+je},ee=W.useRef(null),[ke,He]=W.useState(0),[X,c]=W.useState(0),[xt,fe]=W.useState(!1),[pe,ut]=W.useState(!1),[ae,Ae]=W.useState(0),[re,me]=W.useState(0),[ie,Yt]=W.useState([]),[ft,Ve]=W.useState(1),[De,Ze]=W.useState([]),[O,et]=W.useState(null),[P,It]=W.useState([]),[Ie,Rt]=W.useState(-1),[At,Ce]=W.useState(!1),[q,Xe]=W.useState(!1),[te,de]=W.useState(0);W.useEffect(()=>{var U;if(P.length>0){const Z=((U=P[Ie])==null?void 0:U.action)||"";Z!=="save"&&Z!=="save_copy"&&Z!=="save_segments"&&Ce(!0)}},[P,Ie]),W.useEffect(()=>{const U=ee.current;if(!U)return;const Z=()=>{c(U.duration),me(U.duration),(async()=>{var vt;let _e=[];const dt=typeof window<"u"&&((vt=window.MEDIA_DATA)==null?void 0:vt.chapters)||[];if(dt.length>0)for(let an=0;an<dt.length;an++){const mn=dt[an],hn=M(mn.startTime),Q=M(mn.endTime),xe={id:an+1,chapterTitle:mn.chapterTitle,startTime:hn,endTime:Q};_e.push(xe)}else _e=[{id:1,chapterTitle:"",startTime:0,endTime:U.duration}];const Je={trimStart:0,trimEnd:U.duration,splitPoints:[],clipSegments:_e};It([Je]),Rt(0),Ze(_e)})()},Se=()=>{He(U.currentTime)},he=()=>{fe(!0),nn(!0)},je=()=>{fe(!1)},We=()=>{fe(!1),U.currentTime=ae};return U.addEventListener("loadedmetadata",Z),U.addEventListener("timeupdate",Se),U.addEventListener("play",he),U.addEventListener("pause",je),U.addEventListener("ended",We),()=>{U.removeEventListener("loadedmetadata",Z),U.removeEventListener("timeupdate",Se),U.removeEventListener("play",he),U.removeEventListener("pause",je),U.removeEventListener("ended",We)}},[]);const I=U=>{const Z=ee.current;if(!Z)return;const Se=!Z.paused;Z.currentTime=U,He(U),typeof window<"u"&&(window.lastSeekedPosition=U),Se&&Z.play().then(()=>{fe(!0)}).catch(he=>{console.error("Error resuming playback:",he),fe(!1)})},Y=U=>{const Z={trimStart:ae,trimEnd:re,splitPoints:[...ie],clipSegments:JSON.parse(JSON.stringify(De)),action:U||"manual_save"},Se=P[Ie],he=()=>{if(!Se||Se.clipSegments.length!==Z.clipSegments.length)return!0;for(let qe=0;qe<Z.clipSegments.length;qe++){const _e=Se.clipSegments[qe],dt=Z.clipSegments[qe];if(!_e||!dt||Math.abs(_e.startTime-dt.startTime)>.001||Math.abs(_e.endTime-dt.endTime)>.001)return!0}return!1},je=!Se||Se.trimStart!==Z.trimStart||Se.trimEnd!==Z.trimEnd||Se.splitPoints.length!==Z.splitPoints.length||he(),We=Z.action!==void 0;if(je||We){const qe=Ie;It(_e=>qe<_e.length-1?[..._e.slice(0,qe+1),Z]:[..._e,Z]),Rt(_e=>_e+1)}};W.useEffect(()=>{const U=Z=>{if(Z.detail){const{time:Se,isStart:he,recordHistory:je,action:We}=Z.detail;he?Ae(Se):me(Se),je&&setTimeout(()=>{Y(We||(he?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",U),()=>{document.removeEventListener("update-trim",U)}},[]),W.useEffect(()=>{const U=he=>{if(he.detail&&he.detail.segments){const je=he.detail.recordHistory!==!1,We=he.detail.action||"update_segments";Ze(he.detail.segments),je&&setTimeout(()=>{const qe=JSON.parse(JSON.stringify(he.detail.segments)),_e={trimStart:ae,trimEnd:re,splitPoints:[...ie],clipSegments:qe,action:We},dt=Ie;It(Je=>dt<Je.length-1?[...Je.slice(0,dt+1),_e]:[...Je,_e]),Rt(Je=>Je+1)},20)}},Z=async he=>{const je=he;if(je.detail&&typeof je.detail.time=="number"&&typeof je.detail.segmentId=="number"){const We=je.detail.time,qe=je.detail.segmentId;I(We);const _e=De.find(hn=>hn.id===qe);if(!_e||We<=_e.startTime||We>=_e.endTime)return;const dt=[...De],Je=dt.findIndex(hn=>hn.id===qe);if(Je===-1)return;dt.splice(Je,1);const vt=dt,an={id:Date.now(),chapterTitle:k(_e.startTime,vt),startTime:_e.startTime,endTime:We},mn={id:Date.now()+1,chapterTitle:k(We,[...vt,an]),startTime:We,endTime:_e.endTime};dt.push(an,mn),dt.sort((hn,Q)=>hn.startTime-Q.startTime),Ze(dt),Y("split_segment")}},Se=async he=>{const je=he;if(je.detail&&typeof je.detail.segmentId=="number"){const We=je.detail.segmentId,qe=De.filter(_e=>_e.id!==We);if(qe.length!==De.length){if(qe.length===0&&ee.current){const _e={id:Date.now(),chapterTitle:"Chapter 1",startTime:0,endTime:ee.current.duration};Ae(0),me(ee.current.duration),Yt([]),Ze([_e])}else Ze(qe);Y("delete_segment")}}};return document.addEventListener("update-segments",U),document.addEventListener("split-segment",Z),document.addEventListener("delete-segment",Se),()=>{document.removeEventListener("update-segments",U),document.removeEventListener("split-segment",Z),document.removeEventListener("delete-segment",Se)}},[De,X]);const Ne=U=>{Ae(U),Y("adjust_trim_start")},Wt=U=>{me(U),Y("adjust_trim_end")},_n=async()=>{if(ee.current&&!ie.includes(ke)){const U=[...ie,ke].sort((he,je)=>he-je);Yt(U);const Z=[];let Se=0;for(let he=0;he<=U.length;he++){const je=he<U.length?U[he]:X;Se<je&&(Z.push({id:Date.now()+he,chapterTitle:`Chapter ${he+1}`,startTime:Se,endTime:je}),Se=je)}Ze(Z),Y("create_split_points")}},Vt=async()=>{if(Ae(0),me(X),Yt([]),!ee.current)return;const U={id:Date.now(),chapterTitle:"Chapter 1",startTime:0,endTime:X};Ze([U]),Y("reset_all")},ln=()=>{if(Ie>0){const U=P[Ie-1];Re.debug(`** UNDO ** to position ${Ie-1}, action: ${U.action}, segments: ${U.clipSegments.length}`),Re.debug("Segment details after undo:",U.clipSegments.map(Z=>`ID: ${Z.id}, Time: ${ue(Z.startTime)} - ${ue(Z.endTime)}`)),Ae(U.trimStart),me(U.trimEnd),Yt([...U.splitPoints]),Ze(JSON.parse(JSON.stringify(U.clipSegments))),Rt(Ie-1),setTimeout(()=>{const Z=new CustomEvent("undo-redo-autosave");document.dispatchEvent(Z)},10)}},Ut=()=>{if(Ie<P.length-1){const U=P[Ie+1];Re.debug(`** REDO ** to position ${Ie+1}, action: ${U.action}, segments: ${U.clipSegments.length}`),Re.debug("Segment details after redo:",U.clipSegments.map(Z=>`ID: ${Z.id}, Time: ${ue(Z.startTime)} - ${ue(Z.endTime)}`)),Ae(U.trimStart),me(U.trimEnd),Yt([...U.splitPoints]),Ze(JSON.parse(JSON.stringify(U.clipSegments))),Rt(Ie+1),setTimeout(()=>{const Z=new CustomEvent("undo-redo-autosave");document.dispatchEvent(Z)},10)}},Ct=U=>{Ve(U)},qt=()=>{const U=ee.current;U&&(U.muted=!U.muted,ut(!pe))},ht=(U,Z)=>{Ze(Se=>Se.map(he=>he.id===U?{...he,...Z}:he)),Ce(!0)},Un=async U=>{var Z;try{const Se=(Z=window.MEDIA_DATA)==null?void 0:Z.mediaId;if(!Se){console.error("No media ID found");return}const je={chapters:U.map(Je=>({startTime:Je.from,endTime:Je.to,chapterTitle:Je.chapterTitle}))},We=st(),qe={"Content-Type":"application/json"};We&&(qe["X-CSRFToken"]=We);const _e=await fetch(`/api/v1/media/${Se}/chapters`,{method:"POST",headers:qe,body:JSON.stringify(je)});if(!_e.ok)throw new Error(`Failed to save chapters: ${_e.status}`);const dt=await _e.json();Ce(!1)}catch(Se){console.error("Error saving chapters:",Se)}},st=()=>{var he;const Se=`; ${document.cookie}`.split("; csrftoken=");return Se.length===2&&((he=Se.pop())==null?void 0:he.split(";").shift())||""},tn=U=>{et(U)},wt=U=>{(!Qe||Zt)&&I(U)},Qe=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[Zt,nn]=W.useState(!1);return W.useEffect(()=>{if(!q||!ee.current)return;const U=ee.current,Z=[...De].sort((he,je)=>he.startTime-je.startTime),Se=()=>{const he=Z[te];if(!he)return;const je=U.currentTime;if(je<he.startTime){U.currentTime=he.startTime;return}if(je>=he.endTime-.01)if(te<Z.length-1){const We=Z[te+1];U.currentTime=We.startTime,de(te+1),U.paused&&U.play().catch(qe=>{console.error("Error continuing segment playback:",qe)})}else U.pause(),Xe(!1),de(0),U.removeEventListener("timeupdate",Se)};return U.addEventListener("timeupdate",Se),U.paused&&Z.length>0&&(U.currentTime=Z[0].startTime,U.play().catch(console.error)),()=>{U.removeEventListener("timeupdate",Se)}},[q,te,De]),W.useEffect(()=>{const U=Z=>{const{segmentIndex:Se}=Z.detail;q&&Se!==te&&de(Se)};return document.addEventListener("update-segment-index",U),()=>{document.removeEventListener("update-segment-index",U)}},[q,te]),{videoRef:ee,currentTime:ke,duration:X,isPlaying:xt,setIsPlaying:fe,isMuted:pe,isPlayingSegments:q,trimStart:ae,trimEnd:re,splitPoints:ie,zoomLevel:ft,clipSegments:De,selectedSegmentId:O,hasUnsavedChanges:At,historyPosition:Ie,history:P,handleTrimStartChange:Ne,handleTrimEndChange:Wt,handleZoomChange:Ct,handleMobileSafeSeek:wt,handleSplit:_n,handleReset:Vt,handleUndo:ln,handleRedo:Ut,handlePlaySegments:()=>{const U=ee.current;if(!(!U||De.length===0))if(q)U.pause(),Xe(!1),de(0);else{Xe(!0),de(0);const Z=[...De].sort((Se,he)=>Se.startTime-he.startTime);U.currentTime=Z[0].startTime,U.play().catch(Se=>{console.error("Error starting segments playback:",Se),Xe(!1)})}},toggleMute:qt,handleSegmentUpdate:ht,handleChapterSave:Un,handleSelectedSegmentChange:tn,isMobile:Qe,videoInitialized:Zt,setVideoInitialized:nn}},e0=()=>{const{videoRef:k,currentTime:M,duration:ee,isPlaying:ke,setIsPlaying:He,isMuted:X,trimStart:c,trimEnd:xt,splitPoints:fe,zoomLevel:pe,clipSegments:ut,selectedSegmentId:ae,hasUnsavedChanges:Ae,historyPosition:re,history:me,handleTrimStartChange:ie,handleTrimEndChange:Yt,handleZoomChange:ft,handleMobileSafeSeek:Ve,handleSplit:De,handleReset:Ze,handleUndo:O,handleRedo:et,toggleMute:P,handleSegmentUpdate:It,handleChapterSave:Ie,handleSelectedSegmentChange:Rt,isMobile:At,videoInitialized:Ce,setVideoInitialized:q}=ZS(),Xe=()=>{if(!k.current)return;const te=k.current;if(ke){te.pause(),He(!1);return}te.play().then(()=>{He(!0),q(!0),Re.debug("Continuous playback started from:",ue(te.currentTime))}).catch(de=>{console.error("Error playing video:",de)})};return W.useEffect(()=>{const te=de=>{const I=de.target;if(!(I.tagName==="INPUT"||I.tagName==="TEXTAREA"||I.isContentEditable))switch(de.code){case"Space":de.preventDefault(),Xe();break;case"ArrowLeft":if(de.preventDefault(),k.current){const Y=Math.max(M-10,0);Ve(Y),Re.debug("Jumped backward 10 seconds to:",ue(Y))}break;case"ArrowRight":if(de.preventDefault(),k.current){const Y=Math.min(M+10,ee);Ve(Y),Re.debug("Jumped forward 10 seconds to:",ue(Y))}break}};return document.addEventListener("keydown",te),()=>{document.removeEventListener("keydown",te)}},[Xe,Ve,M,ee,k]),v.jsxs("div",{className:"bg-background min-h-screen",children:[v.jsx(JS,{videoRef:k,onPlay:Xe}),v.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[v.jsx(BS,{videoRef:k,currentTime:M,duration:ee,isPlaying:ke,isMuted:X,onPlayPause:Xe,onSeek:Ve,onToggleMute:P}),v.jsx(QS,{onSplit:De,onReset:Ze,onUndo:O,onRedo:et,onPlay:Xe,isPlaying:ke,canUndo:re>0,canRedo:re<me.length-1}),v.jsx(XS,{currentTime:M,duration:ee,thumbnails:[],trimStart:c,trimEnd:xt,splitPoints:fe,zoomLevel:pe,clipSegments:ut,selectedSegmentId:ae,onSelectedSegmentChange:Rt,onSegmentUpdate:It,onChapterSave:Ie,onTrimStartChange:ie,onTrimEndChange:Yt,onZoomChange:ft,onSeek:Ve,videoRef:k,hasUnsavedChanges:Ae,isIOSUninitialized:At&&!Ce,isPlaying:ke,setIsPlaying:He,onPlayPause:Xe}),v.jsx(KS,{segments:ut,selectedSegmentId:ae})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Rm=()=>{const k=document.getElementById("chapters-editor-root");k&&gm(k).render(v.jsx(e0,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Rm):Rm()})();
//# sourceMappingURL=chapters-editor.js.map