mediacms/static/chapters_editor/chapters-editor.js
2025-10-03 11:24:32 +03:00

204 lines
399 KiB
JavaScript

(function(){"use strict";var cm={exports:{}},Jc={exports:{}},ll={exports:{}};ll.exports;var fm;function NS(){return fm||(fm=1,function(L,D){/**
* @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 ge="18.3.1",Ne=Symbol.for("react.element"),Me=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),yt=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),ne=Symbol.for("react.context"),tt=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),cn=Symbol.iterator,gt="@@iterator";function De(s){if(s===null||typeof s!="object")return null;var m=cn&&s[cn]||s[gt];return typeof m=="function"?m:null}var Oe={current:null},Lt={transition:null},O={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},J={current:null},$e={},dt=null;function vt(s){dt=s}$e.setExtraStackFrame=function(s){dt=s},$e.getCurrentStack=null,$e.getStackAddendum=function(){var s="";dt&&(s+=dt);var m=$e.getCurrentStack;return m&&(s+=m()||""),s};var Yt=!1,_e=!1,re=!1,Ce=!1,ue=!1,pt={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:Lt,ReactCurrentOwner:J};pt.ReactDebugCurrentFrame=$e,pt.ReactCurrentActQueue=O;function le(s){{for(var m=arguments.length,k=new Array(m>1?m-1:0),N=1;N<m;N++)k[N-1]=arguments[N];ye("warn",s,k)}}function A(s){{for(var m=arguments.length,k=new Array(m>1?m-1:0),N=1;N<m;N++)k[N-1]=arguments[N];ye("error",s,k)}}function ye(s,m,k){{var N=pt.ReactDebugCurrentFrame,G=N.getStackAddendum();G!==""&&(m+="%s",k=k.concat([G]));var Ue=k.map(function(Se){return String(Se)});Ue.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Ue)}}var Be={};function ot(s,m){{var k=s.constructor,N=k&&(k.displayName||k.name)||"ReactClass",G=N+"."+m;if(Be[G])return;A("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,N),Be[G]=!0}}var Et={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,k){ot(s,"forceUpdate")},enqueueReplaceState:function(s,m,k,N){ot(s,"replaceState")},enqueueSetState:function(s,m,k,N){ot(s,"setState")}},Ot=Object.assign,Vt={};Object.freeze(Vt);function je(s,m,k){this.props=s,this.context=m,this.refs=Vt,this.updater=k||Et}je.prototype.isReactComponent={},je.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")},je.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var Ve={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)."]},Je=function(s,m){Object.defineProperty(je.prototype,s,{get:function(){le("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var en in Ve)Ve.hasOwnProperty(en)&&Je(en,Ve[en])}function nt(){}nt.prototype=je.prototype;function It(s,m,k){this.props=s,this.context=m,this.refs=Vt,this.updater=k||Et}var mt=It.prototype=new nt;mt.constructor=It,Ot(mt,je.prototype),mt.isPureReactComponent=!0;function Xe(){var s={current:null};return Object.seal(s),s}var hn=Array.isArray;function Kt(s){return hn(s)}function Nn(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,k=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return k}}function z(s){try{return te(s),!1}catch{return!0}}function te(s){return""+s}function Ee(s){if(z(s))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Nn(s)),te(s)}function Te(s,m,k){var N=s.displayName;if(N)return N;var G=m.displayName||m.name||"";return G!==""?k+"("+G+")":k}function Pe(s){return s.displayName||"Context"}function at(s){if(s==null)return null;if(typeof s.tag=="number"&&A("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 Me:return"Portal";case yt:return"Profiler";case c:return"StrictMode";case oe:return"Suspense";case ze:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ne:var m=s;return Pe(m)+".Consumer";case me:var k=s;return Pe(k._context)+".Provider";case tt:return Te(s,s.render,"ForwardRef");case Q:var N=s.displayName||null;return N!==null?N:at(s.type)||"Memo";case he:{var G=s,Ue=G._payload,Se=G._init;try{return at(Se(Ue))}catch{return null}}}return null}var Ze=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0},lt,_t,ht;ht={};function Jt(s){if(Ze.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function Wt(s){if(Ze.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function fa(s,m){var k=function(){lt||(lt=!0,A("%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))};k.isReactWarning=!0,Object.defineProperty(s,"key",{get:k,configurable:!0})}function In(s,m){var k=function(){_t||(_t=!0,A("%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))};k.isReactWarning=!0,Object.defineProperty(s,"ref",{get:k,configurable:!0})}function Z(s){if(typeof s.ref=="string"&&J.current&&s.__self&&J.current.stateNode!==s.__self){var m=at(J.current.type);ht[m]||(A('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),ht[m]=!0)}}var xe=function(s,m,k,N,G,Ue,Se){var We={$$typeof:Ne,type:s,key:m,ref:k,props:Se,_owner:Ue};return We._store={},Object.defineProperty(We._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(We,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(We,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(We.props),Object.freeze(We)),We};function Qe(s,m,k){var N,G={},Ue=null,Se=null,We=null,ut=null;if(m!=null){Jt(m)&&(Se=m.ref,Z(m)),Wt(m)&&(Ee(m.key),Ue=""+m.key),We=m.__self===void 0?null:m.__self,ut=m.__source===void 0?null:m.__source;for(N in m)Ze.call(m,N)&&!we.hasOwnProperty(N)&&(G[N]=m[N])}var Nt=arguments.length-2;if(Nt===1)G.children=k;else if(Nt>1){for(var Gt=Array(Nt),Xt=0;Xt<Nt;Xt++)Gt[Xt]=arguments[Xt+2];Object.freeze&&Object.freeze(Gt),G.children=Gt}if(s&&s.defaultProps){var rt=s.defaultProps;for(N in rt)G[N]===void 0&&(G[N]=rt[N])}if(Ue||Se){var an=typeof s=="function"?s.displayName||s.name||"Unknown":s;Ue&&fa(G,an),Se&&In(G,an)}return xe(s,Ue,Se,We,ut,J.current,G)}function Ct(s,m){var k=xe(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return k}function Bt(s,m,k){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var N,G=Ot({},s.props),Ue=s.key,Se=s.ref,We=s._self,ut=s._source,Nt=s._owner;if(m!=null){Jt(m)&&(Se=m.ref,Nt=J.current),Wt(m)&&(Ee(m.key),Ue=""+m.key);var Gt;s.type&&s.type.defaultProps&&(Gt=s.type.defaultProps);for(N in m)Ze.call(m,N)&&!we.hasOwnProperty(N)&&(m[N]===void 0&&Gt!==void 0?G[N]=Gt[N]:G[N]=m[N])}var Xt=arguments.length-2;if(Xt===1)G.children=k;else if(Xt>1){for(var rt=Array(Xt),an=0;an<Xt;an++)rt[an]=arguments[an+2];G.children=rt}return xe(s.type,Ue,Se,We,ut,Nt,G)}function zt(s){return typeof s=="object"&&s!==null&&s.$$typeof===Ne}var tn=".",Rn=":";function qt(s){var m=/[=:]/g,k={"=":"=0",":":"=2"},N=s.replace(m,function(G){return k[G]});return"$"+N}var At=!1,Ft=/\/+/g;function ir(s){return s.replace(Ft,"$&/")}function Sa(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(Ee(s.key),qt(""+s.key)):m.toString(36)}function Ta(s,m,k,N,G){var Ue=typeof s;(Ue==="undefined"||Ue==="boolean")&&(s=null);var Se=!1;if(s===null)Se=!0;else switch(Ue){case"string":case"number":Se=!0;break;case"object":switch(s.$$typeof){case Ne:case Me:Se=!0}}if(Se){var We=s,ut=G(We),Nt=N===""?tn+Sa(We,0):N;if(Kt(ut)){var Gt="";Nt!=null&&(Gt=ir(Nt)+"/"),Ta(ut,m,Gt,"",function(uf){return uf})}else ut!=null&&(zt(ut)&&(ut.key&&(!We||We.key!==ut.key)&&Ee(ut.key),ut=Ct(ut,k+(ut.key&&(!We||We.key!==ut.key)?ir(""+ut.key)+"/":"")+Nt)),m.push(ut));return 1}var Xt,rt,an=0,dn=N===""?tn:N+Rn;if(Kt(s))for(var Li=0;Li<s.length;Li++)Xt=s[Li],rt=dn+Sa(Xt,Li),an+=Ta(Xt,m,k,rt,G);else{var ml=De(s);if(typeof ml=="function"){var kr=s;ml===kr.entries&&(At||le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),At=!0);for(var hl=ml.call(kr),yl,lf=0;!(yl=hl.next()).done;)Xt=yl.value,rt=dn+Sa(Xt,lf++),an+=Ta(Xt,m,k,rt,G)}else if(Ue==="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 an}function da(s,m,k){if(s==null)return s;var N=[],G=0;return Ta(s,N,"","",function(Ue){return m.call(k,Ue,G++)}),N}function Kr(s){var m=0;return da(s,function(){m++}),m}function Jr(s,m,k){da(s,function(){m.apply(this,arguments)},k)}function Sr(s){return da(s,function(m){return m})||[]}function Zr(s){if(!zt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function va(s){var m={$$typeof:ne,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:me,_context:m};var k=!1,N=!1,G=!1;{var Ue={$$typeof:ne,_context:m};Object.defineProperties(Ue,{Provider:{get:function(){return N||(N=!0,A("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(Se){m.Provider=Se}},_currentValue:{get:function(){return m._currentValue},set:function(Se){m._currentValue=Se}},_currentValue2:{get:function(){return m._currentValue2},set:function(Se){m._currentValue2=Se}},_threadCount:{get:function(){return m._threadCount},set:function(Se){m._threadCount=Se}},Consumer:{get:function(){return k||(k=!0,A("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(Se){G||(le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Se),G=!0)}}}),m.Consumer=Ue}return m._currentRenderer=null,m._currentRenderer2=null,m}var jn=-1,Zn=0,wn=1,Aa=2;function Tr(s){if(s._status===jn){var m=s._result,k=m();if(k.then(function(Ue){if(s._status===Zn||s._status===jn){var Se=s;Se._status=wn,Se._result=Ue}},function(Ue){if(s._status===Zn||s._status===jn){var Se=s;Se._status=Aa,Se._result=Ue}}),s._status===jn){var N=s;N._status=Zn,N._result=k}}if(s._status===wn){var G=s._result;return G===void 0&&A(`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||A(`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 Er(s){var m={_status:jn,_result:s},k={$$typeof:he,_payload:m,_init:Tr};{var N,G;Object.defineProperties(k,{defaultProps:{configurable:!0,get:function(){return N},set:function(Ue){A("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."),N=Ue,Object.defineProperty(k,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return G},set:function(Ue){A("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=Ue,Object.defineProperty(k,"propTypes",{enumerable:!0})}}})}return k}function Cr(s){s!=null&&s.$$typeof===Q?A("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?A("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&A("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)&&A("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:tt,render:s};{var k;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return k},set:function(N){k=N,!s.name&&!s.displayName&&(s.displayName=N)}})}return m}var h;h=Symbol.for("react.module.reference");function $(s){return!!(typeof s=="string"||typeof s=="function"||s===X||s===yt||ue||s===c||s===oe||s===ze||Ce||s===W||Yt||_e||re||typeof s=="object"&&s!==null&&(s.$$typeof===he||s.$$typeof===Q||s.$$typeof===me||s.$$typeof===ne||s.$$typeof===tt||s.$$typeof===h||s.getModuleId!==void 0))}function ae(s,m){$(s)||A("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var k={$$typeof:Q,type:s,compare:m===void 0?null:m};{var N;Object.defineProperty(k,"displayName",{enumerable:!1,configurable:!0,get:function(){return N},set:function(G){N=G,!s.name&&!s.displayName&&(s.displayName=G)}})}return k}function pe(){var s=Oe.current;return s===null&&A(`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 p(s){var m=pe();if(s._context!==void 0){var k=s._context;k.Consumer===s?A("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?"):k.Provider===s&&A("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function R(s){var m=pe();return m.useState(s)}function T(s,m,k){var N=pe();return N.useReducer(s,m,k)}function y(s){var m=pe();return m.useRef(s)}function E(s,m){var k=pe();return k.useEffect(s,m)}function _(s,m){var k=pe();return k.useInsertionEffect(s,m)}function S(s,m){var k=pe();return k.useLayoutEffect(s,m)}function V(s,m){var k=pe();return k.useCallback(s,m)}function B(s,m){var k=pe();return k.useMemo(s,m)}function K(s,m,k){var N=pe();return N.useImperativeHandle(s,m,k)}function Le(s,m){{var k=pe();return k.useDebugValue(s,m)}}function F(){var s=pe();return s.useTransition()}function Ke(s){var m=pe();return m.useDeferredValue(s)}function kt(){var s=pe();return s.useId()}function bt(s,m,k){var N=pe();return N.useSyncExternalStore(s,m,k)}var rn=0,xr,Na,Dn,or,_n,$t,Ea;function Pa(){}Pa.__reactDisabledLog=!0;function lo(){{if(rn===0){xr=console.log,Na=console.info,Dn=console.warn,or=console.error,_n=console.group,$t=console.groupCollapsed,Ea=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Pa,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}rn++}}function Ca(){{if(rn--,rn===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ot({},s,{value:xr}),info:Ot({},s,{value:Na}),warn:Ot({},s,{value:Dn}),error:Ot({},s,{value:or}),group:Ot({},s,{value:_n}),groupCollapsed:Ot({},s,{value:$t}),groupEnd:Ot({},s,{value:Ea})})}rn<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ea=pt.ReactCurrentDispatcher,Wn;function Rr(s,m,k){{if(Wn===void 0)try{throw Error()}catch(G){var N=G.stack.trim().match(/\n( *(at )?)/);Wn=N&&N[1]||""}return`
`+Wn+s}}var wr=!1,ln;{var xt=typeof WeakMap=="function"?WeakMap:Map;ln=new xt}function Ya(s,m){if(!s||wr)return"";{var k=ln.get(s);if(k!==void 0)return k}var N;wr=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ue;Ue=ea.current,ea.current=null,lo();try{if(m){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(dn){N=dn}Reflect.construct(s,[],Se)}else{try{Se.call()}catch(dn){N=dn}s.call(Se.prototype)}}else{try{throw Error()}catch(dn){N=dn}s()}}catch(dn){if(dn&&N&&typeof dn.stack=="string"){for(var We=dn.stack.split(`
`),ut=N.stack.split(`
`),Nt=We.length-1,Gt=ut.length-1;Nt>=1&&Gt>=0&&We[Nt]!==ut[Gt];)Gt--;for(;Nt>=1&&Gt>=0;Nt--,Gt--)if(We[Nt]!==ut[Gt]){if(Nt!==1||Gt!==1)do if(Nt--,Gt--,Gt<0||We[Nt]!==ut[Gt]){var Xt=`
`+We[Nt].replace(" at new "," at ");return s.displayName&&Xt.includes("<anonymous>")&&(Xt=Xt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ln.set(s,Xt),Xt}while(Nt>=1&&Gt>=0);break}}}finally{wr=!1,ea.current=Ue,Ca(),Error.prepareStackTrace=G}var rt=s?s.displayName||s.name:"",an=rt?Rr(rt):"";return typeof s=="function"&&ln.set(s,an),an}function xa(s,m,k){return Ya(s,!1)}function Di(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function _i(s,m,k){if(s==null)return"";if(typeof s=="function")return Ya(s,Di(s));if(typeof s=="string")return Rr(s);switch(s){case oe:return Rr("Suspense");case ze:return Rr("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case tt:return xa(s.render);case Q:return _i(s.type,m,k);case he:{var N=s,G=N._payload,Ue=N._init;try{return _i(Ue(G),m,k)}catch{}}}return""}var qu={},sl=pt.ReactDebugCurrentFrame;function Rt(s){if(s){var m=s._owner,k=_i(s.type,s._source,m?m.type:null);sl.setExtraStackFrame(k)}else sl.setExtraStackFrame(null)}function nf(s,m,k,N,G){{var Ue=Function.call.bind(Ze);for(var Se in s)if(Ue(s,Se)){var We=void 0;try{if(typeof s[Se]!="function"){var ut=Error((N||"React class")+": "+k+" type `"+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[Se]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ut.name="Invariant Violation",ut}We=s[Se](m,Se,N,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Nt){We=Nt}We&&!(We instanceof Error)&&(Rt(G),A("%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).",N||"React class",k,Se,typeof We),Rt(null)),We instanceof Error&&!(We.message in qu)&&(qu[We.message]=!0,Rt(G),A("Failed %s type: %s",k,We.message),Rt(null))}}}function Dr(s){if(s){var m=s._owner,k=_i(s.type,s._source,m?m.type:null);vt(k)}else vt(null)}var Ge;Ge=!1;function cl(){if(J.current){var s=at(J.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function ta(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),k=s.lineNumber;return`
Check your code at `+m+":"+k+"."}return""}function ki(s){return s!=null?ta(s.__source):""}var ei={};function af(s){var m=cl();if(!m){var k=typeof s=="string"?s:s.displayName||s.name;k&&(m=`
Check the top-level render call using <`+k+">.")}return m}function kn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var k=af(m);if(!ei[k]){ei[k]=!0;var N="";s&&s._owner&&s._owner!==J.current&&(N=" It was passed a child from "+at(s._owner.type)+"."),Dr(s),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,N),Dr(null)}}}function nn(s,m){if(typeof s=="object"){if(Kt(s))for(var k=0;k<s.length;k++){var N=s[k];zt(N)&&kn(N,m)}else if(zt(s))s._store&&(s._store.validated=!0);else if(s){var G=De(s);if(typeof G=="function"&&G!==s.entries)for(var Ue=G.call(s),Se;!(Se=Ue.next()).done;)zt(Se.value)&&kn(Se.value,m)}}}function Gu(s){{var m=s.type;if(m==null||typeof m=="string")return;var k;if(typeof m=="function")k=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===tt||m.$$typeof===Q))k=m.propTypes;else return;if(k){var N=at(m);nf(k,s.props,"prop",N,s)}else if(m.PropTypes!==void 0&&!Ge){Ge=!0;var G=at(m);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ja(s){{for(var m=Object.keys(s.props),k=0;k<m.length;k++){var N=m[k];if(N!=="children"&&N!=="key"){Dr(s),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),Dr(null);break}}s.ref!==null&&(Dr(s),A("Invalid attribute `ref` supplied to `React.Fragment`."),Dr(null))}}function na(s,m,k){var N=$(s);if(!N){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 Ue=ki(m);Ue?G+=Ue:G+=cl();var Se;s===null?Se="null":Kt(s)?Se="array":s!==void 0&&s.$$typeof===Ne?(Se="<"+(at(s.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof s,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,G)}var We=Qe.apply(this,arguments);if(We==null)return We;if(N)for(var ut=2;ut<arguments.length;ut++)nn(arguments[ut],s);return s===X?ja(We):Gu(We),We}var Ia=!1;function rf(s){var m=na.bind(null,s);return m.type=s,Ia||(Ia=!0,le("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 le("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,k){for(var N=Bt.apply(this,arguments),G=2;G<arguments.length;G++)nn(arguments[G],N.type);return Gu(N),N}function Xu(s,m){var k=Lt.transition;Lt.transition={};var N=Lt.transition;Lt.transition._updatedFibers=new Set;try{s()}finally{if(Lt.transition=k,k===null&&N._updatedFibers){var G=N._updatedFibers.size;G>10&&le("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."),N._updatedFibers.clear()}}}var dl=!1,uo=null;function of(s){if(uo===null)try{var m=("require"+Math.random()).slice(0,7),k=L&&L[m];uo=k.call(L,"timers").setImmediate}catch{uo=function(G){dl===!1&&(dl=!0,typeof MessageChannel>"u"&&A("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 Ue=new MessageChannel;Ue.port1.onmessage=G,Ue.port2.postMessage(void 0)}}return uo(s)}var ti=0,Mi=!1;function vl(s){{var m=ti;ti++,O.current===null&&(O.current=[]);var k=O.isBatchingLegacy,N;try{if(O.isBatchingLegacy=!0,N=s(),!k&&O.didScheduleLegacyUpdate){var G=O.current;G!==null&&(O.didScheduleLegacyUpdate=!1,fo(G))}}catch(rt){throw _r(m),rt}finally{O.isBatchingLegacy=k}if(N!==null&&typeof N=="object"&&typeof N.then=="function"){var Ue=N,Se=!1,We={then:function(rt,an){Se=!0,Ue.then(function(dn){_r(m),ti===0?so(dn,rt,an):rt(dn)},function(dn){_r(m),an(dn)})}};return!Mi&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Se||(Mi=!0,A("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 () => ...);"))}),We}else{var ut=N;if(_r(m),ti===0){var Nt=O.current;Nt!==null&&(fo(Nt),O.current=null);var Gt={then:function(rt,an){O.current===null?(O.current=[],so(ut,rt,an)):rt(ut)}};return Gt}else{var Xt={then:function(rt,an){rt(ut)}};return Xt}}}}function _r(s){s!==ti-1&&A("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ti=s}function so(s,m,k){{var N=O.current;if(N!==null)try{fo(N),of(function(){N.length===0?(O.current=null,m(s)):so(s,m,k)})}catch(G){k(G)}else m(s)}}var co=!1;function fo(s){if(!co){co=!0;var m=0;try{for(;m<s.length;m++){var k=s[m];do k=k(!0);while(k!==null)}s.length=0}catch(N){throw s=s.slice(m+1),N}finally{co=!1}}}var Qu=na,Ku=fl,pl=rf,Ju={map:da,forEach:Jr,count:Kr,toArray:Sr,only:Zr};D.Children=Ju,D.Component=je,D.Fragment=X,D.Profiler=yt,D.PureComponent=It,D.StrictMode=c,D.Suspense=oe,D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pt,D.act=vl,D.cloneElement=Ku,D.createContext=va,D.createElement=Qu,D.createFactory=pl,D.createRef=Xe,D.forwardRef=Cr,D.isValidElement=zt,D.lazy=Er,D.memo=ae,D.startTransition=Xu,D.unstable_act=vl,D.useCallback=V,D.useContext=p,D.useDebugValue=Le,D.useDeferredValue=Ke,D.useEffect=E,D.useId=kt,D.useImperativeHandle=K,D.useInsertionEffect=_,D.useLayoutEffect=S,D.useMemo=B,D.useReducer=T,D.useRef=y,D.useState=R,D.useSyncExternalStore=bt,D.useTransition=F,D.version=ge,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 L=Zc(),D=Symbol.for("react.element"),ge=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),yt=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ze=Symbol.for("react.lazy"),Q=Symbol.for("react.offscreen"),he=Symbol.iterator,W="@@iterator";function cn(h){if(h===null||typeof h!="object")return null;var $=he&&h[he]||h[W];return typeof $=="function"?$:null}var gt=L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function De(h){{for(var $=arguments.length,ae=new Array($>1?$-1:0),pe=1;pe<$;pe++)ae[pe-1]=arguments[pe];Oe("error",h,ae)}}function Oe(h,$,ae){{var pe=gt.ReactDebugCurrentFrame,p=pe.getStackAddendum();p!==""&&($+="%s",ae=ae.concat([p]));var R=ae.map(function(T){return String(T)});R.unshift("Warning: "+$),Function.prototype.apply.call(console[h],console,R)}}var Lt=!1,O=!1,J=!1,$e=!1,dt=!1,vt;vt=Symbol.for("react.module.reference");function Yt(h){return!!(typeof h=="string"||typeof h=="function"||h===Ne||h===X||dt||h===Me||h===ne||h===tt||$e||h===Q||Lt||O||J||typeof h=="object"&&h!==null&&(h.$$typeof===ze||h.$$typeof===oe||h.$$typeof===c||h.$$typeof===yt||h.$$typeof===me||h.$$typeof===vt||h.getModuleId!==void 0))}function _e(h,$,ae){var pe=h.displayName;if(pe)return pe;var p=$.displayName||$.name||"";return p!==""?ae+"("+p+")":ae}function re(h){return h.displayName||"Context"}function Ce(h){if(h==null)return null;if(typeof h.tag=="number"&&De("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 Ne:return"Fragment";case ge:return"Portal";case X:return"Profiler";case Me:return"StrictMode";case ne:return"Suspense";case tt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case yt:var $=h;return re($)+".Consumer";case c:var ae=h;return re(ae._context)+".Provider";case me:return _e(h,h.render,"ForwardRef");case oe:var pe=h.displayName||null;return pe!==null?pe:Ce(h.type)||"Memo";case ze:{var p=h,R=p._payload,T=p._init;try{return Ce(T(R))}catch{return null}}}return null}var ue=Object.assign,pt=0,le,A,ye,Be,ot,Et,Ot;function Vt(){}Vt.__reactDisabledLog=!0;function je(){{if(pt===0){le=console.log,A=console.info,ye=console.warn,Be=console.error,ot=console.group,Et=console.groupCollapsed,Ot=console.groupEnd;var h={configurable:!0,enumerable:!0,value:Vt,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}pt++}}function Ve(){{if(pt--,pt===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},h,{value:le}),info:ue({},h,{value:A}),warn:ue({},h,{value:ye}),error:ue({},h,{value:Be}),group:ue({},h,{value:ot}),groupCollapsed:ue({},h,{value:Et}),groupEnd:ue({},h,{value:Ot})})}pt<0&&De("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Je=gt.ReactCurrentDispatcher,en;function nt(h,$,ae){{if(en===void 0)try{throw Error()}catch(p){var pe=p.stack.trim().match(/\n( *(at )?)/);en=pe&&pe[1]||""}return`
`+en+h}}var It=!1,mt;{var Xe=typeof WeakMap=="function"?WeakMap:Map;mt=new Xe}function hn(h,$){if(!h||It)return"";{var ae=mt.get(h);if(ae!==void 0)return ae}var pe;It=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=Je.current,Je.current=null,je();try{if($){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(Le){pe=Le}Reflect.construct(h,[],T)}else{try{T.call()}catch(Le){pe=Le}h.call(T.prototype)}}else{try{throw Error()}catch(Le){pe=Le}h()}}catch(Le){if(Le&&pe&&typeof Le.stack=="string"){for(var y=Le.stack.split(`
`),E=pe.stack.split(`
`),_=y.length-1,S=E.length-1;_>=1&&S>=0&&y[_]!==E[S];)S--;for(;_>=1&&S>=0;_--,S--)if(y[_]!==E[S]){if(_!==1||S!==1)do if(_--,S--,S<0||y[_]!==E[S]){var V=`
`+y[_].replace(" at new "," at ");return h.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",h.displayName)),typeof h=="function"&&mt.set(h,V),V}while(_>=1&&S>=0);break}}}finally{It=!1,Je.current=R,Ve(),Error.prepareStackTrace=p}var B=h?h.displayName||h.name:"",K=B?nt(B):"";return typeof h=="function"&&mt.set(h,K),K}function Kt(h,$,ae){return hn(h,!1)}function Nn(h){var $=h.prototype;return!!($&&$.isReactComponent)}function z(h,$,ae){if(h==null)return"";if(typeof h=="function")return hn(h,Nn(h));if(typeof h=="string")return nt(h);switch(h){case ne:return nt("Suspense");case tt:return nt("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case me:return Kt(h.render);case oe:return z(h.type,$,ae);case ze:{var pe=h,p=pe._payload,R=pe._init;try{return z(R(p),$,ae)}catch{}}}return""}var te=Object.prototype.hasOwnProperty,Ee={},Te=gt.ReactDebugCurrentFrame;function Pe(h){if(h){var $=h._owner,ae=z(h.type,h._source,$?$.type:null);Te.setExtraStackFrame(ae)}else Te.setExtraStackFrame(null)}function at(h,$,ae,pe,p){{var R=Function.call.bind(te);for(var T in h)if(R(h,T)){var y=void 0;try{if(typeof h[T]!="function"){var E=Error((pe||"React class")+": "+ae+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}y=h[T]($,T,pe,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){y=_}y&&!(y instanceof Error)&&(Pe(p),De("%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).",pe||"React class",ae,T,typeof y),Pe(null)),y instanceof Error&&!(y.message in Ee)&&(Ee[y.message]=!0,Pe(p),De("Failed %s type: %s",ae,y.message),Pe(null))}}}var Ze=Array.isArray;function we(h){return Ze(h)}function lt(h){{var $=typeof Symbol=="function"&&Symbol.toStringTag,ae=$&&h[Symbol.toStringTag]||h.constructor.name||"Object";return ae}}function _t(h){try{return ht(h),!1}catch{return!0}}function ht(h){return""+h}function Jt(h){if(_t(h))return De("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",lt(h)),ht(h)}var Wt=gt.ReactCurrentOwner,fa={key:!0,ref:!0,__self:!0,__source:!0},In,Z;function xe(h){if(te.call(h,"ref")){var $=Object.getOwnPropertyDescriptor(h,"ref").get;if($&&$.isReactWarning)return!1}return h.ref!==void 0}function Qe(h){if(te.call(h,"key")){var $=Object.getOwnPropertyDescriptor(h,"key").get;if($&&$.isReactWarning)return!1}return h.key!==void 0}function Ct(h,$){typeof h.ref=="string"&&Wt.current}function Bt(h,$){{var ae=function(){In||(In=!0,De("%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)",$))};ae.isReactWarning=!0,Object.defineProperty(h,"key",{get:ae,configurable:!0})}}function zt(h,$){{var ae=function(){Z||(Z=!0,De("%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)",$))};ae.isReactWarning=!0,Object.defineProperty(h,"ref",{get:ae,configurable:!0})}}var tn=function(h,$,ae,pe,p,R,T){var y={$$typeof:D,type:h,key:$,ref:ae,props:T,_owner:R};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:pe}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Rn(h,$,ae,pe,p){{var R,T={},y=null,E=null;ae!==void 0&&(Jt(ae),y=""+ae),Qe($)&&(Jt($.key),y=""+$.key),xe($)&&(E=$.ref,Ct($,p));for(R in $)te.call($,R)&&!fa.hasOwnProperty(R)&&(T[R]=$[R]);if(h&&h.defaultProps){var _=h.defaultProps;for(R in _)T[R]===void 0&&(T[R]=_[R])}if(y||E){var S=typeof h=="function"?h.displayName||h.name||"Unknown":h;y&&Bt(T,S),E&&zt(T,S)}return tn(h,y,E,p,pe,Wt.current,T)}}var qt=gt.ReactCurrentOwner,At=gt.ReactDebugCurrentFrame;function Ft(h){if(h){var $=h._owner,ae=z(h.type,h._source,$?$.type:null);At.setExtraStackFrame(ae)}else At.setExtraStackFrame(null)}var ir;ir=!1;function Sa(h){return typeof h=="object"&&h!==null&&h.$$typeof===D}function Ta(){{if(qt.current){var h=Ce(qt.current.type);if(h)return`
Check the render method of \``+h+"`."}return""}}function da(h){return""}var Kr={};function Jr(h){{var $=Ta();if(!$){var ae=typeof h=="string"?h:h.displayName||h.name;ae&&($=`
Check the top-level render call using <`+ae+">.")}return $}}function Sr(h,$){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var ae=Jr($);if(Kr[ae])return;Kr[ae]=!0;var pe="";h&&h._owner&&h._owner!==qt.current&&(pe=" It was passed a child from "+Ce(h._owner.type)+"."),Ft(h),De('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,pe),Ft(null)}}function Zr(h,$){{if(typeof h!="object")return;if(we(h))for(var ae=0;ae<h.length;ae++){var pe=h[ae];Sa(pe)&&Sr(pe,$)}else if(Sa(h))h._store&&(h._store.validated=!0);else if(h){var p=cn(h);if(typeof p=="function"&&p!==h.entries)for(var R=p.call(h),T;!(T=R.next()).done;)Sa(T.value)&&Sr(T.value,$)}}}function va(h){{var $=h.type;if($==null||typeof $=="string")return;var ae;if(typeof $=="function")ae=$.propTypes;else if(typeof $=="object"&&($.$$typeof===me||$.$$typeof===oe))ae=$.propTypes;else return;if(ae){var pe=Ce($);at(ae,h.props,"prop",pe,h)}else if($.PropTypes!==void 0&&!ir){ir=!0;var p=Ce($);De("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&De("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function jn(h){{for(var $=Object.keys(h.props),ae=0;ae<$.length;ae++){var pe=$[ae];if(pe!=="children"&&pe!=="key"){Ft(h),De("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",pe),Ft(null);break}}h.ref!==null&&(Ft(h),De("Invalid attribute `ref` supplied to `React.Fragment`."),Ft(null))}}var Zn={};function wn(h,$,ae,pe,p,R){{var T=Yt(h);if(!T){var y="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(y+=" 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 E=da();E?y+=E:y+=Ta();var _;h===null?_="null":we(h)?_="array":h!==void 0&&h.$$typeof===D?(_="<"+(Ce(h.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):_=typeof h,De("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,y)}var S=Rn(h,$,ae,p,R);if(S==null)return S;if(T){var V=$.children;if(V!==void 0)if(pe)if(we(V)){for(var B=0;B<V.length;B++)Zr(V[B],h);Object.freeze&&Object.freeze(V)}else De("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 Zr(V,h)}if(te.call($,"key")){var K=Ce(h),Le=Object.keys($).filter(function(kt){return kt!=="key"}),F=Le.length>0?"{key: someKey, "+Le.join(": ..., ")+": ...}":"{key: someKey}";if(!Zn[K+F]){var Ke=Le.length>0?"{"+Le.join(": ..., ")+": ...}":"{}";De(`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} />`,F,K,Ke,K),Zn[K+F]=!0}}return h===Ne?jn(S):va(S),S}}function Aa(h,$,ae){return wn(h,$,ae,!0)}function Tr(h,$,ae){return wn(h,$,ae,!1)}var Er=Tr,Cr=Aa;ul.Fragment=Ne,ul.jsx=Er,ul.jsxs=Cr}(),ul}cm.exports=jS();var v=cm.exports,pm={exports:{}},ef={exports:{}},tf={},mm;function US(){return mm||(mm=1,function(L){/**
* @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 D=!1,ge=5;function Ne(Z,xe){var Qe=Z.length;Z.push(xe),c(Z,xe,Qe)}function Me(Z){return Z.length===0?null:Z[0]}function X(Z){if(Z.length===0)return null;var xe=Z[0],Qe=Z.pop();return Qe!==xe&&(Z[0]=Qe,yt(Z,Qe,0)),xe}function c(Z,xe,Qe){for(var Ct=Qe;Ct>0;){var Bt=Ct-1>>>1,zt=Z[Bt];if(me(zt,xe)>0)Z[Bt]=xe,Z[Ct]=zt,Ct=Bt;else return}}function yt(Z,xe,Qe){for(var Ct=Qe,Bt=Z.length,zt=Bt>>>1;Ct<zt;){var tn=(Ct+1)*2-1,Rn=Z[tn],qt=tn+1,At=Z[qt];if(me(Rn,xe)<0)qt<Bt&&me(At,Rn)<0?(Z[Ct]=At,Z[qt]=xe,Ct=qt):(Z[Ct]=Rn,Z[tn]=xe,Ct=tn);else if(qt<Bt&&me(At,xe)<0)Z[Ct]=At,Z[qt]=xe,Ct=qt;else return}}function me(Z,xe){var Qe=Z.sortIndex-xe.sortIndex;return Qe!==0?Qe:Z.id-xe.id}var ne=1,tt=2,oe=3,ze=4,Q=5;function he(Z,xe){}var W=typeof performance=="object"&&typeof performance.now=="function";if(W){var cn=performance;L.unstable_now=function(){return cn.now()}}else{var gt=Date,De=gt.now();L.unstable_now=function(){return gt.now()-De}}var Oe=1073741823,Lt=-1,O=250,J=5e3,$e=1e4,dt=Oe,vt=[],Yt=[],_e=1,re=null,Ce=oe,ue=!1,pt=!1,le=!1,A=typeof setTimeout=="function"?setTimeout:null,ye=typeof clearTimeout=="function"?clearTimeout:null,Be=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ot(Z){for(var xe=Me(Yt);xe!==null;){if(xe.callback===null)X(Yt);else if(xe.startTime<=Z)X(Yt),xe.sortIndex=xe.expirationTime,Ne(vt,xe);else return;xe=Me(Yt)}}function Et(Z){if(le=!1,ot(Z),!pt)if(Me(vt)!==null)pt=!0,ht(Ot);else{var xe=Me(Yt);xe!==null&&Jt(Et,xe.startTime-Z)}}function Ot(Z,xe){pt=!1,le&&(le=!1,Wt()),ue=!0;var Qe=Ce;try{var Ct;if(!D)return Vt(Z,xe)}finally{re=null,Ce=Qe,ue=!1}}function Vt(Z,xe){var Qe=xe;for(ot(Qe),re=Me(vt);re!==null&&!(re.expirationTime>Qe&&(!Z||Te()));){var Ct=re.callback;if(typeof Ct=="function"){re.callback=null,Ce=re.priorityLevel;var Bt=re.expirationTime<=Qe,zt=Ct(Bt);Qe=L.unstable_now(),typeof zt=="function"?re.callback=zt:re===Me(vt)&&X(vt),ot(Qe)}else X(vt);re=Me(vt)}if(re!==null)return!0;var tn=Me(Yt);return tn!==null&&Jt(Et,tn.startTime-Qe),!1}function je(Z,xe){switch(Z){case ne:case tt:case oe:case ze:case Q:break;default:Z=oe}var Qe=Ce;Ce=Z;try{return xe()}finally{Ce=Qe}}function Ve(Z){var xe;switch(Ce){case ne:case tt:case oe:xe=oe;break;default:xe=Ce;break}var Qe=Ce;Ce=xe;try{return Z()}finally{Ce=Qe}}function Je(Z){var xe=Ce;return function(){var Qe=Ce;Ce=xe;try{return Z.apply(this,arguments)}finally{Ce=Qe}}}function en(Z,xe,Qe){var Ct=L.unstable_now(),Bt;if(typeof Qe=="object"&&Qe!==null){var zt=Qe.delay;typeof zt=="number"&&zt>0?Bt=Ct+zt:Bt=Ct}else Bt=Ct;var tn;switch(Z){case ne:tn=Lt;break;case tt:tn=O;break;case Q:tn=dt;break;case ze:tn=$e;break;case oe:default:tn=J;break}var Rn=Bt+tn,qt={id:_e++,callback:xe,priorityLevel:Z,startTime:Bt,expirationTime:Rn,sortIndex:-1};return Bt>Ct?(qt.sortIndex=Bt,Ne(Yt,qt),Me(vt)===null&&qt===Me(Yt)&&(le?Wt():le=!0,Jt(Et,Bt-Ct))):(qt.sortIndex=Rn,Ne(vt,qt),!pt&&!ue&&(pt=!0,ht(Ot))),qt}function nt(){}function It(){!pt&&!ue&&(pt=!0,ht(Ot))}function mt(){return Me(vt)}function Xe(Z){Z.callback=null}function hn(){return Ce}var Kt=!1,Nn=null,z=-1,te=ge,Ee=-1;function Te(){var Z=L.unstable_now()-Ee;return!(Z<te)}function Pe(){}function at(Z){if(Z<0||Z>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Z>0?te=Math.floor(1e3/Z):te=ge}var Ze=function(){if(Nn!==null){var Z=L.unstable_now();Ee=Z;var xe=!0,Qe=!0;try{Qe=Nn(xe,Z)}finally{Qe?we():(Kt=!1,Nn=null)}}else Kt=!1},we;if(typeof Be=="function")we=function(){Be(Ze)};else if(typeof MessageChannel<"u"){var lt=new MessageChannel,_t=lt.port2;lt.port1.onmessage=Ze,we=function(){_t.postMessage(null)}}else we=function(){A(Ze,0)};function ht(Z){Nn=Z,Kt||(Kt=!0,we())}function Jt(Z,xe){z=A(function(){Z(L.unstable_now())},xe)}function Wt(){ye(z),z=-1}var fa=Pe,In=null;L.unstable_IdlePriority=Q,L.unstable_ImmediatePriority=ne,L.unstable_LowPriority=ze,L.unstable_NormalPriority=oe,L.unstable_Profiling=In,L.unstable_UserBlockingPriority=tt,L.unstable_cancelCallback=Xe,L.unstable_continueExecution=It,L.unstable_forceFrameRate=at,L.unstable_getCurrentPriorityLevel=hn,L.unstable_getFirstCallbackNode=mt,L.unstable_next=Ve,L.unstable_pauseExecution=nt,L.unstable_requestPaint=fa,L.unstable_runWithPriority=je,L.unstable_scheduleCallback=en,L.unstable_shouldYield=Te,L.unstable_wrapCallback=Je,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 ca={},ym;function zS(){if(ym)return ca;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 L=Zc(),D=HS(),ge=L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ne=!1;function Me(e){Ne=e}function X(e){if(!Ne){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];yt("warn",e,n)}}function c(e){if(!Ne){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];yt("error",e,n)}}function yt(e,t,n){{var a=ge.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 me=0,ne=1,tt=2,oe=3,ze=4,Q=5,he=6,W=7,cn=8,gt=9,De=10,Oe=11,Lt=12,O=13,J=14,$e=15,dt=16,vt=17,Yt=18,_e=19,re=21,Ce=22,ue=23,pt=24,le=25,A=!0,ye=!1,Be=!1,ot=!1,Et=!1,Ot=!0,Vt=!0,je=!0,Ve=!0,Je=new Set,en={},nt={};function It(e,t){mt(e,t),mt(e+"Capture",t)}function mt(e,t){en[e]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),en[e]=t;{var n=e.toLowerCase();nt[n]=e,e==="onDoubleClick"&&(nt.ondblclick=e)}for(var a=0;a<t.length;a++)Je.add(t[a])}var Xe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hn=Object.prototype.hasOwnProperty;function Kt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Nn(e){try{return z(e),!1}catch{return!0}}function z(e){return""+e}function te(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,Kt(e)),z(e)}function Ee(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.",Kt(e)),z(e)}function Te(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,Kt(e)),z(e)}function Pe(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,Kt(e)),z(e)}function at(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.",Kt(e)),z(e)}function Ze(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.",Kt(e)),z(e)}var we=0,lt=1,_t=2,ht=3,Jt=4,Wt=5,fa=6,In=":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",Z=In+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xe=new RegExp("^["+In+"]["+Z+"]*$"),Qe={},Ct={};function Bt(e){return hn.call(Ct,e)?!0:hn.call(Qe,e)?!1:xe.test(e)?(Ct[e]=!0,!0):(Qe[e]=!0,c("Invalid attribute name: `%s`",e),!1)}function zt(e,t,n){return t!==null?t.type===we:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function tn(e,t,n,a){if(n!==null&&n.type===we)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 Rn(e,t,n,a){if(t===null||typeof t>"u"||tn(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case ht:return!t;case Jt:return t===!1;case Wt:return isNaN(t);case fa:return isNaN(t)||t<1}return!1}function qt(e){return Ft.hasOwnProperty(e)?Ft[e]:null}function At(e,t,n,a,r,i,o){this.acceptsBooleans=t===_t||t===ht||t===Jt,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ft={},ir=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ir.forEach(function(e){Ft[e]=new At(e,we,!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];Ft[t]=new At(t,lt,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ft[e]=new At(e,_t,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ft[e]=new At(e,_t,!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){Ft[e]=new At(e,ht,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ft[e]=new At(e,ht,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ft[e]=new At(e,Jt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ft[e]=new At(e,fa,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ft[e]=new At(e,Wt,!1,e.toLowerCase(),null,!1,!1)});var Sa=/[\-\:]([a-z])/g,Ta=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(Sa,Ta);Ft[t]=new At(t,lt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Sa,Ta);Ft[t]=new At(t,lt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Sa,Ta);Ft[t]=new At(t,lt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ft[e]=new At(e,lt,!1,e.toLowerCase(),null,!1,!1)});var da="xlinkHref";Ft[da]=new At("xlinkHref",lt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ft[e]=new At(e,lt,!1,e.toLowerCase(),null,!0,!0)});var Kr=/^[\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,Jr=!1;function Sr(e){!Jr&&Kr.test(e)&&(Jr=!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 Zr(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{te(n,t),a.sanitizeURL&&Sr(""+n);var i=a.attributeName,o=null;if(a.type===Jt){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:Rn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(Rn(t,n,a,!1))return e.getAttribute(i);if(a.type===ht)return n;o=e.getAttribute(i)}return Rn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function va(e,t,n,a){{if(!Bt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return te(n,t),r===""+n?n:r}}function jn(e,t,n,a){var r=qt(t);if(!zt(t,r,a)){if(Rn(t,n,r,a)&&(n=null),a||r===null){if(Bt(t)){var i=t;n===null?e.removeAttribute(i):(te(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===ht?!1:""}else e[l]=n;return}var f=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var b=r.type,g;b===ht||b===Jt&&n===!0?g="":(te(n,f),g=""+n,r.sanitizeURL&&Sr(g.toString())),d?e.setAttributeNS(d,f,g):e.setAttribute(f,g)}}}var Zn=Symbol.for("react.element"),wn=Symbol.for("react.portal"),Aa=Symbol.for("react.fragment"),Tr=Symbol.for("react.strict_mode"),Er=Symbol.for("react.profiler"),Cr=Symbol.for("react.provider"),h=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),T=Symbol.for("react.scope"),y=Symbol.for("react.debug_trace_mode"),E=Symbol.for("react.offscreen"),_=Symbol.for("react.legacy_hidden"),S=Symbol.for("react.cache"),V=Symbol.for("react.tracing_marker"),B=Symbol.iterator,K="@@iterator";function Le(e){if(e===null||typeof e!="object")return null;var t=B&&e[B]||e[K];return typeof t=="function"?t:null}var F=Object.assign,Ke=0,kt,bt,rn,xr,Na,Dn,or;function _n(){}_n.__reactDisabledLog=!0;function $t(){{if(Ke===0){kt=console.log,bt=console.info,rn=console.warn,xr=console.error,Na=console.group,Dn=console.groupCollapsed,or=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_n,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ke++}}function Ea(){{if(Ke--,Ke===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:kt}),info:F({},e,{value:bt}),warn:F({},e,{value:rn}),error:F({},e,{value:xr}),group:F({},e,{value:Na}),groupCollapsed:F({},e,{value:Dn}),groupEnd:F({},e,{value:or})})}Ke<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pa=ge.ReactCurrentDispatcher,lo;function Ca(e,t,n){{if(lo===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);lo=a&&a[1]||""}return`
`+lo+e}}var ea=!1,Wn;{var Rr=typeof WeakMap=="function"?WeakMap:Map;Wn=new Rr}function wr(e,t){if(!e||ea)return"";{var n=Wn.get(e);if(n!==void 0)return n}var a;ea=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Pa.current,Pa.current=null,$t();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(M){a=M}Reflect.construct(e,[],o)}else{try{o.call()}catch(M){a=M}e.call(o.prototype)}}else{try{throw Error()}catch(M){a=M}e()}}catch(M){if(M&&a&&typeof M.stack=="string"){for(var l=M.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 b=`
`+l[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wn.set(e,b),b}while(f>=1&&d>=0);break}}}finally{ea=!1,Pa.current=i,Ea(),Error.prepareStackTrace=r}var g=e?e.displayName||e.name:"",w=g?Ca(g):"";return typeof e=="function"&&Wn.set(e,w),w}function ln(e,t,n){return wr(e,!0)}function xt(e,t,n){return wr(e,!1)}function Ya(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function xa(e,t,n){if(e==null)return"";if(typeof e=="function")return wr(e,Ya(e));if(typeof e=="string")return Ca(e);switch(e){case ae:return Ca("Suspense");case pe:return Ca("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case $:return xt(e.render);case p:return xa(e.type,t,n);case R:{var a=e,r=a._payload,i=a._init;try{return xa(i(r),t,n)}catch{}}}return""}function Di(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case Q:return Ca(e.type);case dt:return Ca("Lazy");case O:return Ca("Suspense");case _e:return Ca("SuspenseList");case me:case tt:case $e:return xt(e.type);case Oe:return xt(e.type.render);case ne:return ln(e.type);default:return""}}function _i(e){try{var t="",n=e;do t+=Di(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 Rt(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 Aa:return"Fragment";case wn:return"Portal";case Er:return"Profiler";case Tr:return"StrictMode";case ae:return"Suspense";case pe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return sl(t)+".Consumer";case Cr:var n=e;return sl(n._context)+".Provider";case $:return qu(e,e.render,"ForwardRef");case p:var a=e.displayName||null;return a!==null?a:Rt(e.type)||"Memo";case R:{var r=e,i=r._payload,o=r._init;try{return Rt(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 Dr(e){return e.displayName||"Context"}function Ge(e){var t=e.tag,n=e.type;switch(t){case pt:return"Cache";case gt:var a=n;return Dr(a)+".Consumer";case De:var r=n;return Dr(r._context)+".Provider";case Yt:return"DehydratedFragment";case Oe:return nf(n,n.render,"ForwardRef");case W:return"Fragment";case Q:return n;case ze:return"Portal";case oe:return"Root";case he:return"Text";case dt:return Rt(n);case cn:return n===Tr?"StrictMode":"Mode";case Ce:return"Offscreen";case Lt:return"Profiler";case re:return"Scope";case O:return"Suspense";case _e:return"SuspenseList";case le:return"TracingMarker";case ne:case me:case vt:case tt:case J:case $e:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var cl=ge.ReactDebugCurrentFrame,ta=null,ki=!1;function ei(){{if(ta===null)return null;var e=ta._debugOwner;if(e!==null&&typeof e<"u")return Ge(e)}return null}function af(){return ta===null?"":_i(ta)}function kn(){cl.getCurrentStack=null,ta=null,ki=!1}function nn(e){cl.getCurrentStack=e===null?null:af,ta=e,ki=!1}function Gu(){return ta}function ja(e){ki=e}function na(e){return""+e}function Ia(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ze(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 ti(e){var t=Xu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Ze(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){Ze(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){Ze(l),a=""+l},stopTracking:function(){uo(e),delete e[t]}};return o}}function Mi(e){dl(e)||(e._valueTracker=ti(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 _r(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=F({},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",ei()||"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",ei()||"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:Ia(t.value!=null?t.value:a),controlled:Ku(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&jn(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=Ia(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=na(r)):n.value!==na(r)&&(n.value=na(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Ue(n,t.type,r):t.hasOwnProperty("defaultValue")&&Ue(n,t.type,Ia(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function k(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=na(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 N(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;te(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 Ue(e,t,n){(t!=="number"||_r(e.ownerDocument)!==e)&&(n==null?e.defaultValue=na(e._wrapperState.initialValue):e.defaultValue!==na(n)&&(e.defaultValue=na(n)))}var Se=!1,We=!1,ut=!1;function Nt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?L.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||We||(We=!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&&(ut||(ut=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Se&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Se=!0)}function Gt(e,t){t.value!=null&&e.setAttribute("value",na(Ia(t.value)))}var Xt=Array.isArray;function rt(e){return Xt(e)}var an;an=!1;function dn(){var e=ei();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=rt(e[n]);e.multiple&&!a?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,dn()):!e.multiple&&a&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,dn())}}}}function kr(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=na(Ia(n)),b=null,g=0;g<r.length;g++){if(r[g].value===d){r[g].selected=!0,a&&(r[g].defaultSelected=!0);return}b===null&&!r[g].disabled&&(b=r[g])}b!==null&&(b.selected=!0)}}function hl(e,t){return F({},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&&!an&&(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"),an=!0)}function lf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?kr(n,!!t.multiple,a,!1):t.defaultValue!=null&&kr(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?kr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?kr(n,!!t.multiple,t.defaultValue,!0):kr(n,!!t.multiple,t.multiple?[]:"",!1))}function uf(e,t){var n=e,a=t.value;a!=null&&kr(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=F({},t,{value:void 0,defaultValue:void 0,children:na(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",ei()||"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(rt(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:Ia(a)}}function _m(e,t){var n=e,a=Ia(t.value),r=Ia(t.defaultValue);if(a!=null){var i=na(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=na(r))}function km(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function tT(e,t){_m(e,t)}var Mr="http://www.w3.org/1999/xhtml",nT="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 nT;default:return Mr}}function df(e,t){return e==null||e===Mr?ff(t):e===cf&&t==="foreignObject"?Mr:e}var aT=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=aT(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}),pa=1,Lr=3,vn=8,Or=9,vf=11,ts=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Lr){n.nodeValue=t;return}}e.textContent=t},rT={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 iT(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var oT=["Webkit","ms","Moz","O"];Object.keys(gl).forEach(function(e){oT.forEach(function(t){gl[iT(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":(Pe(t,e),(""+t).trim())}var lT=/([A-Z])/g,uT=/^ms-/;function sT(e){return e.replace(lT,"-$1").toLowerCase().replace(uT,"-ms-")}var Lm=function(){};{var cT=/^(?:webkit|moz|o)[A-Z]/,fT=/^-ms-/,dT=/-(.)/g,Om=/;\s*$/,vo={},mf={},Am=!1,Nm=!1,vT=function(e){return e.replace(dT,function(t,n){return n.toUpperCase()})},pT=function(e){vo.hasOwnProperty(e)&&vo[e]||(vo[e]=!0,c("Unsupported style property %s. Did you mean %s?",e,vT(e.replace(fT,"ms-"))))},mT=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)))},hT=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(Om,"")))},yT=function(e,t){Am||(Am=!0,c("`NaN` is an invalid value for the `%s` css style property.",e))},gT=function(e,t){Nm||(Nm=!0,c("`Infinity` is an invalid value for the `%s` css style property.",e))};Lm=function(e,t){e.indexOf("-")>-1?pT(e):cT.test(e)?mT(e):Om.test(t)&&hT(e,t),typeof t=="number"&&(isNaN(t)?yT(e,t):isFinite(t)||gT(e,t))}}var bT=Lm;function ST(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:sT(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||bT(a,t[a]);var i=pf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function TT(e){return e==null||typeof e=="boolean"||e===""}function Um(e){var t={};for(var n in e)for(var a=rT[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function ET(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.",TT(e[o])?"Removing":"Updating",o,l)}}}}var CT={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},xT=F({menuitem:!0},CT),RT="__html";function hf(e,t){if(t){if(xT[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"||!(RT 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 Oi(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={},wT=new RegExp("^(aria)-["+Z+"]*$"),DT=new RegExp("^(aria)[A-Z]["+Z+"]*$");function _T(e,t){{if(hn.call(po,t)&&po[t])return!0;if(DT.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(wT.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 kT(e,t){{var n=[];for(var a in t){var r=_T(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 MT(e,t){Oi(e,t)||kT(e,t)}var zm=!1;function LT(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 Fm=function(){};{var aa={},Vm=/^on./,OT=/^on[^A-Z]/,AT=new RegExp("^(aria)-["+Z+"]*$"),NT=new RegExp("^(aria)[A-Z]["+Z+"]*$");Fm=function(e,t,n,a){if(hn.call(aa,t)&&aa[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."),aa[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),aa[t]=!0,!0;if(Vm.test(t))return c("Unknown event handler property `%s`. It will be ignored.",t),aa[t]=!0,!0}else if(Vm.test(t))return OT.test(t)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),aa[t]=!0,!0;if(AT.test(t)||NT.test(t))return!0;if(r==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),aa[t]=!0,!0;if(r==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),aa[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),aa[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),aa[t]=!0,!0;var u=qt(t),f=u!==null&&u.type===we;if(ns.hasOwnProperty(r)){var d=ns[r];if(d!==t)return c("Invalid DOM property `%s`. Did you mean `%s`?",t,d),aa[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),aa[t]=!0,!0;return typeof n=="boolean"&&tn(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),aa[t]=!0,!0):f?!0:tn(t,n,u,!1)?(aa[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===ht&&(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),aa[t]=!0),!0)}}var jT=function(e,t,n){{var a=[];for(var r in t){var i=Fm(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 UT(e,t,n){Oi(e,t)||jT(e,t,n)}var Bm=1,yf=2,bl=4,HT=Bm|yf|bl,Sl=null;function zT(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 FT(){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 VT(e){return e===Sl}function gf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Lr?t.parentNode:t}var bf=null,mo=null,ho=null;function $m(e){var t=ci(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 BT(e){bf=e}function Pm(e){mo?ho?ho.push(e):ho=[e]:mo=e}function $T(){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 PT(){var e=$T();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,PT()}}function YT(e,t,n){Im=e,Wm=n}function IT(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function WT(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&&IT(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(WT(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(Xe)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"),b=!1,g=!0,w=window.event,M=Object.getOwnPropertyDescriptor(window,"event");function j(){Ef.removeEventListener(U,ke,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=w)}var ie=Array.prototype.slice.call(arguments,3);function ke(){b=!0,j(),n.apply(a,ie),g=!1}var Re,ft=!1,it=!1;function C(x){if(Re=x.error,ft=!0,Re===null&&x.colno===0&&x.lineno===0&&(it=!0),x.defaultPrevented&&Re!=null&&typeof Re=="object")try{Re._suppressLogging=!0}catch{}}var U="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",C),Ef.addEventListener(U,ke,!1),d.initEvent(U,!1,!1),Ef.dispatchEvent(d),M&&Object.defineProperty(window,"event",M),b&&g&&(ft?it&&(Re=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.")):Re=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(Re)),window.removeEventListener("error",C),!b)return j(),Gm.apply(this,arguments)}}var qT=Xm,yo=!1,as=null,rs=!1,Cf=null,GT={onError:function(e){yo=!0,as=e}};function xf(e,t,n,a,r,i,o,l,u){yo=!1,as=null,qT.apply(GT,arguments)}function XT(e,t,n,a,r,i,o,l,u){if(xf.apply(this,arguments),yo){var f=Rf();rs||(rs=!0,Cf=f)}}function QT(){if(rs){var e=Cf;throw rs=!1,Cf=null,e}}function KT(){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 JT(e){return e._reactInternals!==void 0}function ZT(e,t){e._reactInternals=t}var He=0,bo=1,pn=2,wt=4,Ai=16,Cl=32,Qm=64,Dt=128,Ar=256,Ni=512,So=1024,ni=2048,Nr=4096,ji=8192,wf=16384,e0=32767,is=32768,ra=65536,Df=131072,Km=1048576,_f=2097152,Ui=4194304,kf=8388608,ai=16777216,Mf=33554432,Lf=wt|So|0,Of=pn|wt|Ai|Cl|Ni|Nr|ji,xl=wt|Qm|Ni|ji,To=ni|Ai,jr=Ui|kf|_f,t0=ge.ReactCurrentOwner;function Hi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(pn|Nr))!==He&&(n=t.return),a=t.return;while(a)}return t.tag===oe?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===oe?e.stateNode.containerInfo:null}function n0(e){return Hi(e)===e}function a0(e){{var t=t0.current;if(t!==null&&t.tag===ne){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?Hi(r)===r:!1}function eh(e){if(Hi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function th(e){var t=e.alternate;if(!t){var n=Hi(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!==oe)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===Q||e.tag===he)return e;for(var t=e.child;t!==null;){var n=ah(t);if(n!==null)return n;t=t.sibling}return null}function r0(e){var t=th(e);return t!==null?rh(t):null}function rh(e){if(e.tag===Q||e.tag===he)return e;for(var t=e.child;t!==null;){if(t.tag!==ze){var n=rh(t);if(n!==null)return n}t=t.sibling}return null}var ih=D.unstable_scheduleCallback,i0=D.unstable_cancelCallback,o0=D.unstable_shouldYield,l0=D.unstable_requestPaint,Mn=D.unstable_now,u0=D.unstable_getCurrentPriorityLevel,os=D.unstable_ImmediatePriority,Af=D.unstable_UserBlockingPriority,zi=D.unstable_NormalPriority,s0=D.unstable_LowPriority,Nf=D.unstable_IdlePriority,c0=D.unstable_yieldValue,f0=D.unstable_setDisableYieldValue,Eo=null,qn=null,ce=null,lr=!1,Wa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function d0(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{Vt&&(e=F({},e,{getLaneLabelMap:g0,injectProfilingHooks:y0})),Eo=t.inject(e),qn=t}catch(n){c("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function v0(e,t){if(qn&&typeof qn.onScheduleFiberRoot=="function")try{qn.onScheduleFiberRoot(Eo,e,t)}catch(n){lr||(lr=!0,c("React instrumentation encountered an error: %s",n))}}function p0(e,t){if(qn&&typeof qn.onCommitFiberRoot=="function")try{var n=(e.current.flags&Dt)===Dt;if(je){var a;switch(t){case Da:a=os;break;case Hr:a=Af;break;case zr:a=zi;break;case vs:a=Nf;break;default:a=zi;break}qn.onCommitFiberRoot(Eo,e,a,n)}}catch(r){lr||(lr=!0,c("React instrumentation encountered an error: %s",r))}}function m0(e){if(qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(Eo,e)}catch(t){lr||(lr=!0,c("React instrumentation encountered an error: %s",t))}}function h0(e){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(Eo,e)}catch(t){lr||(lr=!0,c("React instrumentation encountered an error: %s",t))}}function Ln(e){if(typeof c0=="function"&&(f0(e),Me(e)),qn&&typeof qn.setStrictMode=="function")try{qn.setStrictMode(Eo,e)}catch(t){lr||(lr=!0,c("React instrumentation encountered an error: %s",t))}}function y0(e){ce=e}function g0(){{for(var e=new Map,t=1,n=0;n<Uf;n++){var a=z0(t);e.set(t,a),t*=2}return e}}function b0(e){ce!==null&&typeof ce.markCommitStarted=="function"&&ce.markCommitStarted(e)}function oh(){ce!==null&&typeof ce.markCommitStopped=="function"&&ce.markCommitStopped()}function Rl(e){ce!==null&&typeof ce.markComponentRenderStarted=="function"&&ce.markComponentRenderStarted(e)}function Co(){ce!==null&&typeof ce.markComponentRenderStopped=="function"&&ce.markComponentRenderStopped()}function S0(e){ce!==null&&typeof ce.markComponentPassiveEffectMountStarted=="function"&&ce.markComponentPassiveEffectMountStarted(e)}function T0(){ce!==null&&typeof ce.markComponentPassiveEffectMountStopped=="function"&&ce.markComponentPassiveEffectMountStopped()}function E0(e){ce!==null&&typeof ce.markComponentPassiveEffectUnmountStarted=="function"&&ce.markComponentPassiveEffectUnmountStarted(e)}function C0(){ce!==null&&typeof ce.markComponentPassiveEffectUnmountStopped=="function"&&ce.markComponentPassiveEffectUnmountStopped()}function x0(e){ce!==null&&typeof ce.markComponentLayoutEffectMountStarted=="function"&&ce.markComponentLayoutEffectMountStarted(e)}function R0(){ce!==null&&typeof ce.markComponentLayoutEffectMountStopped=="function"&&ce.markComponentLayoutEffectMountStopped()}function lh(e){ce!==null&&typeof ce.markComponentLayoutEffectUnmountStarted=="function"&&ce.markComponentLayoutEffectUnmountStarted(e)}function uh(){ce!==null&&typeof ce.markComponentLayoutEffectUnmountStopped=="function"&&ce.markComponentLayoutEffectUnmountStopped()}function w0(e,t,n){ce!==null&&typeof ce.markComponentErrored=="function"&&ce.markComponentErrored(e,t,n)}function D0(e,t,n){ce!==null&&typeof ce.markComponentSuspended=="function"&&ce.markComponentSuspended(e,t,n)}function _0(e){ce!==null&&typeof ce.markLayoutEffectsStarted=="function"&&ce.markLayoutEffectsStarted(e)}function k0(){ce!==null&&typeof ce.markLayoutEffectsStopped=="function"&&ce.markLayoutEffectsStopped()}function M0(e){ce!==null&&typeof ce.markPassiveEffectsStarted=="function"&&ce.markPassiveEffectsStarted(e)}function L0(){ce!==null&&typeof ce.markPassiveEffectsStopped=="function"&&ce.markPassiveEffectsStopped()}function sh(e){ce!==null&&typeof ce.markRenderStarted=="function"&&ce.markRenderStarted(e)}function O0(){ce!==null&&typeof ce.markRenderYielded=="function"&&ce.markRenderYielded()}function ch(){ce!==null&&typeof ce.markRenderStopped=="function"&&ce.markRenderStopped()}function A0(e){ce!==null&&typeof ce.markRenderScheduled=="function"&&ce.markRenderScheduled(e)}function N0(e,t){ce!==null&&typeof ce.markForceUpdateScheduled=="function"&&ce.markForceUpdateScheduled(e,t)}function jf(e,t){ce!==null&&typeof ce.markStateUpdateScheduled=="function"&&ce.markStateUpdateScheduled(e,t)}var Ae=0,st=1,jt=2,un=8,ur=16,fh=Math.clz32?Math.clz32:H0,j0=Math.log,U0=Math.LN2;function H0(e){var t=e>>>0;return t===0?32:31-(j0(t)/U0|0)|0}var Uf=31,P=0,On=0,Ye=1,xo=2,Ur=4,Fi=8,sr=16,wl=32,Ro=4194240,Dl=64,Hf=128,zf=256,Ff=512,Vf=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,Vi=536870912,Ra=1073741824;function z0(e){{if(e&Ye)return"Sync";if(e&xo)return"InputContinuousHydration";if(e&Ur)return"InputContinuous";if(e&Fi)return"DefaultHydration";if(e&sr)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&Vi)return"Idle";if(e&Ra)return"Offscreen"}}var Qt=-1,us=Dl,ss=wo;function Ml(e){switch(Bi(e)){case Ye:return Ye;case xo:return xo;case Ur:return Ur;case Fi:return Fi;case sr:return sr;case wl:return wl;case Dl:case Hf:case zf:case Ff:case Vf: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 Vi:return Vi;case Ra:return Ra;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===P)return P;var a=P,r=e.suspendedLanes,i=e.pingedLanes,o=n&vh;if(o!==P){var l=o&~r;if(l!==P)a=Ml(l);else{var u=o&i;u!==P&&(a=Ml(u))}}else{var f=n&~r;f!==P?a=Ml(f):i!==P&&(a=Ml(i))}if(a===P)return P;if(t!==P&&t!==a&&(t&r)===P){var d=Bi(a),b=Bi(t);if(d>=b||d===sr&&(b&Ro)!==P)return t}(a&Ur)!==P&&(a|=n&sr);var g=e.entangledLanes;if(g!==P)for(var w=e.entanglements,M=a&g;M>0;){var j=$i(M),ie=1<<j;a|=w[j],M&=~ie}return a}function F0(e,t){for(var n=e.eventTimes,a=Qt;t>0;){var r=$i(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function V0(e,t){switch(e){case Ye:case xo:case Ur:return t+250;case Fi:case sr:case wl:case Dl:case Hf:case zf:case Ff:case Vf: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 Qt;case _l:case kl:case Vi:case Ra:return Qt;default:return c("Should have found matching lanes. This is a bug in React."),Qt}}function B0(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=$i(o),u=1<<l,f=i[l];f===Qt?((u&a)===P||(u&r)!==P)&&(i[l]=V0(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function $0(e){return Ml(e.pendingLanes)}function nd(e){var t=e.pendingLanes&~Ra;return t!==P?t:t&Ra?Ra:P}function P0(e){return(e&Ye)!==P}function ad(e){return(e&vh)!==P}function ph(e){return(e&ls)===e}function Y0(e){var t=Ye|Ur|sr;return(e&t)===P}function I0(e){return(e&Ro)===e}function fs(e,t){var n=xo|Ur|Fi|sr;return(t&n)!==P}function W0(e,t){return(t&e.expiredLanes)!==P}function mh(e){return(e&Ro)!==P}function hh(){var e=us;return us<<=1,(us&Ro)===P&&(us=Dl),e}function q0(){var e=ss;return ss<<=1,(ss&ls)===P&&(ss=wo),e}function Bi(e){return e&-e}function Ll(e){return Bi(e)}function $i(e){return 31-fh(e)}function rd(e){return $i(e)}function wa(e,t){return(e&t)!==P}function Do(e,t){return(e&t)===t}function et(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 G0(e,t){return e!==On&&e<t?e:t}function id(e){for(var t=[],n=0;n<Uf;n++)t.push(e);return t}function Ol(e,t,n){e.pendingLanes|=t,t!==Vi&&(e.suspendedLanes=P,e.pingedLanes=P);var a=e.eventTimes,r=rd(t);a[r]=n}function X0(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=$i(a),i=1<<r;n[r]=Qt,a&=~i}}function gh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function Q0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=P,e.pingedLanes=P,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=$i(o),u=1<<l;a[l]=P,r[l]=Qt,i[l]=Qt,o&=~u}}function od(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=$i(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function K0(e,t){var n=Bi(t),a;switch(n){case Ur:a=xo;break;case sr:a=Fi;break;case Dl:case Hf:case zf:case Ff:case Vf: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 Vi:a=kl;break;default:a=On;break}return(a&(e.suspendedLanes|t))!==On?On:a}function bh(e,t,n){if(Wa)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(Wa)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 Da=Ye,Hr=Ur,zr=sr,vs=Vi,Al=On;function qa(){return Al}function An(e){Al=e}function J0(e,t){var n=Al;try{return Al=e,t()}finally{Al=n}}function Z0(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=Bi(e);return ld(Da,t)?ld(Hr,t)?ad(t)?zr:vs:Hr:Da}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=[],ri=null,ii=null,oi=null,Nl=new Map,jl=new Map,li=[],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":ri=null;break;case"dragenter":case"dragleave":ii=null;break;case"mouseover":case"mouseout":oi=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=ci(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 ri=Ul(ri,e,t,n,a,i),!0}case"dragenter":{var o=r;return ii=Ul(ii,e,t,n,a,o),!0}case"mouseover":{var l=r;return oi=Ul(oi,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,b=d.pointerId;return jl.set(b,Ul(jl.get(b)||null,e,t,n,a,d)),!0}}return!1}function _h(e){var t=Ii(e.target);if(t!==null){var n=Hi(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===oe){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<li.length&&ld(t,li[a].priority);a++);li.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);zT(i),r.target.dispatchEvent(i),FT()}else{var o=ci(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,ri!==null&&hs(ri)&&(ri=null),ii!==null&&hs(ii)&&(ii=null),oi!==null&&hs(oi)&&(oi=null),Nl.forEach(kh),jl.forEach(kh)}function Hl(e,t){e.blockedOn===t&&(e.blockedOn=null,sd||(sd=!0,D.unstable_scheduleCallback(D.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)}}ri!==null&&Hl(ri,e),ii!==null&&Hl(ii,e),oi!==null&&Hl(oi,e);var a=function(l){return Hl(l,e)};Nl.forEach(a),jl.forEach(a);for(var r=0;r<li.length;r++){var i=li[r];i.blockedOn===e&&(i.blockedOn=null)}for(;li.length>0;){var o=li[0];if(o.blockedOn!==null)break;_h(o),o.blockedOn===null&&li.shift()}}var _o=ge.ReactCurrentBatchConfig,cd=!0;function Mh(e){cd=!!e}function vE(){return cd}function pE(e,t,n){var a=Lh(t),r;switch(a){case Da:r=mE;break;case Hr:r=hE;break;case zr:default:r=fd;break}return r.bind(null,t,n,e)}function mE(e,t,n,a){var r=qa(),i=_o.transition;_o.transition=null;try{An(Da),fd(e,t,n,a)}finally{An(r),_o.transition=i}}function hE(e,t,n,a){var r=qa(),i=_o.transition;_o.transition=null;try{An(Hr),fd(e,t,n,a)}finally{An(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=ci(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=Ii(r);if(i!==null){var o=Hi(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===oe){var f=o.stateNode;if(ps(f))return Zm(o);i=null}else o!==i&&(i=null)}}return ys=i,null}function Lh(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 Da;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 Hr;case"message":{var t=u0();switch(t){case os:return Da;case Af:return Hr;case zi:case s0:return zr;case Nf:return vs;default:return zr}}default:return zr}}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 Fl=null,vd=null,Vl=null;function EE(e){return Fl=e,vd=Ah(),!0}function CE(){Fl=null,vd=null,Vl=null}function Oh(){if(Vl)return Vl;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 Vl=r.slice(e,l),Vl}function Ah(){return"value"in Fl?Fl.value:Fl.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 _a(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 F(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=_a(ko),Bl=F({},ko,{view:0,detail:0}),xE=_a(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=F({},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=_a(Ss),wE=F({},Ss,{dataTransfer:0}),DE=_a(wE),_E=F({},Bl,{relatedTarget:0}),yd=_a(_E),kE=F({},ko,{animationName:0,elapsedTime:0,pseudoElement:0}),ME=_a(kE),LE=F({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OE=_a(LE),AE=F({},ko,{data:0}),Uh=_a(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 FE(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 FE}var VE=F({},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=_a(VE),$E=F({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hh=_a($E),PE=F({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),YE=_a(PE),IE=F({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),WE=_a(IE),qE=F({},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=_a(qE),XE=[9,13,27,32],zh=229,bd=Xe&&"CompositionEvent"in window,Pl=null;Xe&&"documentMode"in document&&(Pl=document.documentMode);var QE=Xe&&"TextEvent"in window&&!Pl,Fh=Xe&&(!bd||Pl&&Pl>8&&Pl<=11),Vh=32,Bh=String.fromCharCode(Vh);function KE(){It("onBeforeInput",["compositionend","keypress","textInput","paste"]),It("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),It("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),It("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;Fh&&!Ih(a)&&(!Mo&&i==="onCompositionStart"?Mo=EE(r):i==="onCompositionEnd"&&Mo&&(o=Oh()));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!==Vh?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=Oh();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 Fh&&!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(!Xe)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(){It("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;Xe&&(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"||Ue(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(){mt("onMouseEnter",["mouseout","mouseover"]),mt("onMouseLeave",["mouseout","mouseover"]),mt("onPointerEnter",["pointerout","pointerover"]),mt("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&&!VT(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Ii(f)||ou(f)))return}if(!(!u&&!l)){var d;if(r.window===r)d=r;else{var b=r.ownerDocument;b?d=b.defaultView||b.parentWindow:d=window}var g,w;if(u){var M=a.relatedTarget||a.toElement;if(g=n,w=M?Ii(M):null,w!==null){var j=Hi(w);(w!==j||w.tag!==Q&&w.tag!==he)&&(w=null)}}else g=null,w=n;if(g!==w){var ie=jh,ke="onMouseLeave",Re="onMouseEnter",ft="mouse";(t==="pointerout"||t==="pointerover")&&(ie=Hh,ke="onPointerLeave",Re="onPointerEnter",ft="pointer");var it=g==null?d:Uo(g),C=w==null?d:Uo(w),U=new ie(ke,ft+"leave",g,a,r);U.target=it,U.relatedTarget=C;var x=null,I=Ii(r);if(I===n){var de=new ie(Re,ft+"enter",w,a,r);de.target=C,de.relatedTarget=it,x=de}WC(e,U,x,g,w)}}}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ka=typeof Object.is=="function"?Object.is:CC;function Wl(e,t){if(ka(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(!hn.call(t,i)||!ka(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===Lr){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,b=null;e:for(;;){for(var g=null;d===t&&(n===0||d.nodeType===Lr)&&(o=i+n),d===a&&(r===0||d.nodeType===Lr)&&(l=i+r),d.nodeType===Lr&&(i+=d.nodeValue.length),(g=d.firstChild)!==null;)b=d,d=g;for(;;){if(d===e)break e;if(b===t&&++u===n&&(o=i),b===a&&++f===r&&(l=i),(g=d.nextSibling)!==null)break;d=b,b=d.parentNode}d=g}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 b=n.createRange();b.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(b),r.extend(d.node,d.offset)):(b.setEnd(d.node,d.offset),r.addRange(b))}}}function Zh(e){return e&&e.nodeType===Lr}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=_r();t instanceof e.HTMLIFrameElement;){if(kC(t))e=t.contentWindow;else return t;t=_r(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)?OC(e):null}}function LC(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===pa&&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 OC(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=Xe&&"documentMode"in document&&document.documentMode<=11;function jC(){It("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Lo=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===Or?e:e.ownerDocument}function ny(e,t,n){var a=HC(n);if(!(Ed||Lo==null||Lo!==_r(a))){var r=UC(Lo);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=Lo}}}}function zC(e,t,n,a,r,i,o){var l=n?Uo(n):window;switch(t){case"focusin":(Wh(l)||l.contentEditable==="true")&&(Lo=l,Td=n,ql=null);break;case"focusout":Lo=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 Oo={animationend:Es("Animation","AnimationEnd"),animationiteration:Es("Animation","AnimationIteration"),animationstart:Es("Animation","AnimationStart"),transitionend:Es("Transition","TransitionEnd")},Cd={},ay={};Xe&&(ay=document.createElement("div").style,"AnimationEvent"in window||(delete Oo.animationend.animation,delete Oo.animationiteration.animation,delete Oo.animationstart.animation),"TransitionEvent"in window||delete Oo.transitionend.transition);function Cs(e){if(Cd[e])return Cd[e];if(!Oo[e])return e;var t=Oo[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 ui(e,t){uy.set(e,t),It(t,[e])}function FC(){for(var e=0;e<sy.length;e++){var t=sy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);ui(n,"on"+a)}ui(ry,"onAnimationEnd"),ui(iy,"onAnimationIteration"),ui(oy,"onAnimationStart"),ui("dblclick","onDoubleClick"),ui("focusin","onFocus"),ui("focusout","onBlur"),ui(ly,"onTransitionEnd")}function VC(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=OE;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 b=!d&&t==="scroll",g=YC(n,l,a.type,d,b);if(g.length>0){var w=new u(l,f,null,a,r);e.push({event:w,listeners:g})}}}}FC(),TC(),uC(),jC(),KE();function BC(e,t,n,a,r,i,o){VC(e,t,n,a,r,i);var l=(i&HT)===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,XT(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],b=d.instance,g=d.currentTarget,w=d.listener;if(b!==a&&e.isPropagationStopped())return;cy(e,w,g),a=b}}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)}QT()}function PC(e,t,n,a,r){var i=gf(n),o=[];BC(o,e,a,n,i,t),fy(o,t)}function Zt(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=b1(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,Je.forEach(function(n){n!=="selectionchange"&&(xd.has(n)||Rd(n,!1,e),Rd(n,!0,e))});var t=e.nodeType===Or?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===vn&&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===oe||u===ze){var f=l.stateNode.containerInfo;if(vy(f,o))break;if(u===ze)for(var d=l.return;d!==null;){var b=d.tag;if(b===oe||b===ze){var g=d.stateNode.containerInfo;if(vy(g,o))return}d=d.return}for(;f!==null;){var w=Ii(f);if(w===null)return;var M=w.tag;if(M===Q||M===he){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 b=f,g=b.stateNode,w=b.tag;if(w===Q&&g!==null&&(d=g,l!==null)){var M=Tl(f,l);M!=null&&u.push(Ql(f,M,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===Q&&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!==Q);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,b=u.tag;if(f!==null&&f===a)break;if(b===Q&&d!==null){var g=d;if(r){var w=Tl(l,i);w!=null&&o.unshift(Ql(l,w,g))}else if(!r){var M=Tl(l,i);M!=null&&o.push(Ql(l,M,g))}}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 ma=!1,Kl="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",si="suppressHydrationWarning",my="autoFocus",Pi="children",Yi="style",Ds="__html",Dd,_s,Jl,hy,ks,yy,gy;Dd={dialog:!0,webview:!0},_s=function(e,t){MT(e,t),LT(e,t),UT(e,t,{registrationNameDependencies:en,possibleRegistrationNames:nt})},yy=Xe&&!document.documentMode,Jl=function(e,t,n){if(!ma){var a=Ms(n),r=Ms(t);r!==a&&(ma=!0,c("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},hy=function(e){if(!ma){ma=!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===Mr?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){at(e);var t=typeof e=="string"?e:""+e;return t.replace(GC,`
`).replace(XC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(ma||(ma=!0,c('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&A))throw new Error("Text content does not match server-rendered HTML.")}function by(e){return e.nodeType===Or?e:e.ownerDocument}function QC(){}function Os(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===Yi)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===Pi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&ts(t,o)}else typeof o=="number"&&ts(t,""+o);else i===ws||i===si||i===my||(en.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&ks(i,o),i==="onScroll"&&Zt("scroll",t)):o!=null&&jn(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===Yi?jm(e,o):i===Kl?Mm(e,o):i===Pi?ts(e,o):jn(e,i,o,a)}}function ZC(e,t,n,a){var r,i=by(n),o,l=a;if(l===Mr&&(l=ff(e)),l===Mr){if(r=Oi(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===Mr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!hn.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=Oi(t,n);_s(t,n);var i;switch(t){case"dialog":Zt("cancel",e),Zt("close",e),i=n;break;case"iframe":case"object":case"embed":Zt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Gl.length;o++)Zt(Gl[o],e);i=n;break;case"source":Zt("error",e),i=n;break;case"img":case"image":case"link":Zt("error",e),Zt("load",e),i=n;break;case"details":Zt("toggle",e),i=n;break;case"input":Ju(e,n),i=pl(e,n),Zt("invalid",e);break;case"option":Nt(e,n),i=n;break;case"select":yl(e,n),i=hl(e,n),Zt("invalid",e);break;case"textarea":Dm(e,n),i=sf(e,n),Zt("invalid",e);break;default:i=n}switch(hf(t,i),KC(t,e,a,i,r),t){case"input":Mi(e),k(e,n,!1);break;case"textarea":Mi(e),km(e);break;case"option":Gt(e,n);break;case"select":lf(e,n);break;default:typeof i.onClick=="function"&&Os(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"&&Os(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===Yi){var b=o[u];for(f in b)b.hasOwnProperty(f)&&(d||(d={}),d[f]="")}else u===Kl||u===Pi||u===ws||u===si||u===my||(en.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var g=l[u],w=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||g===w||g==null&&w==null))if(u===Yi)if(g&&Object.freeze(g),w){for(f in w)w.hasOwnProperty(f)&&(!g||!g.hasOwnProperty(f))&&(d||(d={}),d[f]="");for(f in g)g.hasOwnProperty(f)&&w[f]!==g[f]&&(d||(d={}),d[f]=g[f])}else d||(i||(i=[]),i.push(u,d)),d=g;else if(u===Kl){var M=g?g[Ds]:void 0,j=w?w[Ds]:void 0;M!=null&&j!==M&&(i=i||[]).push(u,M)}else u===Pi?(typeof g=="string"||typeof g=="number")&&(i=i||[]).push(u,""+g):u===ws||u===si||(en.hasOwnProperty(u)?(g!=null&&(typeof g!="function"&&ks(u,g),u==="onScroll"&&Zt("scroll",e)),!i&&w!==g&&(i=[])):(i=i||[]).push(u,g))}return d&&(ET(d,l[Yi]),(i=i||[]).push(Yi,d)),i}function ax(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Oi(n,a),o=Oi(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=Oi(t,n),_s(t,n),t){case"dialog":Zt("cancel",e),Zt("close",e);break;case"iframe":case"object":case"embed":Zt("load",e);break;case"video":case"audio":for(var f=0;f<Gl.length;f++)Zt(Gl[f],e);break;case"source":Zt("error",e);break;case"img":case"image":case"link":Zt("error",e),Zt("load",e);break;case"details":Zt("toggle",e);break;case"input":Ju(e,n),Zt("invalid",e);break;case"option":Nt(e,n);break;case"select":yl(e,n),Zt("invalid",e);break;case"textarea":Dm(e,n),Zt("invalid",e);break}hf(t,n);{u=new Set;for(var d=e.attributes,b=0;b<d.length;b++){var g=d[b].name.toLowerCase();switch(g){case"value":break;case"checked":break;case"selected":break;default:u.add(d[b].name)}}}var w=null;for(var M in n)if(n.hasOwnProperty(M)){var j=n[M];if(M===Pi)typeof j=="string"?e.textContent!==j&&(n[si]!==!0&&Ls(e.textContent,j,i,o),w=[Pi,j]):typeof j=="number"&&e.textContent!==""+j&&(n[si]!==!0&&Ls(e.textContent,j,i,o),w=[Pi,""+j]);else if(en.hasOwnProperty(M))j!=null&&(typeof j!="function"&&ks(M,j),M==="onScroll"&&Zt("scroll",e));else if(o&&typeof l=="boolean"){var ie=void 0,ke=qt(M);if(n[si]!==!0){if(!(M===ws||M===si||M==="value"||M==="checked"||M==="selected")){if(M===Kl){var Re=e.innerHTML,ft=j?j[Ds]:void 0;if(ft!=null){var it=gy(e,ft);it!==Re&&Jl(M,Re,it)}}else if(M===Yi){if(u.delete(M),yy){var C=ST(j);ie=e.getAttribute("style"),C!==ie&&Jl(M,ie,C)}}else if(l&&!Et)u.delete(M.toLowerCase()),ie=va(e,M,j),j!==ie&&Jl(M,ie,j);else if(!zt(M,ke,l)&&!Rn(M,j,ke,l)){var U=!1;if(ke!==null)u.delete(ke.attributeName),ie=Zr(e,M,j,ke);else{var x=a;if(x===Mr&&(x=ff(t)),x===Mr)u.delete(M.toLowerCase());else{var I=rx(M);I!==null&&I!==M&&(U=!0,u.delete(I)),u.delete(M)}ie=va(e,M,j)}var de=Et;!de&&j!==ie&&!U&&Jl(M,ie,j)}}}}}switch(o&&u.size>0&&n[si]!==!0&&hy(u),t){case"input":Mi(e),k(e,n,!0);break;case"textarea":Mi(e),km(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Os(e);break}return w}function ox(e,t,n){var a=e.nodeValue!==t;return a}function _d(e,t){{if(ma)return;ma=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function kd(e,t){{if(ma)return;ma=!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(ma)return;ma=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ld(e,t){{if(t===""||ma)return;ma=!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":N(e,n);return;case"textarea":tT(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=F({},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,b="";if(e==="#text"?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",b=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var g="";u==="table"&&e==="tr"&&(g+=" 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,b,g)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}}}var As="suppressHydrationWarning",Ns="$",js="/$",tu="$?",nu="$!",vx="style",Od=null,Ad=null;function px(e){var t,n,a=e.nodeType;switch(a){case Or:case vf:{t=a===Or?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:df(null,"");break}default:{var i=a===vn?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){Od=vE(),Ad=MC();var t=null;return Mh(!1),t}function yx(e){LC(Ad),Mh(Od),Od=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?zr:Lh(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 Lx(e,t){var n;e.nodeType===vn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Os(n)}function Ox(e,t,n){e.insertBefore(t,n)}function Ax(e,t,n){e.nodeType===vn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Nx(e,t){e.removeChild(t)}function jx(e,t){e.nodeType===vn?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===vn){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===vn?Hd(e.parentNode,t):e.nodeType===pa&&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 Fx(e,t){e=e;var n=t[vx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=pf("display",a)}function Vx(e,t){e.nodeValue=t}function Bx(e){e.nodeType===pa?e.textContent="":e.nodeType===Or&&e.documentElement&&e.removeChild(e.documentElement)}function $x(e,t,n){return e.nodeType!==pa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Px(e,t){return t===""||e.nodeType!==Lr?null:e}function Yx(e){return e.nodeType!==vn?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===pa||t===Lr)break;if(t===vn){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&st)!==Ae;return ix(e,t,n,l,a,f,o)}function Kx(e,t,n,a){return iu(n,e),n.mode&st,ox(e,t)}function Jx(e,t){iu(t,e)}function Zx(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===vn){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===vn){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 e1(e){zl(e)}function t1(e){zl(e)}function n1(e){return e!=="head"&&e!=="body"}function a1(e,t,n,a){var r=!0;Ls(t.nodeValue,n,a,r)}function r1(e,t,n,a,r,i){if(t[As]!==!0){var o=!0;Ls(a.nodeValue,r,i,o)}}function i1(e,t){t.nodeType===pa?_d(e,t):t.nodeType===vn||kd(e,t)}function o1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===pa?_d(n,t):t.nodeType===vn||kd(n,t))}}function l1(e,t,n,a,r){(r||t[As]!==!0)&&(a.nodeType===pa?_d(n,a):a.nodeType===vn||kd(n,a))}function u1(e,t,n){Md(e,t)}function s1(e,t){Ld(e,t)}function c1(e,t,n){{var a=e.parentNode;a!==null&&Md(a,t)}}function f1(e,t){{var n=e.parentNode;n!==null&&Ld(n,t)}}function d1(e,t,n,a,r,i){(i||t[As]!==!0)&&Md(n,a)}function v1(e,t,n,a,r){(r||t[As]!==!0)&&Ld(n,a)}function p1(e){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function m1(e){Xl(e)}var No=Math.random().toString(36).slice(2),jo="__reactFiber$"+No,Fd="__reactProps$"+No,ru="__reactContainer$"+No,Vd="__reactEvents$"+No,h1="__reactListeners$"+No,y1="__reactHandles$"+No;function g1(e){delete e[jo],delete e[Fd],delete e[Vd],delete e[h1],delete e[y1]}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 Ii(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 ci(e){var t=e[jo]||e[ru];return t&&(t.tag===Q||t.tag===he||t.tag===O||t.tag===oe)?t:null}function Uo(e){if(e.tag===Q||e.tag===he)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zs(e){return e[Fd]||null}function Bd(e,t){e[Fd]=t}function b1(e){var t=e[Vd];return t===void 0&&(t=e[Vd]=new Set),t}var _y={},ky=ge.ReactDebugCurrentFrame;function Fs(e){if(e){var t=e._owner,n=xa(e.type,e._source,t?t.type:null);ky.setExtraStackFrame(n)}else ky.setExtraStackFrame(null)}function Ga(e,t,n,a,r){{var i=Function.call.bind(hn);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)&&(Fs(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),Fs(null)),l instanceof Error&&!(l.message in _y)&&(_y[l.message]=!0,Fs(r),c("Failed %s type: %s",n,l.message),Fs(null))}}}var $d=[],Vs;Vs=[];var Fr=-1;function fi(e){return{current:e}}function Gn(e,t){if(Fr<0){c("Unexpected pop.");return}t!==Vs[Fr]&&c("Unexpected Fiber popped."),e.current=$d[Fr],$d[Fr]=null,Vs[Fr]=null,Fr--}function Xn(e,t,n){Fr++,$d[Fr]=e.current,Vs[Fr]=n,e.current=t}var Pd;Pd={};var Ma={};Object.freeze(Ma);var Vr=fi(Ma),cr=fi(!1),Yd=Ma;function Ho(e,t,n){return n&&fr(t)?Yd:Vr.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 Ma;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";Ga(a,i,"context",l)}return r&&My(e,t,i),i}}function Bs(){return cr.current}function fr(e){{var t=e.childContextTypes;return t!=null}}function $s(e){Gn(cr,e),Gn(Vr,e)}function Id(e){Gn(cr,e),Gn(Vr,e)}function Ly(e,t,n){{if(Vr.current!==Ma)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Xn(Vr,t,e),Xn(cr,n,e)}}function Oy(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";Ga(r,o,"child context",u)}return F({},n,o)}}function Ps(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Ma;return Yd=Vr.current,Xn(Vr,n,e),Xn(cr,cr.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=Oy(e,t,Yd);a.__reactInternalMemoizedMergedChildContext=r,Gn(cr,e),Gn(Vr,e),Xn(Vr,r,e),Xn(cr,n,e)}else Gn(cr,e),Xn(cr,n,e)}}function S1(e){{if(!n0(e)||e.tag!==ne)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 oe:return t.stateNode.context;case ne:{var n=t.type;if(fr(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 di=0,Ys=1,Br=null,Wd=!1,qd=!1;function Ny(e){Br===null?Br=[e]:Br.push(e)}function T1(e){Wd=!0,Ny(e)}function jy(){Wd&&vi()}function vi(){if(!qd&&Br!==null){qd=!0;var e=0,t=qa();try{var n=!0,a=Br;for(An(Da);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Br=null,Wd=!1}catch(i){throw Br!==null&&(Br=Br.slice(e+1)),ih(os,vi),i}finally{An(t),qd=!1}}return null}var Fo=[],Vo=0,Is=null,Ws=0,Ua=[],Ha=0,Wi=null,$r=1,Pr="";function E1(e){return Gi(),(e.flags&Km)!==He}function C1(e){return Gi(),Ws}function x1(){var e=Pr,t=$r,n=t&~R1(t);return n.toString(32)+e}function qi(e,t){Gi(),Fo[Vo++]=Ws,Fo[Vo++]=Is,Is=e,Ws=t}function Uy(e,t,n){Gi(),Ua[Ha++]=$r,Ua[Ha++]=Pr,Ua[Ha++]=Wi,Wi=e;var a=$r,r=Pr,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,b=(o&d).toString(32),g=o>>f,w=i-f,M=qs(t)+w,j=l<<w,ie=j|g,ke=b+r;$r=1<<M|ie,Pr=ke}else{var Re=l<<i,ft=Re|o,it=r;$r=1<<u|ft,Pr=it}}function Gd(e){Gi();var t=e.return;if(t!==null){var n=1,a=0;qi(e,n),Uy(e,n,a)}}function qs(e){return 32-fh(e)}function R1(e){return 1<<qs(e)-1}function Xd(e){for(;e===Is;)Is=Fo[--Vo],Fo[Vo]=null,Ws=Fo[--Vo],Fo[Vo]=null;for(;e===Wi;)Wi=Ua[--Ha],Ua[Ha]=null,Pr=Ua[--Ha],Ua[Ha]=null,$r=Ua[--Ha],Ua[Ha]=null}function w1(){return Gi(),Wi!==null?{id:$r,overflow:Pr}:null}function D1(e,t){Gi(),Ua[Ha++]=$r,Ua[Ha++]=Pr,Ua[Ha++]=Wi,$r=t.id,Pr=t.overflow,Wi=e}function Gi(){Hn()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Un=null,za=null,Xa=!1,Xi=!1,pi=null;function _1(){Xa&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Hy(){Xi=!0}function k1(){return Xi}function M1(e){var t=e.stateNode.containerInfo;return za=Gx(t),Un=e,Xa=!0,pi=null,Xi=!1,!0}function L1(e,t,n){return za=Xx(t),Un=e,Xa=!0,pi=null,Xi=!1,n!==null&&D1(e,n),!0}function zy(e,t){switch(e.tag){case oe:{i1(e.stateNode.containerInfo,t);break}case Q:{var n=(e.mode&st)!==Ae;l1(e.type,e.memoizedProps,e.stateNode,t,n);break}case O:{var a=e.memoizedState;a.dehydrated!==null&&o1(a.dehydrated,t);break}}}function Fy(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|=Ai):a.push(n)}function Qd(e,t){{if(Xi)return;switch(e.tag){case oe:{var n=e.stateNode.containerInfo;switch(t.tag){case Q:var a=t.type;t.pendingProps,u1(n,a);break;case he:var r=t.pendingProps;s1(n,r);break}break}case Q:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case Q:{var u=t.type,f=t.pendingProps,d=(e.mode&st)!==Ae;d1(i,o,l,u,f,d);break}case he:{var b=t.pendingProps,g=(e.mode&st)!==Ae;v1(i,o,l,b,g);break}}break}case O:{var w=e.memoizedState,M=w.dehydrated;if(M!==null)switch(t.tag){case Q:var j=t.type;t.pendingProps,c1(M,j);break;case he:var ie=t.pendingProps;f1(M,ie);break}break}default:return}}}function Vy(e,t){t.flags=t.flags&~Nr|pn,Qd(e,t)}function By(e,t){switch(e.tag){case Q:{var n=e.type;e.pendingProps;var a=$x(t,n);return a!==null?(e.stateNode=a,Un=e,za=qx(a),!0):!1}case he:{var r=e.pendingProps,i=Px(t,r);return i!==null?(e.stateNode=i,Un=e,za=null,!0):!1}case O:{var o=Yx(t);if(o!==null){var l={dehydrated:o,treeContext:w1(),retryLane:Ra};e.memoizedState=l;var u=UD(o);return u.return=e,e.child=u,Un=e,za=null,!0}return!1}default:return!1}}function Kd(e){return(e.mode&st)!==Ae&&(e.flags&Dt)===He}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(Xa){var t=za;if(!t){Kd(e)&&(Qd(Un,e),Jd()),Vy(Un,e),Xa=!1,Un=e;return}var n=t;if(!By(e,t)){Kd(e)&&(Qd(Un,e),Jd()),t=au(n);var a=Un;if(!t||!By(e,t)){Vy(Un,e),Xa=!1,Un=e;return}Fy(a,n)}}}function O1(e,t,n){var a=e.stateNode,r=!Xi,i=Qx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function A1(e){var t=e.stateNode,n=e.memoizedProps,a=Kx(t,n,e);if(a){var r=Un;if(r!==null)switch(r.tag){case oe:{var i=r.stateNode.containerInfo,o=(r.mode&st)!==Ae;a1(i,t,n,o);break}case Q:{var l=r.type,u=r.memoizedProps,f=r.stateNode,d=(r.mode&st)!==Ae;r1(l,u,f,t,n,d);break}}}return a}function N1(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 j1(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!==Q&&t.tag!==oe&&t.tag!==O;)t=t.return;Un=t}function Gs(e){if(e!==Un)return!1;if(!Xa)return $y(e),Xa=!0,!1;if(e.tag!==oe&&(e.tag!==Q||n1(e.type)&&!Nd(e.type,e.memoizedProps))){var t=za;if(t)if(Kd(e))Py(e),Jd();else for(;t;)Fy(e,t),t=au(t)}return $y(e),e.tag===O?za=j1(e):za=Un?au(e.stateNode):null,!0}function U1(){return Xa&&za!==null}function Py(e){for(var t=za;t;)zy(e,t),t=au(t)}function Bo(){Un=null,za=null,Xa=!1,Xi=!1}function Yy(){pi!==null&&(Hb(pi),pi=null)}function Hn(){return Xa}function ev(e){pi===null?pi=[e]:pi.push(e)}var H1=ge.ReactCurrentBatchConfig,z1=null;function F1(){return H1.transition}var Qa={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var V1=function(e){for(var t=null,n=e;n!==null;)n.mode&un&&(t=n),n=n.return;return t},Qi=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},lu=[],uu=[],su=[],cu=[],fu=[],du=[],Ki=new Set;Qa.recordUnsafeLifecycleWarnings=function(e,t){Ki.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&un&&typeof t.UNSAFE_componentWillMount=="function"&&uu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&su.push(e),e.mode&un&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&cu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&fu.push(e),e.mode&un&&typeof t.UNSAFE_componentWillUpdate=="function"&&du.push(e))},Qa.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;lu.length>0&&(lu.forEach(function(g){e.add(Ge(g)||"Component"),Ki.add(g.type)}),lu=[]);var t=new Set;uu.length>0&&(uu.forEach(function(g){t.add(Ge(g)||"Component"),Ki.add(g.type)}),uu=[]);var n=new Set;su.length>0&&(su.forEach(function(g){n.add(Ge(g)||"Component"),Ki.add(g.type)}),su=[]);var a=new Set;cu.length>0&&(cu.forEach(function(g){a.add(Ge(g)||"Component"),Ki.add(g.type)}),cu=[]);var r=new Set;fu.length>0&&(fu.forEach(function(g){r.add(Ge(g)||"Component"),Ki.add(g.type)}),fu=[]);var i=new Set;if(du.length>0&&(du.forEach(function(g){i.add(Ge(g)||"Component"),Ki.add(g.type)}),du=[]),t.size>0){var o=Qi(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=Qi(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=Qi(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=Qi(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=Qi(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 b=Qi(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`,b)}};var Xs=new Map,Iy=new Set;Qa.recordLegacyContextWarning=function(e,t){var n=V1(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))}},Qa.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=Qi(a);try{nn(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{kn()}}})},Qa.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 B1(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&un||Ot)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==ne)&&!(typeof n.type=="function"&&!B1(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!==ne)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;Te(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(b){var g=u.refs;b===null?delete g[f]:g[f]=b};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(C,U){if(e){var x=C.deletions;x===null?(C.deletions=[U],C.flags|=Ai):x.push(U)}}function n(C,U){if(!e)return null;for(var x=U;x!==null;)t(C,x),x=x.sibling;return null}function a(C,U){for(var x=new Map,I=U;I!==null;)I.key!==null?x.set(I.key,I):x.set(I.index,I),I=I.sibling;return x}function r(C,U){var x=oo(C,U);return x.index=0,x.sibling=null,x}function i(C,U,x){if(C.index=x,!e)return C.flags|=Km,U;var I=C.alternate;if(I!==null){var de=I.index;return de<U?(C.flags|=pn,U):de}else return C.flags|=pn,U}function o(C){return e&&C.alternate===null&&(C.flags|=pn),C}function l(C,U,x,I){if(U===null||U.tag!==he){var de=em(x,C.mode,I);return de.return=C,de}else{var se=r(U,x);return se.return=C,se}}function u(C,U,x,I){var de=x.type;if(de===Aa)return d(C,U,x.props.children,I,x.key);if(U!==null&&(U.elementType===de||Zb(U,x)||typeof de=="object"&&de!==null&&de.$$typeof===R&&qy(de)===U.type)){var se=r(U,x.props);return se.ref=vu(C,U,x),se.return=C,se._debugSource=x._source,se._debugOwner=x._owner,se}var Fe=Zp(x,C.mode,I);return Fe.ref=vu(C,U,x),Fe.return=C,Fe}function f(C,U,x,I){if(U===null||U.tag!==ze||U.stateNode.containerInfo!==x.containerInfo||U.stateNode.implementation!==x.implementation){var de=tm(x,C.mode,I);return de.return=C,de}else{var se=r(U,x.children||[]);return se.return=C,se}}function d(C,U,x,I,de){if(U===null||U.tag!==W){var se=Ri(x,C.mode,I,de);return se.return=C,se}else{var Fe=r(U,x);return Fe.return=C,Fe}}function b(C,U,x){if(typeof U=="string"&&U!==""||typeof U=="number"){var I=em(""+U,C.mode,x);return I.return=C,I}if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Zn:{var de=Zp(U,C.mode,x);return de.ref=vu(C,null,U),de.return=C,de}case wn:{var se=tm(U,C.mode,x);return se.return=C,se}case R:{var Fe=U._payload,qe=U._init;return b(C,qe(Fe),x)}}if(rt(U)||Le(U)){var Ht=Ri(U,C.mode,x,null);return Ht.return=C,Ht}Qs(C,U)}return typeof U=="function"&&Ks(C),null}function g(C,U,x,I){var de=U!==null?U.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return de!==null?null:l(C,U,""+x,I);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Zn:return x.key===de?u(C,U,x,I):null;case wn:return x.key===de?f(C,U,x,I):null;case R:{var se=x._payload,Fe=x._init;return g(C,U,Fe(se),I)}}if(rt(x)||Le(x))return de!==null?null:d(C,U,x,I,null);Qs(C,x)}return typeof x=="function"&&Ks(C),null}function w(C,U,x,I,de){if(typeof I=="string"&&I!==""||typeof I=="number"){var se=C.get(x)||null;return l(U,se,""+I,de)}if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Zn:{var Fe=C.get(I.key===null?x:I.key)||null;return u(U,Fe,I,de)}case wn:{var qe=C.get(I.key===null?x:I.key)||null;return f(U,qe,I,de)}case R:var Ht=I._payload,St=I._init;return w(C,U,x,St(Ht),de)}if(rt(I)||Le(I)){var fn=C.get(x)||null;return d(U,fn,I,de,null)}Qs(U,I)}return typeof I=="function"&&Ks(U),null}function M(C,U,x){{if(typeof C!="object"||C===null)return U;switch(C.$$typeof){case Zn:case wn:Wy(C,x);var I=C.key;if(typeof I!="string")break;if(U===null){U=new Set,U.add(I);break}if(!U.has(I)){U.add(I);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.",I);break;case R:var de=C._payload,se=C._init;M(se(de),U,x);break}}return U}function j(C,U,x,I){for(var de=null,se=0;se<x.length;se++){var Fe=x[se];de=M(Fe,de,C)}for(var qe=null,Ht=null,St=U,fn=0,Tt=0,sn=null;St!==null&&Tt<x.length;Tt++){St.index>Tt?(sn=St,St=null):sn=St.sibling;var Kn=g(C,St,x[Tt],I);if(Kn===null){St===null&&(St=sn);break}e&&St&&Kn.alternate===null&&t(C,St),fn=i(Kn,fn,Tt),Ht===null?qe=Kn:Ht.sibling=Kn,Ht=Kn,St=sn}if(Tt===x.length){if(n(C,St),Hn()){var Yn=Tt;qi(C,Yn)}return qe}if(St===null){for(;Tt<x.length;Tt++){var Oa=b(C,x[Tt],I);Oa!==null&&(fn=i(Oa,fn,Tt),Ht===null?qe=Oa:Ht.sibling=Oa,Ht=Oa)}if(Hn()){var ua=Tt;qi(C,ua)}return qe}for(var sa=a(C,St);Tt<x.length;Tt++){var Jn=w(sa,C,Tt,x[Tt],I);Jn!==null&&(e&&Jn.alternate!==null&&sa.delete(Jn.key===null?Tt:Jn.key),fn=i(Jn,fn,Tt),Ht===null?qe=Jn:Ht.sibling=Jn,Ht=Jn)}if(e&&sa.forEach(function(ol){return t(C,ol)}),Hn()){var Qr=Tt;qi(C,Qr)}return qe}function ie(C,U,x,I){var de=Le(x);if(typeof de!="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"&&x[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),x.entries===de&&(tv||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),tv=!0);var se=de.call(x);if(se)for(var Fe=null,qe=se.next();!qe.done;qe=se.next()){var Ht=qe.value;Fe=M(Ht,Fe,C)}}var St=de.call(x);if(St==null)throw new Error("An iterable object provided no iterator.");for(var fn=null,Tt=null,sn=U,Kn=0,Yn=0,Oa=null,ua=St.next();sn!==null&&!ua.done;Yn++,ua=St.next()){sn.index>Yn?(Oa=sn,sn=null):Oa=sn.sibling;var sa=g(C,sn,ua.value,I);if(sa===null){sn===null&&(sn=Oa);break}e&&sn&&sa.alternate===null&&t(C,sn),Kn=i(sa,Kn,Yn),Tt===null?fn=sa:Tt.sibling=sa,Tt=sa,sn=Oa}if(ua.done){if(n(C,sn),Hn()){var Jn=Yn;qi(C,Jn)}return fn}if(sn===null){for(;!ua.done;Yn++,ua=St.next()){var Qr=b(C,ua.value,I);Qr!==null&&(Kn=i(Qr,Kn,Yn),Tt===null?fn=Qr:Tt.sibling=Qr,Tt=Qr)}if(Hn()){var ol=Yn;qi(C,ol)}return fn}for(var Iu=a(C,sn);!ua.done;Yn++,ua=St.next()){var br=w(Iu,C,Yn,ua.value,I);br!==null&&(e&&br.alternate!==null&&Iu.delete(br.key===null?Yn:br.key),Kn=i(br,Kn,Yn),Tt===null?fn=br:Tt.sibling=br,Tt=br)}if(e&&Iu.forEach(function(v_){return t(C,v_)}),Hn()){var d_=Yn;qi(C,d_)}return fn}function ke(C,U,x,I){if(U!==null&&U.tag===he){n(C,U.sibling);var de=r(U,x);return de.return=C,de}n(C,U);var se=em(x,C.mode,I);return se.return=C,se}function Re(C,U,x,I){for(var de=x.key,se=U;se!==null;){if(se.key===de){var Fe=x.type;if(Fe===Aa){if(se.tag===W){n(C,se.sibling);var qe=r(se,x.props.children);return qe.return=C,qe._debugSource=x._source,qe._debugOwner=x._owner,qe}}else if(se.elementType===Fe||Zb(se,x)||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===R&&qy(Fe)===se.type){n(C,se.sibling);var Ht=r(se,x.props);return Ht.ref=vu(C,se,x),Ht.return=C,Ht._debugSource=x._source,Ht._debugOwner=x._owner,Ht}n(C,se);break}else t(C,se);se=se.sibling}if(x.type===Aa){var St=Ri(x.props.children,C.mode,I,x.key);return St.return=C,St}else{var fn=Zp(x,C.mode,I);return fn.ref=vu(C,U,x),fn.return=C,fn}}function ft(C,U,x,I){for(var de=x.key,se=U;se!==null;){if(se.key===de)if(se.tag===ze&&se.stateNode.containerInfo===x.containerInfo&&se.stateNode.implementation===x.implementation){n(C,se.sibling);var Fe=r(se,x.children||[]);return Fe.return=C,Fe}else{n(C,se);break}else t(C,se);se=se.sibling}var qe=tm(x,C.mode,I);return qe.return=C,qe}function it(C,U,x,I){var de=typeof x=="object"&&x!==null&&x.type===Aa&&x.key===null;if(de&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Zn:return o(Re(C,U,x,I));case wn:return o(ft(C,U,x,I));case R:var se=x._payload,Fe=x._init;return it(C,U,Fe(se),I)}if(rt(x))return j(C,U,x,I);if(Le(x))return ie(C,U,x,I);Qs(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"?o(ke(C,U,""+x,I)):(typeof x=="function"&&Ks(C),n(C,U))}return it}var $o=Gy(!0),Xy=Gy(!1);function $1(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=oo(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=oo(n,n.pendingProps),a.return=t;a.sibling=null}}function P1(e,t){for(var n=e.child;n!==null;)MD(n,t),n=n.sibling}var ov=fi(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){Xn(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;Gn(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=et(r.childLanes,t)):(a.childLanes=et(a.childLanes,t),r!==null&&(r.childLanes=et(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 Y1(e,t,n){I1(e,t,n)}function I1(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===ne){var l=Ll(n),u=Yr(Qt,l);u.tag=nc;var f=a.updateQueue;if(f!==null){var d=f.shared,b=d.pending;b===null?u.next=u:(u.next=b.next,b.next=u),d.pending=u}}a.lanes=et(a.lanes,n);var g=a.alternate;g!==null&&(g.lanes=et(g.lanes,n)),cv(a.return,n,e),i.lanes=et(i.lanes,n);break}o=o.next}}else if(a.tag===De)r=a.type===e.type?null:a.child;else if(a.tag===Yt){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=et(w.lanes,n);var M=w.alternate;M!==null&&(M.lanes=et(M.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 j=r.sibling;if(j!==null){j.return=r.return,r=j;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&&(wa(n.lanes,t)&&_u(),n.firstContext=null)}}function mn(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:P,firstContext:n}}else Po=Po.next=n}return t}var Ji=null;function fv(e){Ji===null?Ji=[e]:Ji.push(e)}function W1(){if(Ji!==null){for(var e=0;e<Ji.length;e++){var t=Ji[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}}Ji=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 q1(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 G1(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 ha(e,t){return tc(e,t)}var X1=tc;function tc(e,t){e.lanes=et(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=et(n.lanes,t)),n===null&&(e.flags&(pn|Nr))!==He&&Xb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=et(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=et(n.childLanes,t):(r.flags&(pn|Nr))!==He&&Xb(e),a=r,r=r.return;if(a.tag===oe){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:P},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 Yr(e,t){var n={eventTime:e,lane:t,tag:eg,payload:null,callback:null,next:null};return n}function mi(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,X1(e,n)}else return G1(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=et(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 Q1(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&un){Ln(!0);try{o.call(i,a,r)}finally{Ln(!1)}}Ky()}return l}return o}case dv:e.flags=e.flags&~ra|Dt;case eg:{var u=n.payload,f;if(typeof u=="function"){Qy(),f=u.call(i,a,r);{if(e.mode&un){Ln(!0);try{u.call(i,a,r)}finally{Ln(!1)}}Ky()}}else f=u;return f==null?a:F({},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 b=d.updateQueue,g=b.lastBaseUpdate;g!==o&&(g===null?b.firstBaseUpdate=f:g.next=f,b.lastBaseUpdate=u)}}if(i!==null){var w=r.baseState,M=P,j=null,ie=null,ke=null,Re=i;do{var ft=Re.lane,it=Re.eventTime;if(Do(a,ft)){if(ke!==null){var U={eventTime:it,lane:On,tag:Re.tag,payload:Re.payload,callback:Re.callback,next:null};ke=ke.next=U}w=Q1(e,r,Re,w,t,n);var x=Re.callback;if(x!==null&&Re.lane!==On){e.flags|=Qm;var I=r.effects;I===null?r.effects=[Re]:I.push(Re)}}else{var C={eventTime:it,lane:ft,tag:Re.tag,payload:Re.payload,callback:Re.callback,next:null};ke===null?(ie=ke=C,j=w):ke=ke.next=C,M=et(M,ft)}if(Re=Re.next,Re===null){if(l=r.shared.pending,l===null)break;var de=l,se=de.next;de.next=null,Re=se,r.lastBaseUpdate=de,r.shared.pending=null}}while(!0);ke===null&&(j=w),r.baseState=j,r.firstBaseUpdate=ie,r.lastBaseUpdate=ke;var Fe=r.shared.interleaved;if(Fe!==null){var qe=Fe;do M=et(M,qe.lane),qe=qe.next;while(qe!==Fe)}else i===null&&(r.shared.lanes=P);Vu(M),e.lanes=M,e.memoizedState=w}rc=null}function K1(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,K1(o,n))}}var pu={},hi=fi(pu),mu=fi(pu),uc=fi(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){Xn(uc,t,e),Xn(mu,e,e),Xn(hi,pu,e);var n=px(t);Gn(hi,e),Xn(hi,n,e)}function Io(e){Gn(hi,e),Gn(mu,e),Gn(uc,e)}function yv(){var e=sc(hi.current);return e}function og(e){sc(uc.current);var t=sc(hi.current),n=mx(t,e.type);t!==n&&(Xn(mu,e,e),Xn(hi,n,e))}function gv(e){mu.current===e&&(Gn(hi,e),Gn(mu,e))}var J1=0,lg=1,ug=1,hu=2,Ka=fi(J1);function bv(e,t){return(e&t)!==0}function Wo(e){return e&lg}function Sv(e,t){return e&lg|t}function Z1(e,t){return e|t}function yi(e,t){Xn(Ka,t,e)}function qo(e){Gn(Ka,e)}function eR(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===_e&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&Dt)!==He;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 ya=0,yn=1,dr=2,gn=4,zn=8,Tv=[];function Ev(){for(var e=0;e<Tv.length;e++){var t=Tv[e];t._workInProgressVersionPrimary=null}Tv.length=0}function tR(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var fe=ge.ReactCurrentDispatcher,yu=ge.ReactCurrentBatchConfig,Cv,Go;Cv=new Set;var Zi=P,Ut=null,bn=null,Sn=null,fc=!1,gu=!1,bu=0,nR=0,aR=25,H=null,Fa=null,gi=-1,xv=!1;function Mt(){{var e=H;Fa===null?Fa=[e]:Fa.push(e)}}function ee(){{var e=H;Fa!==null&&(gi++,Fa[gi]!==e&&rR(e))}}function Xo(e){e!=null&&!rt(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 rR(e){{var t=Ge(Ut);if(!Cv.has(t)&&(Cv.add(t),Fa!==null)){for(var n="",a=30,r=0;r<=gi;r++){for(var i=Fa[r],o=r===gi?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 Qn(){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(!ka(e[n],t[n]))return!1;return!0}function Qo(e,t,n,a,r,i){Zi=i,Ut=t,Fa=e!==null?e._debugHookTypes:null,gi=-1,xv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=P,e!==null&&e.memoizedState!==null?fe.current=Mg:Fa!==null?fe.current=kg:fe.current=_g;var o=n(a,r);if(gu){var l=0;do{if(gu=!1,bu=0,l>=aR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,xv=!1,bn=null,Sn=null,t.updateQueue=null,gi=-1,fe.current=Lg,o=n(a,r)}while(gu)}fe.current=xc,t._debugHookTypes=Fa;var u=bn!==null&&bn.next!==null;if(Zi=P,Ut=null,bn=null,Sn=null,H=null,Fa=null,gi=-1,e!==null&&(e.flags&jr)!==(t.flags&jr)&&(e.mode&st)!==Ae&&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&ur)!==Ae?t.flags&=-50333701:t.flags&=-2053,e.lanes=ds(e.lanes,n)}function cg(){if(fe.current=xc,fc){for(var e=Ut.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fc=!1}Zi=P,Ut=null,bn=null,Sn=null,Fa=null,gi=-1,H=null,Cg=!1,gu=!1,bu=0}function vr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?Ut.memoizedState=Sn=e:Sn=Sn.next=e,Sn}function Va(){var e;if(bn===null){var t=Ut.alternate;t!==null?e=t.memoizedState:e=null}else e=bn.next;var n;if(Sn===null?n=Ut.memoizedState:n=Sn.next,n!==null)Sn=n,n=Sn.next,bn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");bn=e;var a={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null};Sn===null?Ut.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}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=vr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:P,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=uR.bind(null,Ut,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=bn,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,b=i.baseState,g=null,w=null,M=null,j=d;do{var ie=j.lane;if(Do(Zi,ie)){if(M!==null){var Re={lane:On,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};M=M.next=Re}if(j.hasEagerState)b=j.eagerState;else{var ft=j.action;b=e(b,ft)}}else{var ke={lane:ie,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};M===null?(w=M=ke,g=b):M=M.next=ke,Ut.lanes=et(Ut.lanes,ie),Vu(ie)}j=j.next}while(j!==null&&j!==d);M===null?g=b:M.next=w,ka(b,a.memoizedState)||_u(),a.memoizedState=b,a.baseState=g,a.baseQueue=M,r.lastRenderedState=b}var it=r.interleaved;if(it!==null){var C=it;do{var U=C.lane;Ut.lanes=et(Ut.lanes,U),Vu(U),C=C.next}while(C!==it)}else o===null&&(r.lanes=P);var x=r.dispatch;return[a.memoizedState,x]}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);ka(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=Ut,r=vr(),i,o=Hn();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();ka(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,Zi)||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|=ni,Su(yn|zn,vg.bind(null,a,f,i,t),void 0,null),i}function dc(e,t,n){var a=Ut,r=Va(),i=t();if(!Go){var o=t();ka(i,o)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Go=!0)}var l=r.memoizedState,u=!ka(l,i);u&&(r.memoizedState=i,_u());var f=r.queue;if(Eu(pg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||Sn!==null&&Sn.memoizedState.tag&yn){a.flags|=ni,Su(yn|zn,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,Zi)||dg(a,t,i)}return i}function dg(e,t,n){e.flags|=wf;var a={getSnapshot:t,value:n},r=Ut.updateQueue;if(r===null)r=fg(),Ut.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!ka(n,a)}catch{return!0}}function hg(e){var t=ha(e,Ye);t!==null&&xn(t,e,Ye,Qt)}function vc(e){var t=vr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:P,dispatch:null,lastRenderedReducer:wv,lastRenderedState:e};t.queue=n;var a=n.dispatch=sR.bind(null,Ut,n);return[t.memoizedState,a]}function Lv(e){return _v(wv)}function Ov(e){return kv(wv)}function Su(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Ut.updateQueue;if(i===null)i=fg(),Ut.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=vr();{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=vr(),i=a===void 0?null:a;Ut.flags|=e,r.memoizedState=Su(yn|t,n,void 0,i)}function mc(e,t,n,a){var r=Va(),i=a===void 0?null:a,o=void 0;if(bn!==null){var l=bn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Rv(i,u)){r.memoizedState=Su(t,n,o,i);return}}}Ut.flags|=e,r.memoizedState=Su(yn|t,n,o,i)}function hc(e,t){return(Ut.mode&ur)!==Ae?Tu(Mf|ni|kf,zn,e,t):Tu(ni|kf,zn,e,t)}function Eu(e,t){return mc(ni,zn,e,t)}function Nv(e,t){return Tu(wt,dr,e,t)}function yc(e,t){return mc(wt,dr,e,t)}function jv(e,t){var n=wt;return n|=Ui,(Ut.mode&ur)!==Ae&&(n|=ai),Tu(n,gn,e,t)}function gc(e,t){return mc(wt,gn,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=wt;return r|=Ui,(Ut.mode&ur)!==Ae&&(r|=ai),Tu(r,gn,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(wt,gn,yg.bind(null,t,e),a)}function iR(e,t){}var Sc=iR;function Hv(e,t){var n=vr(),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=vr(),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 Fv(e){var t=vr();return t.memoizedState=e,e}function gg(e){var t=Va(),n=bn,a=n.memoizedState;return Sg(t,a,e)}function bg(e){var t=Va();if(bn===null)return t.memoizedState=e,e;var n=bn.memoizedState;return Sg(t,n,e)}function Sg(e,t,n){var a=!Y0(Zi);if(a){if(!ka(n,t)){var r=hh();Ut.lanes=et(Ut.lanes,r),Vu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,_u()),e.memoizedState=n,n}function oR(e,t,n){var a=qa();An(Z0(a,Hr)),e(!0);var r=yu.transition;yu.transition={};var i=yu.transition;yu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(An(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 Vv(){var e=vc(!1),t=e[0],n=e[1],a=oR.bind(null,n),r=vr();return r.memoizedState=a,[t,a]}function Tg(){var e=Lv(),t=e[0],n=Va(),a=n.memoizedState;return[t,a]}function Eg(){var e=Ov(),t=e[0],n=Va(),a=n.memoizedState;return[t,a]}var Cg=!1;function lR(){return Cg}function Bv(){var e=vr(),t=Pc(),n=t.identifierPrefix,a;if(Hn()){var r=x1();a=":"+n+"R"+r;var i=bu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=nR++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Cc(){var e=Va(),t=e.memoizedState;return t}function uR(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=Ci(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=la();xn(i,e,a,o),wg(i,t,a)}}Dg(e,a)}function sR(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=Ci(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===P&&(i===null||i.lanes===P)){var o=t.lastRenderedReducer;if(o!==null){var l;l=fe.current,fe.current=Ja;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,ka(f,u)){q1(e,t,r,a);return}}catch{}finally{fe.current=l}}}var d=Zy(e,t,r,a);if(d!==null){var b=la();xn(d,e,a,b),wg(d,t,a)}}Dg(e,a)}function xg(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}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=et(a,n);t.lanes=r,od(e,r)}}function Dg(e,t,n){jf(e,t)}var xc={readContext:mn,useCallback:Qn,useContext:Qn,useEffect:Qn,useImperativeHandle:Qn,useInsertionEffect:Qn,useLayoutEffect:Qn,useMemo:Qn,useReducer:Qn,useRef:Qn,useState:Qn,useDebugValue:Qn,useDeferredValue:Qn,useTransition:Qn,useMutableSource:Qn,useSyncExternalStore:Qn,useId:Qn,unstable_isNewReconciler:ye},_g=null,kg=null,Mg=null,Lg=null,pr=null,Ja=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().")},Ie=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 mn(e)},useCallback:function(e,t){return H="useCallback",Mt(),Xo(t),Hv(e,t)},useContext:function(e){return H="useContext",Mt(),mn(e)},useEffect:function(e,t){return H="useEffect",Mt(),Xo(t),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Mt(),Xo(n),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Mt(),Xo(t),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Mt(),Xo(t),jv(e,t)},useMemo:function(e,t){H="useMemo",Mt(),Xo(t);var n=fe.current;fe.current=pr;try{return zv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",Mt();var a=fe.current;fe.current=pr;try{return Dv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",Mt(),Av(e)},useState:function(e){H="useState",Mt();var t=fe.current;fe.current=pr;try{return vc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Mt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Mt(),Fv(e)},useTransition:function(){return H="useTransition",Mt(),Vv()},useMutableSource:function(e,t,n){return H="useMutableSource",Mt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Mt(),Mv(e,t,n)},useId:function(){return H="useId",Mt(),Bv()},unstable_isNewReconciler:ye},kg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",ee(),Hv(e,t)},useContext:function(e){return H="useContext",ee(),mn(e)},useEffect:function(e,t){return H="useEffect",ee(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),jv(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=fe.current;fe.current=pr;try{return zv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=fe.current;fe.current=pr;try{return Dv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",ee(),Av(e)},useState:function(e){H="useState",ee();var t=fe.current;fe.current=pr;try{return vc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),void 0},useDeferredValue:function(e){return H="useDeferredValue",ee(),Fv(e)},useTransition:function(){return H="useTransition",ee(),Vv()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),Mv(e,t,n)},useId:function(){return H="useId",ee(),Bv()},unstable_isNewReconciler:ye},Mg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",ee(),Tc(e,t)},useContext:function(e){return H="useContext",ee(),mn(e)},useEffect:function(e,t){return H="useEffect",ee(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),gc(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=fe.current;fe.current=Ja;try{return Ec(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=fe.current;fe.current=Ja;try{return _v(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",ee(),pc()},useState:function(e){H="useState",ee();var t=fe.current;fe.current=Ja;try{return Lv(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",ee(),gg(e)},useTransition:function(){return H="useTransition",ee(),Tg()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),dc(e,t)},useId:function(){return H="useId",ee(),Cc()},unstable_isNewReconciler:ye},Lg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",ee(),Tc(e,t)},useContext:function(e){return H="useContext",ee(),mn(e)},useEffect:function(e,t){return H="useEffect",ee(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),gc(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=fe.current;fe.current=Rc;try{return Ec(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=fe.current;fe.current=Rc;try{return kv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",ee(),pc()},useState:function(e){H="useState",ee();var t=fe.current;fe.current=Rc;try{return Ov(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",ee(),bg(e)},useTransition:function(){return H="useTransition",ee(),Eg()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),dc(e,t)},useId:function(){return H="useId",ee(),Cc()},unstable_isNewReconciler:ye},pr={readContext:function(e){return $v(),mn(e)},useCallback:function(e,t){return H="useCallback",Ie(),Mt(),Hv(e,t)},useContext:function(e){return H="useContext",Ie(),Mt(),mn(e)},useEffect:function(e,t){return H="useEffect",Ie(),Mt(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Ie(),Mt(),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Ie(),Mt(),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Ie(),Mt(),jv(e,t)},useMemo:function(e,t){H="useMemo",Ie(),Mt();var n=fe.current;fe.current=pr;try{return zv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",Ie(),Mt();var a=fe.current;fe.current=pr;try{return Dv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",Ie(),Mt(),Av(e)},useState:function(e){H="useState",Ie(),Mt();var t=fe.current;fe.current=pr;try{return vc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Ie(),Mt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Ie(),Mt(),Fv(e)},useTransition:function(){return H="useTransition",Ie(),Mt(),Vv()},useMutableSource:function(e,t,n){return H="useMutableSource",Ie(),Mt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Ie(),Mt(),Mv(e,t,n)},useId:function(){return H="useId",Ie(),Mt(),Bv()},unstable_isNewReconciler:ye},Ja={readContext:function(e){return $v(),mn(e)},useCallback:function(e,t){return H="useCallback",Ie(),ee(),Tc(e,t)},useContext:function(e){return H="useContext",Ie(),ee(),mn(e)},useEffect:function(e,t){return H="useEffect",Ie(),ee(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Ie(),ee(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Ie(),ee(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Ie(),ee(),gc(e,t)},useMemo:function(e,t){H="useMemo",Ie(),ee();var n=fe.current;fe.current=Ja;try{return Ec(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",Ie(),ee();var a=fe.current;fe.current=Ja;try{return _v(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",Ie(),ee(),pc()},useState:function(e){H="useState",Ie(),ee();var t=fe.current;fe.current=Ja;try{return Lv(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Ie(),ee(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Ie(),ee(),gg(e)},useTransition:function(){return H="useTransition",Ie(),ee(),Tg()},useMutableSource:function(e,t,n){return H="useMutableSource",Ie(),ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Ie(),ee(),dc(e,t)},useId:function(){return H="useId",Ie(),ee(),Cc()},unstable_isNewReconciler:ye},Rc={readContext:function(e){return $v(),mn(e)},useCallback:function(e,t){return H="useCallback",Ie(),ee(),Tc(e,t)},useContext:function(e){return H="useContext",Ie(),ee(),mn(e)},useEffect:function(e,t){return H="useEffect",Ie(),ee(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Ie(),ee(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Ie(),ee(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Ie(),ee(),gc(e,t)},useMemo:function(e,t){H="useMemo",Ie(),ee();var n=fe.current;fe.current=Ja;try{return Ec(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",Ie(),ee();var a=fe.current;fe.current=Ja;try{return kv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",Ie(),ee(),pc()},useState:function(e){H="useState",Ie(),ee();var t=fe.current;fe.current=Ja;try{return Ov(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Ie(),ee(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Ie(),ee(),bg(e)},useTransition:function(){return H="useTransition",Ie(),ee(),Eg()},useMutableSource:function(e,t,n){return H="useMutableSource",Ie(),ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Ie(),ee(),dc(e,t)},useId:function(){return H="useId",Ie(),ee(),Cc()},unstable_isNewReconciler:ye}}var bi=D.unstable_now,Og=0,wc=-1,Cu=-1,Dc=-1,Pv=!1,_c=!1;function Ag(){return Pv}function cR(){_c=!0}function fR(){Pv=!1,_c=!1}function dR(){Pv=_c,_c=!1}function Ng(){return Og}function jg(){Og=bi()}function Yv(e){Cu=bi(),e.actualStartTime<0&&(e.actualStartTime=bi())}function Ug(e){Cu=-1}function kc(e,t){if(Cu>=0){var n=bi()-Cu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Cu=-1}}function mr(e){if(wc>=0){var t=bi()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case oe:var a=n.stateNode;a.effectDuration+=t;return;case Lt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function Iv(e){if(Dc>=0){var t=bi()-Dc;Dc=-1;for(var n=e.return;n!==null;){switch(n.tag){case oe:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case Lt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function hr(){wc=bi()}function Wv(){Dc=bi()}function qv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Za(e,t){if(e&&e.defaultProps){var n=F({},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=Rt(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&un){Ln(!0);try{i=n(a,r)}finally{Ln(!1)}}Hg(t,i)}var o=i==null?r:F({},r,i);if(e.memoizedState=o,e.lanes===P){var l=e.updateQueue;l.baseState=o}}var rp={isMounted:a0,enqueueSetState:function(e,t,n){var a=go(e),r=la(),i=Ci(a),o=Yr(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=mi(a,o,i);l!==null&&(xn(l,a,i,r),ic(l,a,i)),jf(a,i)},enqueueReplaceState:function(e,t,n){var a=go(e),r=la(),i=Ci(a),o=Yr(r,i);o.tag=tg,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=mi(a,o,i);l!==null&&(xn(l,a,i,r),ic(l,a,i)),jf(a,i)},enqueueForceUpdate:function(e,t){var n=go(e),a=la(),r=Ci(n),i=Yr(a,r);i.tag=nc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=mi(n,i,r);o!==null&&(xn(o,n,r,a),ic(o,n,r)),N0(n,r)}};function Fg(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&un){Ln(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{Ln(!1)}}u===void 0&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Rt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Wl(n,a)||!Wl(r,i):!0}function vR(e,t,n){var a=e.stateNode;{var r=Rt(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&un)===Ae&&(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&un)===Ae&&(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.",Rt(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.",Rt(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"||rt(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 Vg(e,t){t.updater=rp,e.stateNode=t,ZT(t,e),t._reactInternalInstance=Gv}function Bg(e,t,n){var a=!1,r=Ma,i=Ma,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===Cr?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",Rt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=mn(o);else{r=Ho(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?zo(e,r):Ma}var d=new t(n,i);if(e.mode&un){Ln(!0);try{d=new t(n,i)}finally{Ln(!1)}}var b=e.memoizedState=d.state!==null&&d.state!==void 0?d.state:null;Vg(e,d);{if(typeof t.getDerivedStateFromProps=="function"&&b===null){var g=Rt(t)||"Component";Qv.has(g)||(Qv.add(g),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.",g,d.state===null?"null":"undefined",g))}if(typeof t.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var w=null,M=null,j=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?M="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(M="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?j="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(j="UNSAFE_componentWillUpdate"),w!==null||M!==null||j!==null){var ie=Rt(t)||"Component",ke=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Jv.has(ie)||(Jv.add(ie),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`,ie,ke,w!==null?`
`+w:"",M!==null?`
`+M:"",j!==null?`
`+j:""))}}}return a&&My(e,r,i),d}function pR(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){vR(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=mn(i);else{var o=Ho(e,t,!0);r.context=zo(e,o)}{if(r.state===n){var l=Rt(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&un&&Qa.recordLegacyContextWarning(e,r),Qa.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")&&(pR(e,r),oc(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=wt;f|=Ui,(e.mode&ur)!==Ae&&(f|=ai),e.flags|=f}}function mR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=Ma;if(typeof l=="object"&&l!==null)u=mn(l);else{var f=Ho(e,t,!0);u=zo(e,f)}var d=t.getDerivedStateFromProps,b=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function";!b&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&$g(e,r,n,u),ag();var g=e.memoizedState,w=r.state=g;if(oc(e,n,r,a),w=e.memoizedState,i===n&&g===w&&!Bs()&&!lc()){if(typeof r.componentDidMount=="function"){var M=wt;M|=Ui,(e.mode&ur)!==Ae&&(M|=ai),e.flags|=M}return!1}typeof d=="function"&&(ap(e,t,d,n),w=e.memoizedState);var j=lc()||Fg(e,t,i,n,g,w,u);if(j){if(!b&&(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 ie=wt;ie|=Ui,(e.mode&ur)!==Ae&&(ie|=ai),e.flags|=ie}}else{if(typeof r.componentDidMount=="function"){var ke=wt;ke|=Ui,(e.mode&ur)!==Ae&&(ke|=ai),e.flags|=ke}e.memoizedProps=n,e.memoizedState=w}return r.props=n,r.state=w,r.context=u,j}function hR(e,t,n,a,r){var i=t.stateNode;ng(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Za(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,d=n.contextType,b=Ma;if(typeof d=="object"&&d!==null)b=mn(d);else{var g=Ho(t,n,!0);b=zo(t,g)}var w=n.getDerivedStateFromProps,M=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function";!M&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==b)&&$g(t,i,a,b),ag();var j=t.memoizedState,ie=i.state=j;if(oc(t,a,i,r),ie=t.memoizedState,o===u&&j===ie&&!Bs()&&!lc()&&!Be)return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=So),!1;typeof w=="function"&&(ap(t,n,w,a),ie=t.memoizedState);var ke=lc()||Fg(t,n,l,a,j,ie,b)||Be;return ke?(!M&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,ie,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,ie,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=So)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=So),t.memoizedProps=a,t.memoizedState=ie),i.props=a,i.state=ie,i.context=b,ke}function eo(e,t){return{value:e,source:t,stack:_i(t),digest:null}}function op(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function yR(e,t){return!0}function lp(e,t){try{var n=yR(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===ne)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===oe)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 b=u+`
`+o+`
`+(""+f);console.error(b)}catch(g){setTimeout(function(){throw g})}}var gR=typeof WeakMap=="function"?WeakMap:Map;function Pg(e,t,n){var a=Yr(Qt,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=Yr(Qt,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"&&(wa(e.lanes,Ye)||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 gR,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);Wa&&Bu(e,n),t.then(i,i)}}function bR(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 SR(e,t){var n=e.tag;if((e.mode&st)===Ae&&(n===me||n===Oe||n===$e)){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&&eR(t))return t;t=t.return}while(t!==null);return null}function Wg(e,t,n,a,r){if((e.mode&st)===Ae){if(e===t)e.flags|=ra;else{if(e.flags|=Dt,n.flags|=Df,n.flags&=-52805,n.tag===ne){var i=n.alternate;if(i===null)n.tag=vt;else{var o=Yr(Qt,Ye);o.tag=nc,mi(n,o,Ye)}}n.lanes=et(n.lanes,Ye)}return e}return e.flags|=ra,e.lanes=r,e}function TR(e,t,n,a,r){if(n.flags|=is,Wa&&Bu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;SR(n),Hn()&&n.mode&st&&Hy();var o=Ig(t);if(o!==null){o.flags&=~Ar,Wg(o,t,n,e,r),o.mode&st&&Yg(e,i,r),bR(o,e,i);return}else{if(!P0(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(Hn()&&n.mode&st){Hy();var u=Ig(t);if(u!==null){(u.flags&ra)===He&&(u.flags|=Ar),Wg(u,t,n,e,r),ev(eo(a,n));return}}a=eo(a,n),eD(a);var f=t;do{switch(f.tag){case oe:{var d=a;f.flags|=ra;var b=Ll(r);f.lanes=et(f.lanes,b);var g=Pg(f,d,b);mv(f,g);return}case ne:var w=a,M=f.type,j=f.stateNode;if((f.flags&Dt)===He&&(typeof M.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&!Ib(j))){f.flags|=ra;var ie=Ll(r);f.lanes=et(f.lanes,ie);var ke=up(f,w,ie);mv(f,ke);return}break}f=f.return}while(f!==null)}function ER(){return null}var Ru=ge.ReactCurrentOwner,er=!1,sp,wu,cp,fp,dp,to,vp,Lc,Du;sp={},wu={},cp={},fp={},dp={},to=!1,vp={},Lc={},Du={};function ia(e,t,n,a){e===null?t.child=Xy(t,null,n,a):t.child=$o(t,e.child,n,a)}function CR(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&&Ga(i,a,"prop",Rt(n))}var o=n.render,l=t.ref,u,f;Yo(t,r),Rl(t);{if(Ru.current=t,ja(!0),u=Qo(e,t,o,a,l,r),f=Ko(),t.mode&un){Ln(!0);try{u=Qo(e,t,o,a,l,r),f=Ko()}finally{Ln(!1)}}ja(!1)}return Co(),e!==null&&!er?(sg(e,t,r),Ir(e,t,r)):(Hn()&&f&&Gd(t),t.flags|=bo,ia(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=$e,t.type=o,hp(t,i),Xg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Ga(l,a,"prop",Rt(i)),n.defaultProps!==void 0){var u=Rt(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,b=d.propTypes;b&&Ga(b,a,"prop",Rt(d))}var g=e.child,w=Ep(e,r);if(!w){var M=g.memoizedProps,j=n.compare;if(j=j!==null?j:Wl,j(M,a)&&e.ref===t.ref)return Ir(e,t,r)}t.flags|=bo;var ie=oo(g,a);return ie.ref=t.ref,ie.return=t,t.child=ie,ie}function Xg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===R){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Ga(f,a,"prop",Rt(i))}}if(e!==null){var d=e.memoizedProps;if(Wl(d,a)&&e.ref===t.ref&&t.type===e.type)if(er=!1,t.pendingProps=a=d,Ep(e,r))(e.flags&Df)!==He&&(er=!0);else return t.lanes=e.lanes,Ir(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"||ot)if((t.mode&st)===Ae){var o={baseLanes:P,cachePool:null,transitions:null};t.memoizedState=o,Yc(t,n)}else if(wa(n,Ra)){var b={baseLanes:P,cachePool:null,transitions:null};t.memoizedState=b;var g=i!==null?i.baseLanes:n;Yc(t,g)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=et(f,n)}else u=n;t.lanes=t.childLanes=Ra;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=et(i.baseLanes,n),t.memoizedState=null):w=n,Yc(t,w)}return ia(e,t,r,n),t.child}function xR(e,t,n){var a=t.pendingProps;return ia(e,t,a,n),t.child}function RR(e,t,n){var a=t.pendingProps.children;return ia(e,t,a,n),t.child}function wR(e,t,n){{t.flags|=wt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return ia(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|=Ni,t.flags|=_f)}function pp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ga(i,a,"prop",Rt(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,ja(!0),u=Qo(e,t,n,a,o,r),f=Ko(),t.mode&un){Ln(!0);try{u=Qo(e,t,n,a,o,r),f=Ko()}finally{Ln(!1)}}ja(!1)}return Co(),e!==null&&!er?(sg(e,t,r),Ir(e,t,r)):(Hn()&&f&&Gd(t),t.flags|=bo,ia(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|=Dt,t.flags|=ra;var f=new Error("Simulated error coming from DevTools"),d=Ll(r);t.lanes=et(t.lanes,d);var b=up(t,eo(f,t),d);mv(t,b);break}}if(t.type!==t.elementType){var g=n.propTypes;g&&Ga(g,a,"prop",Rt(n))}}var w;fr(n)?(w=!0,Ps(t)):w=!1,Yo(t,r);var M=t.stateNode,j;M===null?(Ac(e,t),Bg(t,n,a),ip(t,n,a,r),j=!0):e===null?j=mR(t,n,a,r):j=hR(e,t,n,a,r);var ie=mp(e,t,n,j,w,r);{var ke=t.stateNode;j&&ke.props!==a&&(to||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"),to=!0)}return ie}function mp(e,t,n,a,r,i){Kg(e,t);var o=(t.flags&Dt)!==He;if(!a&&!o)return r&&Ay(t,n,!1),Ir(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(ja(!0),u=l.render(),t.mode&un){Ln(!0);try{l.render()}finally{Ln(!1)}}ja(!1)}Co()}return t.flags|=bo,e!==null&&o?CR(e,t,u,i):ia(e,t,u,i),t.memoizedState=l.state,r&&Ay(t,n,!0),t.child}function Zg(e){var t=e.stateNode;t.pendingContext?Ly(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ly(e,t.context,!1),hv(e,t.containerInfo)}function DR(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&Ar){var d=eo(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 b=eo(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,b)}else{M1(t);var g=Xy(t,null,l,n);t.child=g;for(var w=g;w;)w.flags=w.flags&~pn|Nr,w=w.sibling}}else{if(Bo(),l===i)return Ir(e,t,n);ia(e,t,l,n)}return t.child}function eb(e,t,n,a,r){return Bo(),ev(r),t.flags|=Ar,ia(e,t,n,a),t.child}function _R(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),ia(e,t,o,n),t.child}function kR(e,t){return e===null&&Zd(t),null}function MR(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=Za(u,r),b;switch(f){case me:return hp(t,u),t.type=u=il(u),b=pp(null,t,u,d,a),b;case ne:return t.type=u=Wp(u),b=Jg(null,t,u,d,a),b;case Oe:return t.type=u=qp(u),b=qg(null,t,u,d,a),b;case J:{if(t.type!==t.elementType){var g=u.propTypes;g&&Ga(g,d,"prop",Rt(u))}return b=Gg(null,t,u,Za(u.type,d),a),b}}var w="";throw u!==null&&typeof u=="object"&&u.$$typeof===R&&(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 LR(e,t,n,a,r){Ac(e,t),t.tag=ne;var i;return fr(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 OR(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=Rt(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&un&&Qa.recordLegacyContextWarning(t,null),ja(!0),Ru.current=t,l=Qo(null,t,n,r,i,a),u=Ko(),ja(!1)}if(Co(),t.flags|=bo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var d=Rt(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 b=Rt(n)||"Unknown";wu[b]||(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.",b,b,b),wu[b]=!0)}t.tag=ne,t.memoizedState=null,t.updateQueue=null;var g=!1;return fr(n)?(g=!0,Ps(t)):g=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pv(t),Vg(t,l),ip(t,n,r,a),mp(null,t,n,!0,g,a)}else{if(t.tag=me,t.mode&un){Ln(!0);try{l=Qo(null,t,n,r,i,a),u=Ko()}finally{Ln(!1)}}return Hn()&&u&&Gd(t),ia(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=ei();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=Rt(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=Rt(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=Rt(t)||"Unknown";cp[u]||(c("%s: Function components do not support contextType.",u),cp[u]=!0)}}}var yp={dehydrated:null,treeContext:null,retryLane:On};function gp(e){return{baseLanes:e,cachePool:ER(),transitions:null}}function AR(e,t){var n=null;return{baseLanes:et(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function NR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return bv(e,hu)}function jR(e,t){return ds(e.childLanes,t)}function tb(e,t,n){var a=t.pendingProps;YD(t)&&(t.flags|=Dt);var r=Ka.current,i=!1,o=(t.flags&Dt)!==He;if(o||NR(r,e)?(i=!0,t.flags&=~Dt):(e===null||e.memoizedState!==null)&&(r=Z1(r,ug)),r=Wo(r),yi(t,r),e===null){Zd(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return VR(t,u)}var f=a.children,d=a.fallback;if(i){var b=UR(t,f,d,n),g=t.child;return g.memoizedState=gp(n),t.memoizedState=yp,b}else return bp(t,f)}else{var w=e.memoizedState;if(w!==null){var M=w.dehydrated;if(M!==null)return BR(e,t,o,a,M,w,n)}if(i){var j=a.fallback,ie=a.children,ke=zR(e,t,ie,j,n),Re=t.child,ft=e.child.memoizedState;return Re.memoizedState=ft===null?gp(n):AR(ft,n),Re.childLanes=jR(e,n),t.memoizedState=yp,ke}else{var it=a.children,C=HR(e,t,it,n);return t.memoizedState=null,C}}}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 UR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&st)===Ae&&i!==null?(l=i,l.childLanes=P,l.pendingProps=o,e.mode&jt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=Ri(n,r,a,null)):(l=Sp(o,r),u=Ri(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,P,null)}function nb(e,t){return oo(e,t)}function HR(e,t,n,a){var r=e.child,i=r.sibling,o=nb(r,{mode:"visible",children:n});if((t.mode&st)===Ae&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=Ai):l.push(i)}return t.child=o,o}function zR(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&st)===Ae&&t.child!==o){var d=t.child;f=d,f.childLanes=P,f.pendingProps=u,t.mode&jt&&(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&jr;var b;return l!==null?b=oo(l,a):(b=Ri(a,i,r,null),b.flags|=pn),b.return=t,f.return=t,f.sibling=b,t.child=f,b}function Oc(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|=pn,t.memoizedState=null,o}function FR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Sp(o,i),u=Ri(a,i,r,null);return u.flags|=pn,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&st)!==Ae&&$o(t,e.child,null,r),u}function VR(e,t,n){return(e.mode&st)===Ae?(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=Ye):zd(t)?e.lanes=Fi:e.lanes=Ra,null}function BR(e,t,n,a,r,i,o){if(n)if(t.flags&Ar){t.flags&=~Ar;var C=op(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Oc(e,t,o,C)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Dt,null;var U=a.children,x=a.fallback,I=FR(e,t,U,x,o),de=t.child;return de.memoizedState=gp(o),t.memoizedState=yp,I}else{if(_1(),(t.mode&st)===Ae)return Oc(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 b;u?b=new Error(u):b=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var g=op(b,l,f);return Oc(e,t,o,g)}var w=wa(o,e.childLanes);if(er||w){var M=Pc();if(M!==null){var j=K0(M,o);if(j!==On&&j!==i.retryLane){i.retryLane=j;var ie=Qt;ha(e,j),xn(M,e,j,ie)}}Bp();var ke=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 Oc(e,t,o,ke)}else if(Ry(r)){t.flags|=Dt,t.child=e.child;var Re=dD.bind(null,e);return Wx(r,Re),null}else{L1(t,r,i.treeContext);var ft=a.children,it=bp(t,ft);return it.flags|=Nr,it}}}function ab(e,t,n){e.lanes=et(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=et(a.lanes,t)),cv(e.return,t,n)}function $R(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===_e)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 PR(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 YR(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 IR(e,t){e!==void 0&&!Lc[e]&&(e!=="collapsed"&&e!=="hidden"?(Lc[e]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Lc[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=rt(e),a=!n&&typeof Le(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 WR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(rt(e)){for(var n=0;n<e.length;n++)if(!rb(e[n],n))return}else{var a=Le(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;YR(r),IR(i,r),WR(o,r),ia(e,t,o,n);var l=Ka.current,u=bv(l,hu);if(u)l=Sv(l,hu),t.flags|=Dt;else{var f=e!==null&&(e.flags&Dt)!==He;f&&$R(t,t.child,n),l=Wo(l)}if(yi(t,l),(t.mode&st)===Ae)t.memoizedState=null;else switch(r){case"forwards":{var d=PR(t.child),b;d===null?(b=t.child,t.child=null):(b=d.sibling,d.sibling=null),Tp(t,!1,b,d,i);break}case"backwards":{var g=null,w=t.child;for(t.child=null;w!==null;){var M=w.alternate;if(M!==null&&cc(M)===null){t.child=w;break}var j=w.sibling;w.sibling=g,g=w,w=j}Tp(t,!0,g,null,i);break}case"together":{Tp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function qR(e,t,n){hv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=$o(t,null,a,n):ia(e,t,a,n),t.child}var ob=!1;function GR(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&&Ga(u,i,"prop","Context.Provider")}if(Jy(t,r,l),o!==null){var f=o.value;if(ka(f,l)){if(o.children===i.children&&!Bs())return Ir(e,t,n)}else Y1(t,r,n)}var d=i.children;return ia(e,t,d,n),t.child}var lb=!1;function XR(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=mn(a);Rl(t);var l;return Ru.current=t,ja(!0),l=i(o),ja(!1),Co(),t.flags|=bo,ia(e,t,l,n),t.child}function _u(){er=!0}function Ac(e,t){(t.mode&st)===Ae&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=pn)}function Ir(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Ug(),Vu(t.lanes),wa(n,t.childLanes)?($1(e,t),t.child):null}function QR(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|=Ai):i.push(e),n.flags|=pn,n}}function Ep(e,t){var n=e.lanes;return!!wa(n,t)}function KR(e,t,n){switch(t.tag){case oe:Zg(t),t.stateNode,Bo();break;case Q:og(t);break;case ne:{var a=t.type;fr(a)&&Ps(t);break}case ze:hv(t,t.stateNode.containerInfo);break;case De:{var r=t.memoizedProps.value,i=t.type._context;Jy(t,i,r);break}case Lt:{var o=wa(n,t.childLanes);o&&(t.flags|=wt);{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 yi(t,Wo(Ka.current)),t.flags|=Dt,null;var f=t.child,d=f.childLanes;if(wa(n,d))return tb(e,t,n);yi(t,Wo(Ka.current));var b=Ir(e,t,n);return b!==null?b.sibling:null}else yi(t,Wo(Ka.current));break}case _e:{var g=(e.flags&Dt)!==He,w=wa(n,t.childLanes);if(g){if(w)return ib(e,t,n);t.flags|=Dt}var M=t.memoizedState;if(M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),yi(t,Ka.current),w)break;return null}case Ce:case ue:return t.lanes=P,Qg(e,t,n)}return Ir(e,t,n)}function ub(e,t,n){if(t._debugNeedsRemount&&e!==null)return QR(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)er=!0;else{var i=Ep(e,n);if(!i&&(t.flags&Dt)===He)return er=!1,KR(e,t,n);(e.flags&Df)!==He?er=!0:er=!1}}else if(er=!1,Hn()&&E1(t)){var o=t.index,l=C1();Uy(t,l,o)}switch(t.lanes=P,t.tag){case tt:return OR(e,t,t.type,n);case dt:{var u=t.elementType;return MR(e,t,u,n)}case me:{var f=t.type,d=t.pendingProps,b=t.elementType===f?d:Za(f,d);return pp(e,t,f,b,n)}case ne:{var g=t.type,w=t.pendingProps,M=t.elementType===g?w:Za(g,w);return Jg(e,t,g,M,n)}case oe:return DR(e,t,n);case Q:return _R(e,t,n);case he:return kR(e,t);case O:return tb(e,t,n);case ze:return qR(e,t,n);case Oe:{var j=t.type,ie=t.pendingProps,ke=t.elementType===j?ie:Za(j,ie);return qg(e,t,j,ke,n)}case W:return xR(e,t,n);case cn:return RR(e,t,n);case Lt:return wR(e,t,n);case De:return GR(e,t,n);case gt:return XR(e,t,n);case J:{var Re=t.type,ft=t.pendingProps,it=Za(Re,ft);if(t.type!==t.elementType){var C=Re.propTypes;C&&Ga(C,it,"prop",Rt(Re))}return it=Za(Re.type,it),Gg(e,t,Re,it,n)}case $e:return Xg(e,t,t.type,t.pendingProps,n);case vt:{var U=t.type,x=t.pendingProps,I=t.elementType===U?x:Za(U,x);return LR(e,t,U,I,n)}case _e:return ib(e,t,n);case re:break;case Ce: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|=wt}function sb(e){e.flags|=Ni,e.flags|=_f}var cb,Cp,fb,db;cb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===Q||r.tag===he)bx(e,r.stateNode);else if(r.tag!==ze){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(!Hn())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 Fn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=P,a=He;if(t){if((e.mode&jt)!==Ae){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=et(n,et(f.lanes,f.childLanes)),a|=f.subtreeFlags&jr,a|=f.flags&jr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var d=e.child;d!==null;)n=et(n,et(d.lanes,d.childLanes)),a|=d.subtreeFlags&jr,a|=d.flags&jr,d.return=e,d=d.sibling;e.subtreeFlags|=a}else{if((e.mode&jt)!==Ae){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=et(n,et(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=et(n,et(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 JR(e,t,n){if(U1()&&(t.mode&st)!==Ae&&(t.flags&Dt)===He)return Py(t),Bo(),t.flags|=Ar|is|ra,!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(N1(t),Fn(t),(t.mode&jt)!==Ae){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Bo(),(t.flags&Dt)===He&&(t.memoizedState=null),t.flags|=wt,Fn(t),(t.mode&jt)!==Ae){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 tt:case dt:case $e:case me:case Oe:case W:case cn:case Lt:case gt:case J:return Fn(t),null;case ne:{var r=t.type;return fr(r)&&$s(t),Fn(t),null}case oe:{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&Ar)!==He)&&(t.flags|=So,Yy())}}return Cp(e,t),Fn(t),null}case Q:{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 Fn(t),null}var d=yv(),b=Gs(t);if(b)O1(t,u,d)&&Jo(t);else{var g=gx(f,a,u,d,t);cb(g,t,!1,!1),t.stateNode=g,Sx(g,f,a,u)&&Jo(t)}t.ref!==null&&sb(t)}return Fn(t),null}case he:{var w=a;if(e&&t.stateNode!=null){var M=e.memoizedProps;db(e,t,M,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 j=ig(),ie=yv(),ke=Gs(t);ke?A1(t)&&Jo(t):t.stateNode=Ex(w,j,ie,t)}return Fn(t),null}case O:{qo(t);var Re=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var ft=JR(e,t,Re);if(!ft)return t.flags&ra?t:null}if((t.flags&Dt)!==He)return t.lanes=n,(t.mode&jt)!==Ae&&qv(t),t;var it=Re!==null,C=e!==null&&e.memoizedState!==null;if(it!==C&&it){var U=t.child;if(U.flags|=ji,(t.mode&st)!==Ae){var x=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);x||bv(Ka.current,ug)?Zw():Bp()}}var I=t.updateQueue;if(I!==null&&(t.flags|=wt),Fn(t),(t.mode&jt)!==Ae&&it){var de=t.child;de!==null&&(t.treeBaseDuration-=de.treeBaseDuration)}return null}case ze:return Io(t),Cp(e,t),e===null&&m1(t.stateNode.containerInfo),Fn(t),null;case De:var se=t.type._context;return sv(se,t),Fn(t),null;case vt:{var Fe=t.type;return fr(Fe)&&$s(t),Fn(t),null}case _e:{qo(t);var qe=t.memoizedState;if(qe===null)return Fn(t),null;var Ht=(t.flags&Dt)!==He,St=qe.rendering;if(St===null)if(Ht)ku(qe,!1);else{var fn=tD()&&(e===null||(e.flags&Dt)===He);if(!fn)for(var Tt=t.child;Tt!==null;){var sn=cc(Tt);if(sn!==null){Ht=!0,t.flags|=Dt,ku(qe,!1);var Kn=sn.updateQueue;return Kn!==null&&(t.updateQueue=Kn,t.flags|=wt),t.subtreeFlags=He,P1(t,n),yi(t,Sv(Ka.current,hu)),t.child}Tt=Tt.sibling}qe.tail!==null&&Mn()>Nb()&&(t.flags|=Dt,Ht=!0,ku(qe,!1),t.lanes=dh)}else{if(!Ht){var Yn=cc(St);if(Yn!==null){t.flags|=Dt,Ht=!0;var Oa=Yn.updateQueue;if(Oa!==null&&(t.updateQueue=Oa,t.flags|=wt),ku(qe,!0),qe.tail===null&&qe.tailMode==="hidden"&&!St.alternate&&!Hn())return Fn(t),null}else Mn()*2-qe.renderingStartTime>Nb()&&n!==Ra&&(t.flags|=Dt,Ht=!0,ku(qe,!1),t.lanes=dh)}if(qe.isBackwards)St.sibling=t.child,t.child=St;else{var ua=qe.last;ua!==null?ua.sibling=St:t.child=St,qe.last=St}}if(qe.tail!==null){var sa=qe.tail;qe.rendering=sa,qe.tail=sa.sibling,qe.renderingStartTime=Mn(),sa.sibling=null;var Jn=Ka.current;return Ht?Jn=Sv(Jn,hu):Jn=Wo(Jn),yi(t,Jn),sa}return Fn(t),null}case re:break;case Ce:case ue:{Vp(t);var Qr=t.memoizedState,ol=Qr!==null;if(e!==null){var Iu=e.memoizedState,br=Iu!==null;br!==ol&&!ot&&(t.flags|=ji)}return!ol||(t.mode&st)===Ae?Fn(t):wa(gr,Ra)&&(Fn(t),t.subtreeFlags&(pn|wt)&&(t.flags|=ji)),null}case pt:return null;case le: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 ZR(e,t,n){switch(Xd(t),t.tag){case ne:{var a=t.type;fr(a)&&$s(t);var r=t.flags;return r&ra?(t.flags=r&~ra|Dt,(t.mode&jt)!==Ae&&qv(t),t):null}case oe:{t.stateNode,Io(t),Id(t),Ev();var i=t.flags;return(i&ra)!==He&&(i&Dt)===He?(t.flags=i&~ra|Dt,t):null}case Q: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&ra?(t.flags=l&~ra|Dt,(t.mode&jt)!==Ae&&qv(t),t):null}case _e:return qo(t),null;case ze:return Io(t),null;case De:var u=t.type._context;return sv(u,t),null;case Ce:case ue:return Vp(t),null;case pt:return null;default:return null}}function pb(e,t,n){switch(Xd(t),t.tag){case ne:{var a=t.type.childContextTypes;a!=null&&$s(t);break}case oe:{t.stateNode,Io(t),Id(t),Ev();break}case Q:{gv(t);break}case ze:Io(t);break;case O:qo(t);break;case _e:qo(t);break;case De:var r=t.type._context;sv(r,t);break;case Ce:case ue:Vp(t);break}}var mb=null;mb=new Set;var Nc=!1,Vn=!1,ew=typeof WeakSet=="function"?WeakSet:Set,be=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&jt)try{hr(),t.componentWillUnmount()}finally{mr(e)}else t.componentWillUnmount()};function hb(e,t){try{Si(gn,e)}catch(n){Pt(e,t,n)}}function xp(e,t,n){try{nw(e,n)}catch(a){Pt(e,t,a)}}function aw(e,t,n){try{n.componentDidMount()}catch(a){Pt(e,t,a)}}function yb(e,t){try{bb(e)}catch(n){Pt(e,t,n)}}function tl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(je&&Ve&&e.mode&jt)try{hr(),a=n(null)}finally{mr(e)}else a=n(null)}catch(r){Pt(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){Pt(e,t,a)}}var gb=!1;function rw(e,t){hx(e.containerInfo),be=t,iw();var n=gb;return gb=!1,n}function iw(){for(;be!==null;){var e=be,t=e.child;(e.subtreeFlags&Lf)!==He&&t!==null?(t.return=e,be=t):ow()}}function ow(){for(;be!==null;){var e=be;nn(e);try{lw(e)}catch(n){Pt(e,e.return,n)}kn();var t=e.sibling;if(t!==null){t.return=e.return,be=t;return}be=e.return}}function lw(e){var t=e.alternate,n=e.flags;if((n&So)!==He){switch(nn(e),e.tag){case me:case Oe:case $e:break;case ne:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!to&&(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:Za(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 oe:{{var u=e.stateNode;Bx(u.containerInfo)}break}case Q:case he:case ze:case vt: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.")}kn()}}function tr(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&zn)!==ya?E0(t):(e&gn)!==ya&&lh(t),(e&dr)!==ya&&$u(!0),jc(t,n,l),(e&dr)!==ya&&$u(!1),(e&zn)!==ya?C0():(e&gn)!==ya&&uh())}o=o.next}while(o!==i)}}function Si(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&zn)!==ya?S0(t):(e&gn)!==ya&&x0(t);var o=i.create;(e&dr)!==ya&&$u(!0),i.destroy=o(),(e&dr)!==ya&&$u(!1),(e&zn)!==ya?T0():(e&gn)!==ya&&R0();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&gn)!==He?u="useLayoutEffect":(i.tag&dr)!==He?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&wt)!==He)switch(t.tag){case Lt:{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 oe:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case Lt:var d=u.stateNode;d.passiveEffectDuration+=n;break e}u=u.return}break}}}function sw(e,t,n,a){if((n.flags&xl)!==He)switch(n.tag){case me:case Oe:case $e:{if(!Vn)if(n.mode&jt)try{hr(),Si(gn|yn,n)}finally{mr(n)}else Si(gn|yn,n);break}case ne:{var r=n.stateNode;if(n.flags&wt&&!Vn)if(t===null)if(n.type===n.elementType&&!to&&(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&jt)try{hr(),r.componentDidMount()}finally{mr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Za(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!to&&(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&jt)try{hr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{mr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!to&&(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 oe:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case Q:f=n.child.stateNode;break;case ne:f=n.child.stateNode;break}rg(n,u,f)}break}case Q:{var d=n.stateNode;if(t===null&&n.flags&wt){var b=n.type,g=n.memoizedProps;Dx(d,b,g)}break}case he:break;case ze:break;case Lt:{{var w=n.memoizedProps,M=w.onCommit,j=w.onRender,ie=n.stateNode.effectDuration,ke=Ng(),Re=t===null?"mount":"update";Ag()&&(Re="nested-update"),typeof j=="function"&&j(n.memoizedProps.id,Re,n.actualDuration,n.treeBaseDuration,n.actualStartTime,ke);{typeof M=="function"&&M(n.memoizedProps.id,Re,ie,ke),oD(n);var ft=n.return;e:for(;ft!==null;){switch(ft.tag){case oe:var it=ft.stateNode;it.effectDuration+=ie;break e;case Lt:var C=ft.stateNode;C.effectDuration+=ie;break e}ft=ft.return}}}break}case O:{yw(e,n);break}case _e:case vt:case re:case Ce:case ue:case le: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.")}Vn||n.flags&Ni&&bb(n)}function cw(e){switch(e.tag){case me:case Oe:case $e:{if(e.mode&jt)try{hr(),hb(e,e.return)}finally{mr(e)}else hb(e,e.return);break}case ne:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aw(e,e.return,t),yb(e,e.return);break}case Q:{yb(e,e.return);break}}}function fw(e,t){for(var n=null,a=e;;){if(a.tag===Q){if(n===null){n=a;try{var r=a.stateNode;t?Hx(r):Fx(a.stateNode,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}}else if(a.tag===he){if(n===null)try{var i=a.stateNode;t?zx(i):Vx(i,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}else if(!((a.tag===Ce||a.tag===ue)&&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 Q:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&jt)try{hr(),r=t(a)}finally{mr(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===Q){var n=e.stateNode;n!==null&&g1(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===Q||e.tag===oe||e.tag===ze}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!==Q&&t.tag!==he&&t.tag!==Yt;){if(t.flags&pn||t.child===null||t.tag===ze)continue e;t.child.return=t,t=t.child}if(!(t.flags&pn))return t.stateNode}}function pw(e){var t=vw(e);switch(t.tag){case Q:{var n=t.stateNode;t.flags&Cl&&(xy(n),t.flags&=~Cl);var a=Eb(e);wp(e,a,n);break}case oe:case ze:{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===Q||a===he;if(r){var i=e.stateNode;t?Ax(n,i,t):Lx(n,i)}else if(a!==ze){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===Q||a===he;if(r){var i=e.stateNode;t?Ox(n,i,t):Mx(n,i)}else if(a!==ze){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 Bn=null,nr=!1;function mw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case Q:{Bn=a.stateNode,nr=!1;break e}case oe:{Bn=a.stateNode.containerInfo,nr=!0;break e}case ze:{Bn=a.stateNode.containerInfo,nr=!0;break e}}a=a.return}if(Bn===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),Bn=null,nr=!1}dw(n)}function Ti(e,t,n){for(var a=n.child;a!==null;)Cb(e,t,a),a=a.sibling}function Cb(e,t,n){switch(h0(n),n.tag){case Q:Vn||tl(n,t);case he:{{var a=Bn,r=nr;Bn=null,Ti(e,t,n),Bn=a,nr=r,Bn!==null&&(nr?jx(Bn,n.stateNode):Nx(Bn,n.stateNode))}return}case Yt:{Bn!==null&&(nr?Ux(Bn,n.stateNode):Hd(Bn,n.stateNode));return}case ze:{{var i=Bn,o=nr;Bn=n.stateNode.containerInfo,nr=!0,Ti(e,t,n),Bn=i,nr=o}return}case me:case Oe:case J:case $e:{if(!Vn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,d=f;do{var b=d,g=b.destroy,w=b.tag;g!==void 0&&((w&dr)!==ya?jc(n,t,g):(w&gn)!==ya&&(lh(n),n.mode&jt?(hr(),jc(n,t,g),mr(n)):jc(n,t,g),uh())),d=d.next}while(d!==f)}}}Ti(e,t,n);return}case ne:{if(!Vn){tl(n,t);var M=n.stateNode;typeof M.componentWillUnmount=="function"&&xp(n,t,M)}Ti(e,t,n);return}case re:{Ti(e,t,n);return}case Ce:{if(n.mode&st){var j=Vn;Vn=j||n.memoizedState!==null,Ti(e,t,n),Vn=j}else Ti(e,t,n);break}default:{Ti(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&&t1(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),Wa)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,nn(t),Rb(t,e),nn(t),Zo=null,el=null}function ar(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){Pt(i,t,u)}}var o=Gu();if(t.subtreeFlags&Of)for(var l=t.child;l!==null;)nn(l),Rb(l,e),l=l.sibling;nn(o)}function Rb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case me:case Oe:case J:case $e:{if(ar(t,e),yr(e),r&wt){try{tr(dr|yn,e,e.return),Si(dr|yn,e)}catch(Fe){Pt(e,e.return,Fe)}if(e.mode&jt){try{hr(),tr(gn|yn,e,e.return)}catch(Fe){Pt(e,e.return,Fe)}mr(e)}else try{tr(gn|yn,e,e.return)}catch(Fe){Pt(e,e.return,Fe)}}return}case ne:{ar(t,e),yr(e),r&Ni&&a!==null&&tl(a,a.return);return}case Q:{ar(t,e),yr(e),r&Ni&&a!==null&&tl(a,a.return);{if(e.flags&Cl){var i=e.stateNode;try{xy(i)}catch(Fe){Pt(e,e.return,Fe)}}if(r&wt){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(Fe){Pt(e,e.return,Fe)}}}}return}case he:{if(ar(t,e),yr(e),r&wt){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 b=e.stateNode,g=e.memoizedProps,w=a!==null?a.memoizedProps:g;try{kx(b,w,g)}catch(Fe){Pt(e,e.return,Fe)}}return}case oe:{if(ar(t,e),yr(e),r&wt&&a!==null){var M=a.memoizedState;if(M.isDehydrated)try{e1(t.containerInfo)}catch(Fe){Pt(e,e.return,Fe)}}return}case ze:{ar(t,e),yr(e);return}case O:{ar(t,e),yr(e);var j=e.child;if(j.flags&ji){var ie=j.stateNode,ke=j.memoizedState,Re=ke!==null;if(ie.isHidden=Re,Re){var ft=j.alternate!==null&&j.alternate.memoizedState!==null;ft||Jw()}}if(r&wt){try{hw(e)}catch(Fe){Pt(e,e.return,Fe)}xb(e)}return}case Ce:{var it=a!==null&&a.memoizedState!==null;if(e.mode&st){var C=Vn;Vn=C||it,ar(t,e),Vn=C}else ar(t,e);if(yr(e),r&ji){var U=e.stateNode,x=e.memoizedState,I=x!==null,de=e;if(U.isHidden=I,I&&!it&&(de.mode&st)!==Ae){be=de;for(var se=de.child;se!==null;)be=se,Sw(se),se=se.sibling}fw(de,I)}return}case _e:{ar(t,e),yr(e),r&wt&&xb(e);return}case re:return;default:{ar(t,e),yr(e);return}}}function yr(e){var t=e.flags;if(t&pn){try{pw(e)}catch(n){Pt(e,e.return,n)}e.flags&=~pn}t&Nr&&(e.flags&=~Nr)}function bw(e,t,n){Zo=n,el=t,be=e,wb(e,t,n),Zo=null,el=null}function wb(e,t,n){for(var a=(e.mode&st)!==Ae;be!==null;){var r=be,i=r.child;if(r.tag===Ce&&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||Vn,b=Nc,g=Vn;Nc=l,Vn=d,Vn&&!g&&(be=r,Tw(r));for(var w=i;w!==null;)be=w,wb(w,t,n),w=w.sibling;be=r,Nc=b,Vn=g,Dp(e,t,n);continue}}(r.subtreeFlags&xl)!==He&&i!==null?(i.return=r,be=i):Dp(e,t,n)}}function Dp(e,t,n){for(;be!==null;){var a=be;if((a.flags&xl)!==He){var r=a.alternate;nn(a);try{sw(t,r,a,n)}catch(o){Pt(a,a.return,o)}kn()}if(a===e){be=null;return}var i=a.sibling;if(i!==null){i.return=a.return,be=i;return}be=a.return}}function Sw(e){for(;be!==null;){var t=be,n=t.child;switch(t.tag){case me:case Oe:case J:case $e:{if(t.mode&jt)try{hr(),tr(gn,t,t.return)}finally{mr(t)}else tr(gn,t,t.return);break}case ne:{tl(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&xp(t,t.return,a);break}case Q:{tl(t,t.return);break}case Ce:{var r=t.memoizedState!==null;if(r){Db(e);continue}break}}n!==null?(n.return=t,be=n):Db(e)}}function Db(e){for(;be!==null;){var t=be;if(t===e){be=null;return}var n=t.sibling;if(n!==null){n.return=t.return,be=n;return}be=t.return}}function Tw(e){for(;be!==null;){var t=be,n=t.child;if(t.tag===Ce){var a=t.memoizedState!==null;if(a){_b(e);continue}}n!==null?(n.return=t,be=n):_b(e)}}function _b(e){for(;be!==null;){var t=be;nn(t);try{cw(t)}catch(a){Pt(t,t.return,a)}if(kn(),t===e){be=null;return}var n=t.sibling;if(n!==null){n.return=t.return,be=n;return}be=t.return}}function Ew(e,t,n,a){be=t,Cw(t,e,n,a)}function Cw(e,t,n,a){for(;be!==null;){var r=be,i=r.child;(r.subtreeFlags&To)!==He&&i!==null?(i.return=r,be=i):xw(e,t,n,a)}}function xw(e,t,n,a){for(;be!==null;){var r=be;if((r.flags&ni)!==He){nn(r);try{Rw(t,r,n,a)}catch(o){Pt(r,r.return,o)}kn()}if(r===e){be=null;return}var i=r.sibling;if(i!==null){i.return=r.return,be=i;return}be=r.return}}function Rw(e,t,n,a){switch(t.tag){case me:case Oe:case $e:{if(t.mode&jt){Wv();try{Si(zn|yn,t)}finally{Iv(t)}}else Si(zn|yn,t);break}}}function ww(e){be=e,Dw()}function Dw(){for(;be!==null;){var e=be,t=e.child;if((be.flags&Ai)!==He){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];be=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)}}}be=e}}(e.subtreeFlags&To)!==He&&t!==null?(t.return=e,be=t):_w()}}function _w(){for(;be!==null;){var e=be;(e.flags&ni)!==He&&(nn(e),kw(e),kn());var t=e.sibling;if(t!==null){t.return=e.return,be=t;return}be=e.return}}function kw(e){switch(e.tag){case me:case Oe:case $e:{e.mode&jt?(Wv(),tr(zn|yn,e,e.return),Iv(e)):tr(zn|yn,e,e.return);break}}}function Mw(e,t){for(;be!==null;){var n=be;nn(n),Ow(n,t),kn();var a=n.child;a!==null?(a.return=n,be=a):Lw(e)}}function Lw(e){for(;be!==null;){var t=be,n=t.sibling,a=t.return;if(Sb(t),t===e){be=null;return}if(n!==null){n.return=a,be=n;return}be=a}}function Ow(e,t){switch(e.tag){case me:case Oe:case $e:{e.mode&jt?(Wv(),tr(zn,e,t),Iv(e)):tr(zn,e,t);break}}}function Aw(e){switch(e.tag){case me:case Oe:case $e:{try{Si(gn|yn,e)}catch(n){Pt(e,e.return,n)}break}case ne:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Pt(e,e.return,n)}break}}}function Nw(e){switch(e.tag){case me:case Oe:case $e:{try{Si(zn|yn,e)}catch(t){Pt(e,e.return,t)}break}}}function jw(e){switch(e.tag){case me:case Oe:case $e:{try{tr(gn|yn,e,e.return)}catch(n){Pt(e,e.return,n)}break}case ne:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&xp(e,e.return,t);break}}}function Uw(e){switch(e.tag){case me:case Oe:case $e:try{tr(zn|yn,e,e.return)}catch(t){Pt(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 Fw=ge.ReactCurrentActQueue;function Vw(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&&Fw.current!==null&&c("The current testing environment is not configured to support act(...)"),e}}var Bw=Math.ceil,_p=ge.ReactCurrentDispatcher,kp=ge.ReactCurrentOwner,$n=ge.ReactCurrentBatchConfig,rr=ge.ReactCurrentActQueue,Tn=0,Mb=1,Pn=2,Ba=4,Wr=0,Lu=1,no=2,Uc=3,Ou=4,Lb=5,Mp=6,ct=Tn,oa=null,on=null,En=P,gr=P,Lp=fi(P),Cn=Wr,Au=null,Hc=P,Nu=P,zc=P,ju=null,ga=null,Op=0,Ob=500,Ab=1/0,$w=500,qr=null;function Uu(){Ab=Mn()+$w}function Nb(){return Ab}var Fc=!1,Ap=null,nl=null,ao=!1,Ei=null,Hu=P,Np=[],jp=null,Pw=50,zu=0,Up=null,Hp=!1,Vc=!1,Yw=50,al=0,Bc=null,Fu=Qt,$c=P,jb=!1;function Pc(){return oa}function la(){return(ct&(Pn|Ba))!==Tn?Mn():(Fu!==Qt||(Fu=Mn()),Fu)}function Ci(e){var t=e.mode;if((t&st)===Ae)return Ye;if((ct&Pn)!==Tn&&En!==P)return Ll(En);var n=F1()!==z1;if(n){if($n.transition!==null){var a=$n.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return $c===On&&($c=hh()),$c}var r=qa();if(r!==On)return r;var i=Cx();return i}function Iw(e){var t=e.mode;return(t&st)===Ae?Ye:q0()}function xn(e,t,n,a){mD(),jb&&c("useInsertionEffect must not schedule updates."),Hp&&(Vc=!0),Ol(e,n,a),(ct&Pn)!==P&&e===oa?gD(t):(Wa&&bh(e,t,n),bD(t),e===oa&&((ct&Pn)===Tn&&(Nu=et(Nu,n)),Cn===Ou&&xi(e,En)),ba(e,a),n===Ye&&ct===Tn&&(t.mode&st)===Ae&&!rr.isBatchingLegacy&&(Uu(),jy()))}function Ww(e,t,n){var a=e.current;a.lanes=t,Ol(e,t,n),ba(e,n)}function qw(e){return(ct&Pn)!==Tn}function ba(e,t){var n=e.callbackNode;B0(e,t);var a=cs(e,e===oa?En:P);if(a===P){n!==null&&Kb(n),e.callbackNode=null,e.callbackPriority=On;return}var r=Bi(a),i=e.callbackPriority;if(i===r&&!(rr.current!==null&&n!==Yp)){n==null&&i!==Ye&&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===Ye)e.tag===di?(rr.isBatchingLegacy!==null&&(rr.didScheduleLegacyUpdate=!0),T1(zb.bind(null,e))):Ny(zb.bind(null,e)),rr.current!==null?rr.current.push(vi):Rx(function(){(ct&(Pn|Ba))===Tn&&vi()}),o=null;else{var l;switch(Eh(a)){case Da:l=os;break;case Hr:l=Af;break;case zr:l=zi;break;case vs:l=Nf;break;default:l=zi;break}o=Ip(l,Ub.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Ub(e,t){if(fR(),Fu=Qt,$c=P,(ct&(Pn|Ba))!==Tn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Xr();if(a&&e.callbackNode!==n)return null;var r=cs(e,e===oa?En:P);if(r===P)return null;var i=!fs(e,r)&&!W0(e,r)&&!t,o=i?aD(e,r):Ic(e,r);if(o!==Wr){if(o===no){var l=nd(e);l!==P&&(r=l,o=zp(e,l))}if(o===Lu){var u=Au;throw ro(e,P),xi(e,r),ba(e,Mn()),u}if(o===Mp)xi(e,r);else{var f=!fs(e,r),d=e.current.alternate;if(f&&!Xw(d)){if(o=Ic(e,r),o===no){var b=nd(e);b!==P&&(r=b,o=zp(e,b))}if(o===Lu){var g=Au;throw ro(e,P),xi(e,r),ba(e,Mn()),g}}e.finishedWork=d,e.finishedLanes=r,Gw(e,o,r)}}return ba(e,Mn()),e.callbackNode===n?Ub.bind(null,e):null}function zp(e,t){var n=ju;if(ps(e)){var a=ro(e,t);a.flags|=Ar,p1(e.containerInfo)}var r=Ic(e,t);if(r!==no){var i=ga;ga=n,i!==null&&Hb(i)}return r}function Hb(e){ga===null?ga=e:ga.push.apply(ga,e)}function Gw(e,t,n){switch(t){case Wr:case Lu:throw new Error("Root did not complete. This is a bug in React.");case no:{io(e,ga,qr);break}case Uc:{if(xi(e,n),ph(n)&&!Jb()){var a=Op+Ob-Mn();if(a>10){var r=cs(e,P);if(r!==P)break;var i=e.suspendedLanes;if(!Do(i,n)){la(),gh(e,i);break}e.timeoutHandle=jd(io.bind(null,e,ga,qr),a);break}}io(e,ga,qr);break}case Ou:{if(xi(e,n),I0(n))break;if(!Jb()){var o=F0(e,n),l=o,u=Mn()-l,f=pD(u)-u;if(f>10){e.timeoutHandle=jd(io.bind(null,e,ga,qr),f);break}}io(e,ga,qr);break}case Lb:{io(e,ga,qr);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(!ka(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 xi(e,t){t=ds(t,zc),t=ds(t,Nu),X0(e,t)}function zb(e){if(dR(),(ct&(Pn|Ba))!==Tn)throw new Error("Should not already be working.");Xr();var t=cs(e,P);if(!wa(t,Ye))return ba(e,Mn()),null;var n=Ic(e,t);if(e.tag!==di&&n===no){var a=nd(e);a!==P&&(t=a,n=zp(e,a))}if(n===Lu){var r=Au;throw ro(e,P),xi(e,t),ba(e,Mn()),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,io(e,ga,qr),ba(e,Mn()),null}function Qw(e,t){t!==P&&(od(e,et(t,Ye)),ba(e,Mn()),(ct&(Pn|Ba))===Tn&&(Uu(),vi()))}function Fp(e,t){var n=ct;ct|=Mb;try{return e(t)}finally{ct=n,ct===Tn&&!rr.isBatchingLegacy&&(Uu(),jy())}}function Kw(e,t,n,a,r){var i=qa(),o=$n.transition;try{return $n.transition=null,An(Da),e(t,n,a,r)}finally{An(i),$n.transition=o,ct===Tn&&Uu()}}function Gr(e){Ei!==null&&Ei.tag===di&&(ct&(Pn|Ba))===Tn&&Xr();var t=ct;ct|=Mb;var n=$n.transition,a=qa();try{return $n.transition=null,An(Da),e?e():void 0}finally{An(a),$n.transition=n,ct=t,(ct&(Pn|Ba))===Tn&&vi()}}function Fb(){return(ct&(Pn|Ba))!==Tn}function Yc(e,t){Xn(Lp,gr,e),gr=et(gr,t)}function Vp(e){gr=Lp.current,Gn(Lp,e)}function ro(e,t){e.finishedWork=null,e.finishedLanes=P;var n=e.timeoutHandle;if(n!==Ud&&(e.timeoutHandle=Ud,xx(n)),on!==null)for(var a=on.return;a!==null;){var r=a.alternate;pb(r,a),a=a.return}oa=e;var i=oo(e.current,null);return on=i,En=gr=t,Cn=Wr,Au=null,Hc=P,Nu=P,zc=P,ju=null,ga=null,W1(),Qa.discardPendingWarnings(),i}function Vb(e,t){do{var n=on;try{if(ec(),cg(),kn(),kp.current=null,n===null||n.return===null){Cn=Lu,Au=t,on=null;return}if(je&&n.mode&jt&&kc(n,!0),Vt)if(Co(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;D0(n,a,En)}else w0(n,t,En);TR(e,n.return,n,t,En),Yb(n)}catch(r){t=r,on===n&&n!==null?(n=n.return,on=n):n=on;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(){Op=Mn()}function Vu(e){Hc=et(e,Hc)}function Zw(){Cn===Wr&&(Cn=Uc)}function Bp(){(Cn===Wr||Cn===Uc||Cn===no)&&(Cn=Ou),oa!==null&&(ad(Hc)||ad(Nu))&&xi(oa,En)}function eD(e){Cn!==Ou&&(Cn=no),ju===null?ju=[e]:ju.push(e)}function tD(){return Cn===Wr}function Ic(e,t){var n=ct;ct|=Pn;var a=Bb();if(oa!==e||En!==t){if(Wa){var r=e.memoizedUpdaters;r.size>0&&(Bu(e,En),r.clear()),Sh(e,t)}qr=Th(),ro(e,t)}sh(t);do try{nD();break}catch(i){Vb(e,i)}while(!0);if(ec(),ct=n,$b(a),on!==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(),oa=null,En=P,Cn}function nD(){for(;on!==null;)Pb(on)}function aD(e,t){var n=ct;ct|=Pn;var a=Bb();if(oa!==e||En!==t){if(Wa){var r=e.memoizedUpdaters;r.size>0&&(Bu(e,En),r.clear()),Sh(e,t)}qr=Th(),Uu(),ro(e,t)}sh(t);do try{rD();break}catch(i){Vb(e,i)}while(!0);return ec(),$b(a),ct=n,on!==null?(O0(),Wr):(ch(),oa=null,En=P,Cn)}function rD(){for(;on!==null&&!o0();)Pb(on)}function Pb(e){var t=e.alternate;nn(e);var n;(e.mode&jt)!==Ae?(Yv(e),n=$p(t,e,gr),kc(e,!0)):n=$p(t,e,gr),kn(),e.memoizedProps=e.pendingProps,n===null?Yb(e):on=n,kp.current=null}function Yb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&is)===He){nn(t);var r=void 0;if((t.mode&jt)===Ae?r=vb(n,t,gr):(Yv(t),r=vb(n,t,gr),kc(t,!1)),kn(),r!==null){on=r;return}}else{var i=ZR(n,t);if(i!==null){i.flags&=e0,on=i;return}if((t.mode&jt)!==Ae){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=He,a.deletions=null;else{Cn=Mp,on=null;return}}var u=t.sibling;if(u!==null){on=u;return}t=a,on=t}while(t!==null);Cn===Wr&&(Cn=Lb)}function io(e,t,n){var a=qa(),r=$n.transition;try{$n.transition=null,An(Da),iD(e,t,n,a)}finally{$n.transition=r,An(a)}return null}function iD(e,t,n,a){do Xr();while(Ei!==null);if(hD(),(ct&(Pn|Ba))!==Tn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(b0(i),r===null)return oh(),null;if(i===P&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=P,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=On;var o=et(r.lanes,r.childLanes);Q0(e,o),e===oa&&(oa=null,on=null,En=P),((r.subtreeFlags&To)!==He||(r.flags&To)!==He)&&(ao||(ao=!0,jp=n,Ip(zi,function(){return Xr(),null})));var l=(r.subtreeFlags&(Lf|Of|xl|To))!==He,u=(r.flags&(Lf|Of|xl|To))!==He;if(l||u){var f=$n.transition;$n.transition=null;var d=qa();An(Da);var b=ct;ct|=Ba,kp.current=null,rw(e,r),jg(),gw(e,r,i),yx(e.containerInfo),e.current=r,_0(i),bw(r,e,i),k0(),l0(),ct=b,An(d),$n.transition=f}else e.current=r,jg();var g=ao;if(ao?(ao=!1,Ei=e,Hu=i):(al=0,Bc=null),o=e.pendingLanes,o===P&&(nl=null),g||Gb(e.current,!1),p0(r.stateNode,a),Wa&&e.memoizedUpdaters.clear(),zw(),ba(e,Mn()),t!==null)for(var w=e.onRecoverableError,M=0;M<t.length;M++){var j=t[M],ie=j.stack,ke=j.digest;w(j.value,{componentStack:ie,digest:ke})}if(Fc){Fc=!1;var Re=Ap;throw Ap=null,Re}return wa(Hu,Ye)&&e.tag!==di&&Xr(),o=e.pendingLanes,wa(o,Ye)?(cR(),e===Up?zu++:(zu=0,Up=e)):zu=0,vi(),oh(),null}function Xr(){if(Ei!==null){var e=Eh(Hu),t=eE(zr,e),n=$n.transition,a=qa();try{return $n.transition=null,An(t),lD()}finally{An(a),$n.transition=n}}return!1}function oD(e){Np.push(e),ao||(ao=!0,Ip(zi,function(){return Xr(),null}))}function lD(){if(Ei===null)return!1;var e=jp;jp=null;var t=Ei,n=Hu;if(Ei=null,Hu=P,(ct&(Pn|Ba))!==Tn)throw new Error("Cannot flush passive effects while already rendering.");Hp=!0,Vc=!1,M0(n);var a=ct;ct|=Ba,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)}}L0(),Gb(t.current,!0),ct=a,vi(),Vc?t===Bc?al++:(al=0,Bc=t):al=0,Hp=!1,Vc=!1,m0(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){Fc||(Fc=!0,Ap=e)}var cD=sD;function Wb(e,t,n){var a=eo(n,t),r=Pg(e,a,Ye),i=mi(e,r,Ye),o=la();i!==null&&(Ol(i,Ye,o),ba(i,o))}function Pt(e,t,n){if(tw(n),$u(!1),e.tag===oe){Wb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===oe){Wb(a,e,n);return}else if(a.tag===ne){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Ib(i)){var o=eo(n,e),l=up(a,o,Ye),u=mi(a,l,Ye),f=la();u!==null&&(Ol(u,Ye,f),ba(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=la();gh(e,n),SD(e),oa===e&&Do(En,n)&&(Cn===Ou||Cn===Uc&&ph(En)&&Mn()-Op<Ob?ro(e,P):zc=et(zc,n)),ba(e,r)}function qb(e,t){t===On&&(t=Iw(e));var n=la(),a=ha(e,t);a!==null&&(Ol(a,t,n),ba(a,n))}function dD(e){var t=e.memoizedState,n=On;t!==null&&(n=t.retryLane),qb(e,n)}function vD(e,t){var n=On,a;switch(e.tag){case O:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case _e: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(){Qa.flushLegacyContextWarning(),Qa.flushPendingUnsafeLifecycleWarnings()}function Gb(e,t){nn(e),Wc(e,ai,jw),t&&Wc(e,Mf,Uw),Wc(e,ai,Aw),t&&Wc(e,Mf,Nw),kn()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==He?a=a.child:((a.flags&t)!==He&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var qc=null;function Xb(e){{if((ct&Pn)!==Tn||!(e.mode&st))return;var t=e.tag;if(t!==tt&&t!==oe&&t!==ne&&t!==me&&t!==Oe&&t!==J&&t!==$e)return;var n=Ge(e)||"ReactComponent";if(qc!==null){if(qc.has(n))return;qc.add(n)}else qc=new Set([n]);var a=ta;try{nn(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?nn(e):kn()}}}var $p;{var yD=null;$p=function(e,t,n){var a=aS(yD,t);try{return ub(e,t,n)}catch(i){if(k1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(ec(),cg(),pb(e,t),aS(t,a),t.mode&jt&&Yv(t),xf(null,ub,null,e,t,n),KT()){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(ki&&!lR())switch(e.tag){case me:case Oe:case $e:{var t=on&&Ge(on)||"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 ne:{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(Wa){var n=e.memoizedUpdaters;n.forEach(function(a){bh(e,a,t)})}}var Yp={};function Ip(e,t){{var n=rr.current;return n!==null?(n.push(t),Yp):ih(e,t)}}function Kb(e){if(e!==Yp)return i0(e)}function Jb(){return rr.current!==null}function bD(e){{if(e.mode&st){if(!kb())return}else if(!Vw()||ct!==Tn||e.tag!==me&&e.tag!==Oe&&e.tag!==$e)return;if(rr.current===null){var t=ta;try{nn(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?nn(e):kn()}}}}function SD(e){e.tag!==di&&kb()&&rr.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 $a=null,rl=null,TD=function(e){$a=e};function il(e){{if($a===null)return e;var t=$a(e);return t===void 0?e:t.current}}function Wp(e){return il(e)}function qp(e){{if($a===null)return e;var t=$a(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=il(e.render);if(e.render!==n){var a={$$typeof:$,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function Zb(e,t){{if($a===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 ne:{typeof a=="function"&&(r=!0);break}case me:{(typeof a=="function"||i===R)&&(r=!0);break}case Oe:{(i===$||i===R)&&(r=!0);break}case J:case $e:{(i===p||i===R)&&(r=!0);break}default:return!1}if(r){var o=$a(n);if(o!==void 0&&o===$a(a))return!0}return!1}}function eS(e){{if($a===null||typeof WeakSet!="function")return;rl===null&&(rl=new WeakSet),rl.add(e)}}var ED=function(e,t){{if($a===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Xr(),Gr(function(){Gp(e.current,a,n)})}},CD=function(e,t){{if(e.context!==Ma)return;Xr(),Gr(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 me:case $e:case ne:u=l;break;case Oe:u=l.render;break}if($a===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,d=!1;if(u!==null){var b=$a(u);b!==void 0&&(n.has(b)?d=!0:t.has(b)&&(o===ne?d=!0:f=!0))}if(rl!==null&&(rl.has(e)||a!==null&&rl.has(a))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||f){var g=ha(e,Ye);g!==null&&xn(g,e,Ye,Qt)}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 me:case $e:case ne:l=o;break;case Oe: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 Q:t.add(a.stateNode);return;case ze:t.add(a.stateNode.containerInfo);return;case oe: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===Q)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=He,this.subtreeFlags=He,this.deletions=null,this.lanes=P,this.childLanes=P,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 La=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)?ne:me;if(e!=null){var t=e.$$typeof;if(t===$)return Oe;if(t===p)return J}return tt}function oo(e,t){var n=e.alternate;n===null?(n=La(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=He,n.subtreeFlags=He,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&jr,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 tt:case me:case $e:n.type=il(e.type);break;case ne:n.type=Wp(e.type);break;case Oe:n.type=qp(e.type);break}return n}function MD(e,t){e.flags&=jr|pn;var n=e.alternate;if(n===null)e.childLanes=P,e.lanes=t,e.child=null,e.subtreeFlags=He,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=He,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 LD(e,t,n){var a;return e===Ys?(a=st,t===!0&&(a|=un,a|=ur)):a=Ae,Wa&&(a|=jt),La(oe,null,null,a)}function Jp(e,t,n,a,r,i){var o=tt,l=e;if(typeof e=="function")Kp(e)?(o=ne,l=Wp(l)):l=il(l);else if(typeof e=="string")o=Q;else e:switch(e){case Aa:return Ri(n.children,r,i,t);case Tr:o=cn,r|=un,(r&st)!==Ae&&(r|=ur);break;case Er:return OD(n,r,i,t);case ae:return AD(n,r,i,t);case pe:return ND(n,r,i,t);case E:return nS(n,r,i,t);case _:case T:case S:case V:case y:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cr:o=De;break e;case h:o=gt;break e;case $:o=Oe,l=qp(l);break e;case p:o=J;break e;case R:o=dt,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=La(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 Ri(e,t,n,a){var r=La(W,e,a,t);return r.lanes=n,r}function OD(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=La(Lt,e,a,t|jt);return r.elementType=Er,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function AD(e,t,n,a){var r=La(O,e,a,t);return r.elementType=ae,r.lanes=n,r}function ND(e,t,n,a){var r=La(_e,e,a,t);return r.elementType=pe,r.lanes=n,r}function nS(e,t,n,a){var r=La(Ce,e,a,t);r.elementType=E,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function em(e,t,n){var a=La(he,e,null,t);return a.lanes=n,a}function jD(){var e=La(Q,null,null,Ae);return e.elementType="DELETED",e}function UD(e){var t=La(Yt,null,null,Ae);return t.stateNode=e,t}function tm(e,t,n){var a=e.children!==null?e.children:[],r=La(ze,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=La(tt,null,null,Ae)),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=On,this.eventTimes=id(P),this.expirationTimes=id(Qt),this.pendingLanes=P,this.suspendedLanes=P,this.pingedLanes=P,this.expiredLanes=P,this.mutableReadLanes=P,this.finishedLanes=P,this.entangledLanes=P,this.entanglements=id(P),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 di: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),b=LD(t,i);d.current=b,b.stateNode=d;{var g={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};b.memoizedState=g}return pv(b),d}var nm="18.3.1";function zD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Ee(a),{$$typeof:wn,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var am,rm;am=!1,rm={};function iS(e){if(!e)return Ma;var t=go(e),n=S1(t);if(t.tag===ne){var a=t.type;if(fr(a))return Oy(t,a,n)}return n}function FD(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&un){var i=Ge(n)||"Component";if(!rm[i]){rm[i]=!0;var o=ta;try{nn(r),n.mode&un?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?nn(o):kn()}}}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,b=rS(n,a,d,e,r,i,o,l,u);b.context=iS(null);var g=b.current,w=la(),M=Ci(g),j=Yr(w,M);return j.callback=t??null,mi(g,j,M),Ww(b,M,w),b}function Pu(e,t,n,a){v0(t,e);var r=t.current,i=la(),o=Ci(r);A0(o);var l=iS(n);t.context===null?t.context=l:t.pendingContext=l,ki&&ta!==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(ta)||"Unknown"));var u=Yr(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=mi(r,u,o);return f!==null&&(xn(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 Q:return t.child.stateNode;default:return t.child.stateNode}}function VD(e){switch(e.tag){case oe:{var t=e.stateNode;if(ps(t)){var n=$0(t);Qw(t,n)}break}case O:{Gr(function(){var r=ha(e,Ye);if(r!==null){var i=la();xn(r,e,Ye,i)}});var a=Ye;im(e,a);break}}}function uS(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=G0(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=ha(e,t);if(n!==null){var a=la();xn(n,e,t,a)}im(e,t)}}function $D(e){if(e.tag===O){var t=Ci(e),n=ha(e,t);if(n!==null){var a=la();xn(n,e,t,a)}im(e,t)}}function sS(e){var t=r0(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=rt(e)?e.slice():F({},e);return n+1===t.length?(rt(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=rt(e)?e.slice():F({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],rt(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=rt(e)?e.slice():F({},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=F({},e.memoizedProps);var o=ha(e,Ye);o!==null&&xn(o,e,Ye,Qt)}},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=F({},e.memoizedProps);var i=ha(e,Ye);i!==null&&xn(i,e,Ye,Qt)}},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=F({},e.memoizedProps);var o=ha(e,Ye);o!==null&&xn(o,e,Ye,Qt)}},mS=function(e,t,n){e.pendingProps=wS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=ha(e,Ye);a!==null&&xn(a,e,Ye,Qt)},hS=function(e,t){e.pendingProps=ES(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=ha(e,Ye);n!==null&&xn(n,e,Ye,Qt)},yS=function(e,t,n){e.pendingProps=xS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=ha(e,Ye);a!==null&&xn(a,e,Ye,Qt)},gS=function(e){var t=ha(e,Ye);t!==null&&xn(t,e,Ye,Qt)},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 ta}function GD(e){var t=e.findFiberByHostInstance,n=ge.ReactCurrentDispatcher;return d0({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!==vn){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;Fb()&&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."),Gr(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===Zn&&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===vn?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 b=r[d];tR(f,b)}return new Xc(f)}function Qc(e){return!!(e&&(e.nodeType===pa||e.nodeType===Or||e.nodeType===vf))}function Yu(e){return!!(e&&(e.nodeType===pa||e.nodeType===Or||e.nodeType===vf||e.nodeType===vn&&e.nodeValue===" react-mount-point-unstable "))}function _S(e){e.nodeType===pa&&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=ge.ReactCurrentOwner,kS;kS=function(e){if(e._reactRootContainer&&e.nodeType!==vn){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&&ci(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===pa&&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===Or?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 g=Gc(o);i.call(g)}}var o=lS(t,a,e,di,null,!1,!1,"",MS);e._reactRootContainer=o,Hs(o.current,e);var l=e.nodeType===vn?e.parentNode:e;return Xl(l),Gr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var g=Gc(d);f.call(g)}}var d=oS(e,di,null,!1,!1,"",MS);e._reactRootContainer=d,Hs(d.current,e);var b=e.nodeType===vn?e.parentNode:e;return Xl(b),Gr(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 LS=!1;function t_(e){{LS||(LS=!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.",Rt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===pa?e:FD(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||!JT(e))throw new Error("parentComponent must be a valid React Component");return Kc(e,t,n,!1,a)}var OS=!1;function i_(e){if(OS||(OS=!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&&!ci(n);a&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Gr(function(){Kc(null,null,e,!1,function(){e._reactRootContainer=null,Dy(e)})}),!0}else{{var r=um(e),i=!!(r&&ci(r)),o=e.nodeType===pa&&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(VD),aE(BD),rE($D),iE(qa),oE(J0),(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"),BT(lx),YT(Fp,Kw,Gr);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:[ci,Uo,zs,Pm,Ym,Fp]};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 Fb()&&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."),Gr(e)}var f_=GD({findFiberByHostInstance:Ii,bundleType:1,version:nm,rendererPackageName:"react-dom"});if(!f_&&Xe&&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")}ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sm,ca.createPortal=o_,ca.createRoot=u_,ca.findDOMNode=t_,ca.flushSync=c_,ca.hydrate=n_,ca.hydrateRoot=s_,ca.render=a_,ca.unmountComponentAtNode=i_,ca.unstable_batchedUpdates=Fp,ca.unstable_renderSubtreeIntoContainer=l_,ca.version=nm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ca}pm.exports=zS();var FS=pm.exports,gm,bm=FS;{var Sm=bm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;gm=function(L,D){Sm.usingClientEntryPoint=!0;try{return bm.createRoot(L,D)}finally{Sm.usingClientEntryPoint=!1}}}const Y=L=>{if(isNaN(L))return"00:00:00.000";const D=Math.floor(L/3600),ge=Math.floor(L%3600/60),Ne=Math.floor(L%60),Me=Math.round(L%1*1e3),X=String(D).padStart(2,"0"),c=String(ge).padStart(2,"0"),yt=String(Ne).padStart(2,"0"),me=String(Me).padStart(3,"0");return`${X}:${c}:${yt}.${me}`},wi=L=>Y(L),VS=L=>Y(L),ve={debug:(...L)=>{},error:(...L)=>console.error(...L),warn:(...L)=>console.warn(...L),info:(...L)=>console.info(...L)};var q=Zc();const BS=({videoRef:L,currentTime:D,duration:ge,isPlaying:Ne,isMuted:Me=!1,onPlayPause:X,onSeek:c,onToggleMute:yt})=>{var pt;const me=q.useRef(null),[ne,tt]=q.useState(!1),[oe,ze]=q.useState(!1),[Q,he]=q.useState(null),[W,cn]=q.useState(!1),gt=q.useRef(!1),[De,Oe]=q.useState({x:0}),[Lt,O]=q.useState(0),J=typeof window<"u"&&((pt=window.MEDIA_DATA)==null?void 0:pt.videoUrl)||"/videos/sample-video.mp4";q.useEffect(()=>{if(tt((()=>{const A=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(A)&&!window.MSStream})()),typeof window<"u"){const A=localStorage.getItem("video_initialized")==="true";ze(A)}},[]),q.useEffect(()=>{Ne&&!oe&&(ze(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Ne,oe]),q.useEffect(()=>{const le=L.current;if(!le)return;le.setAttribute("playsinline","true"),le.setAttribute("webkit-playsinline","true"),le.setAttribute("x-webkit-airplay","allow");const A=()=>{gt.current||(he(le.currentTime),typeof window<"u"&&(window.lastSeekedPosition=le.currentTime))},ye=()=>{ne&&(ze(!0),localStorage.setItem("video_initialized","true"))},Be=()=>{};return le.addEventListener("timeupdate",A),le.addEventListener("play",ye),le.addEventListener("pause",Be),()=>{le.removeEventListener("timeupdate",A),le.removeEventListener("play",ye),le.removeEventListener("pause",Be)}},[L,ne,gt]),q.useEffect(()=>{he(D)},[D]);const $e=ge>0?D/ge*100:0,dt=le=>{le.preventDefault(),cn(!0),gt.current=!0,vt(le);const A=Be=>{gt.current&&vt(Be)},ye=()=>{cn(!1),gt.current=!1,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",ye)};document.addEventListener("mousemove",A),document.addEventListener("mouseup",ye)},vt=le=>{if(!me.current)return;const A=me.current.getBoundingClientRect(),ye=Math.max(0,Math.min(1,(le.clientX-A.left)/A.width)),Be=ge*ye;Oe({x:le.clientX}),O(Be),he(Be),typeof window<"u"&&(window.lastSeekedPosition=Be),c(Be)},Yt=le=>{if(!me.current||!le.touches[0])return;le.preventDefault(),cn(!0),gt.current=!0,_e(le);const A=Be=>{gt.current&&_e(Be)},ye=()=>{cn(!1),gt.current=!1,document.removeEventListener("touchmove",A),document.removeEventListener("touchend",ye),document.removeEventListener("touchcancel",ye)};document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",ye),document.addEventListener("touchcancel",ye)},_e=le=>{if(!me.current)return;const A="touches"in le?le.touches[0]:null;if(!A)return;le.preventDefault();const ye=me.current.getBoundingClientRect(),Be=Math.max(0,Math.min(1,(A.clientX-ye.left)/ye.width)),ot=ge*Be;Oe({x:A.clientX}),O(ot),he(ot),typeof window<"u"&&(window.lastSeekedPosition=ot),c(ot)},re=le=>{if(!W&&me.current){const A=me.current.getBoundingClientRect(),ye=(le.clientX-A.left)/A.width,Be=ge*ye;he(Be),typeof window<"u"&&(window.lastSeekedPosition=Be),c(Be)}},Ce=()=>{L.current&&(document.fullscreenElement?document.exitFullscreen():L.current.requestFullscreen())},ue=()=>{const le=L.current;le&&(le.paused?ne&&Q!==null&&Q>0?(le.currentTime=Q,setTimeout(()=>{L.current&&L.current.play().then(()=>{var A;ve.debug("iOS: Play started successfully at position:",(A=L.current)==null?void 0:A.currentTime),X()}).catch(A=>{console.error("iOS: Error playing video:",A)})},50)):le.play().then(()=>{X()}).catch(A=>{console.error("Error playing video:",A)}):(le.pause(),X()))};return v.jsxs("div",{className:"video-player-container",children:[v.jsxs("video",{ref:L,preload:"auto",crossOrigin:"anonymous",onClick:ue,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:Me,children:[v.jsx("source",{src:J,type:"video/mp4"}),v.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),ne&&!oe&&!Ne&&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 ${Ne?"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:wi(D)}),v.jsxs("span",{className:"video-duration",children:["/ ",wi(ge)]})]}),v.jsxs("div",{ref:me,className:`video-progress ${W?"dragging":""}`,onClick:re,onMouseDown:dt,onTouchStart:Yt,children:[v.jsx("div",{className:"video-progress-fill",style:{width:`${$e}%`}}),v.jsx("div",{className:"video-scrubber",style:{left:`${$e}%`}}),W&&v.jsx("div",{className:"video-time-tooltip",style:{left:`${De.x}px`,transform:"translateX(-50%)"},children:Y(Lt)})]}),v.jsxs("div",{className:"video-controls-buttons",children:[yt&&v.jsx("button",{className:"mute-button","aria-label":Me?"Unmute":"Mute",onClick:yt,"data-tooltip":Me?"Unmute":"Mute",children:Me?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:Ce,"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=(L,D)=>{const ge=Math.min(Math.max(L/(D||1),0),1),Ne=210,Me=40+Math.floor(ge*20),X=85+Math.floor(ge*8);return`hsl(${Ne}, ${Me}%, ${X}%)`},Wu=({isOpen:L,onClose:D,title:ge,children:Ne,actions:Me})=>{if(q.useEffect(()=>{const c=yt=>{yt.key==="Escape"&&L&&D()};return document.addEventListener("keydown",c),L&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",c),document.body.style.overflow=""}},[L,D]),!L)return null;const X=c=>{c.target===c.currentTarget&&D()};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:ge}),v.jsx("button",{className:"modal-close-button",onClick:D,"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:Ne}),Me&&v.jsx("div",{className:"modal-actions",children:Me})]})})},PS=async(L,D)=>{try{const ge=await fetch(`/api/v1/media/${L}/chapters`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)});if(ve.debug("response",ge),!ge.ok){if(ge.status===404)return{success:!0,timestamp:new Date().toISOString()};try{const Me=await ge.json();return{success:!1,timestamp:new Date().toISOString(),error:Me.error||"Auto-save failed (videoApi.ts)"}}catch{return{success:!1,timestamp:new Date().toISOString(),error:"Auto-save failed (videoApi.ts)"}}}const Ne=await ge.json();return{success:!0,timestamp:Ne.updated_at||new Date().toISOString(),...Ne}}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=L=>{let X,c;if(L<=25)if(L<=0)X="0%",c="none";else{const me=-50*((L-0)/25);X=`${L}%`,c=`translateX(${me}%)`}else if(L>=75)if(L>=100)X="100%",c="translateX(-100%)";else{const me=-50-50*((L-75)/25);X=`${L}%`,c=`translateX(${me}%)`}else X=`${L}%`,c="translateX(-50%)";return{left:X,transform:c}},XS=({currentTime:L,duration:D,trimStart:ge,trimEnd:Ne,splitPoints:Me,zoomLevel:X,clipSegments:c,selectedSegmentId:yt,onSelectedSegmentChange:me,onSegmentUpdate:ne,onChapterSave:tt,onTrimStartChange:oe,onTrimEndChange:ze,onZoomChange:Q,onSeek:he,videoRef:W,hasUnsavedChanges:cn=!1,isIOSUninitialized:gt=!1,isPlaying:De,setIsPlaying:Oe,onPlayPause:Lt,isPlayingSegments:O=!1})=>{const J=q.useRef(null),$e=q.useRef(null),dt=q.useRef(null),[vt,Yt]=q.useState(null),_e=yt!==void 0?yt:vt,re=p=>{me?me(p):Yt(p)},[Ce,ue]=q.useState(!1),[pt,le]=q.useState({x:0,y:0}),[A,ye]=q.useState(0),[Be,ot]=q.useState(!1),[Et,Ot]=q.useState(30),[Vt,je]=q.useState(!1),[Ve,Je]=q.useState(null),[en,nt]=q.useState(0),[It,mt]=q.useState(!1),Xe=q.useRef(null),[hn,Kt]=q.useState(""),[Nn,z]=q.useState(!1),Ee=[...c].sort((p,R)=>p.startTime-R.startTime).find(p=>p.id===_e),[Te,Pe]=q.useState(""),[at,Ze]=q.useState(!1),we=q.useRef(null),lt=q.useRef(c);q.useEffect(()=>{lt.current=c},[c]);const _t=q.useCallback(async()=>{var p;try{Ze(!0);const R=lt.current.map(_=>({startTime:Y(_.startTime),endTime:Y(_.endTime),chapterTitle:_.chapterTitle}));ve.debug("chapters",R);const y=typeof window<"u"&&((p=window.MEDIA_DATA)==null?void 0:p.mediaId)||null||"1234";if(ve.debug("mediaId",y),!y||R.length===0){ve.debug("No mediaId or segments, skipping auto-save"),Ze(!1);return}ve.debug("Auto-saving segments:",{mediaId:y,chapters:R});const E=await PS(y,{chapters:R});if(E.success===!0){ve.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(",","");Pe(S),ve.debug("Auto-save successful:",S)}else ve.error("Auto-save failed: (TimelineControls.tsx)")}catch(R){ve.error("Auto-save error: (TimelineControls.tsx)",R)}finally{Ze(!1)}},[]),ht=q.useCallback(()=>{we.current&&clearTimeout(we.current);const p=setTimeout(()=>{_t()},1e3);we.current=p},[_t]);q.useEffect(()=>{Kt(Ee&&Ee.chapterTitle||"")},[_e,Ee]);const Jt=p=>{Kt(p),z(!0),_e&&ne&&ne(_e,{chapterTitle:p})},Wt=p=>{const R=p;let T=null,y=null,E=A;const _=()=>{const S=R<0?Math.max(0,E+R):Math.min(D,E+R);E=S;const V=Vt;if(he(S),ye(S),nt(S),J.current){const B=J.current.getBoundingClientRect(),K=S/D*100,Le=B.left+B.width*(K/100);le({x:Le,y:B.top-10});const F=c.find(Ke=>S>=Ke.startTime&&S<=Ke.endTime);if(F)re(F.id),ue(!1);else{re(null);const Ke=va(S);Ot(Ke),ue(!0)}}V&&W.current&&(W.current.play(),je(!0))};return{onMouseDown:S=>{S.stopPropagation(),S.preventDefault(),E=A,_(),T=setTimeout(()=>{y=setInterval(_,200)},750);const V=()=>{T&&(clearTimeout(T),T=null),y&&(clearInterval(y),y=null),document.removeEventListener("mouseup",V),document.removeEventListener("mouseleave",V)};document.addEventListener("mouseup",V),document.addEventListener("mouseleave",V)},onTouchStart:S=>{S.stopPropagation(),S.preventDefault(),E=A,_(),T=setTimeout(()=>{y=setInterval(_,200)},750);const V=()=>{T&&(clearTimeout(T),T=null),y&&(clearInterval(y),y=null),document.removeEventListener("touchend",V),document.removeEventListener("touchcancel",V)};document.addEventListener("touchend",V),document.addEventListener("touchcancel",V)},onClick:S=>{S.stopPropagation()}}},[fa,In]=q.useState(!1),[Z,xe]=q.useState(!1),[Qe,Ct]=q.useState(!1),[Bt,zt]=q.useState(!1),[tn,Rn]=q.useState(""),[qt,At]=q.useState(""),[Ft,ir]=q.useState(""),[Sa,Ta]=q.useState("chapters"),da=D>0?L/D*100:0,Kr=D>0?ge/D*100:0,Jr=D>0?Ne/D*100:0,Sr=async()=>{var p;In(!1),xe(!0),Ta("chapters");try{const R=c.filter(T=>T.chapterTitle&&T.chapterTitle.trim()).map(T=>({chapterTitle:T.chapterTitle||`Chapter ${T.id}`,from:Y(T.startTime),to:Y(T.endTime)}));if(R.length===0){At("No chapters with titles found"),zt(!0),xe(!1);return}if(tt){await tt(R),xe(!1),Rn("Chapters saved successfully!");const T=typeof window<"u"&&((p=window.MEDIA_DATA)==null?void 0:p.mediaId)||null;T&&ir(`/view?m=${T}`),Ct(!0)}else At("Chapter save function not available"),zt(!0),xe(!1)}catch(R){ve.error("Error saving chapters:",R),xe(!1);const T=R instanceof Error?R.message:"An error occurred while saving chapters";At(T),zt(!0)}};q.useEffect(()=>{if(Xe.current&&J.current&&X>1){const p=Xe.current.clientWidth,R=J.current.clientWidth,T=L/D*R,y=Math.max(0,T-p/2);Xe.current.scrollTo({left:y,behavior:"smooth"});const E=J.current.getBoundingClientRect();Xe.current.getBoundingClientRect();const S=E.left-Xe.current.scrollLeft+da/100*E.width;(_e!==null||Ce)&&(le({x:S,y:E.top-10}),ye(L))}},[L,X,D,_e,Ce,da]),q.useEffect(()=>{const p=W.current;if(!p||!Ve||!Vt||O)return;ve.debug("Segment boundary check ACTIVATED for segment:",Ve.id,"Start:",Y(Ve.startTime),"End:",Y(Ve.endTime));const R=()=>{const T=Ve.endTime-p.currentTime;if(Math.round(T*10)%10===0&&ve.debug("Segment playback - time remaining:",Y(T),"Current:",Y(p.currentTime),"End:",Y(Ve.endTime),"ContinuePastBoundary:",It),p.currentTime>Ve.endTime){p.pause(),p.currentTime=Ve.endTime,je(!1),mt(!1),ve.debug("Passed segment end - setting back to exact boundary:",Y(Ve.endTime));return}if(Ve.endTime-p.currentTime<.05)if(It)ve.debug("Continuing past segment boundary:",Y(Ve.endTime)),p.currentTime>Ve.endTime&&(mt(!1),Je(null),sessionStorage.removeItem("continuingPastSegment"));else{p.pause(),p.currentTime=Ve.endTime,je(!1),ve.debug("Paused at segment end boundary:",Y(Ve.endTime));const E=[...c].sort((_,S)=>_.startTime-S.startTime).find(_=>_.startTime>Ve.endTime);E&&Math.abs(E.startTime-Ve.endTime)<.1&&(ve.debug("Found adjacent next segment:",E.id),re(E.id),Je(E),nt(E.startTime),ye(E.startTime),p.currentTime=E.startTime)}};return p.addEventListener("timeupdate",R),()=>{p.removeEventListener("timeupdate",R)}},[Ve,Vt,It,c]),q.useEffect(()=>{if(W.current)if(W.current.paused)W.current.paused&&Vt&&(nt(L),ye(L),je(!1),ve.debug("Video paused at:",Y(L)));else{nt(L),ye(L),_e!==null&&je(!0);const p=c.find(y=>L>=y.startTime&&L<=y.endTime),R=L/D*100;if(J.current){const y=J.current.offsetWidth,E=R/100*y;le({x:E,y:J.current.getBoundingClientRect().top-10})}const T=sessionStorage.getItem("continuingPastSegment")==="true";if(p){const y=W.current,E=Ve&&Ve.id<0&&Vt;if((Ve==null?void 0:Ve.id)!==p.id&&!E&&!T&&!It&&(ve.debug(`Entered a new segment during playback: ${p.id}, setting as active`),Je(p),re(p.id),ue(!1),mt(!1),sessionStorage.removeItem("continuingPastSegment")),E&&y&&p){ve.debug(`CUTAWAY BOUNDARY REACHED: Current position ${Y(y.currentTime)} at segment ${p.id} - STOPPING at boundary ${Y(p.startTime)}`),y.pause(),setTimeout(()=>{if(W.current){W.current.currentTime=p.startTime,he(p.startTime),nt(p.startTime),ye(p.startTime),mt(!1),re(p.id),ue(!1);const S=()=>{W.current&&(W.current.currentTime=p.startTime,he(p.startTime),nt(p.startTime),ye(p.startTime),ve.debug(`Position corrected to exact segment boundary: ${Y(W.current.currentTime)} (target: ${Y(p.startTime)})`))};setTimeout(S,10),setTimeout(S,20),setTimeout(S,50),setTimeout(S,100),setTimeout(S,200),W.current.addEventListener("seeked",S),W.current.addEventListener("canplay",S),W.current.addEventListener("waiting",S),setTimeout(()=>{W.current&&(W.current.removeEventListener("seeked",S),W.current.removeEventListener("canplay",S),W.current.removeEventListener("waiting",S))},300)}},10),je(!1),Je(null);return}Ve===null&&Vt===!0||T||E?(_e!==p.id||Ce)&&(ve.debug("Tooltip updated for segment during continued playback:",p.id,E?"(cutaway playback - keeping virtual segment)":""),re(p.id),ue(!1),!E&&sessionStorage.getItem("lastSegmentId")!==p.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Ve==null?void 0:Ve.id)!==p.id||Ce)&&(ve.debug("Playback moved into segment:",p.id),re(p.id),Je(p),ue(!1),sessionStorage.setItem("lastSegmentId",p.id.toString()))}else if(Ve!==null||!Ce){re(null),Je(null);const y=va(L);Ot(y),y>=.5?ue(!0):ue(!1)}}},[L,Vt,Ve,_e,c]),q.useEffect(()=>{const p=R=>{const T=R.target;Be&&!T.closest(".zoom-dropdown-container")&&ot(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[Be]),q.useEffect(()=>{const p=y=>{const{recordHistory:E,fromAutoSave:_}=y.detail;E&&!_&&ht()},R=()=>{ht()},T=y=>{const{recordHistory:E}=y.detail;E&&ht()};return document.addEventListener("update-segments",p),document.addEventListener("segment-drag-end",R),document.addEventListener("update-trim",T),document.addEventListener("delete-segment",ht),document.addEventListener("split-segment",ht),()=>{document.removeEventListener("update-segments",p),document.removeEventListener("segment-drag-end",R),document.removeEventListener("update-trim",T),document.removeEventListener("delete-segment",ht),document.removeEventListener("split-segment",ht),we.current&&(ve.debug("Clearing auto-save timer in cleanup:",we.current),clearTimeout(we.current))}},[ht]),q.useEffect(()=>{c.length>0&&!Te&&setTimeout(()=>{_t()},500)},[Te,_t]),q.useEffect(()=>{const p=()=>{var y;let T=typeof window<"u"&&((y=window.MEDIA_DATA)==null?void 0:y.chapters)||null;try{if(T&&T.chapters&&T.chapters.length>0){ve.debug("Found saved segments:",T);const E=T.chapters.map((S,V)=>({id:Date.now()+V,chapterTitle:S.chapterTitle||`Chapter ${V+1}`,startTime:R(S.startTime),endTime:R(S.endTime)})),_=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!1,fromAutoSave:!0}});if(document.dispatchEvent(_),T.updated_at){const V=new Date(T.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(",","");Pe(V)}}else ve.debug("No saved segments found")}catch(E){console.error("Error loading saved segments:",E)}},R=T=>{const y=T.split(":");if(y.length!==3)return 0;const E=parseInt(y[0])||0,_=parseInt(y[1])||0,S=y[2].split("."),V=parseInt(S[0])||0,B=parseInt(S[1])||0;return E*3600+_*60+V+B/1e3};setTimeout(p,100)},[]),q.useEffect(()=>()=>{},[_e,Ce,Vt]),q.useEffect(()=>{const p=$e.current,R=dt.current,T=J.current;if(!p||!R||!T)return;const y=E=>_=>{_.preventDefault();const S=T.getBoundingClientRect();let V=!0,B=E?ge:Ne;const K=Ke=>new CustomEvent("trim-handle-event",{detail:{type:Ke,isStart:E}});document.dispatchEvent(K("drag-start"));const Le=Ke=>{if(!V)return;const kt=S.width,rn=Math.max(0,Math.min(1,(Ke.clientX-S.left)/kt))*D;typeof window<"u"&&(window.lastSeekedPosition=rn),E?rn<Ne&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:rn,isStart:!0,recordHistory:!1}})),B=rn):rn>ge&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:rn,isStart:!1,recordHistory:!1}})),B=rn)},F=()=>{V=!1,document.removeEventListener("mousemove",Le),document.removeEventListener("mouseup",F),E?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:B,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:B,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(K("drag-end"))};document.addEventListener("mousemove",Le),document.addEventListener("mouseup",F)};return p.addEventListener("mousedown",y(!0)),R.addEventListener("mousedown",y(!1)),()=>{p.removeEventListener("mousedown",y(!0)),R.removeEventListener("mousedown",y(!1))}},[D,ge,Ne,oe,ze]);const Zr=()=>Me.map((p,R)=>{const T=p/D*100;return v.jsx("div",{className:"split-point",style:{left:`${T}%`}},R)}),va=p=>{const T=[...c].sort((S,V)=>S.startTime-V.startTime),y=T.find(S=>S.startTime>p),E=[...T].reverse().find(S=>S.endTime<p);let _;return y?_=y.startTime-p:_=D-p,ve.debug("Space calculation:",{position:Y(p),nextSegment:y?Y(y.startTime):"none",prevSegment:E?Y(E.endTime):"none",availableSpace:Y(Math.max(.1,_))}),Math.max(.1,_)},jn=p=>{if(!J.current)return;const R=c.find(B=>{const K=p>=B.startTime&&p<=B.endTime,Le=Math.abs(p-B.startTime)<.001,F=Math.abs(p-B.endTime)<.001;return K||Le||F}),T=[...c].sort((B,K)=>B.startTime-K.startTime),y=T.find(B=>B.startTime>p),E=[...T].reverse().find(B=>B.endTime<p);if(R)re(R.id),ue(!1);else{const B=va(p);Ot(B),re(null),ue(!0),ve.debug("Cutaway position:",{current:Y(p),prevSegmentEnd:E?Y(E.endTime):"none",nextSegmentStart:y?Y(y.startTime):"none",availableSpace:Y(B)})}const _=J.current.getBoundingClientRect(),S=p/D*100;let V;X>1&&Xe.current?V=_.left-Xe.current.scrollLeft+_.width*(S/100):V=_.left+_.width*(S/100),le({x:V,y:_.top-10})},Zn=p=>{if(!J.current||!Xe.current||gt)return;const R=W.current&&!W.current.paused;mt(!1);const T=J.current.getBoundingClientRect();let y;if(X>1){const S=Xe.current.scrollLeft,V=J.current.clientWidth;y=(p.clientX-T.left+S)/V}else y=(p.clientX-T.left)/T.width;const E=y*D;ve.debug("Timeline clicked at:",Y(E),"distance from end:",Y(D-E)),typeof window<"u"&&(window.lastSeekedPosition=E),he(E),ye(E),nt(E);const _=c.find(S=>{const V=E>=S.startTime&&E<=S.endTime,B=Math.abs(E-S.startTime)<.01,K=Math.abs(E-S.endTime)<.01;return V||B||K});if(_&&Je(_),W.current)if(O&&R){if(_){const V=[...c].sort((B,K)=>B.startTime-K.startTime).findIndex(B=>B.id===_.id);if(V!==-1){const B=new CustomEvent("update-segment-index",{detail:{segmentIndex:V}});document.dispatchEvent(B),ve.debug(`Segments playback mode: updating segment index to ${V} for timeline click in segment ${_.id}`)}}W.current.play().then(()=>{je(!0)}).catch(S=>{console.error("Error resuming segments playback:",S),je(!1)})}else R&&!O&&W.current.play().then(()=>{je(!0)}).catch(S=>{console.error("Error resuming playback:",S),je(!1)});if(p.target===J.current)if(_)re(_.id),ue(!1);else{re(null);const S=va(E);Ot(S);let V;if(X>1){const F=T.left-Xe.current.scrollLeft,Ke=E/D;V=F+Ke*T.width}else V=p.clientX;le({x:V,y:T.top-10}),ue(!0);const B=[...c].sort((F,Ke)=>F.startTime-Ke.startTime),K=[...B].reverse().find(F=>F.endTime<E),Le=B.find(F=>F.startTime>E);ve.debug("Clicked in cutaway area:",{position:Y(E),availableSpace:Y(S),prevSegmentEnd:K?Y(K.endTime):"none",nextSegmentStart:Le?Y(Le.startTime):"none"})}},wn=(p,R)=>T=>{if(T.preventDefault(),T.stopPropagation(),!J.current)return;J.current.getBoundingClientRect().width;const E=c.find(Dn=>Dn.id===p);if(!E)return;const _=E.startTime,S=E.endTime,V={...E};document.body.style.cursor="ew-resize";const B=document.createElement("div");B.style.position="fixed",B.style.top="0",B.style.left="0",B.style.width="100vw",B.style.height="100vh",B.style.zIndex="1000",B.style.cursor="ew-resize",document.body.appendChild(B);let K=!0,Le=_,F=S;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:p}}));const Ke=Dn=>{if(!K||!J.current)return;const or=J.current.getBoundingClientRect(),$t=Math.max(0,Math.min(1,(Dn-or.left)/or.width))*D,Ea=R?$t:_,Pa=R?S:$t;if(L>=Ea&&L<=Pa)re(p),ue(!1);else{re(null);const ln=va(L);Ot(ln),ue(!0)}const Ca=c.filter(ln=>ln.id!==p);let ea=_,Wn=S;if(R){ea=Math.min($t,S-.5);const xt=Ca.filter(xa=>xa.endTime<=_).sort((xa,Di)=>Di.endTime-xa.endTime)[0];xt&&ea<xt.endTime&&(ea=xt.endTime),xt&&Math.abs(ea-xt.endTime)<.3&&(ea=xt.endTime),Le=ea}else{Wn=Math.max($t,_+.5);const xt=Ca.filter(xa=>xa.startTime>=S).sort((xa,Di)=>xa.startTime-Di.startTime)[0];xt&&Wn>xt.startTime&&(Wn=xt.startTime),xt&&Math.abs(Wn-xt.startTime)<.3&&(Wn=xt.startTime),F=Wn}const Rr=c.map(ln=>ln.id===p?{...ln,startTime:ea,endTime:Wn}:ln),wr=new CustomEvent("update-segments",{detail:{segments:Rr,recordHistory:!1}});if(document.dispatchEvent(wr),_e===p&&W.current){const ln=W.current.currentTime,xt=Rr.find(Ya=>Ya.id===p);if(xt){const Ya=ln>=xt.startTime&&ln<=xt.endTime;ve.debug(`During drag - playhead at ${Y(ln)} is ${Ya?"inside":"outside"} segment (${Y(xt.startTime)} - ${Y(xt.endTime)})`),!Ya&&Vt&&(W.current.pause(),je(!1),Je(null)),ln<xt.startTime?(ve.debug(`Adjusting display time to segment start: ${Y(xt.startTime)}`),nt(xt.startTime),ye(xt.startTime)):ln>xt.endTime&&(ve.debug(`Adjusting display time to segment end: ${Y(xt.endTime)}`),nt(xt.endTime),ye(xt.endTime))}}},kt=()=>{if(!K)return;K=!1,document.removeEventListener("mousemove",bt),document.removeEventListener("mouseup",rn),document.removeEventListener("touchmove",xr),document.removeEventListener("touchend",Na),document.removeEventListener("touchcancel",Na),document.body.style.cursor="",document.body.contains(B)&&document.body.removeChild(B);const Dn=c.map(_n=>_n.id===p?{..._n,startTime:Le,endTime:F}:_n),or=R?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:Dn,recordHistory:!0,action:or}})),_e===p&&W.current){const _n=W.current.currentTime,$t=Dn.find(Ea=>Ea.id===p);if($t){const Ea=_n>=$t.startTime&&_n<=$t.endTime;ve.debug(`Drag complete - playhead at ${Y(_n)} is ${Ea?"inside":"outside"} segment (${Y($t.startTime)} - ${Y($t.endTime)})`);const Pa=_n>=V.startTime&&_n<=V.endTime;Ea?(!Pa&&Ea||Pa&&Ea&&($t.startTime!==V.startTime||$t.endTime!==V.endTime))&&Je($t):(Vt&&(W.current.pause(),je(!1),Je(null),mt(!1)),_n<$t.startTime?(ve.debug(`Final adjustment - setting display time to segment start: ${Y($t.startTime)}`),nt($t.startTime),ye($t.startTime)):_n>$t.endTime&&(ve.debug(`Final adjustment - setting display time to segment end: ${Y($t.endTime)}`),nt($t.endTime),ye($t.endTime)))}}},bt=Dn=>{Ke(Dn.clientX)},rn=()=>{kt()},xr=Dn=>{Dn.touches.length>0&&(Dn.preventDefault(),Ke(Dn.touches[0].clientX))},Na=()=>{kt()};document.addEventListener("mousemove",bt,{passive:!1}),document.addEventListener("mouseup",rn),document.addEventListener("touchmove",xr,{passive:!1}),document.addEventListener("touchend",Na),document.addEventListener("touchcancel",Na)},Aa=p=>R=>{if(R.target.classList.contains("clip-segment-handle"))return;R.preventDefault(),R.stopPropagation(),mt(!1);const T=W.current&&!W.current.paused;re(p);const y=c.find(F=>F.id===p);if(!y)return;const _=R.currentTarget.getBoundingClientRect(),S=(R.clientX-_.left)/_.width,V=y.startTime+S*(y.endTime-y.startTime),B=Math.max(y.startTime,Math.min(y.endTime,V));if(ye(B),nt(B),W.current){const F=W.current.currentTime,Ke=F>=y.startTime&&F<=y.endTime;ve.debug(`Segment click - playhead at ${Y(F)} is ${Ke?"inside":"outside"} segment (${Y(y.startTime)} - ${Y(y.endTime)})`),Ke||(Math.abs(F-y.startTime)<Math.abs(F-y.endTime)?(ve.debug(`Playhead outside segment - adjusting to segment start: ${Y(y.startTime)}`),nt(y.startTime)):(ve.debug(`Playhead outside segment - adjusting to segment end: ${Y(y.endTime)}`),nt(y.endTime)))}if(he(B),W.current)if(O&&T){const Ke=[...c].sort((kt,bt)=>kt.startTime-bt.startTime).findIndex(kt=>kt.id===p);if(Ke!==-1){const kt=new CustomEvent("update-segment-index",{detail:{segmentIndex:Ke}});document.dispatchEvent(kt)}W.current.play().then(()=>{je(!0)}).catch(kt=>{console.error("Error continuing segments playback after segment click:",kt)})}else T&&!O&&(Je(y),mt(!1),W.current.play().then(()=>{je(!0)}).catch(F=>{console.error("Error resuming playback after segment click:",F)}));const K=R.clientX,Le=_.top-10;if(le({x:K,y:Le}),X>1&&J.current&&Xe.current){J.current.getBoundingClientRect();const F=J.current.clientWidth,Ke=Xe.current.clientWidth,kt=B/D*F,bt=Math.max(0,kt-Ke/2);Xe.current.scrollTo({left:bt,behavior:"smooth"}),setTimeout(()=>{if(J.current&&Xe.current){const rn=J.current.getBoundingClientRect(),Na=B/D*F-Xe.current.scrollLeft+rn.left;le({x:Na,y:Le})}},300)}},Tr=()=>c.map((p,R)=>{const T=p.startTime/D*100,y=(p.endTime-p.startTime)/D*100,E=$S((p.startTime+p.endTime)/2,D);return v.jsxs("div",{className:`clip-segment ${_e===p.id?"selected":""}`,style:{left:`${T}%`,width:`${y}%`,backgroundColor:E,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:Aa(p.id),children:[v.jsxs("div",{className:"clip-segment-info",children:[v.jsxs("div",{className:"clip-segment-name",children:["Chapter ",R+1]}),v.jsxs("div",{className:"clip-segment-time",children:[wi(p.startTime)," - ",wi(p.endTime)]}),v.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",wi(p.endTime-p.startTime)]})]}),O?null:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:_=>{_.stopPropagation(),wn(p.id,!0)(_)},onTouchStart:_=>{_.stopPropagation(),wn(p.id,!0)(_)}}),v.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:_=>{_.stopPropagation(),wn(p.id,!1)(_)},onTouchStart:_=>{_.stopPropagation(),wn(p.id,!1)(_)}})]})]},p.id)});q.useEffect(()=>{const p=R=>{const{segmentId:T}=R.detail;if(c.filter(E=>E.id!==T).length===0){const E={id:Date.now(),chapterTitle:"Full Video",startTime:0,endTime:D},_=new CustomEvent("update-segments",{detail:{segments:[E],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(_),re(E.id),ue(!1),ye(L),nt(L),Je(E),J.current){const S=J.current.getBoundingClientRect(),V=L/D*100,B=S.left+S.width*(V/100);le({x:B,y:S.top-10}),ve.debug("Created full video segment:",{id:E.id,duration:Y(D),currentPosition:Y(L)})}}else if(_e===T){if(!c.find(S=>S.id===T))return;const _=va(L);if(re(null),ue(!0),Ot(_),J.current){const S=J.current.getBoundingClientRect(),V=L/D*100,B=S.left+S.width*(V/100);le({x:B,y:S.top-10}),ve.debug("Segment deleted, showing cutaway tooltip:",{position:Y(L),availableSpace:Y(_)})}}};return document.addEventListener("delete-segment",p),()=>{document.removeEventListener("delete-segment",p)}},[_e,c,L,D,J]),q.useEffect(()=>{const p=W.current;if(!p)return;const R=()=>{if(!W.current)return;const y=W.current,E=y.currentTime;mt(!1);let _=D,S=null,V=null;S=c.find(K=>{const Le=E>=K.startTime&&E<=K.endTime,F=Math.abs(E-K.startTime)<.001,Ke=Math.abs(E-K.endTime)<.001;return Le||F||Ke}),V=c.filter(K=>{const Le=K.startTime>E,F=Math.abs(K.startTime-E)>.001;return Le&&F}).sort((K,Le)=>K.startTime-Le.startTime)[0],S?(_=S.endTime,Je(S)):V&&(_=V.startTime);const B=()=>{if(!y)return;const K=y.currentTime;if(_-K<=.001||K>=_){y.pause();const F=()=>{y&&(y.currentTime=_,he(_),nt(_),ye(_),ve.debug("Position verification:",{target:Y(_),actual:Y(y.currentTime),difference:Math.abs(y.currentTime-_).toFixed(3)}))};F(),setTimeout(F,10),setTimeout(F,20),setTimeout(F,50),S?(re(S.id),ue(!1)):V?(re(V.id),ue(!1),Je(V)):(re(null),ue(!0),Je(null)),y.removeEventListener("timeupdate",B),Oe(!1),je(!1),mt(!1);return}};y.addEventListener("timeupdate",B),y.play().then(()=>{Oe(!0),je(!0),ve.debug("Playback started:",{from:Y(E),to:Y(_),currentSegment:S?`Segment ${S.id}`:"None",nextSegment:V?`Segment ${V.id}`:"None"})}).catch(K=>{console.error("Error playing video:",K)})},T=()=>{je(!1)};return p.addEventListener("play",R),p.addEventListener("pause",T),()=>{p.removeEventListener("play",R),p.removeEventListener("pause",T)}},[c,D,he]);const Er=p=>{if(!J.current)return;const R=J.current.getBoundingClientRect(),y=(p.clientX-R.left)/R.width*D,E=Math.max(0,Math.min(D,y));typeof window<"u"&&(window.lastSeekedPosition=E)},[Cr,h]=q.useState(!1),$=q.useRef(!1),ae=p=>{if(gt)return;p.stopPropagation(),p.preventDefault(),h(!0),$.current=!0,jn(L);const R=y=>{if(!J.current||!Xe.current)return;const E=J.current.getBoundingClientRect();let _;if(X>1){const V=Xe.current.scrollLeft,B=J.current.clientWidth;_=(y.clientX-E.left+V)/B}else _=(y.clientX-E.left)/E.width;_=Math.max(0,Math.min(1,_));const S=_*D;ye(S),nt(S),jn(S),typeof window<"u"&&(window.lastSeekedPosition=S),he(S)},T=()=>{h(!1),$.current=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",T)},pe=p=>{if(gt)return;p.stopPropagation(),p.preventDefault(),h(!0),$.current=!0,jn(L);const R=y=>{if(!J.current||!Xe.current||!y.touches[0])return;const E=J.current.getBoundingClientRect();let _;if(X>1){const V=Xe.current.scrollLeft,B=J.current.clientWidth;_=(y.touches[0].clientX-E.left+V)/B}else _=(y.touches[0].clientX-E.left)/E.width;_=Math.max(0,Math.min(1,_));const S=_*D;ye(S),nt(S),jn(S),typeof window<"u"&&(window.lastSeekedPosition=S),he(S)},T=()=>{h(!1),$.current=!1,document.removeEventListener("touchmove",R),document.removeEventListener("touchend",T),document.removeEventListener("touchcancel",T)};document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",T),document.addEventListener("touchcancel",T)};return q.useEffect(()=>{},[Ft,Sa,Qe]),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:Y(c.reduce((p,R)=>p+(R.endTime-R.startTime),0))})]})]}),v.jsx("div",{ref:Xe,className:`timeline-scroll-container ${O?"segments-playback-mode":""}`,style:{overflow:X>1?"auto":"hidden"},children:v.jsxs("div",{ref:J,className:"timeline-container",onClick:Zn,onMouseMove:Er,style:{width:`${X*100}%`,cursor:"pointer"},children:[v.jsxs("div",{className:"timeline-marker",style:{left:`${da}%`},children:[v.jsx("div",{className:"timeline-marker-head",onClick:p=>{if(p.stopPropagation(),c.find(R=>L>=R.startTime&&L<=R.endTime),_e||Ce){re(null),ue(!1);return}else jn(L),ve.debug("Opening tooltip at:",Y(L))},children:v.jsx("span",{className:"timeline-marker-head-icon",children:_e||Ce?"-":"+"})}),O?null:v.jsx("div",{className:`timeline-marker-drag ${Cr?"dragging":""}`,onMouseDown:ae,onTouchStart:pe,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:`${Kr}%`},children:v.jsx("div",{ref:$e,className:"trim-handle left"})}),v.jsx("div",{className:"trim-line-marker",style:{left:`${Jr}%`},children:v.jsx("div",{ref:dt,className:"trim-handle right"})})]}),Tr(),Zr(),_e!==null&&v.jsxs("div",{className:`segment-tooltip two-row-tooltip ${O?"segments-playback-mode":""}`,style:{position:"absolute",...xm(da)},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:[_e&&v.jsx("div",{className:"tooltip-chapter-editor",children:v.jsx("textarea",{className:"tooltip-chapter-input",placeholder:"Chapter Title",value:hn,onChange:p=>Jt(p.target.value),onBlur:_t,onMouseLeave:_t,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?{}:Wt(-.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:Y(en)}),v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek +50ms (click or hold)",disabled:O,...O?{}:Wt(.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 R=new CustomEvent("delete-segment",{detail:{segmentId:_e}});document.dispatchEvent(R)},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 R=new CustomEvent("split-segment",{detail:{segmentId:_e,time:A}});document.dispatchEvent(R)},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 R=c.find(T=>T.id===_e);if(R&&W.current){if(mt(!0),Math.abs(W.current.currentTime-R.endTime)<.05){ve.debug(`Already at end boundary (${Y(W.current.currentTime)}), nudging position back slightly`);const T=Math.max(R.startTime,R.endTime-.1);W.current.currentTime=T,he(T),ye(T),ve.debug(`Position adjusted to ${Y(T)}`)}else he(R.startTime),ye(R.startTime);Je(R),W.current.play().then(()=>{je(!0)}).catch(T=>{console.error("Error playing from beginning:",T)})}},children:v.jsx("img",{src:Cm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${De?"pause":"play"} ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":De?"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(),De?W.current&&(W.current.pause(),je(!1),mt(!1)):Lt()},children:De?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(T=>T.id===_e)){const T=c.map(E=>E.id===_e?{...E,startTime:A<E.endTime-.5?A:E.endTime-.5}:E),y=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(y)}},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(T=>T.id===_e)){const T=c.map(E=>E.id===_e?{...E,endTime:A>E.startTime+.5?A:E.startTime+.5}:E),y=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(y)}},children:v.jsx("img",{src:YS,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),Ce&&_e===null&&v.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${O?"segments-playback-mode":""}`,style:{position:"absolute",...xm(da)},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?{}:Wt(-.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:Y(A)}),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?{}:Wt(.05),children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsxs("button",{className:`tooltip-action-btn new-segment ${Et<.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":Et<.5?"Not enough space for new segment":"Create new segment",disabled:Et<.5||O,onClick:async p=>{if(p.stopPropagation(),Et<.5)return;const R=A,T=R+Et,y={id:Date.now(),chapterTitle:"segment",startTime:R,endTime:T},E=[...c,y],_=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(_),ue(!1),setTimeout(()=>{const S=E[E.length-1];S&&(re(S.id),ve.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(),W.current){const R=A;mt(!0);const T=[...c].sort((K,Le)=>K.startTime-Le.startTime),y=[...T].reverse().find(K=>K.endTime<R),E=y?y.endTime+.025:0,_=T.find(K=>K.startTime>R),S=_?_.startTime:D,V={id:-999,chapterTitle:"Cutaway",startTime:E,endTime:S};he(E),ye(E),je(!1),setTimeout(()=>{Je(V)},0);const B=()=>{if(!W.current)return;const K=W.current.currentTime,Le=[...c].sort((bt,rn)=>bt.startTime-rn.startTime),F=Le.find(bt=>bt.startTime>K-.3),Ke=F&&K>=F.startTime-.25&&K<=F.startTime+.1&&!It;F&&K>=F.startTime-.25&&K<=F.startTime+.1&&ve.debug(`Approaching boundary at ${Y(F.startTime)}, continuePastBoundary=${It}, willStop=${Ke}`);const kt=Le.find(bt=>K>=bt.startTime&&K<=bt.endTime);if(kt&&(Ve==null?void 0:Ve.id)!==kt.id){ve.debug(`Entered segment ${kt.id} during cutaway playback`),Je(kt),re(kt.id),ue(!1),W.current.removeEventListener("timeupdate",B),mt(!1),sessionStorage.removeItem("continuingPastSegment");return}if(Ke&&F){ve.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${Y(K)} approaching segment at ${Y(F.startTime)} (distance: ${Math.abs(K-F.startTime).toFixed(3)}s) - STOPPING`),W.current.pause(),setTimeout(()=>{if(W.current){W.current.currentTime=F.startTime,he(F.startTime),nt(F.startTime),ye(F.startTime),mt(!1),re(F.id),ue(!1),Je(F);const bt=()=>{W.current&&(W.current.currentTime=F.startTime,he(F.startTime),nt(F.startTime),ye(F.startTime),ve.debug(`Position corrected to exact segment boundary: ${Y(W.current.currentTime)} (target: ${Y(F.startTime)})`))};setTimeout(bt,10),setTimeout(bt,20),setTimeout(bt,50),setTimeout(bt,100),setTimeout(bt,200),W.current.addEventListener("seeked",bt),W.current.addEventListener("canplay",bt),W.current.addEventListener("waiting",bt),setTimeout(()=>{W.current&&(W.current.removeEventListener("seeked",bt),W.current.removeEventListener("canplay",bt),W.current.removeEventListener("waiting",bt))},300)}},10),je(!1),Je(null),W.current.removeEventListener("timeupdate",B);return}};W.current.addEventListener("timeupdate",B),setTimeout(()=>{W.current&&W.current.play().then(()=>{je(!0),ve.debug("CUTAWAY PLAYBACK STARTED:",Y(E),"to",Y(S),y?`(after segment ${y.id}, offset +25ms from ${Y(y.endTime)})`:"(from video start)",_?`(will stop at segment ${_.id})`:"(will play to end)")}).catch(K=>{console.error("Error playing cutaway:",K)})},50)}},children:v.jsx("img",{src:Cm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${De?"pause":"play"} ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":De?"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(),De?W.current&&(W.current.pause(),je(!1),mt(!1)):Lt()},children:De?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 T=[...c].sort((y,E)=>y.startTime-E.startTime).filter(y=>y.endTime<=A).sort((y,E)=>E.endTime-y.endTime)[0];if(T){const y=c.map(_=>_.id===T.id?{..._,endTime:A}:_),E=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(E),ve.debug("Adjusted end of previous segment to:",Y(A)),re(T.id),ue(!1)}else if(c.length>0){const y=[...c].sort((S,V)=>S.startTime-V.startTime);let E=!1,_=0;for(let S=0;S<y.length-1;S++){const V=y[S].endTime,B=y[S+1].startTime;if(A>V&&A<B){E=!0,_=V;break}}if(E){const S={id:Date.now(),chapterTitle:"segment",startTime:_,endTime:A},V=[...c,S],B=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(B),ve.debug("Created new segment in gap from",Y(_),"to",Y(A)),re(S.id),ue(!1)}else if(A<y[0].startTime){const S={id:Date.now(),chapterTitle:"segment",startTime:0,endTime:A},V=[...c,S],B=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(B),ve.debug("Created new segment from start to:",Y(A)),re(S.id),ue(!1)}else{const S=[...c].sort((V,B)=>B.endTime-V.endTime)[0];if(S&&S.endTime<D){const V=c.map(K=>K.id===S.id?{...K,endTime:D}:K),B=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(B),re(S.id),ue(!1)}}}else if(A>0){const y={id:Date.now(),chapterTitle:"segment",startTime:0,endTime:A},E=new CustomEvent("update-segments",{detail:{segments:[y],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(E),ve.debug("Created new segment from start to:",Y(A)),re(y.id),ue(!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 T=[...c].sort((y,E)=>y.startTime-E.startTime).filter(y=>y.startTime>=A).sort((y,E)=>y.startTime-E.startTime)[0];if(T){const y=c.map(_=>_.id===T.id?{..._,startTime:A}:_),E=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(E),ve.debug("Adjusted start of next segment to:",Y(A)),re(T.id),ue(!1)}else if(c.length>0){const y=[...c].sort((S,V)=>S.startTime-V.startTime);let E=!1,_=0;for(let S=0;S<y.length-1;S++){const V=y[S].endTime,B=y[S+1].startTime;if(A>V&&A<B){E=!0,_=B;break}}if(E){const S={id:Date.now(),chapterTitle:"segment",startTime:A,endTime:_},V=[...c,S],B=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(B),ve.debug("Created new segment in gap from",Y(A),"to",Y(_)),re(S.id),ue(!1)}else if(A<y[0].startTime){const S={id:Date.now(),chapterTitle:"segment",startTime:A,endTime:y[0].startTime},V=[...c,S],B=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(B),ve.debug("Created new segment from",Y(A),"to first segment"),re(S.id),ue(!1)}else if(A>y[y.length-1].endTime){const S={id:Date.now(),chapterTitle:"segment",startTime:A,endTime:D},V=[...c,S],B=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(B),ve.debug("Created new segment from",Y(A),"to end"),re(S.id),ue(!1)}else{const S=y[0];if(S&&S.startTime>0){const V=c.map(K=>K.id===S.id?{...K,startTime:0}:K),B=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(B),re(S.id),ue(!1)}}}else if(A<D){const y={id:Date.now(),chapterTitle:"segment",startTime:A,endTime:D},E=new CustomEvent("update-segments",{detail:{segments:[y],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(E),ve.debug("Created new segment from",Y(A),"to end"),re(y.id),ue(!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 R=p.currentTarget.value;try{const T=R.split(":");let y=0,E=0,_=0,S=0;if(T.length===3){y=parseInt(T[0]),E=parseInt(T[1]);const B=T[2].split(".");_=parseInt(B[0]),B.length>1&&(S=parseInt(B[1].padEnd(3,"0").substring(0,3)))}else if(T.length===2){E=parseInt(T[0]);const B=T[1].split(".");_=parseInt(B[0]),B.length>1&&(S=parseInt(B[1].padEnd(3,"0").substring(0,3)))}const V=y*3600+E*60+_+S/1e3;if(!isNaN(V)&&V>=0&&V<=D){he(V);const B=K=>{const Le=c.find(F=>{const Ke=K>=F.startTime&&K<=F.endTime,kt=Math.abs(K-F.startTime)<.001,bt=Math.abs(K-F.endTime)<.001;return Ke||kt||bt});if(J.current&&Xe.current){const F=J.current.getBoundingClientRect();let Ke;if(X>1)Ke=F.left-Xe.current.scrollLeft+K/D*F.width;else{const kt=K/D;Ke=F.left+F.width*kt}le({x:Ke,y:F.top-10}),ye(K),Le?(re(Le.id),ue(!1)):(re(null),ue(!0))}};setTimeout(()=>B(V),10)}}catch(T){console.error("Invalid time format:",T)}}}}),v.jsx("div",{className:"time-button-group",children:(()=>{const p=()=>{const R=c.find(T=>{const y=L>=T.startTime&&L<=T.endTime,E=Math.abs(L-T.startTime)<.001,_=Math.abs(L-T.endTime)<.001;return y||E||_});if(J.current&&Xe.current){const T=J.current.getBoundingClientRect();let y;if(X>1)y=T.left-Xe.current.scrollLeft+L/D*T.width;else{const E=L/D;y=T.left+T.width*E}if(le({x:y,y:T.top-10}),ye(L),R)re(R.id),ue(!1);else{const E=va(L);Ot(E),E>=.5?(re(null),ue(!0)):(re(null),ue(!1))}}};return v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"time-button",onClick:()=>{he(L-.01),setTimeout(p,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),v.jsx("button",{className:"time-button",onClick:()=>{he(L-.001),setTimeout(p,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{he(L+.001),setTimeout(p,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{he(L+.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:()=>ot(!Be),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"})})]}),Be&&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:()=>{Q(p),ot(!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:at?"#1976d2":"gray",fontSize:"12px",marginLeft:"10px",display:"flex",alignItems:"center",gap:"5px"},children:at?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..."]}):Te?`Auto saved: ${Te}`:"Not saved yet"}),v.jsx("div",{className:"save-buttons-row",children:v.jsx("button",{onClick:()=>In(!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:fa,onClose:()=>In(!1),title:"Save Chapters",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>In(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:Sr,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:Z,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:Qe,onClose:()=>{Ct(!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:Ft,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:Bt,onClose:()=>zt(!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:qt})]}),v.jsx("div",{className:"modal-choices",children:v.jsxs("button",{onClick:()=>zt(!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"]})})]})]})]}),gt&&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:L,onReset:D,onUndo:ge,onRedo:Ne,onPlaySegments:Me,onPlay:X,canUndo:c,canRedo:yt,isPlaying:me=!1,isPlayingSegments:ne=!1})=>{const[tt,oe]=q.useState(!1);q.useEffect(()=>{const Q=()=>{oe(window.innerWidth<=640)};return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[]);const ze=()=>{X()};return v.jsx("div",{className:"editing-tools-container",children:v.jsxs("div",{className:"flex-container single-row",children:[v.jsxs("div",{className:"button-group play-buttons-group",children:[v.jsx("button",{className:"button segments-button",onClick:Me,"data-tooltip":ne?"Stop chapters playback":"Play chapters in one continuous flow",style:{fontSize:"0.875rem"},children:ne?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:"Stop Preview"}),v.jsx("span",{className:"short-text",children:"Stop Preview"})]}):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 Preview"}),v.jsx("span",{className:"short-text",children:"Play Preview"})]})}),(!ne||!tt)&&v.jsx("button",{className:`button play-button ${ne?"greyed-out":""}`,onClick:ze,"data-tooltip":me?"Pause video":"Play full video",style:{fontSize:"0.875rem"},disabled:ne,children:me&&!ne?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":ne?"Disabled during preview":"Undo last action",disabled:!c||ne,onClick:ge,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":ne?"Disabled during preview":"Redo last undone action",disabled:!yt||ne,onClick:Ne,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:D,"data-tooltip":ne?"Disabled during preview":"Reset to full video",disabled:ne,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:L,selectedSegmentId:D})=>{const ge=[...L].sort((X,c)=>X.startTime-c.startTime),Ne=X=>{const c=new CustomEvent("delete-segment",{detail:{segmentId:X}});document.dispatchEvent(c)},Me=X=>`segment-default-color segment-color-${X%8+1}`;return ge.find(X=>X.id===D),v.jsxs("div",{className:"clip-segments-container",children:[v.jsx("h3",{className:"clip-segments-title",children:"Chapters"}),ge.map((X,c)=>v.jsxs("div",{className:`segment-item ${Me(c)} ${D===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:[wi(X.startTime)," - ",wi(X.endTime)]}),v.jsxs("div",{className:"segment-duration",children:["Duration: ",VS(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:()=>Ne(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)),ge.length===0&&v.jsx("div",{className:"empty-message",children:"No chapters created yet. Use the split button to create chapter segments."})]})},JS=({videoRef:L,onPlay:D})=>{const[ge,Ne]=q.useState(!1);q.useEffect(()=>{const c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);Ne(c)},[]),q.useEffect(()=>{const X=L.current;if(!X)return;const c=()=>{Ne(!1)};return X.addEventListener("play",c),()=>{X.removeEventListener("play",c)}},[L]);const Me=()=>{D()};return ge?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:Me,children:"Click to start editing..."})})}):null},ZS=()=>{const L=z=>{const te=z.split(":");if(te.length!==3)return 0;const Ee=parseInt(te[0],10)||0,Te=parseInt(te[1],10)||0,Pe=parseFloat(te[2])||0;return Ee*3600+Te*60+Pe},D=q.useRef(null),[ge,Ne]=q.useState(0),[Me,X]=q.useState(0),[c,yt]=q.useState(!1),[me,ne]=q.useState(!1),[tt,oe]=q.useState(0),[ze,Q]=q.useState(0),[he,W]=q.useState([]),[cn,gt]=q.useState(1),[De,Oe]=q.useState([]),[Lt,O]=q.useState(null),[J,$e]=q.useState([]),[dt,vt]=q.useState(-1),[Yt,_e]=q.useState(!1),[re,Ce]=q.useState(!1),[ue,pt]=q.useState(0);q.useEffect(()=>{var z;if(J.length>0){const te=((z=J[dt])==null?void 0:z.action)||"";te!=="save"&&te!=="save_copy"&&te!=="save_segments"&&_e(!0)}},[J,dt]),q.useEffect(()=>{const z=D.current;if(!z)return;const te=()=>{X(z.duration),Q(z.duration),(async()=>{var ht;let we=[];const lt=typeof window<"u"&&((ht=window.MEDIA_DATA)==null?void 0:ht.chapters)||[];if(lt.length>0)for(let Jt=0;Jt<lt.length;Jt++){const Wt=lt[Jt],fa=L(Wt.startTime),In=L(Wt.endTime),Z={id:Jt+1,chapterTitle:Wt.chapterTitle,startTime:fa,endTime:In};we.push(Z)}else we=[{id:1,chapterTitle:"segment",startTime:0,endTime:z.duration}];const _t={trimStart:0,trimEnd:z.duration,splitPoints:[],clipSegments:we};$e([_t]),vt(0),Oe(we)})()},Ee=()=>{Ne(z.currentTime)},Te=()=>{yt(!0),Kt(!0)},Pe=()=>{yt(!1)},at=()=>{yt(!1),z.currentTime=tt};return z.addEventListener("loadedmetadata",te),z.addEventListener("timeupdate",Ee),z.addEventListener("play",Te),z.addEventListener("pause",Pe),z.addEventListener("ended",at),()=>{z.removeEventListener("loadedmetadata",te),z.removeEventListener("timeupdate",Ee),z.removeEventListener("play",Te),z.removeEventListener("pause",Pe),z.removeEventListener("ended",at)}},[]);const le=z=>{const te=D.current;if(!te)return;const Ee=!te.paused;te.currentTime=z,Ne(z),typeof window<"u"&&(window.lastSeekedPosition=z),Ee&&te.play().then(()=>{yt(!0)}).catch(Te=>{console.error("Error resuming playback:",Te),yt(!1)})},A=z=>{const te={trimStart:tt,trimEnd:ze,splitPoints:[...he],clipSegments:JSON.parse(JSON.stringify(De)),action:z||"manual_save"},Ee=J[dt],Te=()=>{if(!Ee||Ee.clipSegments.length!==te.clipSegments.length)return!0;for(let Ze=0;Ze<te.clipSegments.length;Ze++){const we=Ee.clipSegments[Ze],lt=te.clipSegments[Ze];if(!we||!lt||Math.abs(we.startTime-lt.startTime)>.001||Math.abs(we.endTime-lt.endTime)>.001)return!0}return!1},Pe=!Ee||Ee.trimStart!==te.trimStart||Ee.trimEnd!==te.trimEnd||Ee.splitPoints.length!==te.splitPoints.length||Te(),at=te.action!==void 0;if(Pe||at){const Ze=dt;$e(we=>Ze<we.length-1?[...we.slice(0,Ze+1),te]:[...we,te]),vt(we=>we+1)}};q.useEffect(()=>{const z=te=>{if(te.detail){const{time:Ee,isStart:Te,recordHistory:Pe,action:at}=te.detail;Te?oe(Ee):Q(Ee),Pe&&setTimeout(()=>{A(at||(Te?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",z),()=>{document.removeEventListener("update-trim",z)}},[]),q.useEffect(()=>{const z=Te=>{if(Te.detail&&Te.detail.segments){const Pe=Te.detail.recordHistory!==!1,at=Te.detail.action||"update_segments";Oe(Te.detail.segments),Pe&&setTimeout(()=>{const Ze=JSON.parse(JSON.stringify(Te.detail.segments)),we={trimStart:tt,trimEnd:ze,splitPoints:[...he],clipSegments:Ze,action:at},lt=dt;$e(_t=>lt<_t.length-1?[..._t.slice(0,lt+1),we]:[..._t,we]),vt(_t=>_t+1)},20)}},te=async Te=>{const Pe=Te;if(Pe.detail&&typeof Pe.detail.time=="number"&&typeof Pe.detail.segmentId=="number"){const at=Pe.detail.time,Ze=Pe.detail.segmentId;le(at);const we=De.find(Wt=>Wt.id===Ze);if(!we||at<=we.startTime||at>=we.endTime)return;const lt=[...De],_t=lt.findIndex(Wt=>Wt.id===Ze);if(_t===-1)return;lt.splice(_t,1);const ht={id:Date.now(),chapterTitle:`${we.chapterTitle}-A`,startTime:we.startTime,endTime:at},Jt={id:Date.now()+1,chapterTitle:`${we.chapterTitle}-B`,startTime:at,endTime:we.endTime};lt.push(ht,Jt),lt.sort((Wt,fa)=>Wt.startTime-fa.startTime),Oe(lt),A("split_segment")}},Ee=async Te=>{const Pe=Te;if(Pe.detail&&typeof Pe.detail.segmentId=="number"){const at=Pe.detail.segmentId,Ze=De.filter(we=>we.id!==at);if(Ze.length!==De.length){if(Ze.length===0&&D.current){const we={id:Date.now(),chapterTitle:"segment",startTime:0,endTime:D.current.duration};oe(0),Q(D.current.duration),W([]),Oe([we])}else Oe(Ze);A("delete_segment")}}};return document.addEventListener("update-segments",z),document.addEventListener("split-segment",te),document.addEventListener("delete-segment",Ee),()=>{document.removeEventListener("update-segments",z),document.removeEventListener("split-segment",te),document.removeEventListener("delete-segment",Ee)}},[De,Me]);const ye=z=>{oe(z),A("adjust_trim_start")},Be=z=>{Q(z),A("adjust_trim_end")},ot=async()=>{if(D.current&&!he.includes(ge)){const z=[...he,ge].sort((Te,Pe)=>Te-Pe);W(z);const te=[];let Ee=0;for(let Te=0;Te<=z.length;Te++){const Pe=Te<z.length?z[Te]:Me;Ee<Pe&&(te.push({id:Date.now()+Te,chapterTitle:`Segment ${Te+1}`,startTime:Ee,endTime:Pe}),Ee=Pe)}Oe(te),A("create_split_points")}},Et=async()=>{if(oe(0),Q(Me),W([]),!D.current)return;const z={id:Date.now(),chapterTitle:"segment",startTime:0,endTime:Me};Oe([z]),A("reset_all")},Ot=()=>{if(dt>0){const z=J[dt-1];ve.debug(`** UNDO ** to position ${dt-1}, action: ${z.action}, segments: ${z.clipSegments.length}`),ve.debug("Segment details after undo:",z.clipSegments.map(te=>`ID: ${te.id}, Time: ${Y(te.startTime)} - ${Y(te.endTime)}`)),oe(z.trimStart),Q(z.trimEnd),W([...z.splitPoints]),Oe(JSON.parse(JSON.stringify(z.clipSegments))),vt(dt-1)}},Vt=()=>{if(dt<J.length-1){const z=J[dt+1];ve.debug(`** REDO ** to position ${dt+1}, action: ${z.action}, segments: ${z.clipSegments.length}`),ve.debug("Segment details after redo:",z.clipSegments.map(te=>`ID: ${te.id}, Time: ${Y(te.startTime)} - ${Y(te.endTime)}`)),oe(z.trimStart),Q(z.trimEnd),W([...z.splitPoints]),Oe(JSON.parse(JSON.stringify(z.clipSegments))),vt(dt+1)}},je=z=>{gt(z)},Ve=()=>{const z=D.current;z&&(z.muted=!z.muted,ne(!me))},Je=(z,te)=>{Oe(Ee=>Ee.map(Te=>Te.id===z?{...Te,...te}:Te)),_e(!0)},en=async z=>{var te;try{const Ee=(te=window.MEDIA_DATA)==null?void 0:te.mediaId;if(!Ee){console.error("No media ID found");return}const Pe={chapters:z.map(_t=>({startTime:_t.from,endTime:_t.to,chapterTitle:_t.chapterTitle}))},at=nt(),Ze={"Content-Type":"application/json"};at&&(Ze["X-CSRFToken"]=at);const we=await fetch(`/api/v1/media/${Ee}/chapters`,{method:"POST",headers:Ze,body:JSON.stringify(Pe)});if(!we.ok)throw new Error(`Failed to save chapters: ${we.status}`);const lt=await we.json();_e(!1)}catch(Ee){console.error("Error saving chapters:",Ee)}},nt=()=>{var Te;const Ee=`; ${document.cookie}`.split("; csrftoken=");return Ee.length===2&&((Te=Ee.pop())==null?void 0:Te.split(";").shift())||""},It=z=>{O(z)},mt=z=>{(!Xe||hn)&&le(z)},Xe=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[hn,Kt]=q.useState(!1);return q.useEffect(()=>{if(!re||!D.current)return;const z=D.current,te=[...De].sort((Te,Pe)=>Te.startTime-Pe.startTime),Ee=()=>{const Te=te[ue];if(!Te)return;const Pe=z.currentTime;if(Pe<Te.startTime){z.currentTime=Te.startTime;return}if(Pe>=Te.endTime-.01)if(ue<te.length-1){const at=te[ue+1];z.currentTime=at.startTime,pt(ue+1),z.paused&&z.play().catch(Ze=>{console.error("Error continuing segment playback:",Ze)})}else z.pause(),Ce(!1),pt(0),z.removeEventListener("timeupdate",Ee)};return z.addEventListener("timeupdate",Ee),z.paused&&te.length>0&&(z.currentTime=te[0].startTime,z.play().catch(console.error)),()=>{z.removeEventListener("timeupdate",Ee)}},[re,ue,De]),q.useEffect(()=>{const z=te=>{const{segmentIndex:Ee}=te.detail;re&&Ee!==ue&&pt(Ee)};return document.addEventListener("update-segment-index",z),()=>{document.removeEventListener("update-segment-index",z)}},[re,ue]),{videoRef:D,currentTime:ge,duration:Me,isPlaying:c,setIsPlaying:yt,isMuted:me,isPlayingSegments:re,trimStart:tt,trimEnd:ze,splitPoints:he,zoomLevel:cn,clipSegments:De,selectedSegmentId:Lt,hasUnsavedChanges:Yt,historyPosition:dt,history:J,handleTrimStartChange:ye,handleTrimEndChange:Be,handleZoomChange:je,handleMobileSafeSeek:mt,handleSplit:ot,handleReset:Et,handleUndo:Ot,handleRedo:Vt,handlePlaySegments:()=>{const z=D.current;if(!(!z||De.length===0))if(re)z.pause(),Ce(!1),pt(0);else{Ce(!0),pt(0);const te=[...De].sort((Ee,Te)=>Ee.startTime-Te.startTime);z.currentTime=te[0].startTime,z.play().catch(Ee=>{console.error("Error starting segments playback:",Ee),Ce(!1)})}},toggleMute:Ve,handleSegmentUpdate:Je,handleChapterSave:en,handleSelectedSegmentChange:It,isMobile:Xe,videoInitialized:hn,setVideoInitialized:Kt}},eT=()=>{const{videoRef:L,currentTime:D,duration:ge,isPlaying:Ne,setIsPlaying:Me,isMuted:X,trimStart:c,trimEnd:yt,splitPoints:me,zoomLevel:ne,clipSegments:tt,selectedSegmentId:oe,hasUnsavedChanges:ze,historyPosition:Q,history:he,handleTrimStartChange:W,handleTrimEndChange:cn,handleZoomChange:gt,handleMobileSafeSeek:De,handleSplit:Oe,handleReset:Lt,handleUndo:O,handleRedo:J,toggleMute:$e,handleSegmentUpdate:dt,handleChapterSave:vt,handleSelectedSegmentChange:Yt,isMobile:_e,videoInitialized:re,setVideoInitialized:Ce,isPlayingSegments:ue,handlePlaySegments:pt}=ZS(),le=()=>{if(!L.current)return;const A=L.current;if(Ne){A.pause(),Me(!1);return}const ye=Number(A.currentTime.toFixed(6));let Be=ge,ot=null,Et=null;const Ot=[...tt].sort((je,Ve)=>je.startTime-Ve.startTime);ot=Ot.find(je=>{const Ve=Number(je.startTime.toFixed(6)),Je=Number(je.endTime.toFixed(6));return ye>Ve&&ye<Je||ye===Ve}),ot||(Et=Ot.find(je=>Number(je.startTime.toFixed(6))>ye)),ot?Be=Number(ot.endTime.toFixed(6)):Et&&(Be=Number(Et.startTime.toFixed(6)));const Vt=()=>{if(!A)return;const je=Number(A.currentTime.toFixed(6));if(Number((Be-je).toFixed(6))<=0||je>=Be){A.pause();const Je=()=>{if(!A)return;A.currentTime=Be,De(Be);const en=Number(A.currentTime.toFixed(6)),nt=Number(Math.abs(en-Be).toFixed(6));ve.debug("Position verification:",{target:Y(Be),actual:Y(en),difference:nt}),nt>0&&(A.currentTime=Be,De(Be))};Je(),setTimeout(Je,5),setTimeout(Je,10),setTimeout(Je,20),setTimeout(Je,50),A.removeEventListener("timeupdate",Vt),Me(!1),ve.debug("Stopped at position:",{target:Y(Be),actual:Y(A.currentTime),type:ot?"segment end":Et?"next segment start":"end of video",segment:ot?{id:ot.id,start:Y(ot.startTime),end:Y(ot.endTime)}:null,nextSegment:Et?{id:Et.id,start:Y(Et.startTime),end:Y(Et.endTime)}:null});return}};A.addEventListener("timeupdate",Vt),A.play().then(()=>{Me(!0),Ce(!0),ve.debug("Playback started:",{from:Y(ye),to:Y(Be),currentSegment:ot?{id:ot.id,start:Y(ot.startTime),end:Y(ot.endTime)}:"None",nextSegment:Et?{id:Et.id,start:Y(Et.startTime),end:Y(Et.endTime)}:"None"})}).catch(je=>{console.error("Error playing video:",je)})};return v.jsxs("div",{className:"bg-background min-h-screen",children:[v.jsx(JS,{videoRef:L,onPlay:le}),v.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[v.jsx(BS,{videoRef:L,currentTime:D,duration:ge,isPlaying:Ne,isMuted:X,onPlayPause:le,onSeek:De,onToggleMute:$e}),v.jsx(QS,{onSplit:Oe,onReset:Lt,onUndo:O,onRedo:J,onPlaySegments:pt,onPlay:le,isPlaying:Ne,isPlayingSegments:ue,canUndo:Q>0,canRedo:Q<he.length-1}),v.jsx(XS,{currentTime:D,duration:ge,trimStart:c,trimEnd:yt,splitPoints:me,zoomLevel:ne,clipSegments:tt,selectedSegmentId:oe,onSelectedSegmentChange:Yt,onSegmentUpdate:dt,onChapterSave:vt,onTrimStartChange:W,onTrimEndChange:cn,onZoomChange:gt,onSeek:De,videoRef:L,hasUnsavedChanges:ze,isIOSUninitialized:_e&&!re,isPlaying:Ne,setIsPlaying:Me,onPlayPause:le,isPlayingSegments:ue}),v.jsx(KS,{segments:tt,selectedSegmentId:oe})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Rm=()=>{const L=document.getElementById("chapters-editor-root");L&&gm(L).render(v.jsx(eT,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Rm):Rm()})();
//# sourceMappingURL=chapters-editor.js.map