mediacms/static/video_editor/video-editor.js
Yiannis Christodoulou b6b160d4f8 build assets
2025-06-11 04:13:35 +03:00

204 lines
398 KiB
JavaScript

(function(){"use strict";var dm={exports:{}},Kc={exports:{}},rl={exports:{}};rl.exports;var vm;function HS(){return vm||(vm=1,function(C,k){/**
* @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 me="18.3.1",Se=Symbol.for("react.element"),ve=Symbol.for("react.portal"),Ee=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),oe=Symbol.for("react.context"),rt=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),kt=Symbol.for("react.offscreen"),xt=Symbol.iterator,Rt="@@iterator";function Xe(s){if(s===null||typeof s!="object")return null;var h=xt&&s[xt]||s[Rt];return typeof h=="function"?h:null}var xe={current:null},mt={transition:null},Re={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},et={current:null},B={},Ot=null;function at(s){Ot=s}B.setExtraStackFrame=function(s){Ot=s},B.getCurrentStack=null,B.getStackAddendum=function(){var s="";Ot&&(s+=Ot);var h=B.getCurrentStack;return h&&(s+=h()||""),s};var Fe=!1,ee=!1,Je=!1,X=!1,At=!1,Be={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:mt,ReactCurrentOwner:et};Be.ReactDebugCurrentFrame=B,Be.ReactCurrentActQueue=Re;function I(s){{for(var h=arguments.length,M=new Array(h>1?h-1:0),O=1;O<h;O++)M[O-1]=arguments[O];He("warn",s,M)}}function $(s){{for(var h=arguments.length,M=new Array(h>1?h-1:0),O=1;O<h;O++)M[O-1]=arguments[O];He("error",s,M)}}function He(s,h,M){{var O=Be.ReactDebugCurrentFrame,K=O.getStackAddendum();K!==""&&(h+="%s",M=M.concat([K]));var Oe=M.map(function(be){return String(be)});Oe.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,Oe)}}var Ve={};function nt(s,h){{var M=s.constructor,O=M&&(M.displayName||M.name)||"ReactClass",K=O+"."+h;if(Ve[K])return;$("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.",h,O),Ve[K]=!0}}var ht={isMounted:function(s){return!1},enqueueForceUpdate:function(s,h,M){nt(s,"forceUpdate")},enqueueReplaceState:function(s,h,M,O){nt(s,"replaceState")},enqueueSetState:function(s,h,M,O){nt(s,"setState")}},Ze=Object.assign,Ae={};Object.freeze(Ae);function Ne(s,h,M){this.props=s,this.context=h,this.refs=Ae,this.updater=M||ht}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(s,h){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,h,"setState")},Ne.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var st={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)."]},$t=function(s,h){Object.defineProperty(Ne.prototype,s,{get:function(){I("%s(...) is deprecated in plain JavaScript React classes. %s",h[0],h[1])}})};for(var Ie in st)st.hasOwnProperty(Ie)&&$t(Ie,st[Ie])}function Nt(){}Nt.prototype=Ne.prototype;function it(s,h,M){this.props=s,this.context=h,this.refs=Ae,this.updater=M||ht}var We=it.prototype=new Nt;We.constructor=it,Ze(We,Ne.prototype),We.isPureReactComponent=!0;function Jt(){var s={current:null};return Object.seal(s),s}var xn=Array.isArray;function Xt(s){return xn(s)}function cn(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,M=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return M}}function Yt(s){try{return an(s),!1}catch{return!0}}function an(s){return""+s}function Rn(s){if(Yt(s))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cn(s)),an(s)}function U(s,h,M){var O=s.displayName;if(O)return O;var K=h.displayName||h.name||"";return K!==""?M+"("+K+")":M}function Y(s){return s.displayName||"Context"}function pe(s){if(s==null)return null;if(typeof s.tag=="number"&&$("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 Ee:return"Fragment";case ve:return"Portal";case Z:return"Profiler";case d:return"StrictMode";case G:return"Suspense";case j:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case oe:var h=s;return Y(h)+".Consumer";case ye:var M=s;return Y(M._context)+".Provider";case rt:return U(s,s.render,"ForwardRef");case ne:var O=s.displayName||null;return O!==null?O:pe(s.type)||"Memo";case Ue:{var K=s,Oe=K._payload,be=K._init;try{return pe(be(Oe))}catch{return null}}}return null}var ue=Object.prototype.hasOwnProperty,Ce={key:!0,ref:!0,__self:!0,__source:!0},De,yt,Le;Le={};function ct(s){if(ue.call(s,"ref")){var h=Object.getOwnPropertyDescriptor(s,"ref").get;if(h&&h.isReactWarning)return!1}return s.ref!==void 0}function wt(s){if(ue.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function un(s,h){var M=function(){De||(De=!0,$("%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)",h))};M.isReactWarning=!0,Object.defineProperty(s,"key",{get:M,configurable:!0})}function wn(s,h){var M=function(){yt||(yt=!0,$("%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)",h))};M.isReactWarning=!0,Object.defineProperty(s,"ref",{get:M,configurable:!0})}function Q(s){if(typeof s.ref=="string"&&et.current&&s.__self&&et.current.stateNode!==s.__self){var h=pe(et.current.type);Le[h]||($('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',h,s.ref),Le[h]=!0)}}var ge=function(s,h,M,O,K,Oe,be){var qe={$$typeof:Se,type:s,key:h,ref:M,props:be,_owner:Oe};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function Pe(s,h,M){var O,K={},Oe=null,be=null,qe=null,ft=null;if(h!=null){ct(h)&&(be=h.ref,Q(h)),wt(h)&&(Rn(h.key),Oe=""+h.key),qe=h.__self===void 0?null:h.__self,ft=h.__source===void 0?null:h.__source;for(O in h)ue.call(h,O)&&!Ce.hasOwnProperty(O)&&(K[O]=h[O])}var jt=arguments.length-2;if(jt===1)K.children=M;else if(jt>1){for(var Wt=Array(jt),qt=0;qt<jt;qt++)Wt[qt]=arguments[qt+2];Object.freeze&&Object.freeze(Wt),K.children=Wt}if(s&&s.defaultProps){var lt=s.defaultProps;for(O in lt)K[O]===void 0&&(K[O]=lt[O])}if(Oe||be){var nn=typeof s=="function"?s.displayName||s.name||"Unknown":s;Oe&&un(K,nn),be&&wn(K,nn)}return ge(s,Oe,be,qe,ft,et.current,K)}function gt(s,h){var M=ge(s.type,h,s.ref,s._self,s._source,s._owner,s.props);return M}function Pt(s,h,M){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var O,K=Ze({},s.props),Oe=s.key,be=s.ref,qe=s._self,ft=s._source,jt=s._owner;if(h!=null){ct(h)&&(be=h.ref,jt=et.current),wt(h)&&(Rn(h.key),Oe=""+h.key);var Wt;s.type&&s.type.defaultProps&&(Wt=s.type.defaultProps);for(O in h)ue.call(h,O)&&!Ce.hasOwnProperty(O)&&(h[O]===void 0&&Wt!==void 0?K[O]=Wt[O]:K[O]=h[O])}var qt=arguments.length-2;if(qt===1)K.children=M;else if(qt>1){for(var lt=Array(qt),nn=0;nn<qt;nn++)lt[nn]=arguments[nn+2];K.children=lt}return ge(s.type,Oe,be,qe,ft,jt,K)}function Qt(s){return typeof s=="object"&&s!==null&&s.$$typeof===Se}var Kt=".",Dn=":";function It(s){var h=/[=:]/g,M={"=":"=0",":":"=2"},O=s.replace(h,function(K){return M[K]});return"$"+O}var Vt=!1,bt=/\/+/g;function ua(s){return s.replace(bt,"$&/")}function ha(s,h){return typeof s=="object"&&s!==null&&s.key!=null?(Rn(s.key),It(""+s.key)):h.toString(36)}function Yn(s,h,M,O,K){var Oe=typeof s;(Oe==="undefined"||Oe==="boolean")&&(s=null);var be=!1;if(s===null)be=!0;else switch(Oe){case"string":case"number":be=!0;break;case"object":switch(s.$$typeof){case Se:case ve:be=!0}}if(be){var qe=s,ft=K(qe),jt=O===""?Kt+ha(qe,0):O;if(Xt(ft)){var Wt="";jt!=null&&(Wt=ua(jt)+"/"),Yn(ft,h,Wt,"",function(cf){return cf})}else ft!=null&&(Qt(ft)&&(ft.key&&(!qe||qe.key!==ft.key)&&Rn(ft.key),ft=gt(ft,M+(ft.key&&(!qe||qe.key!==ft.key)?ua(""+ft.key)+"/":"")+jt)),h.push(ft));return 1}var qt,lt,nn=0,vn=O===""?Kt:O+Dn;if(Xt(s))for(var xi=0;xi<s.length;xi++)qt=s[xi],lt=vn+ha(qt,xi),nn+=Yn(qt,h,M,lt,K);else{var pl=Xe(s);if(typeof pl=="function"){var Sr=s;pl===Sr.entries&&(Vt||I("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Vt=!0);for(var ml=pl.call(Sr),hl,sf=0;!(hl=ml.next()).done;)qt=hl.value,lt=vn+ha(qt,sf++),nn+=Yn(qt,h,M,lt,K)}else if(Oe==="object"){var Ku=String(s);throw new Error("Objects are not valid as a React child (found: "+(Ku==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Ku)+"). If you meant to render a collection of children, use an array instead.")}}return nn}function nr(s,h,M){if(s==null)return s;var O=[],K=0;return Yn(s,O,"","",function(Oe){return h.call(M,Oe,K++)}),O}function Vr(s){var h=0;return nr(s,function(){h++}),h}function Pr(s,h,M){nr(s,function(){h.apply(this,arguments)},M)}function hr(s){return nr(s,function(h){return h})||[]}function Ha(s){if(!Qt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function Fa(s){var h={$$typeof:oe,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};h.Provider={$$typeof:ye,_context:h};var M=!1,O=!1,K=!1;{var Oe={$$typeof:oe,_context:h};Object.defineProperties(Oe,{Provider:{get:function(){return O||(O=!0,$("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),h.Provider},set:function(be){h.Provider=be}},_currentValue:{get:function(){return h._currentValue},set:function(be){h._currentValue=be}},_currentValue2:{get:function(){return h._currentValue2},set:function(be){h._currentValue2=be}},_threadCount:{get:function(){return h._threadCount},set:function(be){h._threadCount=be}},Consumer:{get:function(){return M||(M=!0,$("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),h.Consumer}},displayName:{get:function(){return h.displayName},set:function(be){K||(I("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",be),K=!0)}}}),h.Consumer=Oe}return h._currentRenderer=null,h._currentRenderer2=null,h}var ya=-1,Kn=0,y=1,F=2;function _(s){if(s._status===ya){var h=s._result,M=h();if(M.then(function(Oe){if(s._status===Kn||s._status===ya){var be=s;be._status=y,be._result=Oe}},function(Oe){if(s._status===Kn||s._status===ya){var be=s;be._status=F,be._result=Oe}}),s._status===ya){var O=s;O._status=Kn,O._result=M}}if(s._status===y){var K=s._result;return K===void 0&&$(`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?`,K),"default"in K||$(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,K),K.default}else throw s._result}function S(s){var h={_status:ya,_result:s},M={$$typeof:Ue,_payload:h,_init:_};{var O,K;Object.defineProperties(M,{defaultProps:{configurable:!0,get:function(){return O},set:function(Oe){$("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."),O=Oe,Object.defineProperty(M,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return K},set:function(Oe){$("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."),K=Oe,Object.defineProperty(M,"propTypes",{enumerable:!0})}}})}return M}function w(s){s!=null&&s.$$typeof===ne?$("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?$("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&$("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)&&$("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var h={$$typeof:rt,render:s};{var M;Object.defineProperty(h,"displayName",{enumerable:!1,configurable:!0,get:function(){return M},set:function(O){M=O,!s.name&&!s.displayName&&(s.displayName=O)}})}return h}var c;c=Symbol.for("react.module.reference");function p(s){return!!(typeof s=="string"||typeof s=="function"||s===Ee||s===Z||At||s===d||s===G||s===j||X||s===kt||Fe||ee||Je||typeof s=="object"&&s!==null&&(s.$$typeof===Ue||s.$$typeof===ne||s.$$typeof===ye||s.$$typeof===oe||s.$$typeof===rt||s.$$typeof===c||s.getModuleId!==void 0))}function T(s,h){p(s)||$("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var M={$$typeof:ne,type:s,compare:h===void 0?null:h};{var O;Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(K){O=K,!s.name&&!s.displayName&&(s.displayName=K)}})}return M}function E(){var s=xe.current;return s===null&&$(`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 h=E();if(s._context!==void 0){var M=s._context;M.Consumer===s?$("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?"):M.Provider===s&&$("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return h.useContext(s)}function ae(s){var h=E();return h.useState(s)}function H(s,h,M){var O=E();return O.useReducer(s,h,M)}function le(s){var h=E();return h.useRef(s)}function Qe(s,h){var M=E();return M.useEffect(s,h)}function _e(s,h){var M=E();return M.useInsertionEffect(s,h)}function ot(s,h){var M=E();return M.useLayoutEffect(s,h)}function fn(s,h){var M=E();return M.useCallback(s,h)}function _n(s,h){var M=E();return M.useMemo(s,h)}function en(s,h,M){var O=E();return O.useImperativeHandle(s,h,M)}function Ft(s,h){{var M=E();return M.useDebugValue(s,h)}}function Me(){var s=E();return s.useTransition()}function Dt(s){var h=E();return h.useDeferredValue(s)}function Zn(){var s=E();return s.useId()}function yr(s,h,M){var O=E();return O.useSyncExternalStore(s,h,M)}var Va=0,Br,ga,ba,$r,gi,dn,_t;function Sa(){}Sa.__reactDisabledLog=!0;function Ta(){{if(Va===0){Br=console.log,ga=console.info,ba=console.warn,$r=console.error,gi=console.group,dn=console.groupCollapsed,_t=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Sa,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Va++}}function sa(){{if(Va--,Va===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ze({},s,{value:Br}),info:Ze({},s,{value:ga}),warn:Ze({},s,{value:ba}),error:Ze({},s,{value:$r}),group:Ze({},s,{value:gi}),groupCollapsed:Ze({},s,{value:dn}),groupEnd:Ze({},s,{value:_t})})}Va<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var bi=Be.ReactCurrentDispatcher,Yr;function ao(s,h,M){{if(Yr===void 0)try{throw Error()}catch(K){var O=K.stack.trim().match(/\n( *(at )?)/);Yr=O&&O[1]||""}return`
`+Yr+s}}var Si=!1,ro;{var ol=typeof WeakMap=="function"?WeakMap:Map;ro=new ol}function Yu(s,h){if(!s||Si)return"";{var M=ro.get(s);if(M!==void 0)return M}var O;Si=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Oe;Oe=bi.current,bi.current=null,Ta();try{if(h){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(vn){O=vn}Reflect.construct(s,[],be)}else{try{be.call()}catch(vn){O=vn}s.call(be.prototype)}}else{try{throw Error()}catch(vn){O=vn}s()}}catch(vn){if(vn&&O&&typeof vn.stack=="string"){for(var qe=vn.stack.split(`
`),ft=O.stack.split(`
`),jt=qe.length-1,Wt=ft.length-1;jt>=1&&Wt>=0&&qe[jt]!==ft[Wt];)Wt--;for(;jt>=1&&Wt>=0;jt--,Wt--)if(qe[jt]!==ft[Wt]){if(jt!==1||Wt!==1)do if(jt--,Wt--,Wt<0||qe[jt]!==ft[Wt]){var qt=`
`+qe[jt].replace(" at new "," at ");return s.displayName&&qt.includes("<anonymous>")&&(qt=qt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ro.set(s,qt),qt}while(jt>=1&&Wt>=0);break}}}finally{Si=!1,bi.current=Oe,sa(),Error.prepareStackTrace=K}var lt=s?s.displayName||s.name:"",nn=lt?ao(lt):"";return typeof s=="function"&&ro.set(s,nn),nn}function ll(s,h,M){return Yu(s,!1)}function af(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ti(s,h,M){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return ao(s);switch(s){case G:return ao("Suspense");case j:return ao("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case rt:return ll(s.render);case ne:return Ti(s.type,h,M);case Ue:{var O=s,K=O._payload,Oe=O._init;try{return Ti(Oe(K),h,M)}catch{}}}return""}var Iu={},ul=Be.ReactDebugCurrentFrame;function Et(s){if(s){var h=s._owner,M=Ti(s.type,s._source,h?h.type:null);ul.setExtraStackFrame(M)}else ul.setExtraStackFrame(null)}function rf(s,h,M,O,K){{var Oe=Function.call.bind(ue);for(var be in s)if(Oe(s,be)){var qe=void 0;try{if(typeof s[be]!="function"){var ft=Error((O||"React class")+": "+M+" type `"+be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[be]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ft.name="Invariant Violation",ft}qe=s[be](h,be,O,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(jt){qe=jt}qe&&!(qe instanceof Error)&&(Et(K),$("%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).",O||"React class",M,be,typeof qe),Et(null)),qe instanceof Error&&!(qe.message in Iu)&&(Iu[qe.message]=!0,Et(K),$("Failed %s type: %s",M,qe.message),Et(null))}}}function gr(s){if(s){var h=s._owner,M=Ti(s.type,s._source,h?h.type:null);at(M)}else at(null)}var Ke;Ke=!1;function sl(){if(et.current){var s=pe(et.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function Jn(s){if(s!==void 0){var h=s.fileName.replace(/^.*[\\\/]/,""),M=s.lineNumber;return`
Check your code at `+h+":"+M+"."}return""}function Ei(s){return s!=null?Jn(s.__source):""}var Ir={};function of(s){var h=sl();if(!h){var M=typeof s=="string"?s:s.displayName||s.name;M&&(h=`
Check the top-level render call using <`+M+">.")}return h}function Mn(s,h){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var M=of(h);if(!Ir[M]){Ir[M]=!0;var O="";s&&s._owner&&s._owner!==et.current&&(O=" It was passed a child from "+pe(s._owner.type)+"."),gr(s),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,O),gr(null)}}}function tn(s,h){if(typeof s=="object"){if(Xt(s))for(var M=0;M<s.length;M++){var O=s[M];Qt(O)&&Mn(O,h)}else if(Qt(s))s._store&&(s._store.validated=!0);else if(s){var K=Xe(s);if(typeof K=="function"&&K!==s.entries)for(var Oe=K.call(s),be;!(be=Oe.next()).done;)Qt(be.value)&&Mn(be.value,h)}}}function Wu(s){{var h=s.type;if(h==null||typeof h=="string")return;var M;if(typeof h=="function")M=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===rt||h.$$typeof===ne))M=h.propTypes;else return;if(M){var O=pe(h);rf(M,s.props,"prop",O,s)}else if(h.PropTypes!==void 0&&!Ke){Ke=!0;var K=pe(h);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ma(s){{for(var h=Object.keys(s.props),M=0;M<h.length;M++){var O=h[M];if(O!=="children"&&O!=="key"){gr(s),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",O),gr(null);break}}s.ref!==null&&(gr(s),$("Invalid attribute `ref` supplied to `React.Fragment`."),gr(null))}}function ea(s,h,M){var O=p(s);if(!O){var K="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(K+=" 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 Oe=Ei(h);Oe?K+=Oe:K+=sl();var be;s===null?be="null":Xt(s)?be="array":s!==void 0&&s.$$typeof===Se?(be="<"+(pe(s.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):be=typeof s,$("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,K)}var qe=Pe.apply(this,arguments);if(qe==null)return qe;if(O)for(var ft=2;ft<arguments.length;ft++)tn(arguments[ft],s);return s===Ee?Ma(qe):Wu(qe),qe}var Pa=!1;function lf(s){var h=ea.bind(null,s);return h.type=s,Pa||(Pa=!0,I("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(h,"type",{enumerable:!1,get:function(){return I("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),h}function cl(s,h,M){for(var O=Pt.apply(this,arguments),K=2;K<arguments.length;K++)tn(arguments[K],O.type);return Wu(O),O}function qu(s,h){var M=mt.transition;mt.transition={};var O=mt.transition;mt.transition._updatedFibers=new Set;try{s()}finally{if(mt.transition=M,M===null&&O._updatedFibers){var K=O._updatedFibers.size;K>10&&I("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."),O._updatedFibers.clear()}}}var fl=!1,io=null;function uf(s){if(io===null)try{var h=("require"+Math.random()).slice(0,7),M=C&&C[h];io=M.call(C,"timers").setImmediate}catch{io=function(K){fl===!1&&(fl=!0,typeof MessageChannel>"u"&&$("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 Oe=new MessageChannel;Oe.port1.onmessage=K,Oe.port2.postMessage(void 0)}}return io(s)}var Wr=0,Ci=!1;function dl(s){{var h=Wr;Wr++,Re.current===null&&(Re.current=[]);var M=Re.isBatchingLegacy,O;try{if(Re.isBatchingLegacy=!0,O=s(),!M&&Re.didScheduleLegacyUpdate){var K=Re.current;K!==null&&(Re.didScheduleLegacyUpdate=!1,uo(K))}}catch(lt){throw br(h),lt}finally{Re.isBatchingLegacy=M}if(O!==null&&typeof O=="object"&&typeof O.then=="function"){var Oe=O,be=!1,qe={then:function(lt,nn){be=!0,Oe.then(function(vn){br(h),Wr===0?oo(vn,lt,nn):lt(vn)},function(vn){br(h),nn(vn)})}};return!Ci&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){be||(Ci=!0,$("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 () => ...);"))}),qe}else{var ft=O;if(br(h),Wr===0){var jt=Re.current;jt!==null&&(uo(jt),Re.current=null);var Wt={then:function(lt,nn){Re.current===null?(Re.current=[],oo(ft,lt,nn)):lt(ft)}};return Wt}else{var qt={then:function(lt,nn){lt(ft)}};return qt}}}}function br(s){s!==Wr-1&&$("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Wr=s}function oo(s,h,M){{var O=Re.current;if(O!==null)try{uo(O),uf(function(){O.length===0?(Re.current=null,h(s)):oo(s,h,M)})}catch(K){M(K)}else h(s)}}var lo=!1;function uo(s){if(!lo){lo=!0;var h=0;try{for(;h<s.length;h++){var M=s[h];do M=M(!0);while(M!==null)}s.length=0}catch(O){throw s=s.slice(h+1),O}finally{lo=!1}}}var Gu=ea,Xu=cl,vl=lf,Qu={map:nr,forEach:Pr,count:Vr,toArray:hr,only:Ha};k.Children=Qu,k.Component=Ne,k.Fragment=Ee,k.Profiler=Z,k.PureComponent=it,k.StrictMode=d,k.Suspense=G,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Be,k.act=dl,k.cloneElement=Xu,k.createContext=Fa,k.createElement=Gu,k.createFactory=vl,k.createRef=Jt,k.forwardRef=w,k.isValidElement=Qt,k.lazy=S,k.memo=T,k.startTransition=qu,k.unstable_act=dl,k.useCallback=fn,k.useContext=P,k.useDebugValue=Ft,k.useDeferredValue=Dt,k.useEffect=Qe,k.useId=Zn,k.useImperativeHandle=en,k.useInsertionEffect=_e,k.useLayoutEffect=ot,k.useMemo=_n,k.useReducer=H,k.useRef=le,k.useState=ae,k.useSyncExternalStore=yr,k.useTransition=Me,k.version=me,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(rl,rl.exports)),rl.exports}var pm;function Zc(){return pm||(pm=1,Kc.exports=HS()),Kc.exports}var il={},mm;function FS(){if(mm)return il;mm=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 C=Zc(),k=Symbol.for("react.element"),me=Symbol.for("react.portal"),Se=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),Z=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),rt=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),Ue=Symbol.iterator,kt="@@iterator";function xt(c){if(c===null||typeof c!="object")return null;var p=Ue&&c[Ue]||c[kt];return typeof p=="function"?p:null}var Rt=C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Xe(c){{for(var p=arguments.length,T=new Array(p>1?p-1:0),E=1;E<p;E++)T[E-1]=arguments[E];xe("error",c,T)}}function xe(c,p,T){{var E=Rt.ReactDebugCurrentFrame,P=E.getStackAddendum();P!==""&&(p+="%s",T=T.concat([P]));var ae=T.map(function(H){return String(H)});ae.unshift("Warning: "+p),Function.prototype.apply.call(console[c],console,ae)}}var mt=!1,Re=!1,et=!1,B=!1,Ot=!1,at;at=Symbol.for("react.module.reference");function Fe(c){return!!(typeof c=="string"||typeof c=="function"||c===Se||c===Ee||Ot||c===ve||c===oe||c===rt||B||c===ne||mt||Re||et||typeof c=="object"&&c!==null&&(c.$$typeof===j||c.$$typeof===G||c.$$typeof===d||c.$$typeof===Z||c.$$typeof===ye||c.$$typeof===at||c.getModuleId!==void 0))}function ee(c,p,T){var E=c.displayName;if(E)return E;var P=p.displayName||p.name||"";return P!==""?T+"("+P+")":T}function Je(c){return c.displayName||"Context"}function X(c){if(c==null)return null;if(typeof c.tag=="number"&&Xe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case Se:return"Fragment";case me:return"Portal";case Ee:return"Profiler";case ve:return"StrictMode";case oe:return"Suspense";case rt:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Z:var p=c;return Je(p)+".Consumer";case d:var T=c;return Je(T._context)+".Provider";case ye:return ee(c,c.render,"ForwardRef");case G:var E=c.displayName||null;return E!==null?E:X(c.type)||"Memo";case j:{var P=c,ae=P._payload,H=P._init;try{return X(H(ae))}catch{return null}}}return null}var At=Object.assign,Be=0,I,$,He,Ve,nt,ht,Ze;function Ae(){}Ae.__reactDisabledLog=!0;function Ne(){{if(Be===0){I=console.log,$=console.info,He=console.warn,Ve=console.error,nt=console.group,ht=console.groupCollapsed,Ze=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}Be++}}function st(){{if(Be--,Be===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:At({},c,{value:I}),info:At({},c,{value:$}),warn:At({},c,{value:He}),error:At({},c,{value:Ve}),group:At({},c,{value:nt}),groupCollapsed:At({},c,{value:ht}),groupEnd:At({},c,{value:Ze})})}Be<0&&Xe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $t=Rt.ReactCurrentDispatcher,Ie;function Nt(c,p,T){{if(Ie===void 0)try{throw Error()}catch(P){var E=P.stack.trim().match(/\n( *(at )?)/);Ie=E&&E[1]||""}return`
`+Ie+c}}var it=!1,We;{var Jt=typeof WeakMap=="function"?WeakMap:Map;We=new Jt}function xn(c,p){if(!c||it)return"";{var T=We.get(c);if(T!==void 0)return T}var E;it=!0;var P=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=$t.current,$t.current=null,Ne();try{if(p){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(Ft){E=Ft}Reflect.construct(c,[],H)}else{try{H.call()}catch(Ft){E=Ft}c.call(H.prototype)}}else{try{throw Error()}catch(Ft){E=Ft}c()}}catch(Ft){if(Ft&&E&&typeof Ft.stack=="string"){for(var le=Ft.stack.split(`
`),Qe=E.stack.split(`
`),_e=le.length-1,ot=Qe.length-1;_e>=1&&ot>=0&&le[_e]!==Qe[ot];)ot--;for(;_e>=1&&ot>=0;_e--,ot--)if(le[_e]!==Qe[ot]){if(_e!==1||ot!==1)do if(_e--,ot--,ot<0||le[_e]!==Qe[ot]){var fn=`
`+le[_e].replace(" at new "," at ");return c.displayName&&fn.includes("<anonymous>")&&(fn=fn.replace("<anonymous>",c.displayName)),typeof c=="function"&&We.set(c,fn),fn}while(_e>=1&&ot>=0);break}}}finally{it=!1,$t.current=ae,st(),Error.prepareStackTrace=P}var _n=c?c.displayName||c.name:"",en=_n?Nt(_n):"";return typeof c=="function"&&We.set(c,en),en}function Xt(c,p,T){return xn(c,!1)}function cn(c){var p=c.prototype;return!!(p&&p.isReactComponent)}function Yt(c,p,T){if(c==null)return"";if(typeof c=="function")return xn(c,cn(c));if(typeof c=="string")return Nt(c);switch(c){case oe:return Nt("Suspense");case rt:return Nt("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case ye:return Xt(c.render);case G:return Yt(c.type,p,T);case j:{var E=c,P=E._payload,ae=E._init;try{return Yt(ae(P),p,T)}catch{}}}return""}var an=Object.prototype.hasOwnProperty,Rn={},U=Rt.ReactDebugCurrentFrame;function Y(c){if(c){var p=c._owner,T=Yt(c.type,c._source,p?p.type:null);U.setExtraStackFrame(T)}else U.setExtraStackFrame(null)}function pe(c,p,T,E,P){{var ae=Function.call.bind(an);for(var H in c)if(ae(c,H)){var le=void 0;try{if(typeof c[H]!="function"){var Qe=Error((E||"React class")+": "+T+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Qe.name="Invariant Violation",Qe}le=c[H](p,H,E,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){le=_e}le&&!(le instanceof Error)&&(Y(P),Xe("%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).",E||"React class",T,H,typeof le),Y(null)),le instanceof Error&&!(le.message in Rn)&&(Rn[le.message]=!0,Y(P),Xe("Failed %s type: %s",T,le.message),Y(null))}}}var ue=Array.isArray;function Ce(c){return ue(c)}function De(c){{var p=typeof Symbol=="function"&&Symbol.toStringTag,T=p&&c[Symbol.toStringTag]||c.constructor.name||"Object";return T}}function yt(c){try{return Le(c),!1}catch{return!0}}function Le(c){return""+c}function ct(c){if(yt(c))return Xe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",De(c)),Le(c)}var wt=Rt.ReactCurrentOwner,un={key:!0,ref:!0,__self:!0,__source:!0},wn,Q;function ge(c){if(an.call(c,"ref")){var p=Object.getOwnPropertyDescriptor(c,"ref").get;if(p&&p.isReactWarning)return!1}return c.ref!==void 0}function Pe(c){if(an.call(c,"key")){var p=Object.getOwnPropertyDescriptor(c,"key").get;if(p&&p.isReactWarning)return!1}return c.key!==void 0}function gt(c,p){typeof c.ref=="string"&&wt.current}function Pt(c,p){{var T=function(){wn||(wn=!0,Xe("%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)",p))};T.isReactWarning=!0,Object.defineProperty(c,"key",{get:T,configurable:!0})}}function Qt(c,p){{var T=function(){Q||(Q=!0,Xe("%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)",p))};T.isReactWarning=!0,Object.defineProperty(c,"ref",{get:T,configurable:!0})}}var Kt=function(c,p,T,E,P,ae,H){var le={$$typeof:k,type:c,key:p,ref:T,props:H,_owner:ae};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:P}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function Dn(c,p,T,E,P){{var ae,H={},le=null,Qe=null;T!==void 0&&(ct(T),le=""+T),Pe(p)&&(ct(p.key),le=""+p.key),ge(p)&&(Qe=p.ref,gt(p,P));for(ae in p)an.call(p,ae)&&!un.hasOwnProperty(ae)&&(H[ae]=p[ae]);if(c&&c.defaultProps){var _e=c.defaultProps;for(ae in _e)H[ae]===void 0&&(H[ae]=_e[ae])}if(le||Qe){var ot=typeof c=="function"?c.displayName||c.name||"Unknown":c;le&&Pt(H,ot),Qe&&Qt(H,ot)}return Kt(c,le,Qe,P,E,wt.current,H)}}var It=Rt.ReactCurrentOwner,Vt=Rt.ReactDebugCurrentFrame;function bt(c){if(c){var p=c._owner,T=Yt(c.type,c._source,p?p.type:null);Vt.setExtraStackFrame(T)}else Vt.setExtraStackFrame(null)}var ua;ua=!1;function ha(c){return typeof c=="object"&&c!==null&&c.$$typeof===k}function Yn(){{if(It.current){var c=X(It.current.type);if(c)return`
Check the render method of \``+c+"`."}return""}}function nr(c){return""}var Vr={};function Pr(c){{var p=Yn();if(!p){var T=typeof c=="string"?c:c.displayName||c.name;T&&(p=`
Check the top-level render call using <`+T+">.")}return p}}function hr(c,p){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var T=Pr(p);if(Vr[T])return;Vr[T]=!0;var E="";c&&c._owner&&c._owner!==It.current&&(E=" It was passed a child from "+X(c._owner.type)+"."),bt(c),Xe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,E),bt(null)}}function Ha(c,p){{if(typeof c!="object")return;if(Ce(c))for(var T=0;T<c.length;T++){var E=c[T];ha(E)&&hr(E,p)}else if(ha(c))c._store&&(c._store.validated=!0);else if(c){var P=xt(c);if(typeof P=="function"&&P!==c.entries)for(var ae=P.call(c),H;!(H=ae.next()).done;)ha(H.value)&&hr(H.value,p)}}}function Fa(c){{var p=c.type;if(p==null||typeof p=="string")return;var T;if(typeof p=="function")T=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===ye||p.$$typeof===G))T=p.propTypes;else return;if(T){var E=X(p);pe(T,c.props,"prop",E,c)}else if(p.PropTypes!==void 0&&!ua){ua=!0;var P=X(p);Xe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",P||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&Xe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ya(c){{for(var p=Object.keys(c.props),T=0;T<p.length;T++){var E=p[T];if(E!=="children"&&E!=="key"){bt(c),Xe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),bt(null);break}}c.ref!==null&&(bt(c),Xe("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}var Kn={};function y(c,p,T,E,P,ae){{var H=Fe(c);if(!H){var le="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(le+=" 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 Qe=nr();Qe?le+=Qe:le+=Yn();var _e;c===null?_e="null":Ce(c)?_e="array":c!==void 0&&c.$$typeof===k?(_e="<"+(X(c.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof c,Xe("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,le)}var ot=Dn(c,p,T,P,ae);if(ot==null)return ot;if(H){var fn=p.children;if(fn!==void 0)if(E)if(Ce(fn)){for(var _n=0;_n<fn.length;_n++)Ha(fn[_n],c);Object.freeze&&Object.freeze(fn)}else Xe("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 Ha(fn,c)}if(an.call(p,"key")){var en=X(c),Ft=Object.keys(p).filter(function(Zn){return Zn!=="key"}),Me=Ft.length>0?"{key: someKey, "+Ft.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[en+Me]){var Dt=Ft.length>0?"{"+Ft.join(": ..., ")+": ...}":"{}";Xe(`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} />`,Me,en,Dt,en),Kn[en+Me]=!0}}return c===Se?ya(ot):Fa(ot),ot}}function F(c,p,T){return y(c,p,T,!0)}function _(c,p,T){return y(c,p,T,!1)}var S=_,w=F;il.Fragment=Se,il.jsx=S,il.jsxs=w}(),il}dm.exports=FS();var m=dm.exports,hm={exports:{}},Jc={exports:{}},ef={},ym;function VS(){return ym||(ym=1,function(C){/**
* @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 k=!1,me=5;function Se(Q,ge){var Pe=Q.length;Q.push(ge),d(Q,ge,Pe)}function ve(Q){return Q.length===0?null:Q[0]}function Ee(Q){if(Q.length===0)return null;var ge=Q[0],Pe=Q.pop();return Pe!==ge&&(Q[0]=Pe,Z(Q,Pe,0)),ge}function d(Q,ge,Pe){for(var gt=Pe;gt>0;){var Pt=gt-1>>>1,Qt=Q[Pt];if(ye(Qt,ge)>0)Q[Pt]=ge,Q[gt]=Qt,gt=Pt;else return}}function Z(Q,ge,Pe){for(var gt=Pe,Pt=Q.length,Qt=Pt>>>1;gt<Qt;){var Kt=(gt+1)*2-1,Dn=Q[Kt],It=Kt+1,Vt=Q[It];if(ye(Dn,ge)<0)It<Pt&&ye(Vt,Dn)<0?(Q[gt]=Vt,Q[It]=ge,gt=It):(Q[gt]=Dn,Q[Kt]=ge,gt=Kt);else if(It<Pt&&ye(Vt,ge)<0)Q[gt]=Vt,Q[It]=ge,gt=It;else return}}function ye(Q,ge){var Pe=Q.sortIndex-ge.sortIndex;return Pe!==0?Pe:Q.id-ge.id}var oe=1,rt=2,G=3,j=4,ne=5;function Ue(Q,ge){}var kt=typeof performance=="object"&&typeof performance.now=="function";if(kt){var xt=performance;C.unstable_now=function(){return xt.now()}}else{var Rt=Date,Xe=Rt.now();C.unstable_now=function(){return Rt.now()-Xe}}var xe=1073741823,mt=-1,Re=250,et=5e3,B=1e4,Ot=xe,at=[],Fe=[],ee=1,Je=null,X=G,At=!1,Be=!1,I=!1,$=typeof setTimeout=="function"?setTimeout:null,He=typeof clearTimeout=="function"?clearTimeout:null,Ve=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function nt(Q){for(var ge=ve(Fe);ge!==null;){if(ge.callback===null)Ee(Fe);else if(ge.startTime<=Q)Ee(Fe),ge.sortIndex=ge.expirationTime,Se(at,ge);else return;ge=ve(Fe)}}function ht(Q){if(I=!1,nt(Q),!Be)if(ve(at)!==null)Be=!0,Le(Ze);else{var ge=ve(Fe);ge!==null&&ct(ht,ge.startTime-Q)}}function Ze(Q,ge){Be=!1,I&&(I=!1,wt()),At=!0;var Pe=X;try{var gt;if(!k)return Ae(Q,ge)}finally{Je=null,X=Pe,At=!1}}function Ae(Q,ge){var Pe=ge;for(nt(Pe),Je=ve(at);Je!==null&&!(Je.expirationTime>Pe&&(!Q||U()));){var gt=Je.callback;if(typeof gt=="function"){Je.callback=null,X=Je.priorityLevel;var Pt=Je.expirationTime<=Pe,Qt=gt(Pt);Pe=C.unstable_now(),typeof Qt=="function"?Je.callback=Qt:Je===ve(at)&&Ee(at),nt(Pe)}else Ee(at);Je=ve(at)}if(Je!==null)return!0;var Kt=ve(Fe);return Kt!==null&&ct(ht,Kt.startTime-Pe),!1}function Ne(Q,ge){switch(Q){case oe:case rt:case G:case j:case ne:break;default:Q=G}var Pe=X;X=Q;try{return ge()}finally{X=Pe}}function st(Q){var ge;switch(X){case oe:case rt:case G:ge=G;break;default:ge=X;break}var Pe=X;X=ge;try{return Q()}finally{X=Pe}}function $t(Q){var ge=X;return function(){var Pe=X;X=ge;try{return Q.apply(this,arguments)}finally{X=Pe}}}function Ie(Q,ge,Pe){var gt=C.unstable_now(),Pt;if(typeof Pe=="object"&&Pe!==null){var Qt=Pe.delay;typeof Qt=="number"&&Qt>0?Pt=gt+Qt:Pt=gt}else Pt=gt;var Kt;switch(Q){case oe:Kt=mt;break;case rt:Kt=Re;break;case ne:Kt=Ot;break;case j:Kt=B;break;case G:default:Kt=et;break}var Dn=Pt+Kt,It={id:ee++,callback:ge,priorityLevel:Q,startTime:Pt,expirationTime:Dn,sortIndex:-1};return Pt>gt?(It.sortIndex=Pt,Se(Fe,It),ve(at)===null&&It===ve(Fe)&&(I?wt():I=!0,ct(ht,Pt-gt))):(It.sortIndex=Dn,Se(at,It),!Be&&!At&&(Be=!0,Le(Ze))),It}function Nt(){}function it(){!Be&&!At&&(Be=!0,Le(Ze))}function We(){return ve(at)}function Jt(Q){Q.callback=null}function xn(){return X}var Xt=!1,cn=null,Yt=-1,an=me,Rn=-1;function U(){var Q=C.unstable_now()-Rn;return!(Q<an)}function Y(){}function pe(Q){if(Q<0||Q>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Q>0?an=Math.floor(1e3/Q):an=me}var ue=function(){if(cn!==null){var Q=C.unstable_now();Rn=Q;var ge=!0,Pe=!0;try{Pe=cn(ge,Q)}finally{Pe?Ce():(Xt=!1,cn=null)}}else Xt=!1},Ce;if(typeof Ve=="function")Ce=function(){Ve(ue)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,yt=De.port2;De.port1.onmessage=ue,Ce=function(){yt.postMessage(null)}}else Ce=function(){$(ue,0)};function Le(Q){cn=Q,Xt||(Xt=!0,Ce())}function ct(Q,ge){Yt=$(function(){Q(C.unstable_now())},ge)}function wt(){He(Yt),Yt=-1}var un=Y,wn=null;C.unstable_IdlePriority=ne,C.unstable_ImmediatePriority=oe,C.unstable_LowPriority=j,C.unstable_NormalPriority=G,C.unstable_Profiling=wn,C.unstable_UserBlockingPriority=rt,C.unstable_cancelCallback=Jt,C.unstable_continueExecution=it,C.unstable_forceFrameRate=pe,C.unstable_getCurrentPriorityLevel=xn,C.unstable_getFirstCallbackNode=We,C.unstable_next=st,C.unstable_pauseExecution=Nt,C.unstable_requestPaint=un,C.unstable_runWithPriority=Ne,C.unstable_scheduleCallback=Ie,C.unstable_shouldYield=U,C.unstable_wrapCallback=$t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ef)),ef}var gm;function PS(){return gm||(gm=1,Jc.exports=VS()),Jc.exports}var la={},bm;function BS(){if(bm)return la;bm=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 C=Zc(),k=PS(),me=C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Se=!1;function ve(e){Se=e}function Ee(e){if(!Se){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Z("warn",e,n)}}function d(e){if(!Se){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Z("error",e,n)}}function Z(e,t,n){{var a=me.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 ye=0,oe=1,rt=2,G=3,j=4,ne=5,Ue=6,kt=7,xt=8,Rt=9,Xe=10,xe=11,mt=12,Re=13,et=14,B=15,Ot=16,at=17,Fe=18,ee=19,Je=21,X=22,At=23,Be=24,I=25,$=!0,He=!1,Ve=!1,nt=!1,ht=!1,Ze=!0,Ae=!0,Ne=!0,st=!0,$t=new Set,Ie={},Nt={};function it(e,t){We(e,t),We(e+"Capture",t)}function We(e,t){Ie[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ie[e]=t;{var n=e.toLowerCase();Nt[n]=e,e==="onDoubleClick"&&(Nt.ondblclick=e)}for(var a=0;a<t.length;a++)$t.add(t[a])}var Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xn=Object.prototype.hasOwnProperty;function Xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function cn(e){try{return Yt(e),!1}catch{return!0}}function Yt(e){return""+e}function an(e,t){if(cn(e))return d("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xt(e)),Yt(e)}function Rn(e){if(cn(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xt(e)),Yt(e)}function U(e,t){if(cn(e))return d("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xt(e)),Yt(e)}function Y(e,t){if(cn(e))return d("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xt(e)),Yt(e)}function pe(e){if(cn(e))return d("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Xt(e)),Yt(e)}function ue(e){if(cn(e))return d("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.",Xt(e)),Yt(e)}var Ce=0,De=1,yt=2,Le=3,ct=4,wt=5,un=6,wn=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Q=wn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("^["+wn+"]["+Q+"]*$"),Pe={},gt={};function Pt(e){return xn.call(gt,e)?!0:xn.call(Pe,e)?!1:ge.test(e)?(gt[e]=!0,!0):(Pe[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function Qt(e,t,n){return t!==null?t.type===Ce:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Kt(e,t,n,a){if(n!==null&&n.type===Ce)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 Dn(e,t,n,a){if(t===null||typeof t>"u"||Kt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Le:return!t;case ct:return t===!1;case wt:return isNaN(t);case un:return isNaN(t)||t<1}return!1}function It(e){return bt.hasOwnProperty(e)?bt[e]:null}function Vt(e,t,n,a,r,i,o){this.acceptsBooleans=t===yt||t===Le||t===ct,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var bt={},ua=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ua.forEach(function(e){bt[e]=new Vt(e,Ce,!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];bt[t]=new Vt(t,De,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){bt[e]=new Vt(e,yt,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bt[e]=new Vt(e,yt,!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){bt[e]=new Vt(e,Le,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){bt[e]=new Vt(e,Le,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){bt[e]=new Vt(e,ct,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){bt[e]=new Vt(e,un,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){bt[e]=new Vt(e,wt,!1,e.toLowerCase(),null,!1,!1)});var ha=/[\-\:]([a-z])/g,Yn=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(ha,Yn);bt[t]=new Vt(t,De,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ha,Yn);bt[t]=new Vt(t,De,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ha,Yn);bt[t]=new Vt(t,De,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){bt[e]=new Vt(e,De,!1,e.toLowerCase(),null,!1,!1)});var nr="xlinkHref";bt[nr]=new Vt("xlinkHref",De,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){bt[e]=new Vt(e,De,!1,e.toLowerCase(),null,!0,!0)});var Vr=/^[\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,Pr=!1;function hr(e){!Pr&&Vr.test(e)&&(Pr=!0,d("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 Ha(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{an(n,t),a.sanitizeURL&&hr(""+n);var i=a.attributeName,o=null;if(a.type===ct){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:Dn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(Dn(t,n,a,!1))return e.getAttribute(i);if(a.type===Le)return n;o=e.getAttribute(i)}return Dn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function Fa(e,t,n,a){{if(!Pt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return an(n,t),r===""+n?n:r}}function ya(e,t,n,a){var r=It(t);if(!Qt(t,r,a)){if(Dn(t,n,r,a)&&(n=null),a||r===null){if(Pt(t)){var i=t;n===null?e.removeAttribute(i):(an(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===Le?!1:""}else e[l]=n;return}var f=r.attributeName,v=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var b=r.type,g;b===Le||b===ct&&n===!0?g="":(an(n,f),g=""+n,r.sanitizeURL&&hr(g.toString())),v?e.setAttributeNS(v,f,g):e.setAttribute(f,g)}}}var Kn=Symbol.for("react.element"),y=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),H=Symbol.for("react.scope"),le=Symbol.for("react.debug_trace_mode"),Qe=Symbol.for("react.offscreen"),_e=Symbol.for("react.legacy_hidden"),ot=Symbol.for("react.cache"),fn=Symbol.for("react.tracing_marker"),_n=Symbol.iterator,en="@@iterator";function Ft(e){if(e===null||typeof e!="object")return null;var t=_n&&e[_n]||e[en];return typeof t=="function"?t:null}var Me=Object.assign,Dt=0,Zn,yr,Va,Br,ga,ba,$r;function gi(){}gi.__reactDisabledLog=!0;function dn(){{if(Dt===0){Zn=console.log,yr=console.info,Va=console.warn,Br=console.error,ga=console.group,ba=console.groupCollapsed,$r=console.groupEnd;var e={configurable:!0,enumerable:!0,value:gi,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Dt++}}function _t(){{if(Dt--,Dt===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Me({},e,{value:Zn}),info:Me({},e,{value:yr}),warn:Me({},e,{value:Va}),error:Me({},e,{value:Br}),group:Me({},e,{value:ga}),groupCollapsed:Me({},e,{value:ba}),groupEnd:Me({},e,{value:$r})})}Dt<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Sa=me.ReactCurrentDispatcher,Ta;function sa(e,t,n){{if(Ta===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);Ta=a&&a[1]||""}return`
`+Ta+e}}var bi=!1,Yr;{var ao=typeof WeakMap=="function"?WeakMap:Map;Yr=new ao}function Si(e,t){if(!e||bi)return"";{var n=Yr.get(e);if(n!==void 0)return n}var a;bi=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Sa.current,Sa.current=null,dn();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(L){a=L}Reflect.construct(e,[],o)}else{try{o.call()}catch(L){a=L}e.call(o.prototype)}}else{try{throw Error()}catch(L){a=L}e()}}catch(L){if(L&&a&&typeof L.stack=="string"){for(var l=L.stack.split(`
`),u=a.stack.split(`
`),f=l.length-1,v=u.length-1;f>=1&&v>=0&&l[f]!==u[v];)v--;for(;f>=1&&v>=0;f--,v--)if(l[f]!==u[v]){if(f!==1||v!==1)do if(f--,v--,v<0||l[f]!==u[v]){var b=`
`+l[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&Yr.set(e,b),b}while(f>=1&&v>=0);break}}}finally{bi=!1,Sa.current=i,_t(),Error.prepareStackTrace=r}var g=e?e.displayName||e.name:"",D=g?sa(g):"";return typeof e=="function"&&Yr.set(e,D),D}function ro(e,t,n){return Si(e,!0)}function ol(e,t,n){return Si(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ll(e,t,n){if(e==null)return"";if(typeof e=="function")return Si(e,Yu(e));if(typeof e=="string")return sa(e);switch(e){case T:return sa("Suspense");case E:return sa("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ol(e.render);case P:return ll(e.type,t,n);case ae:{var a=e,r=a._payload,i=a._init;try{return ll(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case ne:return sa(e.type);case Ot:return sa("Lazy");case Re:return sa("Suspense");case ee:return sa("SuspenseList");case ye:case rt:case B:return ol(e.type);case xe:return ol(e.type.render);case oe:return ro(e.type);default:return""}}function Ti(e){try{var t="",n=e;do t+=af(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function Iu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function ul(e){return e.displayName||"Context"}function Et(e){if(e==null)return null;if(typeof e.tag=="number"&&d("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 F:return"Fragment";case y:return"Portal";case S:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return ul(t)+".Consumer";case w:var n=e;return ul(n._context)+".Provider";case p:return Iu(e,e.render,"ForwardRef");case P:var a=e.displayName||null;return a!==null?a:Et(e.type)||"Memo";case ae:{var r=e,i=r._payload,o=r._init;try{return Et(o(i))}catch{return null}}}return null}function rf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function gr(e){return e.displayName||"Context"}function Ke(e){var t=e.tag,n=e.type;switch(t){case Be:return"Cache";case Rt:var a=n;return gr(a)+".Consumer";case Xe:var r=n;return gr(r._context)+".Provider";case Fe:return"DehydratedFragment";case xe:return rf(n,n.render,"ForwardRef");case kt:return"Fragment";case ne:return n;case j:return"Portal";case G:return"Root";case Ue:return"Text";case Ot:return Et(n);case xt:return n===_?"StrictMode":"Mode";case X:return"Offscreen";case mt:return"Profiler";case Je:return"Scope";case Re:return"Suspense";case ee:return"SuspenseList";case I:return"TracingMarker";case oe:case ye:case at:case rt:case et:case B:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var sl=me.ReactDebugCurrentFrame,Jn=null,Ei=!1;function Ir(){{if(Jn===null)return null;var e=Jn._debugOwner;if(e!==null&&typeof e<"u")return Ke(e)}return null}function of(){return Jn===null?"":Ti(Jn)}function Mn(){sl.getCurrentStack=null,Jn=null,Ei=!1}function tn(e){sl.getCurrentStack=e===null?null:of,Jn=e,Ei=!1}function Wu(){return Jn}function Ma(e){Ei=e}function ea(e){return""+e}function Pa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return ue(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function cl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||d("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||d("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 qu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fl(e){return e._valueTracker}function io(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Wr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);ue(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){ue(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){ue(l),a=""+l},stopTracking:function(){io(e),delete e[t]}};return o}}function Ci(e){fl(e)||(e._valueTracker=Wr(e))}function dl(e){if(!e)return!1;var t=fl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function br(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 oo=!1,lo=!1,uo=!1,Gu=!1;function Xu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function vl(e,t){var n=e,a=t.checked,r=Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Qu(e,t){cl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!lo&&(d("%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",Ir()||"A component",t.type),lo=!0),t.value!==void 0&&t.defaultValue!==void 0&&!oo&&(d("%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",Ir()||"A component",t.type),oo=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Pa(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&ya(n,"checked",a,!1)}function h(e,t){var n=e;{var a=Xu(t);!n._wrapperState.controlled&&a&&!Gu&&(d("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"),Gu=!0),n._wrapperState.controlled&&!a&&!uo&&(d("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"),uo=!0)}s(e,t);var r=Pa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ea(r)):n.value!==ea(r)&&(n.value=ea(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Oe(n,t.type,r):t.hasOwnProperty("defaultValue")&&Oe(n,t.type,Pa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function M(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=ea(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 O(e,t){var n=e;h(n,t),K(n,t)}function K(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;an(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.");dl(o),h(o,l)}}}}function Oe(e,t,n){(t!=="number"||br(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ea(e._wrapperState.initialValue):e.defaultValue!==ea(n)&&(e.defaultValue=ea(n)))}var be=!1,qe=!1,ft=!1;function jt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?C.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||qe||(qe=!0,d("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(ft||(ft=!0,d("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!be&&(d("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),be=!0)}function Wt(e,t){t.value!=null&&e.setAttribute("value",ea(Pa(t.value)))}var qt=Array.isArray;function lt(e){return qt(e)}var nn;nn=!1;function vn(){var e=Ir();return e?`
Check the render method of \``+e+"`.":""}var xi=["value","defaultValue"];function pl(e){{cl("select",e);for(var t=0;t<xi.length;t++){var n=xi[t];if(e[n]!=null){var a=lt(e[n]);e.multiple&&!a?d("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,vn()):!e.multiple&&a&&d("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,vn())}}}}function Sr(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 v=ea(Pa(n)),b=null,g=0;g<r.length;g++){if(r[g].value===v){r[g].selected=!0,a&&(r[g].defaultSelected=!0);return}b===null&&!r[g].disabled&&(b=r[g])}b!==null&&(b.selected=!0)}}function ml(e,t){return Me({},t,{value:void 0})}function hl(e,t){var n=e;pl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!nn&&(d("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"),nn=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Sr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Sr(n,!!t.multiple,t.defaultValue,!0)}function Ku(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?Sr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Sr(n,!!t.multiple,t.defaultValue,!0):Sr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&Sr(n,!!t.multiple,a,!1)}var Lm=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=Me({},t,{value:void 0,defaultValue:void 0,children:ea(n._wrapperState.initialValue)});return a}function km(e,t){var n=e;cl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Lm&&(d("%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",Ir()||"A component"),Lm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){d("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(lt(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:Pa(a)}}function Om(e,t){var n=e,a=Pa(t.value),r=Pa(t.defaultValue);if(a!=null){var i=ea(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ea(r))}function Am(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function a0(e,t){Om(e,t)}var Tr="http://www.w3.org/1999/xhtml",r0="http://www.w3.org/1998/Math/MathML",df="http://www.w3.org/2000/svg";function vf(e){switch(e){case"svg":return df;case"math":return r0;default:return Tr}}function pf(e,t){return e==null||e===Tr?vf(t):e===df&&t==="foreignObject"?Tr:e}var i0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Zu,Nm=i0(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Zu=Zu||document.createElement("div"),Zu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ca=1,Er=3,pn=8,Cr=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Er){n.nodeValue=t;return}}e.textContent=t},o0={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"]},yl={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 l0(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var u0=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){u0.forEach(function(t){yl[l0(t,e)]=yl[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(yl.hasOwnProperty(e)&&yl[e])?t+"px":(Y(t,e),(""+t).trim())}var s0=/([A-Z])/g,c0=/^ms-/;function f0(e){return e.replace(s0,"-$1").toLowerCase().replace(c0,"-ms-")}var jm=function(){};{var d0=/^(?:webkit|moz|o)[A-Z]/,v0=/^-ms-/,p0=/-(.)/g,Um=/;\s*$/,so={},yf={},zm=!1,Hm=!1,m0=function(e){return e.replace(p0,function(t,n){return n.toUpperCase()})},h0=function(e){so.hasOwnProperty(e)&&so[e]||(so[e]=!0,d("Unsupported style property %s. Did you mean %s?",e,m0(e.replace(v0,"ms-"))))},y0=function(e){so.hasOwnProperty(e)&&so[e]||(so[e]=!0,d("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},g0=function(e,t){yf.hasOwnProperty(t)&&yf[t]||(yf[t]=!0,d(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Um,"")))},b0=function(e,t){zm||(zm=!0,d("`NaN` is an invalid value for the `%s` css style property.",e))},S0=function(e,t){Hm||(Hm=!0,d("`Infinity` is an invalid value for the `%s` css style property.",e))};jm=function(e,t){e.indexOf("-")>-1?h0(e):d0.test(e)?y0(e):Um.test(t)&&g0(e,t),typeof t=="number"&&(isNaN(t)?b0(e,t):isFinite(t)||S0(e,t))}}var T0=jm;function E0(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:f0(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Fm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||T0(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function C0(e){return e==null||typeof e=="boolean"||e===""}function Vm(e){var t={};for(var n in e)for(var a=o0[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function x0(e,t){{if(!t)return;var n=Vm(e),a=Vm(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,d("%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.",C0(e[o])?"Removing":"Updating",o,l)}}}}var R0={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},w0=Me({menuitem:!0},R0),D0="__html";function gf(e,t){if(t){if(w0[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"||!(D0 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&&d("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 Ri(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 es={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"},Pm={"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},co={},_0=new RegExp("^(aria)-["+Q+"]*$"),M0=new RegExp("^(aria)[A-Z]["+Q+"]*$");function L0(e,t){{if(xn.call(co,t)&&co[t])return!0;if(M0.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Pm.hasOwnProperty(n)?n:null;if(a==null)return d("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),co[t]=!0,!0;if(t!==a)return d("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),co[t]=!0,!0}if(_0.test(t)){var r=t.toLowerCase(),i=Pm.hasOwnProperty(r)?r:null;if(i==null)return co[t]=!0,!1;if(t!==i)return d("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),co[t]=!0,!0}}return!0}function k0(e,t){{var n=[];for(var a in t){var r=L0(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?d("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&d("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function O0(e,t){Ri(e,t)||k0(e,t)}var Bm=!1;function A0(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Bm&&(Bm=!0,e==="select"&&t.multiple?d("`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):d("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var $m=function(){};{var ta={},Ym=/^on./,N0=/^on[^A-Z]/,j0=new RegExp("^(aria)-["+Q+"]*$"),U0=new RegExp("^(aria)[A-Z]["+Q+"]*$");$m=function(e,t,n,a){if(xn.call(ta,t)&&ta[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return d("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."),ta[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 d("Invalid event handler property `%s`. Did you mean `%s`?",t,l),ta[t]=!0,!0;if(Ym.test(t))return d("Unknown event handler property `%s`. It will be ignored.",t),ta[t]=!0,!0}else if(Ym.test(t))return N0.test(t)&&d("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ta[t]=!0,!0;if(j0.test(t)||U0.test(t))return!0;if(r==="innerhtml")return d("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ta[t]=!0,!0;if(r==="aria")return d("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ta[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return d("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),ta[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return d("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ta[t]=!0,!0;var u=It(t),f=u!==null&&u.type===Ce;if(es.hasOwnProperty(r)){var v=es[r];if(v!==t)return d("Invalid DOM property `%s`. Did you mean `%s`?",t,v),ta[t]=!0,!0}else if(!f&&t!==r)return d("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),ta[t]=!0,!0;return typeof n=="boolean"&&Kt(t,n,u,!1)?(n?d('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):d('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),ta[t]=!0,!0):f?!0:Kt(t,n,u,!1)?(ta[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===Le&&(d("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),ta[t]=!0),!0)}}var z0=function(e,t,n){{var a=[];for(var r in t){var i=$m(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?d("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&&d("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 H0(e,t,n){Ri(e,t)||z0(e,t,n)}var Im=1,bf=2,gl=4,F0=Im|bf|gl,bl=null;function V0(e){bl!==null&&d("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),bl=e}function P0(){bl===null&&d("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),bl=null}function B0(e){return e===bl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Er?t.parentNode:t}var Tf=null,fo=null,vo=null;function Wm(e){var t=ti(e);if(t){if(typeof Tf!="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);Tf(t.stateNode,t.type,a)}}}function $0(e){Tf=e}function qm(e){fo?vo?vo.push(e):vo=[e]:fo=e}function Y0(){return fo!==null||vo!==null}function Gm(){if(fo){var e=fo,t=vo;if(fo=null,vo=null,Wm(e),t)for(var n=0;n<t.length;n++)Wm(t[n])}}var Xm=function(e,t){return e(t)},Qm=function(){},Ef=!1;function I0(){var e=Y0();e&&(Qm(),Gm())}function Km(e,t,n){if(Ef)return e(t,n);Ef=!0;try{return Xm(e,t,n)}finally{Ef=!1,I0()}}function W0(e,t,n){Xm=e,Qm=n}function q0(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function G0(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&&q0(t));default:return!1}}function Sl(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(G0(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 Cf=!1;if(Jt)try{var Tl={};Object.defineProperty(Tl,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{Cf=!1}function Zm(e,t,n,a,r,i,o,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(v){this.onError(v)}}var Jm=Zm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");Jm=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 v=document.createEvent("Event"),b=!1,g=!0,D=window.event,L=Object.getOwnPropertyDescriptor(window,"event");function A(){xf.removeEventListener(N,we,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=D)}var re=Array.prototype.slice.call(arguments,3);function we(){b=!0,A(),n.apply(a,re),g=!1}var Te,pt=!1,ut=!1;function x(R){if(Te=R.error,pt=!0,Te===null&&R.colno===0&&R.lineno===0&&(ut=!0),R.defaultPrevented&&Te!=null&&typeof Te=="object")try{Te._suppressLogging=!0}catch{}}var N="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",x),xf.addEventListener(N,we,!1),v.initEvent(N,!1,!1),xf.dispatchEvent(v),L&&Object.defineProperty(window,"event",L),b&&g&&(pt?ut&&(Te=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.")):Te=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(Te)),window.removeEventListener("error",x),!b)return A(),Zm.apply(this,arguments)}}var X0=Jm,po=!1,ts=null,ns=!1,Rf=null,Q0={onError:function(e){po=!0,ts=e}};function wf(e,t,n,a,r,i,o,l,u){po=!1,ts=null,X0.apply(Q0,arguments)}function K0(e,t,n,a,r,i,o,l,u){if(wf.apply(this,arguments),po){var f=Df();ns||(ns=!0,Rf=f)}}function Z0(){if(ns){var e=Rf;throw ns=!1,Rf=null,e}}function J0(){return po}function Df(){if(po){var e=ts;return po=!1,ts=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 mo(e){return e._reactInternals}function eT(e){return e._reactInternals!==void 0}function tT(e,t){e._reactInternals=t}var je=0,ho=1,Ln=2,Ct=4,wi=16,as=32,eh=64,Mt=128,Di=256,_i=512,yo=1024,qr=2048,Mi=4096,Li=8192,_f=16384,nT=32767,rs=32768,Ba=65536,Mf=131072,th=1048576,Lf=2097152,ki=4194304,kf=8388608,Gr=16777216,Of=33554432,Af=Ct|yo|0,Nf=Ln|Ct|wi|as|_i|Mi|Li,El=Ct|eh|_i|Li,go=qr|wi,xr=ki|kf|Lf,aT=me.ReactCurrentOwner;function Oi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(Ln|Mi))!==je&&(n=t.return),a=t.return;while(a)}return t.tag===G?n:null}function nh(e){if(e.tag===Re){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 ah(e){return e.tag===G?e.stateNode.containerInfo:null}function rT(e){return Oi(e)===e}function iT(e){{var t=aT.current;if(t!==null&&t.tag===oe){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||d("%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.",Ke(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=mo(e);return r?Oi(r)===r:!1}function rh(e){if(Oi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function ih(e){var t=e.alternate;if(!t){var n=Oi(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 rh(i),e;if(u===r)return rh(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,v=i.child;v;){if(v===a){f=!0,a=i,r=o;break}if(v===r){f=!0,r=i,a=o;break}v=v.sibling}if(!f){for(v=o.child;v;){if(v===a){f=!0,a=o,r=i;break}if(v===r){f=!0,r=o,a=i;break}v=v.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!==G)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function oh(e){var t=ih(e);return t!==null?lh(t):null}function lh(e){if(e.tag===ne||e.tag===Ue)return e;for(var t=e.child;t!==null;){var n=lh(t);if(n!==null)return n;t=t.sibling}return null}function oT(e){var t=ih(e);return t!==null?uh(t):null}function uh(e){if(e.tag===ne||e.tag===Ue)return e;for(var t=e.child;t!==null;){if(t.tag!==j){var n=uh(t);if(n!==null)return n}t=t.sibling}return null}var sh=k.unstable_scheduleCallback,lT=k.unstable_cancelCallback,uT=k.unstable_shouldYield,sT=k.unstable_requestPaint,kn=k.unstable_now,cT=k.unstable_getCurrentPriorityLevel,is=k.unstable_ImmediatePriority,jf=k.unstable_UserBlockingPriority,Ai=k.unstable_NormalPriority,fT=k.unstable_LowPriority,Uf=k.unstable_IdlePriority,dT=k.unstable_yieldValue,vT=k.unstable_setDisableYieldValue,bo=null,In=null,ce=null,ar=!1,$a=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function pT(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 d("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{Ae&&(e=Me({},e,{getLaneLabelMap:ST,injectProfilingHooks:bT})),bo=t.inject(e),In=t}catch(n){d("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function mT(e,t){if(In&&typeof In.onScheduleFiberRoot=="function")try{In.onScheduleFiberRoot(bo,e,t)}catch(n){ar||(ar=!0,d("React instrumentation encountered an error: %s",n))}}function hT(e,t){if(In&&typeof In.onCommitFiberRoot=="function")try{var n=(e.current.flags&Mt)===Mt;if(Ne){var a;switch(t){case Ca:a=is;break;case wr:a=jf;break;case Dr:a=Ai;break;case ds:a=Uf;break;default:a=Ai;break}In.onCommitFiberRoot(bo,e,a,n)}}catch(r){ar||(ar=!0,d("React instrumentation encountered an error: %s",r))}}function yT(e){if(In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(bo,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function gT(e){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(bo,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function On(e){if(typeof dT=="function"&&(vT(e),ve(e)),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(bo,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function bT(e){ce=e}function ST(){{for(var e=new Map,t=1,n=0;n<Hf;n++){var a=VT(t);e.set(t,a),t*=2}return e}}function TT(e){ce!==null&&typeof ce.markCommitStarted=="function"&&ce.markCommitStarted(e)}function ch(){ce!==null&&typeof ce.markCommitStopped=="function"&&ce.markCommitStopped()}function Cl(e){ce!==null&&typeof ce.markComponentRenderStarted=="function"&&ce.markComponentRenderStarted(e)}function So(){ce!==null&&typeof ce.markComponentRenderStopped=="function"&&ce.markComponentRenderStopped()}function ET(e){ce!==null&&typeof ce.markComponentPassiveEffectMountStarted=="function"&&ce.markComponentPassiveEffectMountStarted(e)}function CT(){ce!==null&&typeof ce.markComponentPassiveEffectMountStopped=="function"&&ce.markComponentPassiveEffectMountStopped()}function xT(e){ce!==null&&typeof ce.markComponentPassiveEffectUnmountStarted=="function"&&ce.markComponentPassiveEffectUnmountStarted(e)}function RT(){ce!==null&&typeof ce.markComponentPassiveEffectUnmountStopped=="function"&&ce.markComponentPassiveEffectUnmountStopped()}function wT(e){ce!==null&&typeof ce.markComponentLayoutEffectMountStarted=="function"&&ce.markComponentLayoutEffectMountStarted(e)}function DT(){ce!==null&&typeof ce.markComponentLayoutEffectMountStopped=="function"&&ce.markComponentLayoutEffectMountStopped()}function fh(e){ce!==null&&typeof ce.markComponentLayoutEffectUnmountStarted=="function"&&ce.markComponentLayoutEffectUnmountStarted(e)}function dh(){ce!==null&&typeof ce.markComponentLayoutEffectUnmountStopped=="function"&&ce.markComponentLayoutEffectUnmountStopped()}function _T(e,t,n){ce!==null&&typeof ce.markComponentErrored=="function"&&ce.markComponentErrored(e,t,n)}function MT(e,t,n){ce!==null&&typeof ce.markComponentSuspended=="function"&&ce.markComponentSuspended(e,t,n)}function LT(e){ce!==null&&typeof ce.markLayoutEffectsStarted=="function"&&ce.markLayoutEffectsStarted(e)}function kT(){ce!==null&&typeof ce.markLayoutEffectsStopped=="function"&&ce.markLayoutEffectsStopped()}function OT(e){ce!==null&&typeof ce.markPassiveEffectsStarted=="function"&&ce.markPassiveEffectsStarted(e)}function AT(){ce!==null&&typeof ce.markPassiveEffectsStopped=="function"&&ce.markPassiveEffectsStopped()}function vh(e){ce!==null&&typeof ce.markRenderStarted=="function"&&ce.markRenderStarted(e)}function NT(){ce!==null&&typeof ce.markRenderYielded=="function"&&ce.markRenderYielded()}function ph(){ce!==null&&typeof ce.markRenderStopped=="function"&&ce.markRenderStopped()}function jT(e){ce!==null&&typeof ce.markRenderScheduled=="function"&&ce.markRenderScheduled(e)}function UT(e,t){ce!==null&&typeof ce.markForceUpdateScheduled=="function"&&ce.markForceUpdateScheduled(e,t)}function zf(e,t){ce!==null&&typeof ce.markStateUpdateScheduled=="function"&&ce.markStateUpdateScheduled(e,t)}var ke=0,dt=1,Ut=2,on=8,rr=16,mh=Math.clz32?Math.clz32:FT,zT=Math.log,HT=Math.LN2;function FT(e){var t=e>>>0;return t===0?32:31-(zT(t)/HT|0)|0}var Hf=31,W=0,An=0,$e=1,To=2,Rr=4,Ni=8,ir=16,xl=32,Eo=4194240,Rl=64,Ff=128,Vf=256,Pf=512,Bf=1024,$f=2048,Yf=4096,If=8192,Wf=16384,qf=32768,Gf=65536,Xf=131072,Qf=262144,Kf=524288,Zf=1048576,Jf=2097152,os=130023424,Co=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,hh=Co,wl=134217728,yh=268435455,Dl=268435456,ji=536870912,La=1073741824;function VT(e){{if(e&$e)return"Sync";if(e&To)return"InputContinuousHydration";if(e&Rr)return"InputContinuous";if(e&Ni)return"DefaultHydration";if(e&ir)return"Default";if(e&xl)return"TransitionHydration";if(e&Eo)return"Transition";if(e&os)return"Retry";if(e&wl)return"SelectiveHydration";if(e&Dl)return"IdleHydration";if(e&ji)return"Idle";if(e&La)return"Offscreen"}}var Gt=-1,ls=Rl,us=Co;function _l(e){switch(Ui(e)){case $e:return $e;case To:return To;case Rr:return Rr;case Ni:return Ni;case ir:return ir;case xl:return xl;case Rl:case Ff:case Vf:case Pf:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return e&Eo;case Co:case ed:case td:case nd:case ad:return e&os;case wl:return wl;case Dl:return Dl;case ji:return ji;case La:return La;default:return d("Should have found matching lanes. This is a bug in React."),e}}function ss(e,t){var n=e.pendingLanes;if(n===W)return W;var a=W,r=e.suspendedLanes,i=e.pingedLanes,o=n&yh;if(o!==W){var l=o&~r;if(l!==W)a=_l(l);else{var u=o&i;u!==W&&(a=_l(u))}}else{var f=n&~r;f!==W?a=_l(f):i!==W&&(a=_l(i))}if(a===W)return W;if(t!==W&&t!==a&&(t&r)===W){var v=Ui(a),b=Ui(t);if(v>=b||v===ir&&(b&Eo)!==W)return t}(a&Rr)!==W&&(a|=n&ir);var g=e.entangledLanes;if(g!==W)for(var D=e.entanglements,L=a&g;L>0;){var A=zi(L),re=1<<A;a|=D[A],L&=~re}return a}function PT(e,t){for(var n=e.eventTimes,a=Gt;t>0;){var r=zi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function BT(e,t){switch(e){case $e:case To:case Rr:return t+250;case Ni:case ir:case xl:case Rl:case Ff:case Vf:case Pf:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return t+5e3;case Co:case ed:case td:case nd:case ad:return Gt;case wl:case Dl:case ji:case La:return Gt;default:return d("Should have found matching lanes. This is a bug in React."),Gt}}function $T(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=zi(o),u=1<<l,f=i[l];f===Gt?((u&a)===W||(u&r)!==W)&&(i[l]=BT(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function YT(e){return _l(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==W?t:t&La?La:W}function IT(e){return(e&$e)!==W}function id(e){return(e&yh)!==W}function gh(e){return(e&os)===e}function WT(e){var t=$e|Rr|ir;return(e&t)===W}function qT(e){return(e&Eo)===e}function cs(e,t){var n=To|Rr|Ni|ir;return(t&n)!==W}function GT(e,t){return(t&e.expiredLanes)!==W}function bh(e){return(e&Eo)!==W}function Sh(){var e=ls;return ls<<=1,(ls&Eo)===W&&(ls=Rl),e}function XT(){var e=us;return us<<=1,(us&os)===W&&(us=Co),e}function Ui(e){return e&-e}function Ml(e){return Ui(e)}function zi(e){return 31-mh(e)}function od(e){return zi(e)}function Ea(e,t){return(e&t)!==W}function xo(e,t){return(e&t)===t}function tt(e,t){return e|t}function fs(e,t){return e&~t}function Th(e,t){return e&t}function h_(e){return e}function QT(e,t){return e!==An&&e<t?e:t}function ld(e){for(var t=[],n=0;n<Hf;n++)t.push(e);return t}function Ll(e,t,n){e.pendingLanes|=t,t!==ji&&(e.suspendedLanes=W,e.pingedLanes=W);var a=e.eventTimes,r=od(t);a[r]=n}function KT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=zi(a),i=1<<r;n[r]=Gt,a&=~i}}function Eh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function ZT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=W,e.pingedLanes=W,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=zi(o),u=1<<l;a[l]=W,r[l]=Gt,i[l]=Gt,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=zi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function JT(e,t){var n=Ui(t),a;switch(n){case Rr:a=To;break;case ir:a=Ni;break;case Rl:case Ff:case Vf:case Pf:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:case Co:case ed:case td:case nd:case ad:a=xl;break;case ji:a=Dl;break;default:a=An;break}return(a&(e.suspendedLanes|t))!==An?An:a}function Ch(e,t,n){if($a)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=od(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function xh(e,t){if($a)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=od(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 Rh(e,t){return null}var Ca=$e,wr=Rr,Dr=ir,ds=ji,kl=An;function Ya(){return kl}function Nn(e){kl=e}function eE(e,t){var n=kl;try{return kl=e,t()}finally{kl=n}}function tE(e,t){return e!==0&&e<t?e:t}function nE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function wh(e){var t=Ui(e);return sd(Ca,t)?sd(wr,t)?id(t)?Dr:ds:wr:Ca}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var Dh;function aE(e){Dh=e}function rE(e){Dh(e)}var cd;function iE(e){cd=e}var _h;function oE(e){_h=e}var Mh;function lE(e){Mh=e}var Lh;function uE(e){Lh=e}var fd=!1,ps=[],Xr=null,Qr=null,Kr=null,Ol=new Map,Al=new Map,Zr=[],sE=["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 cE(e){return sE.indexOf(e)>-1}function fE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function kh(e,t){switch(e){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":Kr=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Ol.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;Al.delete(a);break}}}function Nl(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=fE(t,n,a,r,i);if(t!==null){var l=ti(t);l!==null&&cd(l)}return o}e.eventSystemFlags|=a;var u=e.targetContainers;return r!==null&&u.indexOf(r)===-1&&u.push(r),e}function dE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return Xr=Nl(Xr,e,t,n,a,i),!0}case"dragenter":{var o=r;return Qr=Nl(Qr,e,t,n,a,o),!0}case"mouseover":{var l=r;return Kr=Nl(Kr,e,t,n,a,l),!0}case"pointerover":{var u=r,f=u.pointerId;return Ol.set(f,Nl(Ol.get(f)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var v=r,b=v.pointerId;return Al.set(b,Nl(Al.get(b)||null,e,t,n,a,v)),!0}}return!1}function Oh(e){var t=Vi(e.target);if(t!==null){var n=Oi(t);if(n!==null){var a=n.tag;if(a===Re){var r=nh(n);if(r!==null){e.blockedOn=r,Lh(e.priority,function(){_h(n)});return}}else if(a===G){var i=n.stateNode;if(vs(i)){e.blockedOn=ah(n);return}}}}e.blockedOn=null}function vE(e){for(var t=Mh(),n={blockedOn:null,target:e,priority:t},a=0;a<Zr.length&&sd(t,Zr[a].priority);a++);Zr.splice(a,0,n),a===0&&Oh(n)}function ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],a=pd(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(a===null){var r=e.nativeEvent,i=new r.constructor(r.type,r);V0(i),r.target.dispatchEvent(i),P0()}else{var o=ti(a);return o!==null&&cd(o),e.blockedOn=a,!1}t.shift()}return!0}function Ah(e,t,n){ms(e)&&n.delete(t)}function pE(){fd=!1,Xr!==null&&ms(Xr)&&(Xr=null),Qr!==null&&ms(Qr)&&(Qr=null),Kr!==null&&ms(Kr)&&(Kr=null),Ol.forEach(Ah),Al.forEach(Ah)}function jl(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,k.unstable_scheduleCallback(k.unstable_NormalPriority,pE)))}function Ul(e){if(ps.length>0){jl(ps[0],e);for(var t=1;t<ps.length;t++){var n=ps[t];n.blockedOn===e&&(n.blockedOn=null)}}Xr!==null&&jl(Xr,e),Qr!==null&&jl(Qr,e),Kr!==null&&jl(Kr,e);var a=function(l){return jl(l,e)};Ol.forEach(a),Al.forEach(a);for(var r=0;r<Zr.length;r++){var i=Zr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;Zr.length>0;){var o=Zr[0];if(o.blockedOn!==null)break;Oh(o),o.blockedOn===null&&Zr.shift()}}var Ro=me.ReactCurrentBatchConfig,dd=!0;function Nh(e){dd=!!e}function mE(){return dd}function hE(e,t,n){var a=jh(t),r;switch(a){case Ca:r=yE;break;case wr:r=gE;break;case Dr:default:r=vd;break}return r.bind(null,t,n,e)}function yE(e,t,n,a){var r=Ya(),i=Ro.transition;Ro.transition=null;try{Nn(Ca),vd(e,t,n,a)}finally{Nn(r),Ro.transition=i}}function gE(e,t,n,a){var r=Ya(),i=Ro.transition;Ro.transition=null;try{Nn(wr),vd(e,t,n,a)}finally{Nn(r),Ro.transition=i}}function vd(e,t,n,a){dd&&bE(e,t,n,a)}function bE(e,t,n,a){var r=pd(e,t,n,a);if(r===null){_d(e,t,a,hs,n),kh(e,a);return}if(dE(r,e,t,n,a)){a.stopPropagation();return}if(kh(e,a),t&gl&&cE(e)){for(;r!==null;){var i=ti(r);i!==null&&rE(i);var o=pd(e,t,n,a);if(o===null&&_d(e,t,a,hs,n),o===r)break;r=o}r!==null&&a.stopPropagation();return}_d(e,t,a,null,n)}var hs=null;function pd(e,t,n,a){hs=null;var r=Sf(a),i=Vi(r);if(i!==null){var o=Oi(i);if(o===null)i=null;else{var l=o.tag;if(l===Re){var u=nh(o);if(u!==null)return u;i=null}else if(l===G){var f=o.stateNode;if(vs(f))return ah(o);i=null}else o!==i&&(i=null)}}return hs=i,null}function jh(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 Ca;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 wr;case"message":{var t=cT();switch(t){case is:return Ca;case jf:return wr;case Ai:case fT:return Dr;case Uf:return ds;default:return Dr}}default:return Dr}}function SE(e,t,n){return e.addEventListener(t,n,!1),n}function TE(e,t,n){return e.addEventListener(t,n,!0),n}function EE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function CE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var zl=null,md=null,Hl=null;function xE(e){return zl=e,md=zh(),!0}function RE(){zl=null,md=null,Hl=null}function Uh(){if(Hl)return Hl;var e,t=md,n=t.length,a,r=zh(),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 Hl=r.slice(e,l),Hl}function zh(){return"value"in zl?zl.value:zl.textContent}function ys(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 gs(){return!0}function Hh(){return!1}function xa(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=gs:this.isDefaultPrevented=Hh,this.isPropagationStopped=Hh,this}return Me(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=gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gs)},persist:function(){},isPersistent:gs}),t}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=xa(wo),Fl=Me({},wo,{view:0,detail:0}),wE=xa(Fl),yd,gd,Vl;function DE(e){e!==Vl&&(Vl&&e.type==="mousemove"?(yd=e.screenX-Vl.screenX,gd=e.screenY-Vl.screenY):(yd=0,gd=0),Vl=e)}var bs=Me({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sd,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:(DE(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Fh=xa(bs),_E=Me({},bs,{dataTransfer:0}),ME=xa(_E),LE=Me({},Fl,{relatedTarget:0}),bd=xa(LE),kE=Me({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),OE=xa(kE),AE=Me({},wo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NE=xa(AE),jE=Me({},wo,{data:0}),Vh=xa(jE),UE=Vh,zE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HE={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 FE(e){if(e.key){var t=zE[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=ys(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?HE[e.keyCode]||"Unidentified":""}var VE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=VE[e];return a?!!n[a]:!1}function Sd(e){return PE}var BE=Me({},Fl,{key:FE,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sd,charCode:function(e){return e.type==="keypress"?ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$E=xa(BE),YE=Me({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ph=xa(YE),IE=Me({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),WE=xa(IE),qE=Me({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),GE=xa(qE),XE=Me({},bs,{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}),QE=xa(XE),KE=[9,13,27,32],Bh=229,Td=Jt&&"CompositionEvent"in window,Pl=null;Jt&&"documentMode"in document&&(Pl=document.documentMode);var ZE=Jt&&"TextEvent"in window&&!Pl,$h=Jt&&(!Td||Pl&&Pl>8&&Pl<=11),Yh=32,Ih=String.fromCharCode(Yh);function JE(){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 Wh=!1;function eC(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function tC(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function nC(e,t){return e==="keydown"&&t.keyCode===Bh}function qh(e,t){switch(e){case"keyup":return KE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Bh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Xh(e){return e.locale==="ko"}var Do=!1;function aC(e,t,n,a,r){var i,o;if(Td?i=tC(t):Do?qh(t,a)&&(i="onCompositionEnd"):nC(t,a)&&(i="onCompositionStart"),!i)return null;$h&&!Xh(a)&&(!Do&&i==="onCompositionStart"?Do=xE(r):i==="onCompositionEnd"&&Do&&(o=Uh()));var l=xs(n,i);if(l.length>0){var u=new Vh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var f=Gh(a);f!==null&&(u.data=f)}}}function rC(e,t){switch(e){case"compositionend":return Gh(t);case"keypress":var n=t.which;return n!==Yh?null:(Wh=!0,Ih);case"textInput":var a=t.data;return a===Ih&&Wh?null:a;default:return null}}function iC(e,t){if(Do){if(e==="compositionend"||!Td&&qh(e,t)){var n=Uh();return RE(),Do=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!eC(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $h&&!Xh(t)?null:t.data;default:return null}}function oC(e,t,n,a,r){var i;if(ZE?i=rC(t,a):i=iC(t,a),!i)return null;var o=xs(n,"onBeforeInput");if(o.length>0){var l=new UE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function lC(e,t,n,a,r,i,o){aC(e,t,n,a,r),oC(e,t,n,a,r)}var uC={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 Qh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uC[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 sC(e){if(!Jt)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 cC(){it("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Kh(e,t,n,a){qm(a);var r=xs(t,"onChange");if(r.length>0){var i=new hd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Bl=null,$l=null;function fC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function dC(e){var t=[];Kh(t,$l,e,Sf(e)),Km(vC,t)}function vC(e){my(e,0)}function Ss(e){var t=Ao(e);if(dl(t))return e}function pC(e,t){if(e==="change")return t}var Zh=!1;Jt&&(Zh=sC("input")&&(!document.documentMode||document.documentMode>9));function mC(e,t){Bl=e,$l=t,Bl.attachEvent("onpropertychange",ey)}function Jh(){Bl&&(Bl.detachEvent("onpropertychange",ey),Bl=null,$l=null)}function ey(e){e.propertyName==="value"&&Ss($l)&&dC(e)}function hC(e,t,n){e==="focusin"?(Jh(),mC(t,n)):e==="focusout"&&Jh()}function yC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss($l)}function gC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function bC(e,t){if(e==="click")return Ss(t)}function SC(e,t){if(e==="input"||e==="change")return Ss(t)}function TC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Oe(e,"number",e.value)}function EC(e,t,n,a,r,i,o){var l=n?Ao(n):window,u,f;if(fC(l)?u=pC:Qh(l)?Zh?u=SC:(u=yC,f=hC):gC(l)&&(u=bC),u){var v=u(t,n);if(v){Kh(e,v,a,r);return}}f&&f(t,l,n),t==="focusout"&&TC(l)}function CC(){We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"])}function xC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!B0(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Vi(f)||ru(f)))return}if(!(!u&&!l)){var v;if(r.window===r)v=r;else{var b=r.ownerDocument;b?v=b.defaultView||b.parentWindow:v=window}var g,D;if(u){var L=a.relatedTarget||a.toElement;if(g=n,D=L?Vi(L):null,D!==null){var A=Oi(D);(D!==A||D.tag!==ne&&D.tag!==Ue)&&(D=null)}}else g=null,D=n;if(g!==D){var re=Fh,we="onMouseLeave",Te="onMouseEnter",pt="mouse";(t==="pointerout"||t==="pointerover")&&(re=Ph,we="onPointerLeave",Te="onPointerEnter",pt="pointer");var ut=g==null?v:Ao(g),x=D==null?v:Ao(D),N=new re(we,pt+"leave",g,a,r);N.target=ut,N.relatedTarget=x;var R=null,q=Vi(r);if(q===n){var de=new re(Te,pt+"enter",D,a,r);de.target=x,de.relatedTarget=ut,R=de}GC(e,N,R,g,D)}}}function RC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ra=typeof Object.is=="function"?Object.is:RC;function Yl(e,t){if(Ra(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(!xn.call(t,i)||!Ra(e[i],t[i]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ny(e,t){for(var n=ty(e),a=0,r=0;n;){if(n.nodeType===Er){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=ty(wC(n))}}function DC(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 _C(e,r,i,o,l)}function _C(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,v=e,b=null;e:for(;;){for(var g=null;v===t&&(n===0||v.nodeType===Er)&&(o=i+n),v===a&&(r===0||v.nodeType===Er)&&(l=i+r),v.nodeType===Er&&(i+=v.nodeValue.length),(g=v.firstChild)!==null;)b=v,v=g;for(;;){if(v===e)break e;if(b===t&&++u===n&&(o=i),b===a&&++f===r&&(l=i),(g=v.nextSibling)!==null)break;v=b,b=v.parentNode}v=g}return o===-1||l===-1?null:{start:o,end:l}}function MC(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=ny(e,o),v=ny(e,l);if(f&&v){if(r.rangeCount===1&&r.anchorNode===f.node&&r.anchorOffset===f.offset&&r.focusNode===v.node&&r.focusOffset===v.offset)return;var b=n.createRange();b.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(b),r.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),r.addRange(b))}}}function ay(e){return e&&e.nodeType===Er}function ry(e,t){return!e||!t?!1:e===t?!0:ay(e)?!1:ay(t)?ry(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function LC(e){return e&&e.ownerDocument&&ry(e.ownerDocument.documentElement,e)}function kC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function iy(){for(var e=window,t=br();t instanceof e.HTMLIFrameElement;){if(kC(t))e=t.contentWindow;else return t;t=br(e.document)}return t}function Ed(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 OC(){var e=iy();return{focusedElem:e,selectionRange:Ed(e)?NC(e):null}}function AC(e){var t=iy(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&LC(n)){a!==null&&Ed(n)&&jC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ca&&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 NC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=DC(e),t||{start:0,end:0}}function jC(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)):MC(e,t)}var UC=Jt&&"documentMode"in document&&document.documentMode<=11;function zC(){it("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var _o=null,Cd=null,Il=null,xd=!1;function HC(e){if("selectionStart"in e&&Ed(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 FC(e){return e.window===e?e.document:e.nodeType===Cr?e:e.ownerDocument}function oy(e,t,n){var a=FC(n);if(!(xd||_o==null||_o!==br(a))){var r=HC(_o);if(!Il||!Yl(Il,r)){Il=r;var i=xs(Cd,"onSelect");if(i.length>0){var o=new hd("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=_o}}}}function VC(e,t,n,a,r,i,o){var l=n?Ao(n):window;switch(t){case"focusin":(Qh(l)||l.contentEditable==="true")&&(_o=l,Cd=n,Il=null);break;case"focusout":_o=null,Cd=null,Il=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,oy(e,a,r);break;case"selectionchange":if(UC)break;case"keydown":case"keyup":oy(e,a,r)}}function Ts(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mo={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},Rd={},ly={};Jt&&(ly=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);function Es(e){if(Rd[e])return Rd[e];if(!Mo[e])return e;var t=Mo[e];for(var n in t)if(t.hasOwnProperty(n)&&n in ly)return Rd[e]=t[n];return e}var uy=Es("animationend"),sy=Es("animationiteration"),cy=Es("animationstart"),fy=Es("transitionend"),dy=new Map,vy=["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 Jr(e,t){dy.set(e,t),it(t,[e])}function PC(){for(var e=0;e<vy.length;e++){var t=vy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);Jr(n,"on"+a)}Jr(uy,"onAnimationEnd"),Jr(sy,"onAnimationIteration"),Jr(cy,"onAnimationStart"),Jr("dblclick","onDoubleClick"),Jr("focusin","onFocus"),Jr("focusout","onBlur"),Jr(fy,"onTransitionEnd")}function BC(e,t,n,a,r,i,o){var l=dy.get(t);if(l!==void 0){var u=hd,f=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=$E;break;case"focusin":f="focus",u=bd;break;case"focusout":f="blur",u=bd;break;case"beforeblur":case"afterblur":u=bd;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=Fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ME;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=WE;break;case uy:case sy:case cy:u=OE;break;case fy:u=GE;break;case"scroll":u=wE;break;case"wheel":u=QE;break;case"copy":case"cut":case"paste":u=NE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Ph;break}var v=(i&gl)!==0;{var b=!v&&t==="scroll",g=WC(n,l,a.type,v,b);if(g.length>0){var D=new u(l,f,null,a,r);e.push({event:D,listeners:g})}}}}PC(),CC(),cC(),zC(),JE();function $C(e,t,n,a,r,i,o){BC(e,t,n,a,r,i);var l=(i&F0)===0;l&&(xC(e,t,n,a,r),EC(e,t,n,a,r),VC(e,t,n,a,r),lC(e,t,n,a,r))}var Wl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],wd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Wl));function py(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,K0(a,t,void 0,e),e.currentTarget=null}function YC(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;py(e,u,l),a=o}else for(var f=0;f<t.length;f++){var v=t[f],b=v.instance,g=v.currentTarget,D=v.listener;if(b!==a&&e.isPropagationStopped())return;py(e,D,g),a=b}}function my(e,t){for(var n=(t&gl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;YC(i,o,n)}Z0()}function IC(e,t,n,a,r){var i=Sf(n),o=[];$C(o,e,a,n,i,t),my(o,t)}function Zt(e,t){wd.has(e)||d('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=T1(t),r=XC(e);a.has(r)||(hy(t,e,bf,n),a.add(r))}function Dd(e,t,n){wd.has(e)&&!t&&d('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|=gl),hy(n,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function ql(e){if(!e[Cs]){e[Cs]=!0,$t.forEach(function(n){n!=="selectionchange"&&(wd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===Cr?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function hy(e,t,n,a,r){var i=hE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?EE(e,t,i,o):TE(e,t,i):o!==void 0?CE(e,t,i,o):SE(e,t,i)}function yy(e,t){return e===t||e.nodeType===pn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Im)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===G||u===j){var f=l.stateNode.containerInfo;if(yy(f,o))break;if(u===j)for(var v=l.return;v!==null;){var b=v.tag;if(b===G||b===j){var g=v.stateNode.containerInfo;if(yy(g,o))return}v=v.return}for(;f!==null;){var D=Vi(f);if(D===null)return;var L=D.tag;if(L===ne||L===Ue){l=i=D;continue e}f=f.parentNode}}l=l.return}}}Km(function(){return IC(e,t,n,i)})}function Gl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function WC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],f=e,v=null;f!==null;){var b=f,g=b.stateNode,D=b.tag;if(D===ne&&g!==null&&(v=g,l!==null)){var L=Sl(f,l);L!=null&&u.push(Gl(f,L,v))}if(r)break;f=f.return}return u}function xs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===ne&&o!==null){var u=o,f=Sl(r,n);f!=null&&a.unshift(Gl(r,f,u));var v=Sl(r,t);v!=null&&a.push(Gl(r,v,u))}r=r.return}return a}function Lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==ne);return e||null}function qC(e,t){for(var n=e,a=t,r=0,i=n;i;i=Lo(i))r++;for(var o=0,l=a;l;l=Lo(l))o++;for(;r-o>0;)n=Lo(n),r--;for(;o-r>0;)a=Lo(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=Lo(n),a=Lo(a)}return null}function gy(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,f=u.alternate,v=u.stateNode,b=u.tag;if(f!==null&&f===a)break;if(b===ne&&v!==null){var g=v;if(r){var D=Sl(l,i);D!=null&&o.unshift(Gl(l,D,g))}else if(!r){var L=Sl(l,i);L!=null&&o.push(Gl(l,L,g))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function GC(e,t,n,a,r){var i=a&&r?qC(a,r):null;a!==null&&gy(e,t,a,i,!1),r!==null&&n!==null&&gy(e,n,r,i,!0)}function XC(e,t){return e+"__bubble"}var fa=!1,Xl="dangerouslySetInnerHTML",Rs="suppressContentEditableWarning",ei="suppressHydrationWarning",by="autoFocus",Hi="children",Fi="style",ws="__html",Md,Ds,Ql,Sy,_s,Ty,Ey;Md={dialog:!0,webview:!0},Ds=function(e,t){O0(e,t),A0(e,t),H0(e,t,{registrationNameDependencies:Ie,possibleRegistrationNames:Nt})},Ty=Jt&&!document.documentMode,Ql=function(e,t,n){if(!fa){var a=Ms(n),r=Ms(t);r!==a&&(fa=!0,d("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},Sy=function(e){if(!fa){fa=!0;var t=[];e.forEach(function(n){t.push(n)}),d("Extra attributes from the server: %s",t)}},_s=function(e,t){t===!1?d("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):d("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Ey=function(e,t){var n=e.namespaceURI===Tr?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var QC=/\r\n?/g,KC=/\u0000|\uFFFD/g;function Ms(e){pe(e);var t=typeof e=="string"?e:""+e;return t.replace(QC,`
`).replace(KC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(fa||(fa=!0,d('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&$))throw new Error("Text content does not match server-rendered HTML.")}function Cy(e){return e.nodeType===Cr?e:e.ownerDocument}function ZC(){}function ks(e){e.onclick=ZC}function JC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Fi)o&&Object.freeze(o),Fm(t,o);else if(i===Xl){var l=o?o[ws]:void 0;l!=null&&Nm(t,l)}else if(i===Hi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Ju(t,o)}else typeof o=="number"&&Ju(t,""+o);else i===Rs||i===ei||i===by||(Ie.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Zt("scroll",t)):o!=null&&ya(t,i,o,r))}}function ex(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Fi?Fm(e,o):i===Xl?Nm(e,o):i===Hi?Ju(e,o):ya(e,i,o,a)}}function tx(e,t,n,a){var r,i=Cy(n),o,l=a;if(l===Tr&&(l=vf(e)),l===Tr){if(r=Ri(e,t),!r&&e!==e.toLowerCase()&&d("<%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 v=o;t.multiple?v.multiple=!0:t.size&&(v.size=t.size)}}else o=i.createElementNS(l,e);return l===Tr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!xn.call(Md,e)&&(Md[e]=!0,d("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 nx(e,t){return Cy(t).createTextNode(e)}function ax(e,t,n,a){var r=Ri(t,n);Ds(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<Wl.length;o++)Zt(Wl[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":Qu(e,n),i=vl(e,n),Zt("invalid",e);break;case"option":jt(e,n),i=n;break;case"select":hl(e,n),i=ml(e,n),Zt("invalid",e);break;case"textarea":km(e,n),i=ff(e,n),Zt("invalid",e);break;default:i=n}switch(gf(t,i),JC(t,e,a,i,r),t){case"input":Ci(e),M(e,n,!1);break;case"textarea":Ci(e),Am(e);break;case"option":Wt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&ks(e);break}}function rx(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=vl(e,n),l=vl(e,a),i=[];break;case"select":o=ml(e,n),l=ml(e,a),i=[];break;case"textarea":o=ff(e,n),l=ff(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&ks(e);break}gf(t,l);var u,f,v=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Fi){var b=o[u];for(f in b)b.hasOwnProperty(f)&&(v||(v={}),v[f]="")}else u===Xl||u===Hi||u===Rs||u===ei||u===by||(Ie.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var g=l[u],D=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||g===D||g==null&&D==null))if(u===Fi)if(g&&Object.freeze(g),D){for(f in D)D.hasOwnProperty(f)&&(!g||!g.hasOwnProperty(f))&&(v||(v={}),v[f]="");for(f in g)g.hasOwnProperty(f)&&D[f]!==g[f]&&(v||(v={}),v[f]=g[f])}else v||(i||(i=[]),i.push(u,v)),v=g;else if(u===Xl){var L=g?g[ws]:void 0,A=D?D[ws]:void 0;L!=null&&A!==L&&(i=i||[]).push(u,L)}else u===Hi?(typeof g=="string"||typeof g=="number")&&(i=i||[]).push(u,""+g):u===Rs||u===ei||(Ie.hasOwnProperty(u)?(g!=null&&(typeof g!="function"&&_s(u,g),u==="onScroll"&&Zt("scroll",e)),!i&&D!==g&&(i=[])):(i=i||[]).push(u,g))}return v&&(x0(v,l[Fi]),(i=i||[]).push(Fi,v)),i}function ix(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ri(n,a),o=Ri(n,r);switch(ex(e,t,i,o),n){case"input":h(e,r);break;case"textarea":Om(e,r);break;case"select":Ku(e,r);break}}function ox(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function lx(e,t,n,a,r,i,o){var l,u;switch(l=Ri(t,n),Ds(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<Wl.length;f++)Zt(Wl[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":Qu(e,n),Zt("invalid",e);break;case"option":jt(e,n);break;case"select":hl(e,n),Zt("invalid",e);break;case"textarea":km(e,n),Zt("invalid",e);break}gf(t,n);{u=new Set;for(var v=e.attributes,b=0;b<v.length;b++){var g=v[b].name.toLowerCase();switch(g){case"value":break;case"checked":break;case"selected":break;default:u.add(v[b].name)}}}var D=null;for(var L in n)if(n.hasOwnProperty(L)){var A=n[L];if(L===Hi)typeof A=="string"?e.textContent!==A&&(n[ei]!==!0&&Ls(e.textContent,A,i,o),D=[Hi,A]):typeof A=="number"&&e.textContent!==""+A&&(n[ei]!==!0&&Ls(e.textContent,A,i,o),D=[Hi,""+A]);else if(Ie.hasOwnProperty(L))A!=null&&(typeof A!="function"&&_s(L,A),L==="onScroll"&&Zt("scroll",e));else if(o&&typeof l=="boolean"){var re=void 0,we=It(L);if(n[ei]!==!0){if(!(L===Rs||L===ei||L==="value"||L==="checked"||L==="selected")){if(L===Xl){var Te=e.innerHTML,pt=A?A[ws]:void 0;if(pt!=null){var ut=Ey(e,pt);ut!==Te&&Ql(L,Te,ut)}}else if(L===Fi){if(u.delete(L),Ty){var x=E0(A);re=e.getAttribute("style"),x!==re&&Ql(L,re,x)}}else if(l)u.delete(L.toLowerCase()),re=Fa(e,L,A),A!==re&&Ql(L,re,A);else if(!Qt(L,we,l)&&!Dn(L,A,we,l)){var N=!1;if(we!==null)u.delete(we.attributeName),re=Ha(e,L,A,we);else{var R=a;if(R===Tr&&(R=vf(t)),R===Tr)u.delete(L.toLowerCase());else{var q=ox(L);q!==null&&q!==L&&(N=!0,u.delete(q)),u.delete(L)}re=Fa(e,L,A)}var de=ht;!de&&A!==re&&!N&&Ql(L,re,A)}}}}}switch(o&&u.size>0&&n[ei]!==!0&&Sy(u),t){case"input":Ci(e),M(e,n,!0);break;case"textarea":Ci(e),Am(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&ks(e);break}return D}function ux(e,t,n){var a=e.nodeValue!==t;return a}function Ld(e,t){{if(fa)return;fa=!0,d("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function kd(e,t){{if(fa)return;fa=!0,d('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Od(e,t,n){{if(fa)return;fa=!0,d("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||fa)return;fa=!0,d('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function sx(e,t,n){switch(t){case"input":O(e,n);return;case"textarea":a0(e,n);return;case"select":cf(e,n);return}}var Kl=function(){},Zl=function(){};{var cx=["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"],xy=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],fx=xy.concat(["button"]),dx=["dd","dt","li","option","optgroup","p","rp","rt"],Ry={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Zl=function(e,t){var n=Me({},e||Ry),a={tag:t};return xy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),fx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),cx.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 vx=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 dx.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},px=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},wy={};Kl=function(e,t,n){n=n||Ry;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&d("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=vx(e,r)?null:a,o=i?null:px(e,n),l=i||o;if(l){var u=l.tag,f=!!i+"|"+e+"|"+u;if(!wy[f]){wy[f]=!0;var v=e,b="";if(e==="#text"?/\S/.test(t)?v="Text nodes":(v="Whitespace text nodes",b=" Make sure you don't have any extra whitespace between tags on each line of your source code."):v="<"+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."),d("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",v,u,b,g)}else d("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",v,u)}}}}var Os="suppressHydrationWarning",As="$",Ns="/$",Jl="$?",eu="$!",mx="style",Nd=null,jd=null;function hx(e){var t,n,a=e.nodeType;switch(a){case Cr:case mf:{t=a===Cr?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:pf(null,"");break}default:{var i=a===pn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=pf(o,t);break}}{var l=t.toLowerCase(),u=Zl(null,l);return{namespace:n,ancestorInfo:u}}}function yx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Zl(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function y_(e){return e}function gx(e){Nd=mE(),jd=OC();var t=null;return Nh(!1),t}function bx(e){AC(jd),Nh(Nd),Nd=null,jd=null}function Sx(e,t,n,a,r){var i;{var o=a;if(Kl(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=Zl(o.ancestorInfo,e);Kl(null,l,u)}i=o.namespace}var f=tx(e,t,n,i);return au(r,f),$d(f,t),f}function Tx(e,t){e.appendChild(t)}function Ex(e,t,n,a,r){switch(ax(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Cx(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=Zl(o.ancestorInfo,t);Kl(null,l,u)}}return rx(e,t,n,a)}function Ud(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 xx(e,t,n,a){{var r=n;Kl(null,e,r.ancestorInfo)}var i=nx(e,t);return au(a,i),i}function Rx(){var e=window.event;return e===void 0?Dr:jh(e.type)}var zd=typeof setTimeout=="function"?setTimeout:void 0,wx=typeof clearTimeout=="function"?clearTimeout:void 0,Hd=-1,Dy=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dy<"u"?function(e){return Dy.resolve(null).then(e).catch(_x)}:zd;function _x(e){setTimeout(function(){throw e})}function Mx(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 Lx(e,t,n,a,r,i){ix(e,t,n,a,r),$d(e,r)}function _y(e){Ju(e,"")}function kx(e,t,n){e.nodeValue=n}function Ox(e,t){e.appendChild(t)}function Ax(e,t){var n;e.nodeType===pn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&ks(n)}function Nx(e,t,n){e.insertBefore(t,n)}function jx(e,t,n){e.nodeType===pn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Ux(e,t){e.removeChild(t)}function zx(e,t){e.nodeType===pn?e.parentNode.removeChild(t):e.removeChild(t)}function Fd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===pn){var i=r.data;if(i===Ns)if(a===0){e.removeChild(r),Ul(t);return}else a--;else(i===As||i===Jl||i===eu)&&a++}n=r}while(n);Ul(t)}function Hx(e,t){e.nodeType===pn?Fd(e.parentNode,t):e.nodeType===ca&&Fd(e,t),Ul(e)}function Fx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function Vx(e){e.nodeValue=""}function Px(e,t){e=e;var n=t[mx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Bx(e,t){e.nodeValue=t}function $x(e){e.nodeType===ca?e.textContent="":e.nodeType===Cr&&e.documentElement&&e.removeChild(e.documentElement)}function Yx(e,t,n){return e.nodeType!==ca||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Ix(e,t){return t===""||e.nodeType!==Er?null:e}function Wx(e){return e.nodeType!==pn?null:e}function My(e){return e.data===Jl}function Vd(e){return e.data===eu}function qx(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 Gx(e,t){e._reactRetry=t}function js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ca||t===Er)break;if(t===pn){var n=e.data;if(n===As||n===eu||n===Jl)break;if(n===Ns)return null}}return e}function tu(e){return js(e.nextSibling)}function Xx(e){return js(e.firstChild)}function Qx(e){return js(e.firstChild)}function Kx(e){return js(e.nextSibling)}function Zx(e,t,n,a,r,i,o){au(i,e),$d(e,n);var l;{var u=r;l=u.namespace}var f=(i.mode&dt)!==ke;return lx(e,t,n,l,a,f,o)}function Jx(e,t,n,a){return au(n,e),n.mode&dt,ux(e,t)}function e1(e,t){au(t,e)}function t1(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===pn){var a=t.data;if(a===Ns){if(n===0)return tu(t);n--}else(a===As||a===eu||a===Jl)&&n++}t=t.nextSibling}return null}function Ly(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===pn){var a=t.data;if(a===As||a===eu||a===Jl){if(n===0)return t;n--}else a===Ns&&n++}t=t.previousSibling}return null}function n1(e){Ul(e)}function a1(e){Ul(e)}function r1(e){return e!=="head"&&e!=="body"}function i1(e,t,n,a){var r=!0;Ls(t.nodeValue,n,a,r)}function o1(e,t,n,a,r,i){if(t[Os]!==!0){var o=!0;Ls(a.nodeValue,r,i,o)}}function l1(e,t){t.nodeType===ca?Ld(e,t):t.nodeType===pn||kd(e,t)}function u1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ca?Ld(n,t):t.nodeType===pn||kd(n,t))}}function s1(e,t,n,a,r){(r||t[Os]!==!0)&&(a.nodeType===ca?Ld(n,a):a.nodeType===pn||kd(n,a))}function c1(e,t,n){Od(e,t)}function f1(e,t){Ad(e,t)}function d1(e,t,n){{var a=e.parentNode;a!==null&&Od(a,t)}}function v1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function p1(e,t,n,a,r,i){(i||t[Os]!==!0)&&Od(n,a)}function m1(e,t,n,a,r){(r||t[Os]!==!0)&&Ad(n,a)}function h1(e){d("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function y1(e){ql(e)}var ko=Math.random().toString(36).slice(2),Oo="__reactFiber$"+ko,Pd="__reactProps$"+ko,nu="__reactContainer$"+ko,Bd="__reactEvents$"+ko,g1="__reactListeners$"+ko,b1="__reactHandles$"+ko;function S1(e){delete e[Oo],delete e[Pd],delete e[Bd],delete e[g1],delete e[b1]}function au(e,t){t[Oo]=e}function Us(e,t){t[nu]=e}function ky(e){e[nu]=null}function ru(e){return!!e[nu]}function Vi(e){var t=e[Oo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nu]||n[Oo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=Ly(e);r!==null;){var i=r[Oo];if(i)return i;r=Ly(r)}return t}e=n,n=e.parentNode}return null}function ti(e){var t=e[Oo]||e[nu];return t&&(t.tag===ne||t.tag===Ue||t.tag===Re||t.tag===G)?t:null}function Ao(e){if(e.tag===ne||e.tag===Ue)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zs(e){return e[Pd]||null}function $d(e,t){e[Pd]=t}function T1(e){var t=e[Bd];return t===void 0&&(t=e[Bd]=new Set),t}var Oy={},Ay=me.ReactDebugCurrentFrame;function Hs(e){if(e){var t=e._owner,n=ll(e.type,e._source,t?t.type:null);Ay.setExtraStackFrame(n)}else Ay.setExtraStackFrame(null)}function Ia(e,t,n,a,r){{var i=Function.call.bind(xn);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)&&(Hs(r),d("%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),Hs(null)),l instanceof Error&&!(l.message in Oy)&&(Oy[l.message]=!0,Hs(r),d("Failed %s type: %s",n,l.message),Hs(null))}}}var Yd=[],Fs;Fs=[];var _r=-1;function ni(e){return{current:e}}function Wn(e,t){if(_r<0){d("Unexpected pop.");return}t!==Fs[_r]&&d("Unexpected Fiber popped."),e.current=Yd[_r],Yd[_r]=null,Fs[_r]=null,_r--}function qn(e,t,n){_r++,Yd[_r]=e.current,Fs[_r]=n,e.current=t}var Id;Id={};var wa={};Object.freeze(wa);var Mr=ni(wa),or=ni(!1),Wd=wa;function No(e,t,n){return n&&lr(t)?Wd:Mr.current}function Ny(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function jo(e,t){{var n=e.type,a=n.contextTypes;if(!a)return wa;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=Ke(e)||"Unknown";Ia(a,i,"context",l)}return r&&Ny(e,t,i),i}}function Vs(){return or.current}function lr(e){{var t=e.childContextTypes;return t!=null}}function Ps(e){Wn(or,e),Wn(Mr,e)}function qd(e){Wn(or,e),Wn(Mr,e)}function jy(e,t,n){{if(Mr.current!==wa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");qn(Mr,t,e),qn(or,n,e)}}function Uy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Ke(e)||"Unknown";Id[i]||(Id[i]=!0,d("%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((Ke(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Ke(e)||"Unknown";Ia(r,o,"child context",u)}return Me({},n,o)}}function Bs(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||wa;return Wd=Mr.current,qn(Mr,n,e),qn(or,or.current,e),!0}}function zy(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=Uy(e,t,Wd);a.__reactInternalMemoizedMergedChildContext=r,Wn(or,e),Wn(Mr,e),qn(Mr,r,e),qn(or,n,e)}else Wn(or,e),qn(or,n,e)}}function E1(e){{if(!rT(e)||e.tag!==oe)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 G:return t.stateNode.context;case oe:{var n=t.type;if(lr(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 ai=0,$s=1,Lr=null,Gd=!1,Xd=!1;function Hy(e){Lr===null?Lr=[e]:Lr.push(e)}function C1(e){Gd=!0,Hy(e)}function Fy(){Gd&&ri()}function ri(){if(!Xd&&Lr!==null){Xd=!0;var e=0,t=Ya();try{var n=!0,a=Lr;for(Nn(Ca);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Lr=null,Gd=!1}catch(i){throw Lr!==null&&(Lr=Lr.slice(e+1)),sh(is,ri),i}finally{Nn(t),Xd=!1}}return null}var Uo=[],zo=0,Ys=null,Is=0,ka=[],Oa=0,Pi=null,kr=1,Or="";function x1(e){return $i(),(e.flags&th)!==je}function R1(e){return $i(),Is}function w1(){var e=Or,t=kr,n=t&~D1(t);return n.toString(32)+e}function Bi(e,t){$i(),Uo[zo++]=Is,Uo[zo++]=Ys,Ys=e,Is=t}function Vy(e,t,n){$i(),ka[Oa++]=kr,ka[Oa++]=Or,ka[Oa++]=Pi,Pi=e;var a=kr,r=Or,i=Ws(a)-1,o=a&~(1<<i),l=n+1,u=Ws(t)+i;if(u>30){var f=i-i%5,v=(1<<f)-1,b=(o&v).toString(32),g=o>>f,D=i-f,L=Ws(t)+D,A=l<<D,re=A|g,we=b+r;kr=1<<L|re,Or=we}else{var Te=l<<i,pt=Te|o,ut=r;kr=1<<u|pt,Or=ut}}function Qd(e){$i();var t=e.return;if(t!==null){var n=1,a=0;Bi(e,n),Vy(e,n,a)}}function Ws(e){return 32-mh(e)}function D1(e){return 1<<Ws(e)-1}function Kd(e){for(;e===Ys;)Ys=Uo[--zo],Uo[zo]=null,Is=Uo[--zo],Uo[zo]=null;for(;e===Pi;)Pi=ka[--Oa],ka[Oa]=null,Or=ka[--Oa],ka[Oa]=null,kr=ka[--Oa],ka[Oa]=null}function _1(){return $i(),Pi!==null?{id:kr,overflow:Or}:null}function M1(e,t){$i(),ka[Oa++]=kr,ka[Oa++]=Or,ka[Oa++]=Pi,kr=t.id,Or=t.overflow,Pi=e}function $i(){Un()||d("Expected to be hydrating. This is a bug in React. Please file an issue.")}var jn=null,Aa=null,Wa=!1,Yi=!1,ii=null;function L1(){Wa&&d("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Py(){Yi=!0}function k1(){return Yi}function O1(e){var t=e.stateNode.containerInfo;return Aa=Qx(t),jn=e,Wa=!0,ii=null,Yi=!1,!0}function A1(e,t,n){return Aa=Kx(t),jn=e,Wa=!0,ii=null,Yi=!1,n!==null&&M1(e,n),!0}function By(e,t){switch(e.tag){case G:{l1(e.stateNode.containerInfo,t);break}case ne:{var n=(e.mode&dt)!==ke;s1(e.type,e.memoizedProps,e.stateNode,t,n);break}case Re:{var a=e.memoizedState;a.dehydrated!==null&&u1(a.dehydrated,t);break}}}function $y(e,t){By(e,t);var n=zD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=wi):a.push(n)}function Zd(e,t){{if(Yi)return;switch(e.tag){case G:{var n=e.stateNode.containerInfo;switch(t.tag){case ne:var a=t.type;t.pendingProps,c1(n,a);break;case Ue:var r=t.pendingProps;f1(n,r);break}break}case ne:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case ne:{var u=t.type,f=t.pendingProps,v=(e.mode&dt)!==ke;p1(i,o,l,u,f,v);break}case Ue:{var b=t.pendingProps,g=(e.mode&dt)!==ke;m1(i,o,l,b,g);break}}break}case Re:{var D=e.memoizedState,L=D.dehydrated;if(L!==null)switch(t.tag){case ne:var A=t.type;t.pendingProps,d1(L,A);break;case Ue:var re=t.pendingProps;v1(L,re);break}break}default:return}}}function Yy(e,t){t.flags=t.flags&-4097|Ln,Zd(e,t)}function Iy(e,t){switch(e.tag){case ne:{var n=e.type;e.pendingProps;var a=Yx(t,n);return a!==null?(e.stateNode=a,jn=e,Aa=Xx(a),!0):!1}case Ue:{var r=e.pendingProps,i=Ix(t,r);return i!==null?(e.stateNode=i,jn=e,Aa=null,!0):!1}case Re:{var o=Wx(t);if(o!==null){var l={dehydrated:o,treeContext:_1(),retryLane:La};e.memoizedState=l;var u=HD(o);return u.return=e,e.child=u,jn=e,Aa=null,!0}return!1}default:return!1}}function Jd(e){return(e.mode&dt)!==ke&&(e.flags&Mt)===je}function ev(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function tv(e){if(Wa){var t=Aa;if(!t){Jd(e)&&(Zd(jn,e),ev()),Yy(jn,e),Wa=!1,jn=e;return}var n=t;if(!Iy(e,t)){Jd(e)&&(Zd(jn,e),ev()),t=tu(n);var a=jn;if(!t||!Iy(e,t)){Yy(jn,e),Wa=!1,jn=e;return}$y(a,n)}}}function N1(e,t,n){var a=e.stateNode,r=!Yi,i=Zx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function j1(e){var t=e.stateNode,n=e.memoizedProps,a=Jx(t,n,e);if(a){var r=jn;if(r!==null)switch(r.tag){case G:{var i=r.stateNode.containerInfo,o=(r.mode&dt)!==ke;i1(i,t,n,o);break}case ne:{var l=r.type,u=r.memoizedProps,f=r.stateNode,v=(r.mode&dt)!==ke;o1(l,u,f,t,n,v);break}}}return a}function U1(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.");e1(n,e)}function z1(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 t1(n)}function Wy(e){for(var t=e.return;t!==null&&t.tag!==ne&&t.tag!==G&&t.tag!==Re;)t=t.return;jn=t}function qs(e){if(e!==jn)return!1;if(!Wa)return Wy(e),Wa=!0,!1;if(e.tag!==G&&(e.tag!==ne||r1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Aa;if(t)if(Jd(e))qy(e),ev();else for(;t;)$y(e,t),t=tu(t)}return Wy(e),e.tag===Re?Aa=z1(e):Aa=jn?tu(e.stateNode):null,!0}function H1(){return Wa&&Aa!==null}function qy(e){for(var t=Aa;t;)By(e,t),t=tu(t)}function Ho(){jn=null,Aa=null,Wa=!1,Yi=!1}function Gy(){ii!==null&&(Pb(ii),ii=null)}function Un(){return Wa}function nv(e){ii===null?ii=[e]:ii.push(e)}var F1=me.ReactCurrentBatchConfig,V1=null;function P1(){return F1.transition}var qa={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var B1=function(e){for(var t=null,n=e;n!==null;)n.mode&on&&(t=n),n=n.return;return t},Ii=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},iu=[],ou=[],lu=[],uu=[],su=[],cu=[],Wi=new Set;qa.recordUnsafeLifecycleWarnings=function(e,t){Wi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&iu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillMount=="function"&&ou.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&uu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&su.push(e),e.mode&on&&typeof t.UNSAFE_componentWillUpdate=="function"&&cu.push(e))},qa.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;iu.length>0&&(iu.forEach(function(g){e.add(Ke(g)||"Component"),Wi.add(g.type)}),iu=[]);var t=new Set;ou.length>0&&(ou.forEach(function(g){t.add(Ke(g)||"Component"),Wi.add(g.type)}),ou=[]);var n=new Set;lu.length>0&&(lu.forEach(function(g){n.add(Ke(g)||"Component"),Wi.add(g.type)}),lu=[]);var a=new Set;uu.length>0&&(uu.forEach(function(g){a.add(Ke(g)||"Component"),Wi.add(g.type)}),uu=[]);var r=new Set;su.length>0&&(su.forEach(function(g){r.add(Ke(g)||"Component"),Wi.add(g.type)}),su=[]);var i=new Set;if(cu.length>0&&(cu.forEach(function(g){i.add(Ke(g)||"Component"),Wi.add(g.type)}),cu=[]),t.size>0){var o=Ii(t);d(`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=Ii(a);d(`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=Ii(i);d(`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=Ii(e);Ee(`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 v=Ii(n);Ee(`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`,v)}if(r.size>0){var b=Ii(r);Ee(`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 Gs=new Map,Xy=new Set;qa.recordLegacyContextWarning=function(e,t){var n=B1(e);if(n===null){d("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(!Xy.has(e.type)){var a=Gs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Gs.set(n,a)),a.push(e))}},qa.flushLegacyContextWarning=function(){Gs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Ke(i)||"Component"),Xy.add(i.type)});var r=Ii(a);try{tn(n),d(`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{Mn()}}})},qa.discardPendingWarnings=function(){iu=[],ou=[],lu=[],uu=[],su=[],cu=[],Gs=new Map}}var av,rv,iv,ov,lv,Qy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Qy=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=Ke(t)||"Component";ov[n]||(ov[n]=!0,d('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function $1(e){return e.prototype&&e.prototype.isReactComponent}function fu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&on||Ze)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==oe)&&!(typeof n.type=="function"&&!$1(n.type))&&n._owner){var r=Ke(e)||"Component";iv[r]||(d('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),iv[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==oe)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;U(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var v=function(b){var g=u.refs;b===null?delete g[f]:g[f]=b};return v._stringRef=f,v}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 Xs(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 Qs(e){{var t=Ke(e)||"Component";if(lv[t])return;lv[t]=!0,d("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 Ky(e){var t=e._payload,n=e._init;return n(t)}function Zy(e){function t(x,N){if(e){var R=x.deletions;R===null?(x.deletions=[N],x.flags|=wi):R.push(N)}}function n(x,N){if(!e)return null;for(var R=N;R!==null;)t(x,R),R=R.sibling;return null}function a(x,N){for(var R=new Map,q=N;q!==null;)q.key!==null?R.set(q.key,q):R.set(q.index,q),q=q.sibling;return R}function r(x,N){var R=to(x,N);return R.index=0,R.sibling=null,R}function i(x,N,R){if(x.index=R,!e)return x.flags|=th,N;var q=x.alternate;if(q!==null){var de=q.index;return de<N?(x.flags|=Ln,N):de}else return x.flags|=Ln,N}function o(x){return e&&x.alternate===null&&(x.flags|=Ln),x}function l(x,N,R,q){if(N===null||N.tag!==Ue){var de=nm(R,x.mode,q);return de.return=x,de}else{var se=r(N,R);return se.return=x,se}}function u(x,N,R,q){var de=R.type;if(de===F)return v(x,N,R.props.children,q,R.key);if(N!==null&&(N.elementType===de||aS(N,R)||typeof de=="object"&&de!==null&&de.$$typeof===ae&&Ky(de)===N.type)){var se=r(N,R.props);return se.ref=fu(x,N,R),se.return=x,se._debugSource=R._source,se._debugOwner=R._owner,se}var ze=tm(R,x.mode,q);return ze.ref=fu(x,N,R),ze.return=x,ze}function f(x,N,R,q){if(N===null||N.tag!==j||N.stateNode.containerInfo!==R.containerInfo||N.stateNode.implementation!==R.implementation){var de=am(R,x.mode,q);return de.return=x,de}else{var se=r(N,R.children||[]);return se.return=x,se}}function v(x,N,R,q,de){if(N===null||N.tag!==kt){var se=hi(R,x.mode,q,de);return se.return=x,se}else{var ze=r(N,R);return ze.return=x,ze}}function b(x,N,R){if(typeof N=="string"&&N!==""||typeof N=="number"){var q=nm(""+N,x.mode,R);return q.return=x,q}if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Kn:{var de=tm(N,x.mode,R);return de.ref=fu(x,null,N),de.return=x,de}case y:{var se=am(N,x.mode,R);return se.return=x,se}case ae:{var ze=N._payload,Ge=N._init;return b(x,Ge(ze),R)}}if(lt(N)||Ft(N)){var Ht=hi(N,x.mode,R,null);return Ht.return=x,Ht}Xs(x,N)}return typeof N=="function"&&Qs(x),null}function g(x,N,R,q){var de=N!==null?N.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return de!==null?null:l(x,N,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Kn:return R.key===de?u(x,N,R,q):null;case y:return R.key===de?f(x,N,R,q):null;case ae:{var se=R._payload,ze=R._init;return g(x,N,ze(se),q)}}if(lt(R)||Ft(R))return de!==null?null:v(x,N,R,q,null);Xs(x,R)}return typeof R=="function"&&Qs(x),null}function D(x,N,R,q,de){if(typeof q=="string"&&q!==""||typeof q=="number"){var se=x.get(R)||null;return l(N,se,""+q,de)}if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Kn:{var ze=x.get(q.key===null?R:q.key)||null;return u(N,ze,q,de)}case y:{var Ge=x.get(q.key===null?R:q.key)||null;return f(N,Ge,q,de)}case ae:var Ht=q._payload,St=q._init;return D(x,N,R,St(Ht),de)}if(lt(q)||Ft(q)){var sn=x.get(R)||null;return v(N,sn,q,de,null)}Xs(N,q)}return typeof q=="function"&&Qs(N),null}function L(x,N,R){{if(typeof x!="object"||x===null)return N;switch(x.$$typeof){case Kn:case y:Qy(x,R);var q=x.key;if(typeof q!="string")break;if(N===null){N=new Set,N.add(q);break}if(!N.has(q)){N.add(q);break}d("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.",q);break;case ae:var de=x._payload,se=x._init;L(se(de),N,R);break}}return N}function A(x,N,R,q){for(var de=null,se=0;se<R.length;se++){var ze=R[se];de=L(ze,de,x)}for(var Ge=null,Ht=null,St=N,sn=0,Tt=0,ln=null;St!==null&&Tt<R.length;Tt++){St.index>Tt?(ln=St,St=null):ln=St.sibling;var Xn=g(x,St,R[Tt],q);if(Xn===null){St===null&&(St=ln);break}e&&St&&Xn.alternate===null&&t(x,St),sn=i(Xn,sn,Tt),Ht===null?Ge=Xn:Ht.sibling=Xn,Ht=Xn,St=ln}if(Tt===R.length){if(n(x,St),Un()){var $n=Tt;Bi(x,$n)}return Ge}if(St===null){for(;Tt<R.length;Tt++){var _a=b(x,R[Tt],q);_a!==null&&(sn=i(_a,sn,Tt),Ht===null?Ge=_a:Ht.sibling=_a,Ht=_a)}if(Un()){var ia=Tt;Bi(x,ia)}return Ge}for(var oa=a(x,St);Tt<R.length;Tt++){var Qn=D(oa,x,Tt,R[Tt],q);Qn!==null&&(e&&Qn.alternate!==null&&oa.delete(Qn.key===null?Tt:Qn.key),sn=i(Qn,sn,Tt),Ht===null?Ge=Qn:Ht.sibling=Qn,Ht=Qn)}if(e&&oa.forEach(function(al){return t(x,al)}),Un()){var Fr=Tt;Bi(x,Fr)}return Ge}function re(x,N,R,q){var de=Ft(R);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"&&R[Symbol.toStringTag]==="Generator"&&(rv||d("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."),rv=!0),R.entries===de&&(av||d("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var se=de.call(R);if(se)for(var ze=null,Ge=se.next();!Ge.done;Ge=se.next()){var Ht=Ge.value;ze=L(Ht,ze,x)}}var St=de.call(R);if(St==null)throw new Error("An iterable object provided no iterator.");for(var sn=null,Tt=null,ln=N,Xn=0,$n=0,_a=null,ia=St.next();ln!==null&&!ia.done;$n++,ia=St.next()){ln.index>$n?(_a=ln,ln=null):_a=ln.sibling;var oa=g(x,ln,ia.value,q);if(oa===null){ln===null&&(ln=_a);break}e&&ln&&oa.alternate===null&&t(x,ln),Xn=i(oa,Xn,$n),Tt===null?sn=oa:Tt.sibling=oa,Tt=oa,ln=_a}if(ia.done){if(n(x,ln),Un()){var Qn=$n;Bi(x,Qn)}return sn}if(ln===null){for(;!ia.done;$n++,ia=St.next()){var Fr=b(x,ia.value,q);Fr!==null&&(Xn=i(Fr,Xn,$n),Tt===null?sn=Fr:Tt.sibling=Fr,Tt=Fr)}if(Un()){var al=$n;Bi(x,al)}return sn}for(var $u=a(x,ln);!ia.done;$n++,ia=St.next()){var mr=D($u,x,$n,ia.value,q);mr!==null&&(e&&mr.alternate!==null&&$u.delete(mr.key===null?$n:mr.key),Xn=i(mr,Xn,$n),Tt===null?sn=mr:Tt.sibling=mr,Tt=mr)}if(e&&$u.forEach(function(m_){return t(x,m_)}),Un()){var p_=$n;Bi(x,p_)}return sn}function we(x,N,R,q){if(N!==null&&N.tag===Ue){n(x,N.sibling);var de=r(N,R);return de.return=x,de}n(x,N);var se=nm(R,x.mode,q);return se.return=x,se}function Te(x,N,R,q){for(var de=R.key,se=N;se!==null;){if(se.key===de){var ze=R.type;if(ze===F){if(se.tag===kt){n(x,se.sibling);var Ge=r(se,R.props.children);return Ge.return=x,Ge._debugSource=R._source,Ge._debugOwner=R._owner,Ge}}else if(se.elementType===ze||aS(se,R)||typeof ze=="object"&&ze!==null&&ze.$$typeof===ae&&Ky(ze)===se.type){n(x,se.sibling);var Ht=r(se,R.props);return Ht.ref=fu(x,se,R),Ht.return=x,Ht._debugSource=R._source,Ht._debugOwner=R._owner,Ht}n(x,se);break}else t(x,se);se=se.sibling}if(R.type===F){var St=hi(R.props.children,x.mode,q,R.key);return St.return=x,St}else{var sn=tm(R,x.mode,q);return sn.ref=fu(x,N,R),sn.return=x,sn}}function pt(x,N,R,q){for(var de=R.key,se=N;se!==null;){if(se.key===de)if(se.tag===j&&se.stateNode.containerInfo===R.containerInfo&&se.stateNode.implementation===R.implementation){n(x,se.sibling);var ze=r(se,R.children||[]);return ze.return=x,ze}else{n(x,se);break}else t(x,se);se=se.sibling}var Ge=am(R,x.mode,q);return Ge.return=x,Ge}function ut(x,N,R,q){var de=typeof R=="object"&&R!==null&&R.type===F&&R.key===null;if(de&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case Kn:return o(Te(x,N,R,q));case y:return o(pt(x,N,R,q));case ae:var se=R._payload,ze=R._init;return ut(x,N,ze(se),q)}if(lt(R))return A(x,N,R,q);if(Ft(R))return re(x,N,R,q);Xs(x,R)}return typeof R=="string"&&R!==""||typeof R=="number"?o(we(x,N,""+R,q)):(typeof R=="function"&&Qs(x),n(x,N))}return ut}var Fo=Zy(!0),Jy=Zy(!1);function Y1(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=to(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=to(n,n.pendingProps),a.return=t;a.sibling=null}}function I1(e,t){for(var n=e.child;n!==null;)OD(n,t),n=n.sibling}var uv=ni(null),sv;sv={};var Ks=null,Vo=null,cv=null,Zs=!1;function Js(){Ks=null,Vo=null,cv=null,Zs=!1}function eg(){Zs=!0}function tg(){Zs=!1}function ng(e,t,n){qn(uv,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sv&&d("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sv}function fv(e,t){var n=uv.current;Wn(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(xo(a.childLanes,t)?r!==null&&!xo(r.childLanes,t)&&(r.childLanes=tt(r.childLanes,t)):(a.childLanes=tt(a.childLanes,t),r!==null&&(r.childLanes=tt(r.childLanes,t))),a===n)break;a=a.return}a!==n&&d("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 W1(e,t,n){q1(e,t,n)}function q1(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===oe){var l=Ml(n),u=Ar(Gt,l);u.tag=tc;var f=a.updateQueue;if(f!==null){var v=f.shared,b=v.pending;b===null?u.next=u:(u.next=b.next,b.next=u),v.pending=u}}a.lanes=tt(a.lanes,n);var g=a.alternate;g!==null&&(g.lanes=tt(g.lanes,n)),dv(a.return,n,e),i.lanes=tt(i.lanes,n);break}o=o.next}}else if(a.tag===Xe)r=a.type===e.type?null:a.child;else if(a.tag===Fe){var D=a.return;if(D===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");D.lanes=tt(D.lanes,n);var L=D.alternate;L!==null&&(L.lanes=tt(L.lanes,n)),dv(D,n,e),r=a.sibling}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}var A=r.sibling;if(A!==null){A.return=r.return,r=A;break}r=r.return}a=r}}function Po(e,t){Ks=e,Vo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(Ea(n.lanes,t)&&wu(),n.firstContext=null)}}function mn(e){Zs&&d("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(cv!==e){var n={context:e,memoizedValue:t,next:null};if(Vo===null){if(Ks===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().");Vo=n,Ks.dependencies={lanes:W,firstContext:n}}else Vo=Vo.next=n}return t}var qi=null;function vv(e){qi===null?qi=[e]:qi.push(e)}function G1(){if(qi!==null){for(var e=0;e<qi.length;e++){var t=qi[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}}qi=null}}function ag(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function X1(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function Q1(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function da(e,t){return ec(e,t)}var K1=ec;function ec(e,t){e.lanes=tt(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=tt(n.lanes,t)),n===null&&(e.flags&(Ln|Mi))!==je&&Jb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=tt(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=tt(n.childLanes,t):(r.flags&(Ln|Mi))!==je&&Jb(e),a=r,r=r.return;if(a.tag===G){var i=a.stateNode;return i}else return null}var rg=0,ig=1,tc=2,pv=3,nc=!1,mv,ac;mv=!1,ac=null;function hv(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:W},effects:null};e.updateQueue=t}function og(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 Ar(e,t){var n={eventTime:e,lane:t,tag:rg,payload:null,callback:null,next:null};return n}function oi(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(ac===r&&!mv&&(d("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."),mv=!0),Xw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,K1(e,n)}else return Q1(e,r,t,n)}function rc(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(bh(n)){var i=r.lanes;i=Th(i,e.pendingLanes);var o=tt(i,n);r.lanes=o,ud(e,o)}}}function yv(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 v=n.lastBaseUpdate;v===null?n.firstBaseUpdate=t:v.next=t,n.lastBaseUpdate=t}function Z1(e,t,n,a,r,i){switch(n.tag){case ig:{var o=n.payload;if(typeof o=="function"){eg();var l=o.call(i,a,r);{if(e.mode&on){On(!0);try{o.call(i,a,r)}finally{On(!1)}}tg()}return l}return o}case pv:e.flags=e.flags&-65537|Mt;case rg:{var u=n.payload,f;if(typeof u=="function"){eg(),f=u.call(i,a,r);{if(e.mode&on){On(!0);try{u.call(i,a,r)}finally{On(!1)}}tg()}}else f=u;return f==null?a:Me({},a,f)}case tc:return nc=!0,a}return a}function ic(e,t,n,a){var r=e.updateQueue;nc=!1,ac=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 v=e.alternate;if(v!==null){var b=v.updateQueue,g=b.lastBaseUpdate;g!==o&&(g===null?b.firstBaseUpdate=f:g.next=f,b.lastBaseUpdate=u)}}if(i!==null){var D=r.baseState,L=W,A=null,re=null,we=null,Te=i;do{var pt=Te.lane,ut=Te.eventTime;if(xo(a,pt)){if(we!==null){var N={eventTime:ut,lane:An,tag:Te.tag,payload:Te.payload,callback:Te.callback,next:null};we=we.next=N}D=Z1(e,r,Te,D,t,n);var R=Te.callback;if(R!==null&&Te.lane!==An){e.flags|=eh;var q=r.effects;q===null?r.effects=[Te]:q.push(Te)}}else{var x={eventTime:ut,lane:pt,tag:Te.tag,payload:Te.payload,callback:Te.callback,next:null};we===null?(re=we=x,A=D):we=we.next=x,L=tt(L,pt)}if(Te=Te.next,Te===null){if(l=r.shared.pending,l===null)break;var de=l,se=de.next;de.next=null,Te=se,r.lastBaseUpdate=de,r.shared.pending=null}}while(!0);we===null&&(A=D),r.baseState=A,r.firstBaseUpdate=re,r.lastBaseUpdate=we;var ze=r.shared.interleaved;if(ze!==null){var Ge=ze;do L=tt(L,Ge.lane),Ge=Ge.next;while(Ge!==ze)}else i===null&&(r.shared.lanes=W);Hu(L),e.lanes=L,e.memoizedState=D}ac=null}function J1(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function lg(){nc=!1}function oc(){return nc}function ug(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,J1(o,n))}}var du={},li=ni(du),vu=ni(du),lc=ni(du);function uc(e){if(e===du)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 sg(){var e=uc(lc.current);return e}function gv(e,t){qn(lc,t,e),qn(vu,e,e),qn(li,du,e);var n=hx(t);Wn(li,e),qn(li,n,e)}function Bo(e){Wn(li,e),Wn(vu,e),Wn(lc,e)}function bv(){var e=uc(li.current);return e}function cg(e){uc(lc.current);var t=uc(li.current),n=yx(t,e.type);t!==n&&(qn(vu,e,e),qn(li,n,e))}function Sv(e){vu.current===e&&(Wn(li,e),Wn(vu,e))}var eR=0,fg=1,dg=1,pu=2,Ga=ni(eR);function Tv(e,t){return(e&t)!==0}function $o(e){return e&fg}function Ev(e,t){return e&fg|t}function tR(e,t){return e|t}function ui(e,t){qn(Ga,t,e)}function Yo(e){Wn(Ga,e)}function nR(e,t){var n=e.memoizedState;return n!==null?n.dehydrated!==null:(e.memoizedProps,!0)}function sc(e){for(var t=e;t!==null;){if(t.tag===Re){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||My(a)||Vd(a))return t}}else if(t.tag===ee&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&Mt)!==je;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 va=0,hn=1,ur=2,yn=4,zn=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function aR(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var fe=me.ReactCurrentDispatcher,mu=me.ReactCurrentBatchConfig,Rv,Io;Rv=new Set;var Gi=W,zt=null,gn=null,bn=null,cc=!1,hu=!1,yu=0,rR=0,iR=25,z=null,Na=null,si=-1,wv=!1;function Lt(){{var e=z;Na===null?Na=[e]:Na.push(e)}}function te(){{var e=z;Na!==null&&(si++,Na[si]!==e&&oR(e))}}function Wo(e){e!=null&&!lt(e)&&d("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",z,typeof e)}function oR(e){{var t=Ke(zt);if(!Rv.has(t)&&(Rv.add(t),Na!==null)){for(var n="",a=30,r=0;r<=si;r++){for(var i=Na[r],o=r===si?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
`,n+=l}d(`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 Gn(){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 Dv(e,t){if(wv)return!1;if(t===null)return d("%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.",z),!1;e.length!==t.length&&d(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,z,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Ra(e[n],t[n]))return!1;return!0}function qo(e,t,n,a,r,i){Gi=i,zt=t,Na=e!==null?e._debugHookTypes:null,si=-1,wv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=W,e!==null&&e.memoizedState!==null?fe.current=Ng:Na!==null?fe.current=Ag:fe.current=Og;var o=n(a,r);if(hu){var l=0;do{if(hu=!1,yu=0,l>=iR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,wv=!1,gn=null,bn=null,t.updateQueue=null,si=-1,fe.current=jg,o=n(a,r)}while(hu)}fe.current=Cc,t._debugHookTypes=Na;var u=gn!==null&&gn.next!==null;if(Gi=W,zt=null,gn=null,bn=null,z=null,Na=null,si=-1,e!==null&&(e.flags&xr)!==(t.flags&xr)&&(e.mode&dt)!==ke&&d("Internal React error: Expected static flag was missing. Please notify the React team."),cc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Go(){var e=yu!==0;return yu=0,e}function vg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&rr)!==ke?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function pg(){if(fe.current=Cc,cc){for(var e=zt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}Gi=W,zt=null,gn=null,bn=null,Na=null,si=-1,z=null,Dg=!1,hu=!1,yu=0}function sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?zt.memoizedState=bn=e:bn=bn.next=e,bn}function ja(){var e;if(gn===null){var t=zt.alternate;t!==null?e=t.memoizedState:e=null}else e=gn.next;var n;if(bn===null?n=zt.memoizedState:n=bn.next,n!==null)bn=n,n=bn.next,gn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");gn=e;var a={memoizedState:gn.memoizedState,baseState:gn.baseState,baseQueue:gn.baseQueue,queue:gn.queue,next:null};bn===null?zt.memoizedState=bn=a:bn=bn.next=a}return bn}function mg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function Mv(e,t,n){var a=sr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:W,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=cR.bind(null,zt,i);return[a.memoizedState,o]}function Lv(e,t,n){var a=ja(),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=gn,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&&d("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 v=o.next,b=i.baseState,g=null,D=null,L=null,A=v;do{var re=A.lane;if(xo(Gi,re)){if(L!==null){var Te={lane:An,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};L=L.next=Te}if(A.hasEagerState)b=A.eagerState;else{var pt=A.action;b=e(b,pt)}}else{var we={lane:re,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};L===null?(D=L=we,g=b):L=L.next=we,zt.lanes=tt(zt.lanes,re),Hu(re)}A=A.next}while(A!==null&&A!==v);L===null?g=b:L.next=D,Ra(b,a.memoizedState)||wu(),a.memoizedState=b,a.baseState=g,a.baseQueue=L,r.lastRenderedState=b}var ut=r.interleaved;if(ut!==null){var x=ut;do{var N=x.lane;zt.lanes=tt(zt.lanes,N),Hu(N),x=x.next}while(x!==ut)}else o===null&&(r.lanes=W);var R=r.dispatch;return[a.memoizedState,R]}function kv(e,t,n){var a=ja(),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 v=f.action;l=e(l,v),f=f.next}while(f!==u);Ra(l,a.memoizedState)||wu(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function g_(e,t,n){}function b_(e,t,n){}function Ov(e,t,n){var a=zt,r=sr(),i,o=Un();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(),Io||i!==n()&&(d("The result of getServerSnapshot should be cached to avoid an infinite loop"),Io=!0)}else{if(i=t(),!Io){var l=t();Ra(i,l)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Io=!0)}var u=Bc();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(u,Gi)||hg(a,t,i)}r.memoizedState=i;var f={value:i,getSnapshot:t};return r.queue=f,mc(gg.bind(null,a,f,e),[e]),a.flags|=qr,gu(hn|zn,yg.bind(null,a,f,i,t),void 0,null),i}function fc(e,t,n){var a=zt,r=ja(),i=t();if(!Io){var o=t();Ra(i,o)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Io=!0)}var l=r.memoizedState,u=!Ra(l,i);u&&(r.memoizedState=i,wu());var f=r.queue;if(Su(gg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||bn!==null&&bn.memoizedState.tag&hn){a.flags|=qr,gu(hn|zn,yg.bind(null,a,f,i,t),void 0,null);var v=Bc();if(v===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(v,Gi)||hg(a,t,i)}return i}function hg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=zt.updateQueue;if(r===null)r=mg(),zt.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function yg(e,t,n,a){t.value=n,t.getSnapshot=a,bg(t)&&Sg(e)}function gg(e,t,n){var a=function(){bg(t)&&Sg(e)};return n(a)}function bg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Ra(n,a)}catch{return!0}}function Sg(e){var t=da(e,$e);t!==null&&Cn(t,e,$e,Gt)}function dc(e){var t=sr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:W,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=fR.bind(null,zt,n);return[t.memoizedState,a]}function Av(e){return Lv(_v)}function Nv(e){return kv(_v)}function gu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=zt.updateQueue;if(i===null)i=mg(),zt.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 jv(e){var t=sr();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=ja();return t.memoizedState}function bu(e,t,n,a){var r=sr(),i=a===void 0?null:a;zt.flags|=e,r.memoizedState=gu(hn|t,n,void 0,i)}function pc(e,t,n,a){var r=ja(),i=a===void 0?null:a,o=void 0;if(gn!==null){var l=gn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=gu(t,n,o,i);return}}}zt.flags|=e,r.memoizedState=gu(hn|t,n,o,i)}function mc(e,t){return(zt.mode&rr)!==ke?bu(Of|qr|kf,zn,e,t):bu(qr|kf,zn,e,t)}function Su(e,t){return pc(qr,zn,e,t)}function Uv(e,t){return bu(Ct,ur,e,t)}function hc(e,t){return pc(Ct,ur,e,t)}function zv(e,t){var n=Ct;return n|=ki,(zt.mode&rr)!==ke&&(n|=Gr),bu(n,yn,e,t)}function yc(e,t){return pc(Ct,yn,e,t)}function Tg(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")||d("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 Hv(e,t,n){typeof t!="function"&&d("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=Ct;return r|=ki,(zt.mode&rr)!==ke&&(r|=Gr),bu(r,yn,Tg.bind(null,t,e),a)}function gc(e,t,n){typeof t!="function"&&d("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 pc(Ct,yn,Tg.bind(null,t,e),a)}function lR(e,t){}var bc=lR;function Fv(e,t){var n=sr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=ja(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}return n.memoizedState=[e,a],e}function Vv(e,t){var n=sr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=ja(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Pv(e){var t=sr();return t.memoizedState=e,e}function Eg(e){var t=ja(),n=gn,a=n.memoizedState;return xg(t,a,e)}function Cg(e){var t=ja();if(gn===null)return t.memoizedState=e,e;var n=gn.memoizedState;return xg(t,n,e)}function xg(e,t,n){var a=!WT(Gi);if(a){if(!Ra(n,t)){var r=Sh();zt.lanes=tt(zt.lanes,r),Hu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,wu()),e.memoizedState=n,n}function uR(e,t,n){var a=Ya();Nn(tE(a,wr)),e(!0);var r=mu.transition;mu.transition={};var i=mu.transition;mu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Nn(a),mu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&Ee("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 Bv(){var e=dc(!1),t=e[0],n=e[1],a=uR.bind(null,n),r=sr();return r.memoizedState=a,[t,a]}function Rg(){var e=Av(),t=e[0],n=ja(),a=n.memoizedState;return[t,a]}function wg(){var e=Nv(),t=e[0],n=ja(),a=n.memoizedState;return[t,a]}var Dg=!1;function sR(){return Dg}function $v(){var e=sr(),t=Bc(),n=t.identifierPrefix,a;if(Un()){var r=w1();a=":"+n+"R"+r;var i=yu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=rR++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=ja(),t=e.memoizedState;return t}function cR(e,t,n){typeof arguments[3]=="function"&&d("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=pi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))Mg(t,r);else{var i=ag(e,t,r,a);if(i!==null){var o=ra();Cn(i,e,a,o),Lg(i,t,a)}}kg(e,a)}function fR(e,t,n){typeof arguments[3]=="function"&&d("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=pi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))Mg(t,r);else{var i=e.alternate;if(e.lanes===W&&(i===null||i.lanes===W)){var o=t.lastRenderedReducer;if(o!==null){var l;l=fe.current,fe.current=Xa;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,Ra(f,u)){X1(e,t,r,a);return}}catch{}finally{fe.current=l}}}var v=ag(e,t,r,a);if(v!==null){var b=ra();Cn(v,e,a,b),Lg(v,t,a)}}kg(e,a)}function _g(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function Mg(e,t){hu=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lg(e,t,n){if(bh(n)){var a=t.lanes;a=Th(a,e.pendingLanes);var r=tt(a,n);t.lanes=r,ud(e,r)}}function kg(e,t,n){zf(e,t)}var Cc={readContext:mn,useCallback:Gn,useContext:Gn,useEffect:Gn,useImperativeHandle:Gn,useInsertionEffect:Gn,useLayoutEffect:Gn,useMemo:Gn,useReducer:Gn,useRef:Gn,useState:Gn,useDebugValue:Gn,useDeferredValue:Gn,useTransition:Gn,useMutableSource:Gn,useSyncExternalStore:Gn,useId:Gn,unstable_isNewReconciler:He},Og=null,Ag=null,Ng=null,jg=null,cr=null,Xa=null,xc=null;{var Yv=function(){d("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().")},Ye=function(){d("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")};Og={readContext:function(e){return mn(e)},useCallback:function(e,t){return z="useCallback",Lt(),Wo(t),Fv(e,t)},useContext:function(e){return z="useContext",Lt(),mn(e)},useEffect:function(e,t){return z="useEffect",Lt(),Wo(t),mc(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Lt(),Wo(n),Hv(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Lt(),Wo(t),Uv(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Lt(),Wo(t),zv(e,t)},useMemo:function(e,t){z="useMemo",Lt(),Wo(t);var n=fe.current;fe.current=cr;try{return Vv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",Lt();var a=fe.current;fe.current=cr;try{return Mv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",Lt(),jv(e)},useState:function(e){z="useState",Lt();var t=fe.current;fe.current=cr;try{return dc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Lt(),void 0},useDeferredValue:function(e){return z="useDeferredValue",Lt(),Pv(e)},useTransition:function(){return z="useTransition",Lt(),Bv()},useMutableSource:function(e,t,n){return z="useMutableSource",Lt(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Lt(),Ov(e,t,n)},useId:function(){return z="useId",Lt(),$v()},unstable_isNewReconciler:He},Ag={readContext:function(e){return mn(e)},useCallback:function(e,t){return z="useCallback",te(),Fv(e,t)},useContext:function(e){return z="useContext",te(),mn(e)},useEffect:function(e,t){return z="useEffect",te(),mc(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",te(),Hv(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",te(),Uv(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",te(),zv(e,t)},useMemo:function(e,t){z="useMemo",te();var n=fe.current;fe.current=cr;try{return Vv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",te();var a=fe.current;fe.current=cr;try{return Mv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",te(),jv(e)},useState:function(e){z="useState",te();var t=fe.current;fe.current=cr;try{return dc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",te(),void 0},useDeferredValue:function(e){return z="useDeferredValue",te(),Pv(e)},useTransition:function(){return z="useTransition",te(),Bv()},useMutableSource:function(e,t,n){return z="useMutableSource",te(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",te(),Ov(e,t,n)},useId:function(){return z="useId",te(),$v()},unstable_isNewReconciler:He},Ng={readContext:function(e){return mn(e)},useCallback:function(e,t){return z="useCallback",te(),Sc(e,t)},useContext:function(e){return z="useContext",te(),mn(e)},useEffect:function(e,t){return z="useEffect",te(),Su(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",te(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",te(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",te(),yc(e,t)},useMemo:function(e,t){z="useMemo",te();var n=fe.current;fe.current=Xa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",te();var a=fe.current;fe.current=Xa;try{return Lv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",te(),vc()},useState:function(e){z="useState",te();var t=fe.current;fe.current=Xa;try{return Av(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",te(),bc()},useDeferredValue:function(e){return z="useDeferredValue",te(),Eg(e)},useTransition:function(){return z="useTransition",te(),Rg()},useMutableSource:function(e,t,n){return z="useMutableSource",te(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",te(),fc(e,t)},useId:function(){return z="useId",te(),Ec()},unstable_isNewReconciler:He},jg={readContext:function(e){return mn(e)},useCallback:function(e,t){return z="useCallback",te(),Sc(e,t)},useContext:function(e){return z="useContext",te(),mn(e)},useEffect:function(e,t){return z="useEffect",te(),Su(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",te(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",te(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",te(),yc(e,t)},useMemo:function(e,t){z="useMemo",te();var n=fe.current;fe.current=xc;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",te();var a=fe.current;fe.current=xc;try{return kv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",te(),vc()},useState:function(e){z="useState",te();var t=fe.current;fe.current=xc;try{return Nv(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",te(),bc()},useDeferredValue:function(e){return z="useDeferredValue",te(),Cg(e)},useTransition:function(){return z="useTransition",te(),wg()},useMutableSource:function(e,t,n){return z="useMutableSource",te(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",te(),fc(e,t)},useId:function(){return z="useId",te(),Ec()},unstable_isNewReconciler:He},cr={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return z="useCallback",Ye(),Lt(),Fv(e,t)},useContext:function(e){return z="useContext",Ye(),Lt(),mn(e)},useEffect:function(e,t){return z="useEffect",Ye(),Lt(),mc(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Ye(),Lt(),Hv(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Ye(),Lt(),Uv(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Ye(),Lt(),zv(e,t)},useMemo:function(e,t){z="useMemo",Ye(),Lt();var n=fe.current;fe.current=cr;try{return Vv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",Ye(),Lt();var a=fe.current;fe.current=cr;try{return Mv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",Ye(),Lt(),jv(e)},useState:function(e){z="useState",Ye(),Lt();var t=fe.current;fe.current=cr;try{return dc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Ye(),Lt(),void 0},useDeferredValue:function(e){return z="useDeferredValue",Ye(),Lt(),Pv(e)},useTransition:function(){return z="useTransition",Ye(),Lt(),Bv()},useMutableSource:function(e,t,n){return z="useMutableSource",Ye(),Lt(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Ye(),Lt(),Ov(e,t,n)},useId:function(){return z="useId",Ye(),Lt(),$v()},unstable_isNewReconciler:He},Xa={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return z="useCallback",Ye(),te(),Sc(e,t)},useContext:function(e){return z="useContext",Ye(),te(),mn(e)},useEffect:function(e,t){return z="useEffect",Ye(),te(),Su(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Ye(),te(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Ye(),te(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Ye(),te(),yc(e,t)},useMemo:function(e,t){z="useMemo",Ye(),te();var n=fe.current;fe.current=Xa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",Ye(),te();var a=fe.current;fe.current=Xa;try{return Lv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",Ye(),te(),vc()},useState:function(e){z="useState",Ye(),te();var t=fe.current;fe.current=Xa;try{return Av(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Ye(),te(),bc()},useDeferredValue:function(e){return z="useDeferredValue",Ye(),te(),Eg(e)},useTransition:function(){return z="useTransition",Ye(),te(),Rg()},useMutableSource:function(e,t,n){return z="useMutableSource",Ye(),te(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Ye(),te(),fc(e,t)},useId:function(){return z="useId",Ye(),te(),Ec()},unstable_isNewReconciler:He},xc={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return z="useCallback",Ye(),te(),Sc(e,t)},useContext:function(e){return z="useContext",Ye(),te(),mn(e)},useEffect:function(e,t){return z="useEffect",Ye(),te(),Su(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Ye(),te(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Ye(),te(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Ye(),te(),yc(e,t)},useMemo:function(e,t){z="useMemo",Ye(),te();var n=fe.current;fe.current=Xa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",Ye(),te();var a=fe.current;fe.current=Xa;try{return kv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",Ye(),te(),vc()},useState:function(e){z="useState",Ye(),te();var t=fe.current;fe.current=Xa;try{return Nv(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Ye(),te(),bc()},useDeferredValue:function(e){return z="useDeferredValue",Ye(),te(),Cg(e)},useTransition:function(){return z="useTransition",Ye(),te(),wg()},useMutableSource:function(e,t,n){return z="useMutableSource",Ye(),te(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Ye(),te(),fc(e,t)},useId:function(){return z="useId",Ye(),te(),Ec()},unstable_isNewReconciler:He}}var ci=k.unstable_now,Ug=0,Rc=-1,Tu=-1,wc=-1,Iv=!1,Dc=!1;function zg(){return Iv}function dR(){Dc=!0}function vR(){Iv=!1,Dc=!1}function pR(){Iv=Dc,Dc=!1}function Hg(){return Ug}function Fg(){Ug=ci()}function Wv(e){Tu=ci(),e.actualStartTime<0&&(e.actualStartTime=ci())}function Vg(e){Tu=-1}function _c(e,t){if(Tu>=0){var n=ci()-Tu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Tu=-1}}function fr(e){if(Rc>=0){var t=ci()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case G:var a=n.stateNode;a.effectDuration+=t;return;case mt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(wc>=0){var t=ci()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case G:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case mt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function dr(){Rc=ci()}function Gv(){wc=ci()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Qa(e,t){if(e&&e.defaultProps){var n=Me({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Qv={},Kv,Zv,Jv,ep,tp,Pg,Mc,np,ap,rp,Eu;{Kv=new Set,Zv=new Set,Jv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,Eu=new Set;var Bg=new Set;Mc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;Bg.has(n)||(Bg.add(n),d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Pg=function(e,t){if(t===void 0){var n=Et(e)||"Component";tp.has(n)||(tp.add(n),d("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Qv,"_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(Qv)}function ip(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&on){On(!0);try{i=n(a,r)}finally{On(!1)}}Pg(t,i)}var o=i==null?r:Me({},r,i);if(e.memoizedState=o,e.lanes===W){var l=e.updateQueue;l.baseState=o}}var op={isMounted:iT,enqueueSetState:function(e,t,n){var a=mo(e),r=ra(),i=pi(a),o=Ar(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=oi(a,o,i);l!==null&&(Cn(l,a,i,r),rc(l,a,i)),zf(a,i)},enqueueReplaceState:function(e,t,n){var a=mo(e),r=ra(),i=pi(a),o=Ar(r,i);o.tag=ig,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=oi(a,o,i);l!==null&&(Cn(l,a,i,r),rc(l,a,i)),zf(a,i)},enqueueForceUpdate:function(e,t){var n=mo(e),a=ra(),r=pi(n),i=Ar(a,r);i.tag=tc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=oi(n,i,r);o!==null&&(Cn(o,n,r,a),rc(o,n,r)),UT(n,r)}};function $g(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&on){On(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{On(!1)}}u===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Et(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Yl(n,a)||!Yl(r,i):!0}function mR(e,t,n){var a=e.stateNode;{var r=Et(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?d("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):d("%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&&d("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&&d("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&&d("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&d("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!Eu.has(t)&&(e.mode&on)===ke&&(Eu.add(t),d(`%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&&!Eu.has(t)&&(e.mode&on)===ke&&(Eu.add(t),d(`%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&&d("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!ap.has(t)&&(ap.add(t),d("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&d("%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"&&d("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Et(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&d("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&d("%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"&&d("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&d("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&d("%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&&d("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"&&!Jv.has(t)&&(Jv.add(t),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Et(t))),typeof a.getDerivedStateFromProps=="function"&&d("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&d("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&d("%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"||lt(l))&&d("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&d("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Yg(e,t){t.updater=op,e.stateNode=t,tT(t,e),t._reactInternalInstance=Qv}function Ig(e,t,n){var a=!1,r=wa,i=wa,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===c&&o._context===void 0;if(!l&&!rp.has(t)){rp.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===w?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(", ")+"}.",d("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Et(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=mn(o);else{r=No(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?jo(e,r):wa}var v=new t(n,i);if(e.mode&on){On(!0);try{v=new t(n,i)}finally{On(!1)}}var b=e.memoizedState=v.state!==null&&v.state!==void 0?v.state:null;Yg(e,v);{if(typeof t.getDerivedStateFromProps=="function"&&b===null){var g=Et(t)||"Component";Zv.has(g)||(Zv.add(g),d("`%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,v.state===null?"null":"undefined",g))}if(typeof t.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var D=null,L=null,A=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?D="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(D="UNSAFE_componentWillMount"),typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof v.UNSAFE_componentWillReceiveProps=="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof v.componentWillUpdate=="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0?A="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(A="UNSAFE_componentWillUpdate"),D!==null||L!==null||A!==null){var re=Et(t)||"Component",we=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(re)||(ep.add(re),d(`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`,re,we,D!==null?`
`+D:"",L!==null?`
`+L:"",A!==null?`
`+A:""))}}}return a&&Ny(e,r,i),v}function hR(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ke(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Wg(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=Ke(e)||"Component";Kv.has(i)||(Kv.add(i),d("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}op.enqueueReplaceState(t,t.state,null)}}function lp(e,t,n,a){mR(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},hv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=mn(i);else{var o=No(e,t,!0);r.context=jo(e,o)}{if(r.state===n){var l=Et(t)||"Component";np.has(l)||(np.add(l),d("%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&on&&qa.recordLegacyContextWarning(e,r),qa.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ip(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")&&(hR(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=Ct;f|=ki,(e.mode&rr)!==ke&&(f|=Gr),e.flags|=f}}function yR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=wa;if(typeof l=="object"&&l!==null)u=mn(l);else{var f=No(e,t,!0);u=jo(e,f)}var v=t.getDerivedStateFromProps,b=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function";!b&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Wg(e,r,n,u),lg();var g=e.memoizedState,D=r.state=g;if(ic(e,n,r,a),D=e.memoizedState,i===n&&g===D&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var L=Ct;L|=ki,(e.mode&rr)!==ke&&(L|=Gr),e.flags|=L}return!1}typeof v=="function"&&(ip(e,t,v,n),D=e.memoizedState);var A=oc()||$g(e,t,i,n,g,D,u);if(A){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 re=Ct;re|=ki,(e.mode&rr)!==ke&&(re|=Gr),e.flags|=re}}else{if(typeof r.componentDidMount=="function"){var we=Ct;we|=ki,(e.mode&rr)!==ke&&(we|=Gr),e.flags|=we}e.memoizedProps=n,e.memoizedState=D}return r.props=n,r.state=D,r.context=u,A}function gR(e,t,n,a,r){var i=t.stateNode;og(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Qa(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,v=n.contextType,b=wa;if(typeof v=="object"&&v!==null)b=mn(v);else{var g=No(t,n,!0);b=jo(t,g)}var D=n.getDerivedStateFromProps,L=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function";!L&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==b)&&Wg(t,i,a,b),lg();var A=t.memoizedState,re=i.state=A;if(ic(t,a,i,r),re=t.memoizedState,o===u&&A===re&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=Ct),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=yo),!1;typeof D=="function"&&(ip(t,n,D,a),re=t.memoizedState);var we=oc()||$g(t,n,l,a,A,re,b)||Ve;return we?(!L&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,re,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,re,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=Ct),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=yo)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=Ct),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=yo),t.memoizedProps=a,t.memoizedState=re),i.props=a,i.state=re,i.context=b,we}function Xi(e,t){return{value:e,source:t,stack:Ti(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bR(e,t){return!0}function sp(e,t){try{var n=bR(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===oe)return;console.error(a)}var l=r?Ke(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===G)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 v=Ke(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var b=u+`
`+o+`
`+(""+f);console.error(b)}catch(g){setTimeout(function(){throw g})}}var SR=typeof WeakMap=="function"?WeakMap:Map;function qg(e,t,n){var a=Ar(Gt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){dD(r),sp(e,t)},a}function cp(e,t,n){var a=Ar(Gt,n);a.tag=pv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){rS(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){rS(e),sp(e,t),typeof r!="function"&&cD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(Ea(e.lanes,$e)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ke(e)||"Unknown"))}),a}function Gg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new SR,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=vD.bind(null,e,t,n);$a&&Fu(e,n),t.then(i,i)}}function TR(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 ER(e,t){var n=e.tag;if((e.mode&dt)===ke&&(n===ye||n===xe||n===B)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Xg(e){var t=e;do{if(t.tag===Re&&nR(t))return t;t=t.return}while(t!==null);return null}function Qg(e,t,n,a,r){if((e.mode&dt)===ke){if(e===t)e.flags|=Ba;else{if(e.flags|=Mt,n.flags|=Mf,n.flags&=-52805,n.tag===oe){var i=n.alternate;if(i===null)n.tag=at;else{var o=Ar(Gt,$e);o.tag=tc,oi(n,o,$e)}}n.lanes=tt(n.lanes,$e)}return e}return e.flags|=Ba,e.lanes=r,e}function CR(e,t,n,a,r){if(n.flags|=rs,$a&&Fu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;ER(n),Un()&&n.mode&dt&&Py();var o=Xg(t);if(o!==null){o.flags&=-257,Qg(o,t,n,e,r),o.mode&dt&&Gg(e,i,r),TR(o,e,i);return}else{if(!IT(r)){Gg(e,i,r),$p();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(Un()&&n.mode&dt){Py();var u=Xg(t);if(u!==null){(u.flags&Ba)===je&&(u.flags|=Di),Qg(u,t,n,e,r),nv(Xi(a,n));return}}a=Xi(a,n),nD(a);var f=t;do{switch(f.tag){case G:{var v=a;f.flags|=Ba;var b=Ml(r);f.lanes=tt(f.lanes,b);var g=qg(f,v,b);yv(f,g);return}case oe:var D=a,L=f.type,A=f.stateNode;if((f.flags&Mt)===je&&(typeof L.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&!Xb(A))){f.flags|=Ba;var re=Ml(r);f.lanes=tt(f.lanes,re);var we=cp(f,D,re);yv(f,we);return}break}f=f.return}while(f!==null)}function xR(){return null}var Cu=me.ReactCurrentOwner,Ka=!1,fp,xu,dp,vp,pp,Qi,mp,Lc,Ru;fp={},xu={},dp={},vp={},pp={},Qi=!1,mp={},Lc={},Ru={};function na(e,t,n,a){e===null?t.child=Jy(t,null,n,a):t.child=Fo(t,e.child,n,a)}function RR(e,t,n,a){t.child=Fo(t,e.child,null,a),t.child=Fo(t,null,n,a)}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ia(i,a,"prop",Et(n))}var o=n.render,l=t.ref,u,f;Po(t,r),Cl(t);{if(Cu.current=t,Ma(!0),u=qo(e,t,o,a,l,r),f=Go(),t.mode&on){On(!0);try{u=qo(e,t,o,a,l,r),f=Go()}finally{On(!1)}}Ma(!1)}return So(),e!==null&&!Ka?(vg(e,t,r),Nr(e,t,r)):(Un()&&f&&Qd(t),t.flags|=ho,na(e,t,u,r),t.child)}function Zg(e,t,n,a,r){if(e===null){var i=n.type;if(LD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=nl(i),t.tag=B,t.type=o,gp(t,i),Jg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Ia(l,a,"prop",Et(i)),n.defaultProps!==void 0){var u=Et(i)||"Unknown";Ru[u]||(d("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Ru[u]=!0)}}var f=em(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var v=n.type,b=v.propTypes;b&&Ia(b,a,"prop",Et(v))}var g=e.child,D=xp(e,r);if(!D){var L=g.memoizedProps,A=n.compare;if(A=A!==null?A:Yl,A(L,a)&&e.ref===t.ref)return Nr(e,t,r)}t.flags|=ho;var re=to(g,a);return re.ref=t.ref,re.return=t,t.child=re,re}function Jg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===ae){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Ia(f,a,"prop",Et(i))}}if(e!==null){var v=e.memoizedProps;if(Yl(v,a)&&e.ref===t.ref&&t.type===e.type)if(Ka=!1,t.pendingProps=a=v,xp(e,r))(e.flags&Mf)!==je&&(Ka=!0);else return t.lanes=e.lanes,Nr(e,t,r)}return hp(e,t,n,a,r)}function eb(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||nt)if((t.mode&dt)===ke){var o={baseLanes:W,cachePool:null,transitions:null};t.memoizedState=o,$c(t,n)}else if(Ea(n,La)){var b={baseLanes:W,cachePool:null,transitions:null};t.memoizedState=b;var g=i!==null?i.baseLanes:n;$c(t,g)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=tt(f,n)}else u=n;t.lanes=t.childLanes=La;var v={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=v,t.updateQueue=null,$c(t,u),null}else{var D;i!==null?(D=tt(i.baseLanes,n),t.memoizedState=null):D=n,$c(t,D)}return na(e,t,r,n),t.child}function wR(e,t,n){var a=t.pendingProps;return na(e,t,a,n),t.child}function DR(e,t,n){var a=t.pendingProps.children;return na(e,t,a,n),t.child}function _R(e,t,n){{t.flags|=Ct;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return na(e,t,i,n),t.child}function tb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=_i,t.flags|=Lf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ia(i,a,"prop",Et(n))}var o;{var l=No(t,n,!0);o=jo(t,l)}var u,f;Po(t,r),Cl(t);{if(Cu.current=t,Ma(!0),u=qo(e,t,n,a,o,r),f=Go(),t.mode&on){On(!0);try{u=qo(e,t,n,a,o,r),f=Go()}finally{On(!1)}}Ma(!1)}return So(),e!==null&&!Ka?(vg(e,t,r),Nr(e,t,r)):(Un()&&f&&Qd(t),t.flags|=ho,na(e,t,u,r),t.child)}function nb(e,t,n,a,r){{switch(ID(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|=Mt,t.flags|=Ba;var f=new Error("Simulated error coming from DevTools"),v=Ml(r);t.lanes=tt(t.lanes,v);var b=cp(t,Xi(f,t),v);yv(t,b);break}}if(t.type!==t.elementType){var g=n.propTypes;g&&Ia(g,a,"prop",Et(n))}}var D;lr(n)?(D=!0,Bs(t)):D=!1,Po(t,r);var L=t.stateNode,A;L===null?(Oc(e,t),Ig(t,n,a),lp(t,n,a,r),A=!0):e===null?A=yR(t,n,a,r):A=gR(e,t,n,a,r);var re=yp(e,t,n,A,D,r);{var we=t.stateNode;A&&we.props!==a&&(Qi||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ke(t)||"a component"),Qi=!0)}return re}function yp(e,t,n,a,r,i){tb(e,t);var o=(t.flags&Mt)!==je;if(!a&&!o)return r&&zy(t,n,!1),Nr(e,t,i);var l=t.stateNode;Cu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Vg();else{Cl(t);{if(Ma(!0),u=l.render(),t.mode&on){On(!0);try{l.render()}finally{On(!1)}}Ma(!1)}So()}return t.flags|=ho,e!==null&&o?RR(e,t,u,i):na(e,t,u,i),t.memoizedState=l.state,r&&zy(t,n,!0),t.child}function ab(e){var t=e.stateNode;t.pendingContext?jy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jy(e,t.context,!1),gv(e,t.containerInfo)}function MR(e,t,n){if(ab(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;og(e,t),ic(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&Di){var v=Xi(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 rb(e,t,l,n,v)}else if(l!==i){var b=Xi(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return rb(e,t,l,n,b)}else{O1(t);var g=Jy(t,null,l,n);t.child=g;for(var D=g;D;)D.flags=D.flags&-3|Mi,D=D.sibling}}else{if(Ho(),l===i)return Nr(e,t,n);na(e,t,l,n)}return t.child}function rb(e,t,n,a,r){return Ho(),nv(r),t.flags|=Di,na(e,t,n,a),t.child}function LR(e,t,n){cg(t),e===null&&tv(t);var a=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,l=Ud(a,r);return l?o=null:i!==null&&Ud(a,i)&&(t.flags|=as),tb(e,t),na(e,t,o,n),t.child}function kR(e,t){return e===null&&tv(t),null}function OR(e,t,n,a){Oc(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),v=Qa(u,r),b;switch(f){case ye:return gp(t,u),t.type=u=nl(u),b=hp(null,t,u,v,a),b;case oe:return t.type=u=Gp(u),b=nb(null,t,u,v,a),b;case xe:return t.type=u=Xp(u),b=Kg(null,t,u,v,a),b;case et:{if(t.type!==t.elementType){var g=u.propTypes;g&&Ia(g,v,"prop",Et(u))}return b=Zg(null,t,u,Qa(u.type,v),a),b}}var D="";throw u!==null&&typeof u=="object"&&u.$$typeof===ae&&(D=" 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."+D))}function AR(e,t,n,a,r){Oc(e,t),t.tag=oe;var i;return lr(n)?(i=!0,Bs(t)):i=!1,Po(t,r),Ig(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function NR(e,t,n,a){Oc(e,t);var r=t.pendingProps,i;{var o=No(t,n,!1);i=jo(t,o)}Po(t,a);var l,u;Cl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var f=Et(n)||"Unknown";fp[f]||(d("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),fp[f]=!0)}t.mode&on&&qa.recordLegacyContextWarning(t,null),Ma(!0),Cu.current=t,l=qo(null,t,n,r,i,a),u=Go(),Ma(!1)}if(So(),t.flags|=ho,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var v=Et(n)||"Unknown";xu[v]||(d("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.",v,v,v),xu[v]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var b=Et(n)||"Unknown";xu[b]||(d("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),xu[b]=!0)}t.tag=oe,t.memoizedState=null,t.updateQueue=null;var g=!1;return lr(n)?(g=!0,Bs(t)):g=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hv(t),Yg(t,l),lp(t,n,r,a),yp(null,t,n,!0,g,a)}else{if(t.tag=ye,t.mode&on){On(!0);try{l=qo(null,t,n,r,i,a),u=Go()}finally{On(!1)}}return Un()&&u&&Qd(t),na(null,t,l,a),gp(t,n),t.child}}function gp(e,t){{if(t&&t.childContextTypes&&d("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=Ir();a&&(n+=`
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),pp[r]||(pp[r]=!0,d("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=Et(t)||"Unknown";Ru[o]||(d("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),Ru[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=Et(t)||"Unknown";vp[l]||(d("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=Et(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:An};function Sp(e){return{baseLanes:e,cachePool:xR(),transitions:null}}function jR(e,t){var n=null;return{baseLanes:tt(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function UR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,pu)}function zR(e,t){return fs(e.childLanes,t)}function ib(e,t,n){var a=t.pendingProps;WD(t)&&(t.flags|=Mt);var r=Ga.current,i=!1,o=(t.flags&Mt)!==je;if(o||UR(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=tR(r,dg)),r=$o(r),ui(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return BR(t,u)}var f=a.children,v=a.fallback;if(i){var b=HR(t,f,v,n),g=t.child;return g.memoizedState=Sp(n),t.memoizedState=bp,b}else return Tp(t,f)}else{var D=e.memoizedState;if(D!==null){var L=D.dehydrated;if(L!==null)return $R(e,t,o,a,L,D,n)}if(i){var A=a.fallback,re=a.children,we=VR(e,t,re,A,n),Te=t.child,pt=e.child.memoizedState;return Te.memoizedState=pt===null?Sp(n):jR(pt,n),Te.childLanes=zR(e,n),t.memoizedState=bp,we}else{var ut=a.children,x=FR(e,t,ut,n);return t.memoizedState=null,x}}}function Tp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Ep(r,a);return i.return=e,e.child=i,i}function HR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&dt)===ke&&i!==null?(l=i,l.childLanes=W,l.pendingProps=o,e.mode&Ut&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=hi(n,r,a,null)):(l=Ep(o,r),u=hi(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return oS(e,t,W,null)}function ob(e,t){return to(e,t)}function FR(e,t,n,a){var r=e.child,i=r.sibling,o=ob(r,{mode:"visible",children:n});if((t.mode&dt)===ke&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=wi):l.push(i)}return t.child=o,o}function VR(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&dt)===ke&&t.child!==o){var v=t.child;f=v,f.childLanes=W,f.pendingProps=u,t.mode&Ut&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=ob(o,u),f.subtreeFlags=o.subtreeFlags&xr;var b;return l!==null?b=to(l,a):(b=hi(a,i,r,null),b.flags|=Ln),b.return=t,f.return=t,f.sibling=b,t.child=f,b}function kc(e,t,n,a){a!==null&&nv(a),Fo(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=Ln,t.memoizedState=null,o}function PR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=hi(a,i,r,null);return u.flags|=Ln,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&dt)!==ke&&Fo(t,e.child,null,r),u}function BR(e,t,n){return(e.mode&dt)===ke?(d("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=$e):Vd(t)?e.lanes=Ni:e.lanes=La,null}function $R(e,t,n,a,r,i,o){if(n)if(t.flags&Di){t.flags&=-257;var x=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return kc(e,t,o,x)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Mt,null;var N=a.children,R=a.fallback,q=PR(e,t,N,R,o),de=t.child;return de.memoizedState=Sp(o),t.memoizedState=bp,q}else{if(L1(),(t.mode&dt)===ke)return kc(e,t,o,null);if(Vd(r)){var l,u,f;{var v=qx(r);l=v.digest,u=v.message,f=v.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=up(b,l,f);return kc(e,t,o,g)}var D=Ea(o,e.childLanes);if(Ka||D){var L=Bc();if(L!==null){var A=JT(L,o);if(A!==An&&A!==i.retryLane){i.retryLane=A;var re=Gt;da(e,A),Cn(L,e,A,re)}}$p();var we=up(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 kc(e,t,o,we)}else if(My(r)){t.flags|=Mt,t.child=e.child;var Te=pD.bind(null,e);return Gx(r,Te),null}else{A1(t,r,i.treeContext);var pt=a.children,ut=Tp(t,pt);return ut.flags|=Mi,ut}}}function lb(e,t,n){e.lanes=tt(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=tt(a.lanes,t)),dv(e.return,t,n)}function YR(e,t,n){for(var a=t;a!==null;){if(a.tag===Re){var r=a.memoizedState;r!==null&&lb(a,n,e)}else if(a.tag===ee)lb(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 IR(e){for(var t=e,n=null;t!==null;){var a=t.alternate;a!==null&&sc(a)===null&&(n=t),t=t.sibling}return n}function WR(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!mp[e])if(mp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{d('"%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:d('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else d('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function qR(e,t){e!==void 0&&!Lc[e]&&(e!=="collapsed"&&e!=="hidden"?(Lc[e]=!0,d('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Lc[e]=!0,d('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ub(e,t){{var n=lt(e),a=!n&&typeof Ft(e)=="function";if(n||a){var r=n?"array":"iterable";return d("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 GR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(lt(e)){for(var n=0;n<e.length;n++)if(!ub(e[n],n))return}else{var a=Ft(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(!ub(i.value,o))return;o++}}else d('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 Cp(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 sb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;WR(r),qR(i,r),GR(o,r),na(e,t,o,n);var l=Ga.current,u=Tv(l,pu);if(u)l=Ev(l,pu),t.flags|=Mt;else{var f=e!==null&&(e.flags&Mt)!==je;f&&YR(t,t.child,n),l=$o(l)}if(ui(t,l),(t.mode&dt)===ke)t.memoizedState=null;else switch(r){case"forwards":{var v=IR(t.child),b;v===null?(b=t.child,t.child=null):(b=v.sibling,v.sibling=null),Cp(t,!1,b,v,i);break}case"backwards":{var g=null,D=t.child;for(t.child=null;D!==null;){var L=D.alternate;if(L!==null&&sc(L)===null){t.child=D;break}var A=D.sibling;D.sibling=g,g=D,D=A}Cp(t,!0,g,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function XR(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=Fo(t,null,a,n):na(e,t,a,n),t.child}var cb=!1;function QR(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||cb||(cb=!0,d("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Ia(u,i,"prop","Context.Provider")}if(ng(t,r,l),o!==null){var f=o.value;if(Ra(f,l)){if(o.children===i.children&&!Vs())return Nr(e,t,n)}else W1(t,r,n)}var v=i.children;return na(e,t,v,n),t.child}var fb=!1;function KR(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(fb||(fb=!0,d("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"&&d("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."),Po(t,n);var o=mn(a);Cl(t);var l;return Cu.current=t,Ma(!0),l=i(o),Ma(!1),So(),t.flags|=ho,na(e,t,l,n),t.child}function wu(){Ka=!0}function Oc(e,t){(t.mode&dt)===ke&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Ln)}function Nr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Vg(),Hu(t.lanes),Ea(n,t.childLanes)?(Y1(e,t),t.child):null}function ZR(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|=wi):i.push(e),n.flags|=Ln,n}}function xp(e,t){var n=e.lanes;return!!Ea(n,t)}function JR(e,t,n){switch(t.tag){case G:ab(t),t.stateNode,Ho();break;case ne:cg(t);break;case oe:{var a=t.type;lr(a)&&Bs(t);break}case j:gv(t,t.stateNode.containerInfo);break;case Xe:{var r=t.memoizedProps.value,i=t.type._context;ng(t,i,r);break}case mt:{var o=Ea(n,t.childLanes);o&&(t.flags|=Ct);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case Re:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return ui(t,$o(Ga.current)),t.flags|=Mt,null;var f=t.child,v=f.childLanes;if(Ea(n,v))return ib(e,t,n);ui(t,$o(Ga.current));var b=Nr(e,t,n);return b!==null?b.sibling:null}else ui(t,$o(Ga.current));break}case ee:{var g=(e.flags&Mt)!==je,D=Ea(n,t.childLanes);if(g){if(D)return sb(e,t,n);t.flags|=Mt}var L=t.memoizedState;if(L!==null&&(L.rendering=null,L.tail=null,L.lastEffect=null),ui(t,Ga.current),D)break;return null}case X:case At:return t.lanes=W,eb(e,t,n)}return Nr(e,t,n)}function db(e,t,n){if(t._debugNeedsRemount&&e!==null)return ZR(e,t,em(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||Vs()||t.type!==e.type)Ka=!0;else{var i=xp(e,n);if(!i&&(t.flags&Mt)===je)return Ka=!1,JR(e,t,n);(e.flags&Mf)!==je?Ka=!0:Ka=!1}}else if(Ka=!1,Un()&&x1(t)){var o=t.index,l=R1();Vy(t,l,o)}switch(t.lanes=W,t.tag){case rt:return NR(e,t,t.type,n);case Ot:{var u=t.elementType;return OR(e,t,u,n)}case ye:{var f=t.type,v=t.pendingProps,b=t.elementType===f?v:Qa(f,v);return hp(e,t,f,b,n)}case oe:{var g=t.type,D=t.pendingProps,L=t.elementType===g?D:Qa(g,D);return nb(e,t,g,L,n)}case G:return MR(e,t,n);case ne:return LR(e,t,n);case Ue:return kR(e,t);case Re:return ib(e,t,n);case j:return XR(e,t,n);case xe:{var A=t.type,re=t.pendingProps,we=t.elementType===A?re:Qa(A,re);return Kg(e,t,A,we,n)}case kt:return wR(e,t,n);case xt:return DR(e,t,n);case mt:return _R(e,t,n);case Xe:return QR(e,t,n);case Rt:return KR(e,t,n);case et:{var Te=t.type,pt=t.pendingProps,ut=Qa(Te,pt);if(t.type!==t.elementType){var x=Te.propTypes;x&&Ia(x,ut,"prop",Et(Te))}return ut=Qa(Te.type,ut),Zg(e,t,Te,ut,n)}case B:return Jg(e,t,t.type,t.pendingProps,n);case at:{var N=t.type,R=t.pendingProps,q=t.elementType===N?R:Qa(N,R);return AR(e,t,N,q,n)}case ee:return sb(e,t,n);case Je:break;case X:return eb(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 Xo(e){e.flags|=Ct}function vb(e){e.flags|=_i,e.flags|=Lf}var pb,Rp,mb,hb;pb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===ne||r.tag===Ue)Tx(e,r.stateNode);else if(r.tag!==j){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}},Rp=function(e,t){},mb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=bv(),u=Cx(o,n,i,a,r,l);t.updateQueue=u,u&&Xo(t)}},hb=function(e,t,n,a){n!==a&&Xo(t)};function Du(e,t){if(!Un())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 Hn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=W,a=je;if(t){if((e.mode&Ut)!==ke){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=tt(n,tt(f.lanes,f.childLanes)),a|=f.subtreeFlags&xr,a|=f.flags&xr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var v=e.child;v!==null;)n=tt(n,tt(v.lanes,v.childLanes)),a|=v.subtreeFlags&xr,a|=v.flags&xr,v.return=e,v=v.sibling;e.subtreeFlags|=a}else{if((e.mode&Ut)!==ke){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=tt(n,tt(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=tt(n,tt(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 ew(e,t,n){if(H1()&&(t.mode&dt)!==ke&&(t.flags&Mt)===je)return qy(t),Ho(),t.flags|=Di|rs|Ba,!1;var a=qs(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(U1(t),Hn(t),(t.mode&Ut)!==ke){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Ho(),(t.flags&Mt)===je&&(t.memoizedState=null),t.flags|=Ct,Hn(t),(t.mode&Ut)!==ke){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Gy(),!0}function yb(e,t,n){var a=t.pendingProps;switch(Kd(t),t.tag){case rt:case Ot:case B:case ye:case xe:case kt:case xt:case mt:case Rt:case et:return Hn(t),null;case oe:{var r=t.type;return lr(r)&&Ps(t),Hn(t),null}case G:{var i=t.stateNode;if(Bo(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)Xo(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&Di)!==je)&&(t.flags|=yo,Gy())}}return Rp(e,t),Hn(t),null}case ne:{Sv(t);var u=sg(),f=t.type;if(e!==null&&t.stateNode!=null)mb(e,t,f,a,u),e.ref!==t.ref&&vb(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 Hn(t),null}var v=bv(),b=qs(t);if(b)N1(t,u,v)&&Xo(t);else{var g=Sx(f,a,u,v,t);pb(g,t,!1,!1),t.stateNode=g,Ex(g,f,a,u)&&Xo(t)}t.ref!==null&&vb(t)}return Hn(t),null}case Ue:{var D=a;if(e&&t.stateNode!=null){var L=e.memoizedProps;hb(e,t,L,D)}else{if(typeof D!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var A=sg(),re=bv(),we=qs(t);we?j1(t)&&Xo(t):t.stateNode=xx(D,A,re,t)}return Hn(t),null}case Re:{Yo(t);var Te=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var pt=ew(e,t,Te);if(!pt)return t.flags&Ba?t:null}if((t.flags&Mt)!==je)return t.lanes=n,(t.mode&Ut)!==ke&&Xv(t),t;var ut=Te!==null,x=e!==null&&e.memoizedState!==null;if(ut!==x&&ut){var N=t.child;if(N.flags|=Li,(t.mode&dt)!==ke){var R=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);R||Tv(Ga.current,dg)?tD():$p()}}var q=t.updateQueue;if(q!==null&&(t.flags|=Ct),Hn(t),(t.mode&Ut)!==ke&&ut){var de=t.child;de!==null&&(t.treeBaseDuration-=de.treeBaseDuration)}return null}case j:return Bo(t),Rp(e,t),e===null&&y1(t.stateNode.containerInfo),Hn(t),null;case Xe:var se=t.type._context;return fv(se,t),Hn(t),null;case at:{var ze=t.type;return lr(ze)&&Ps(t),Hn(t),null}case ee:{Yo(t);var Ge=t.memoizedState;if(Ge===null)return Hn(t),null;var Ht=(t.flags&Mt)!==je,St=Ge.rendering;if(St===null)if(Ht)Du(Ge,!1);else{var sn=aD()&&(e===null||(e.flags&Mt)===je);if(!sn)for(var Tt=t.child;Tt!==null;){var ln=sc(Tt);if(ln!==null){Ht=!0,t.flags|=Mt,Du(Ge,!1);var Xn=ln.updateQueue;return Xn!==null&&(t.updateQueue=Xn,t.flags|=Ct),t.subtreeFlags=je,I1(t,n),ui(t,Ev(Ga.current,pu)),t.child}Tt=Tt.sibling}Ge.tail!==null&&kn()>Hb()&&(t.flags|=Mt,Ht=!0,Du(Ge,!1),t.lanes=hh)}else{if(!Ht){var $n=sc(St);if($n!==null){t.flags|=Mt,Ht=!0;var _a=$n.updateQueue;if(_a!==null&&(t.updateQueue=_a,t.flags|=Ct),Du(Ge,!0),Ge.tail===null&&Ge.tailMode==="hidden"&&!St.alternate&&!Un())return Hn(t),null}else kn()*2-Ge.renderingStartTime>Hb()&&n!==La&&(t.flags|=Mt,Ht=!0,Du(Ge,!1),t.lanes=hh)}if(Ge.isBackwards)St.sibling=t.child,t.child=St;else{var ia=Ge.last;ia!==null?ia.sibling=St:t.child=St,Ge.last=St}}if(Ge.tail!==null){var oa=Ge.tail;Ge.rendering=oa,Ge.tail=oa.sibling,Ge.renderingStartTime=kn(),oa.sibling=null;var Qn=Ga.current;return Ht?Qn=Ev(Qn,pu):Qn=$o(Qn),ui(t,Qn),oa}return Hn(t),null}case Je:break;case X:case At:{Bp(t);var Fr=t.memoizedState,al=Fr!==null;if(e!==null){var $u=e.memoizedState,mr=$u!==null;mr!==al&&(t.flags|=Li)}return!al||(t.mode&dt)===ke?Hn(t):Ea(pr,La)&&(Hn(t),t.subtreeFlags&(Ln|Ct)&&(t.flags|=Li)),null}case Be:return null;case I: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 tw(e,t,n){switch(Kd(t),t.tag){case oe:{var a=t.type;lr(a)&&Ps(t);var r=t.flags;return r&Ba?(t.flags=r&-65537|Mt,(t.mode&Ut)!==ke&&Xv(t),t):null}case G:{t.stateNode,Bo(t),qd(t),xv();var i=t.flags;return(i&Ba)!==je&&(i&Mt)===je?(t.flags=i&-65537|Mt,t):null}case ne:return Sv(t),null;case Re:{Yo(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.");Ho()}var l=t.flags;return l&Ba?(t.flags=l&-65537|Mt,(t.mode&Ut)!==ke&&Xv(t),t):null}case ee:return Yo(t),null;case j:return Bo(t),null;case Xe:var u=t.type._context;return fv(u,t),null;case X:case At:return Bp(t),null;case Be:return null;default:return null}}function gb(e,t,n){switch(Kd(t),t.tag){case oe:{var a=t.type.childContextTypes;a!=null&&Ps(t);break}case G:{t.stateNode,Bo(t),qd(t),xv();break}case ne:{Sv(t);break}case j:Bo(t);break;case Re:Yo(t);break;case ee:Yo(t);break;case Xe:var r=t.type._context;fv(r,t);break;case X:case At:Bp(t);break}}var bb=null;bb=new Set;var Ac=!1,Fn=!1,nw=typeof WeakSet=="function"?WeakSet:Set,he=null,Qo=null,Ko=null;function aw(e){wf(null,function(){throw e}),Df()}var rw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Ut)try{dr(),t.componentWillUnmount()}finally{fr(e)}else t.componentWillUnmount()};function Sb(e,t){try{fi(yn,e)}catch(n){Bt(e,t,n)}}function wp(e,t,n){try{rw(e,n)}catch(a){Bt(e,t,a)}}function iw(e,t,n){try{n.componentDidMount()}catch(a){Bt(e,t,a)}}function Tb(e,t){try{Cb(e)}catch(n){Bt(e,t,n)}}function Zo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Ne&&st&&e.mode&Ut)try{dr(),a=n(null)}finally{fr(e)}else a=n(null)}catch(r){Bt(e,t,r)}typeof a=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ke(e))}else n.current=null}function Nc(e,t,n){try{n()}catch(a){Bt(e,t,a)}}var Eb=!1;function ow(e,t){gx(e.containerInfo),he=t,lw();var n=Eb;return Eb=!1,n}function lw(){for(;he!==null;){var e=he,t=e.child;(e.subtreeFlags&Af)!==je&&t!==null?(t.return=e,he=t):uw()}}function uw(){for(;he!==null;){var e=he;tn(e);try{sw(e)}catch(n){Bt(e,e.return,n)}Mn();var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function sw(e){var t=e.alternate,n=e.flags;if((n&yo)!==je){switch(tn(e),e.tag){case ye:case xe:case B:break;case oe:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!Qi&&(i.props!==e.memoizedProps&&d("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.",Ke(e)||"instance"),i.state!==e.memoizedState&&d("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.",Ke(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:Qa(e.type,a),r);{var l=bb;o===void 0&&!l.has(e.type)&&(l.add(e.type),d("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ke(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case G:{{var u=e.stateNode;$x(u.containerInfo)}break}case ne:case Ue:case j:case at: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.")}Mn()}}function Za(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)!==va?xT(t):(e&yn)!==va&&fh(t),(e&ur)!==va&&Vu(!0),Nc(t,n,l),(e&ur)!==va&&Vu(!1),(e&zn)!==va?RT():(e&yn)!==va&&dh())}o=o.next}while(o!==i)}}function fi(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)!==va?ET(t):(e&yn)!==va&&wT(t);var o=i.create;(e&ur)!==va&&Vu(!0),i.destroy=o(),(e&ur)!==va&&Vu(!1),(e&zn)!==va?CT():(e&yn)!==va&&DT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&yn)!==je?u="useLayoutEffect":(i.tag&ur)!==je?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,d("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function cw(e,t){if((t.flags&Ct)!==je)switch(t.tag){case mt:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Hg(),l=t.alternate===null?"mount":"update";zg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case G:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case mt:var v=u.stateNode;v.passiveEffectDuration+=n;break e}u=u.return}break}}}function fw(e,t,n,a){if((n.flags&El)!==je)switch(n.tag){case ye:case xe:case B:{if(!Fn)if(n.mode&Ut)try{dr(),fi(yn|hn,n)}finally{fr(n)}else fi(yn|hn,n);break}case oe:{var r=n.stateNode;if(n.flags&Ct&&!Fn)if(t===null)if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("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.",Ke(n)||"instance"),r.state!==n.memoizedState&&d("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.",Ke(n)||"instance")),n.mode&Ut)try{dr(),r.componentDidMount()}finally{fr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Qa(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("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.",Ke(n)||"instance"),r.state!==n.memoizedState&&d("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.",Ke(n)||"instance")),n.mode&Ut)try{dr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{fr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("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.",Ke(n)||"instance"),r.state!==n.memoizedState&&d("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.",Ke(n)||"instance")),ug(n,l,r));break}case G:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case ne:f=n.child.stateNode;break;case oe:f=n.child.stateNode;break}ug(n,u,f)}break}case ne:{var v=n.stateNode;if(t===null&&n.flags&Ct){var b=n.type,g=n.memoizedProps;Mx(v,b,g)}break}case Ue:break;case j:break;case mt:{{var D=n.memoizedProps,L=D.onCommit,A=D.onRender,re=n.stateNode.effectDuration,we=Hg(),Te=t===null?"mount":"update";zg()&&(Te="nested-update"),typeof A=="function"&&A(n.memoizedProps.id,Te,n.actualDuration,n.treeBaseDuration,n.actualStartTime,we);{typeof L=="function"&&L(n.memoizedProps.id,Te,re,we),uD(n);var pt=n.return;e:for(;pt!==null;){switch(pt.tag){case G:var ut=pt.stateNode;ut.effectDuration+=re;break e;case mt:var x=pt.stateNode;x.effectDuration+=re;break e}pt=pt.return}}}break}case Re:{bw(e,n);break}case ee:case at:case Je:case X:case At:case I: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.")}Fn||n.flags&_i&&Cb(n)}function dw(e){switch(e.tag){case ye:case xe:case B:{if(e.mode&Ut)try{dr(),Sb(e,e.return)}finally{fr(e)}else Sb(e,e.return);break}case oe:{var t=e.stateNode;typeof t.componentDidMount=="function"&&iw(e,e.return,t),Tb(e,e.return);break}case ne:{Tb(e,e.return);break}}}function vw(e,t){for(var n=null,a=e;;){if(a.tag===ne){if(n===null){n=a;try{var r=a.stateNode;t?Fx(r):Px(a.stateNode,a.memoizedProps)}catch(o){Bt(e,e.return,o)}}}else if(a.tag===Ue){if(n===null)try{var i=a.stateNode;t?Vx(i):Bx(i,a.memoizedProps)}catch(o){Bt(e,e.return,o)}}else if(!((a.tag===X||a.tag===At)&&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 Cb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case ne:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&Ut)try{dr(),r=t(a)}finally{fr(e)}else r=t(a);typeof r=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ke(e))}else t.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ke(e)),t.current=a}}function pw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function xb(e){var t=e.alternate;t!==null&&(e.alternate=null,xb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===ne){var n=e.stateNode;n!==null&&S1(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 mw(e){for(var t=e.return;t!==null;){if(Rb(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 Rb(e){return e.tag===ne||e.tag===G||e.tag===j}function wb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Rb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==ne&&t.tag!==Ue&&t.tag!==Fe;){if(t.flags&Ln||t.child===null||t.tag===j)continue e;t.child.return=t,t=t.child}if(!(t.flags&Ln))return t.stateNode}}function hw(e){var t=mw(e);switch(t.tag){case ne:{var n=t.stateNode;t.flags&as&&(_y(n),t.flags&=-33);var a=wb(e);_p(e,a,n);break}case G:case j:{var r=t.stateNode.containerInfo,i=wb(e);Dp(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 Dp(e,t,n){var a=e.tag,r=a===ne||a===Ue;if(r){var i=e.stateNode;t?jx(n,i,t):Ax(n,i)}else if(a!==j){var o=e.child;if(o!==null){Dp(o,t,n);for(var l=o.sibling;l!==null;)Dp(l,t,n),l=l.sibling}}}function _p(e,t,n){var a=e.tag,r=a===ne||a===Ue;if(r){var i=e.stateNode;t?Nx(n,i,t):Ox(n,i)}else if(a!==j){var o=e.child;if(o!==null){_p(o,t,n);for(var l=o.sibling;l!==null;)_p(l,t,n),l=l.sibling}}}var Vn=null,Ja=!1;function yw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case ne:{Vn=a.stateNode,Ja=!1;break e}case G:{Vn=a.stateNode.containerInfo,Ja=!0;break e}case j:{Vn=a.stateNode.containerInfo,Ja=!0;break e}}a=a.return}if(Vn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Db(e,t,n),Vn=null,Ja=!1}pw(n)}function di(e,t,n){for(var a=n.child;a!==null;)Db(e,t,a),a=a.sibling}function Db(e,t,n){switch(gT(n),n.tag){case ne:Fn||Zo(n,t);case Ue:{{var a=Vn,r=Ja;Vn=null,di(e,t,n),Vn=a,Ja=r,Vn!==null&&(Ja?zx(Vn,n.stateNode):Ux(Vn,n.stateNode))}return}case Fe:{Vn!==null&&(Ja?Hx(Vn,n.stateNode):Fd(Vn,n.stateNode));return}case j:{{var i=Vn,o=Ja;Vn=n.stateNode.containerInfo,Ja=!0,di(e,t,n),Vn=i,Ja=o}return}case ye:case xe:case et:case B:{if(!Fn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,v=f;do{var b=v,g=b.destroy,D=b.tag;g!==void 0&&((D&ur)!==va?Nc(n,t,g):(D&yn)!==va&&(fh(n),n.mode&Ut?(dr(),Nc(n,t,g),fr(n)):Nc(n,t,g),dh())),v=v.next}while(v!==f)}}}di(e,t,n);return}case oe:{if(!Fn){Zo(n,t);var L=n.stateNode;typeof L.componentWillUnmount=="function"&&wp(n,t,L)}di(e,t,n);return}case Je:{di(e,t,n);return}case X:{if(n.mode&dt){var A=Fn;Fn=A||n.memoizedState!==null,di(e,t,n),Fn=A}else di(e,t,n);break}default:{di(e,t,n);return}}}function gw(e){e.memoizedState}function bw(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&&a1(i)}}}}function _b(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nw),t.forEach(function(a){var r=mD.bind(null,e,a);if(!n.has(a)){if(n.add(a),$a)if(Qo!==null&&Ko!==null)Fu(Ko,Qo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function Sw(e,t,n){Qo=n,Ko=e,tn(t),Mb(t,e),tn(t),Qo=null,Ko=null}function er(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{yw(e,t,i)}catch(u){Bt(i,t,u)}}var o=Wu();if(t.subtreeFlags&Nf)for(var l=t.child;l!==null;)tn(l),Mb(l,e),l=l.sibling;tn(o)}function Mb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case ye:case xe:case et:case B:{if(er(t,e),vr(e),r&Ct){try{Za(ur|hn,e,e.return),fi(ur|hn,e)}catch(ze){Bt(e,e.return,ze)}if(e.mode&Ut){try{dr(),Za(yn|hn,e,e.return)}catch(ze){Bt(e,e.return,ze)}fr(e)}else try{Za(yn|hn,e,e.return)}catch(ze){Bt(e,e.return,ze)}}return}case oe:{er(t,e),vr(e),r&_i&&a!==null&&Zo(a,a.return);return}case ne:{er(t,e),vr(e),r&_i&&a!==null&&Zo(a,a.return);{if(e.flags&as){var i=e.stateNode;try{_y(i)}catch(ze){Bt(e,e.return,ze)}}if(r&Ct){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,f=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{Lx(o,v,f,u,l,e)}catch(ze){Bt(e,e.return,ze)}}}}return}case Ue:{if(er(t,e),vr(e),r&Ct){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,D=a!==null?a.memoizedProps:g;try{kx(b,D,g)}catch(ze){Bt(e,e.return,ze)}}return}case G:{if(er(t,e),vr(e),r&Ct&&a!==null){var L=a.memoizedState;if(L.isDehydrated)try{n1(t.containerInfo)}catch(ze){Bt(e,e.return,ze)}}return}case j:{er(t,e),vr(e);return}case Re:{er(t,e),vr(e);var A=e.child;if(A.flags&Li){var re=A.stateNode,we=A.memoizedState,Te=we!==null;if(re.isHidden=Te,Te){var pt=A.alternate!==null&&A.alternate.memoizedState!==null;pt||eD()}}if(r&Ct){try{gw(e)}catch(ze){Bt(e,e.return,ze)}_b(e)}return}case X:{var ut=a!==null&&a.memoizedState!==null;if(e.mode&dt){var x=Fn;Fn=x||ut,er(t,e),Fn=x}else er(t,e);if(vr(e),r&Li){var N=e.stateNode,R=e.memoizedState,q=R!==null,de=e;if(N.isHidden=q,q&&!ut&&(de.mode&dt)!==ke){he=de;for(var se=de.child;se!==null;)he=se,Ew(se),se=se.sibling}vw(de,q)}return}case ee:{er(t,e),vr(e),r&Ct&&_b(e);return}case Je:return;default:{er(t,e),vr(e);return}}}function vr(e){var t=e.flags;if(t&Ln){try{hw(e)}catch(n){Bt(e,e.return,n)}e.flags&=-3}t&Mi&&(e.flags&=-4097)}function Tw(e,t,n){Qo=n,Ko=t,he=e,Lb(e,t,n),Qo=null,Ko=null}function Lb(e,t,n){for(var a=(e.mode&dt)!==ke;he!==null;){var r=he,i=r.child;if(r.tag===X&&a){var o=r.memoizedState!==null,l=o||Ac;if(l){Mp(e,t,n);continue}else{var u=r.alternate,f=u!==null&&u.memoizedState!==null,v=f||Fn,b=Ac,g=Fn;Ac=l,Fn=v,Fn&&!g&&(he=r,Cw(r));for(var D=i;D!==null;)he=D,Lb(D,t,n),D=D.sibling;he=r,Ac=b,Fn=g,Mp(e,t,n);continue}}(r.subtreeFlags&El)!==je&&i!==null?(i.return=r,he=i):Mp(e,t,n)}}function Mp(e,t,n){for(;he!==null;){var a=he;if((a.flags&El)!==je){var r=a.alternate;tn(a);try{fw(t,r,a,n)}catch(o){Bt(a,a.return,o)}Mn()}if(a===e){he=null;return}var i=a.sibling;if(i!==null){i.return=a.return,he=i;return}he=a.return}}function Ew(e){for(;he!==null;){var t=he,n=t.child;switch(t.tag){case ye:case xe:case et:case B:{if(t.mode&Ut)try{dr(),Za(yn,t,t.return)}finally{fr(t)}else Za(yn,t,t.return);break}case oe:{Zo(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wp(t,t.return,a);break}case ne:{Zo(t,t.return);break}case X:{var r=t.memoizedState!==null;if(r){kb(e);continue}break}}n!==null?(n.return=t,he=n):kb(e)}}function kb(e){for(;he!==null;){var t=he;if(t===e){he=null;return}var n=t.sibling;if(n!==null){n.return=t.return,he=n;return}he=t.return}}function Cw(e){for(;he!==null;){var t=he,n=t.child;if(t.tag===X){var a=t.memoizedState!==null;if(a){Ob(e);continue}}n!==null?(n.return=t,he=n):Ob(e)}}function Ob(e){for(;he!==null;){var t=he;tn(t);try{dw(t)}catch(a){Bt(t,t.return,a)}if(Mn(),t===e){he=null;return}var n=t.sibling;if(n!==null){n.return=t.return,he=n;return}he=t.return}}function xw(e,t,n,a){he=t,Rw(t,e,n,a)}function Rw(e,t,n,a){for(;he!==null;){var r=he,i=r.child;(r.subtreeFlags&go)!==je&&i!==null?(i.return=r,he=i):ww(e,t,n,a)}}function ww(e,t,n,a){for(;he!==null;){var r=he;if((r.flags&qr)!==je){tn(r);try{Dw(t,r,n,a)}catch(o){Bt(r,r.return,o)}Mn()}if(r===e){he=null;return}var i=r.sibling;if(i!==null){i.return=r.return,he=i;return}he=r.return}}function Dw(e,t,n,a){switch(t.tag){case ye:case xe:case B:{if(t.mode&Ut){Gv();try{fi(zn|hn,t)}finally{qv(t)}}else fi(zn|hn,t);break}}}function _w(e){he=e,Mw()}function Mw(){for(;he!==null;){var e=he,t=e.child;if((he.flags&wi)!==je){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];he=r,Ow(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)}}}he=e}}(e.subtreeFlags&go)!==je&&t!==null?(t.return=e,he=t):Lw()}}function Lw(){for(;he!==null;){var e=he;(e.flags&qr)!==je&&(tn(e),kw(e),Mn());var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function kw(e){switch(e.tag){case ye:case xe:case B:{e.mode&Ut?(Gv(),Za(zn|hn,e,e.return),qv(e)):Za(zn|hn,e,e.return);break}}}function Ow(e,t){for(;he!==null;){var n=he;tn(n),Nw(n,t),Mn();var a=n.child;a!==null?(a.return=n,he=a):Aw(e)}}function Aw(e){for(;he!==null;){var t=he,n=t.sibling,a=t.return;if(xb(t),t===e){he=null;return}if(n!==null){n.return=a,he=n;return}he=a}}function Nw(e,t){switch(e.tag){case ye:case xe:case B:{e.mode&Ut?(Gv(),Za(zn,e,t),qv(e)):Za(zn,e,t);break}}}function jw(e){switch(e.tag){case ye:case xe:case B:{try{fi(yn|hn,e)}catch(n){Bt(e,e.return,n)}break}case oe:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Bt(e,e.return,n)}break}}}function Uw(e){switch(e.tag){case ye:case xe:case B:{try{fi(zn|hn,e)}catch(t){Bt(e,e.return,t)}break}}}function zw(e){switch(e.tag){case ye:case xe:case B:{try{Za(yn|hn,e,e.return)}catch(n){Bt(e,e.return,n)}break}case oe:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&wp(e,e.return,t);break}}}function Hw(e){switch(e.tag){case ye:case xe:case B:try{Za(zn|hn,e,e.return)}catch(t){Bt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var _u=Symbol.for;_u("selector.component"),_u("selector.has_pseudo_class"),_u("selector.role"),_u("selector.test_id"),_u("selector.text")}var Fw=[];function Vw(){Fw.forEach(function(e){return e()})}var Pw=me.ReactCurrentActQueue;function Bw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function Ab(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Pw.current!==null&&d("The current testing environment is not configured to support act(...)"),e}}var $w=Math.ceil,Lp=me.ReactCurrentDispatcher,kp=me.ReactCurrentOwner,Pn=me.ReactCurrentBatchConfig,tr=me.ReactCurrentActQueue,Sn=0,Nb=1,Bn=2,Ua=4,jr=0,Mu=1,Ki=2,jc=3,Lu=4,jb=5,Op=6,vt=Sn,aa=null,rn=null,Tn=W,pr=W,Ap=ni(W),En=jr,ku=null,Uc=W,Ou=W,zc=W,Au=null,pa=null,Np=0,Ub=500,zb=1/0,Yw=500,Ur=null;function Nu(){zb=kn()+Yw}function Hb(){return zb}var Hc=!1,jp=null,Jo=null,Zi=!1,vi=null,ju=W,Up=[],zp=null,Iw=50,Uu=0,Hp=null,Fp=!1,Fc=!1,Ww=50,el=0,Vc=null,zu=Gt,Pc=W,Fb=!1;function Bc(){return aa}function ra(){return(vt&(Bn|Ua))!==Sn?kn():(zu!==Gt||(zu=kn()),zu)}function pi(e){var t=e.mode;if((t&dt)===ke)return $e;if((vt&Bn)!==Sn&&Tn!==W)return Ml(Tn);var n=P1()!==V1;if(n){if(Pn.transition!==null){var a=Pn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return Pc===An&&(Pc=Sh()),Pc}var r=Ya();if(r!==An)return r;var i=Rx();return i}function qw(e){var t=e.mode;return(t&dt)===ke?$e:XT()}function Cn(e,t,n,a){yD(),Fb&&d("useInsertionEffect must not schedule updates."),Fp&&(Fc=!0),Ll(e,n,a),(vt&Bn)!==W&&e===aa?SD(t):($a&&Ch(e,t,n),TD(t),e===aa&&((vt&Bn)===Sn&&(Ou=tt(Ou,n)),En===Lu&&mi(e,Tn)),ma(e,a),n===$e&&vt===Sn&&(t.mode&dt)===ke&&!tr.isBatchingLegacy&&(Nu(),Fy()))}function Gw(e,t,n){var a=e.current;a.lanes=t,Ll(e,t,n),ma(e,n)}function Xw(e){return(vt&Bn)!==Sn}function ma(e,t){var n=e.callbackNode;$T(e,t);var a=ss(e,e===aa?Tn:W);if(a===W){n!==null&&tS(n),e.callbackNode=null,e.callbackPriority=An;return}var r=Ui(a),i=e.callbackPriority;if(i===r&&!(tr.current!==null&&n!==Wp)){n==null&&i!==$e&&d("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&tS(n);var o;if(r===$e)e.tag===ai?(tr.isBatchingLegacy!==null&&(tr.didScheduleLegacyUpdate=!0),C1(Bb.bind(null,e))):Hy(Bb.bind(null,e)),tr.current!==null?tr.current.push(ri):Dx(function(){(vt&(Bn|Ua))===Sn&&ri()}),o=null;else{var l;switch(wh(a)){case Ca:l=is;break;case wr:l=jf;break;case Dr:l=Ai;break;case ds:l=Uf;break;default:l=Ai;break}o=qp(l,Vb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Vb(e,t){if(vR(),zu=Gt,Pc=W,(vt&(Bn|Ua))!==Sn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Hr();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===aa?Tn:W);if(r===W)return null;var i=!cs(e,r)&&!GT(e,r)&&!t,o=i?iD(e,r):Yc(e,r);if(o!==jr){if(o===Ki){var l=rd(e);l!==W&&(r=l,o=Vp(e,l))}if(o===Mu){var u=ku;throw Ji(e,W),mi(e,r),ma(e,kn()),u}if(o===Op)mi(e,r);else{var f=!cs(e,r),v=e.current.alternate;if(f&&!Kw(v)){if(o=Yc(e,r),o===Ki){var b=rd(e);b!==W&&(r=b,o=Vp(e,b))}if(o===Mu){var g=ku;throw Ji(e,W),mi(e,r),ma(e,kn()),g}}e.finishedWork=v,e.finishedLanes=r,Qw(e,o,r)}}return ma(e,kn()),e.callbackNode===n?Vb.bind(null,e):null}function Vp(e,t){var n=Au;if(vs(e)){var a=Ji(e,t);a.flags|=Di,h1(e.containerInfo)}var r=Yc(e,t);if(r!==Ki){var i=pa;pa=n,i!==null&&Pb(i)}return r}function Pb(e){pa===null?pa=e:pa.push.apply(pa,e)}function Qw(e,t,n){switch(t){case jr:case Mu:throw new Error("Root did not complete. This is a bug in React.");case Ki:{eo(e,pa,Ur);break}case jc:{if(mi(e,n),gh(n)&&!nS()){var a=Np+Ub-kn();if(a>10){var r=ss(e,W);if(r!==W)break;var i=e.suspendedLanes;if(!xo(i,n)){ra(),Eh(e,i);break}e.timeoutHandle=zd(eo.bind(null,e,pa,Ur),a);break}}eo(e,pa,Ur);break}case Lu:{if(mi(e,n),qT(n))break;if(!nS()){var o=PT(e,n),l=o,u=kn()-l,f=hD(u)-u;if(f>10){e.timeoutHandle=zd(eo.bind(null,e,pa,Ur),f);break}}eo(e,pa,Ur);break}case jb:{eo(e,pa,Ur);break}default:throw new Error("Unknown root exit status.")}}function Kw(e){for(var t=e;;){if(t.flags&_f){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(!Ra(o(),l))return!1}catch{return!1}}}}var u=t.child;if(t.subtreeFlags&_f&&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 mi(e,t){t=fs(t,zc),t=fs(t,Ou),KT(e,t)}function Bb(e){if(pR(),(vt&(Bn|Ua))!==Sn)throw new Error("Should not already be working.");Hr();var t=ss(e,W);if(!Ea(t,$e))return ma(e,kn()),null;var n=Yc(e,t);if(e.tag!==ai&&n===Ki){var a=rd(e);a!==W&&(t=a,n=Vp(e,a))}if(n===Mu){var r=ku;throw Ji(e,W),mi(e,t),ma(e,kn()),r}if(n===Op)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,eo(e,pa,Ur),ma(e,kn()),null}function Zw(e,t){t!==W&&(ud(e,tt(t,$e)),ma(e,kn()),(vt&(Bn|Ua))===Sn&&(Nu(),ri()))}function Pp(e,t){var n=vt;vt|=Nb;try{return e(t)}finally{vt=n,vt===Sn&&!tr.isBatchingLegacy&&(Nu(),Fy())}}function Jw(e,t,n,a,r){var i=Ya(),o=Pn.transition;try{return Pn.transition=null,Nn(Ca),e(t,n,a,r)}finally{Nn(i),Pn.transition=o,vt===Sn&&Nu()}}function zr(e){vi!==null&&vi.tag===ai&&(vt&(Bn|Ua))===Sn&&Hr();var t=vt;vt|=Nb;var n=Pn.transition,a=Ya();try{return Pn.transition=null,Nn(Ca),e?e():void 0}finally{Nn(a),Pn.transition=n,vt=t,(vt&(Bn|Ua))===Sn&&ri()}}function $b(){return(vt&(Bn|Ua))!==Sn}function $c(e,t){qn(Ap,pr,e),pr=tt(pr,t)}function Bp(e){pr=Ap.current,Wn(Ap,e)}function Ji(e,t){e.finishedWork=null,e.finishedLanes=W;var n=e.timeoutHandle;if(n!==Hd&&(e.timeoutHandle=Hd,wx(n)),rn!==null)for(var a=rn.return;a!==null;){var r=a.alternate;gb(r,a),a=a.return}aa=e;var i=to(e.current,null);return rn=i,Tn=pr=t,En=jr,ku=null,Uc=W,Ou=W,zc=W,Au=null,pa=null,G1(),qa.discardPendingWarnings(),i}function Yb(e,t){do{var n=rn;try{if(Js(),pg(),Mn(),kp.current=null,n===null||n.return===null){En=Mu,ku=t,rn=null;return}if(Ne&&n.mode&Ut&&_c(n,!0),Ae)if(So(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;MT(n,a,Tn)}else _T(n,t,Tn);CR(e,n.return,n,t,Tn),Gb(n)}catch(r){t=r,rn===n&&n!==null?(n=n.return,rn=n):n=rn;continue}return}while(!0)}function Ib(){var e=Lp.current;return Lp.current=Cc,e===null?Cc:e}function Wb(e){Lp.current=e}function eD(){Np=kn()}function Hu(e){Uc=tt(e,Uc)}function tD(){En===jr&&(En=jc)}function $p(){(En===jr||En===jc||En===Ki)&&(En=Lu),aa!==null&&(id(Uc)||id(Ou))&&mi(aa,Tn)}function nD(e){En!==Lu&&(En=Ki),Au===null?Au=[e]:Au.push(e)}function aD(){return En===jr}function Yc(e,t){var n=vt;vt|=Bn;var a=Ib();if(aa!==e||Tn!==t){if($a){var r=e.memoizedUpdaters;r.size>0&&(Fu(e,Tn),r.clear()),xh(e,t)}Ur=Rh(),Ji(e,t)}vh(t);do try{rD();break}catch(i){Yb(e,i)}while(!0);if(Js(),vt=n,Wb(a),rn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ph(),aa=null,Tn=W,En}function rD(){for(;rn!==null;)qb(rn)}function iD(e,t){var n=vt;vt|=Bn;var a=Ib();if(aa!==e||Tn!==t){if($a){var r=e.memoizedUpdaters;r.size>0&&(Fu(e,Tn),r.clear()),xh(e,t)}Ur=Rh(),Nu(),Ji(e,t)}vh(t);do try{oD();break}catch(i){Yb(e,i)}while(!0);return Js(),Wb(a),vt=n,rn!==null?(NT(),jr):(ph(),aa=null,Tn=W,En)}function oD(){for(;rn!==null&&!uT();)qb(rn)}function qb(e){var t=e.alternate;tn(e);var n;(e.mode&Ut)!==ke?(Wv(e),n=Yp(t,e,pr),_c(e,!0)):n=Yp(t,e,pr),Mn(),e.memoizedProps=e.pendingProps,n===null?Gb(e):rn=n,kp.current=null}function Gb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&rs)===je){tn(t);var r=void 0;if((t.mode&Ut)===ke?r=yb(n,t,pr):(Wv(t),r=yb(n,t,pr),_c(t,!1)),Mn(),r!==null){rn=r;return}}else{var i=tw(n,t);if(i!==null){i.flags&=nT,rn=i;return}if((t.mode&Ut)!==ke){_c(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|=rs,a.subtreeFlags=je,a.deletions=null;else{En=Op,rn=null;return}}var u=t.sibling;if(u!==null){rn=u;return}t=a,rn=t}while(t!==null);En===jr&&(En=jb)}function eo(e,t,n){var a=Ya(),r=Pn.transition;try{Pn.transition=null,Nn(Ca),lD(e,t,n,a)}finally{Pn.transition=r,Nn(a)}return null}function lD(e,t,n,a){do Hr();while(vi!==null);if(gD(),(vt&(Bn|Ua))!==Sn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(TT(i),r===null)return ch(),null;if(i===W&&d("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=W,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=An;var o=tt(r.lanes,r.childLanes);ZT(e,o),e===aa&&(aa=null,rn=null,Tn=W),((r.subtreeFlags&go)!==je||(r.flags&go)!==je)&&(Zi||(Zi=!0,zp=n,qp(Ai,function(){return Hr(),null})));var l=(r.subtreeFlags&(Af|Nf|El|go))!==je,u=(r.flags&(Af|Nf|El|go))!==je;if(l||u){var f=Pn.transition;Pn.transition=null;var v=Ya();Nn(Ca);var b=vt;vt|=Ua,kp.current=null,ow(e,r),Fg(),Sw(e,r,i),bx(e.containerInfo),e.current=r,LT(i),Tw(r,e,i),kT(),sT(),vt=b,Nn(v),Pn.transition=f}else e.current=r,Fg();var g=Zi;if(Zi?(Zi=!1,vi=e,ju=i):(el=0,Vc=null),o=e.pendingLanes,o===W&&(Jo=null),g||Zb(e.current,!1),hT(r.stateNode,a),$a&&e.memoizedUpdaters.clear(),Vw(),ma(e,kn()),t!==null)for(var D=e.onRecoverableError,L=0;L<t.length;L++){var A=t[L],re=A.stack,we=A.digest;D(A.value,{componentStack:re,digest:we})}if(Hc){Hc=!1;var Te=jp;throw jp=null,Te}return Ea(ju,$e)&&e.tag!==ai&&Hr(),o=e.pendingLanes,Ea(o,$e)?(dR(),e===Hp?Uu++:(Uu=0,Hp=e)):Uu=0,ri(),ch(),null}function Hr(){if(vi!==null){var e=wh(ju),t=nE(Dr,e),n=Pn.transition,a=Ya();try{return Pn.transition=null,Nn(t),sD()}finally{Nn(a),Pn.transition=n}}return!1}function uD(e){Up.push(e),Zi||(Zi=!0,qp(Ai,function(){return Hr(),null}))}function sD(){if(vi===null)return!1;var e=zp;zp=null;var t=vi,n=ju;if(vi=null,ju=W,(vt&(Bn|Ua))!==Sn)throw new Error("Cannot flush passive effects while already rendering.");Fp=!0,Fc=!1,OT(n);var a=vt;vt|=Ua,_w(t.current),xw(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];cw(t,o)}}AT(),Zb(t.current,!0),vt=a,ri(),Fc?t===Vc?el++:(el=0,Vc=t):el=0,Fp=!1,Fc=!1,yT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Xb(e){return Jo!==null&&Jo.has(e)}function cD(e){Jo===null?Jo=new Set([e]):Jo.add(e)}function fD(e){Hc||(Hc=!0,jp=e)}var dD=fD;function Qb(e,t,n){var a=Xi(n,t),r=qg(e,a,$e),i=oi(e,r,$e),o=ra();i!==null&&(Ll(i,$e,o),ma(i,o))}function Bt(e,t,n){if(aw(n),Vu(!1),e.tag===G){Qb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===G){Qb(a,e,n);return}else if(a.tag===oe){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Xb(i)){var o=Xi(n,e),l=cp(a,o,$e),u=oi(a,l,$e),f=ra();u!==null&&(Ll(u,$e,f),ma(u,f));return}}a=a.return}d(`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 vD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ra();Eh(e,n),ED(e),aa===e&&xo(Tn,n)&&(En===Lu||En===jc&&gh(Tn)&&kn()-Np<Ub?Ji(e,W):zc=tt(zc,n)),ma(e,r)}function Kb(e,t){t===An&&(t=qw(e));var n=ra(),a=da(e,t);a!==null&&(Ll(a,t,n),ma(a,n))}function pD(e){var t=e.memoizedState,n=An;t!==null&&(n=t.retryLane),Kb(e,n)}function mD(e,t){var n=An,a;switch(e.tag){case Re:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case ee: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),Kb(e,n)}function hD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:$w(e/1960)*1960}function yD(){if(Uu>Iw)throw Uu=0,Hp=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.");el>Ww&&(el=0,Vc=null,d("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 gD(){qa.flushLegacyContextWarning(),qa.flushPendingUnsafeLifecycleWarnings()}function Zb(e,t){tn(e),Ic(e,Gr,zw),t&&Ic(e,Of,Hw),Ic(e,Gr,jw),t&&Ic(e,Of,Uw),Mn()}function Ic(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==je?a=a.child:((a.flags&t)!==je&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Wc=null;function Jb(e){{if((vt&Bn)!==Sn||!(e.mode&dt))return;var t=e.tag;if(t!==rt&&t!==G&&t!==oe&&t!==ye&&t!==xe&&t!==et&&t!==B)return;var n=Ke(e)||"ReactComponent";if(Wc!==null){if(Wc.has(n))return;Wc.add(n)}else Wc=new Set([n]);var a=Jn;try{tn(e),d("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?tn(e):Mn()}}}var Yp;{var bD=null;Yp=function(e,t,n){var a=lS(bD,t);try{return db(e,t,n)}catch(i){if(k1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Js(),pg(),gb(e,t),lS(t,a),t.mode&Ut&&Wv(t),wf(null,db,null,e,t,n),J0()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var eS=!1,Ip;Ip=new Set;function SD(e){if(Ei&&!sR())switch(e.tag){case ye:case xe:case B:{var t=rn&&Ke(rn)||"Unknown",n=t;if(!Ip.has(n)){Ip.add(n);var a=Ke(e)||"Unknown";d("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 oe:{eS||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),eS=!0);break}}}function Fu(e,t){if($a){var n=e.memoizedUpdaters;n.forEach(function(a){Ch(e,a,t)})}}var Wp={};function qp(e,t){{var n=tr.current;return n!==null?(n.push(t),Wp):sh(e,t)}}function tS(e){if(e!==Wp)return lT(e)}function nS(){return tr.current!==null}function TD(e){{if(e.mode&dt){if(!Ab())return}else if(!Bw()||vt!==Sn||e.tag!==ye&&e.tag!==xe&&e.tag!==B)return;if(tr.current===null){var t=Jn;try{tn(e),d(`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`,Ke(e))}finally{t?tn(e):Mn()}}}}function ED(e){e.tag!==ai&&Ab()&&tr.current===null&&d(`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 Vu(e){Fb=e}var za=null,tl=null,CD=function(e){za=e};function nl(e){{if(za===null)return e;var t=za(e);return t===void 0?e:t.current}}function Gp(e){return nl(e)}function Xp(e){{if(za===null)return e;var t=za(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=nl(e.render);if(e.render!==n){var a={$$typeof:p,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function aS(e,t){{if(za===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 oe:{typeof a=="function"&&(r=!0);break}case ye:{(typeof a=="function"||i===ae)&&(r=!0);break}case xe:{(i===p||i===ae)&&(r=!0);break}case et:case B:{(i===P||i===ae)&&(r=!0);break}default:return!1}if(r){var o=za(n);if(o!==void 0&&o===za(a))return!0}return!1}}function rS(e){{if(za===null||typeof WeakSet!="function")return;tl===null&&(tl=new WeakSet),tl.add(e)}}var xD=function(e,t){{if(za===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Hr(),zr(function(){Qp(e.current,a,n)})}},RD=function(e,t){{if(e.context!==wa)return;Hr(),zr(function(){Pu(t,e,null,null)})}};function Qp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case ye:case B:case oe:u=l;break;case xe:u=l.render;break}if(za===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,v=!1;if(u!==null){var b=za(u);b!==void 0&&(n.has(b)?v=!0:t.has(b)&&(o===oe?v=!0:f=!0))}if(tl!==null&&(tl.has(e)||a!==null&&tl.has(a))&&(v=!0),v&&(e._debugNeedsRemount=!0),v||f){var g=da(e,$e);g!==null&&Cn(g,e,$e,Gt)}r!==null&&!v&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var wD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Kp(e.current,a,n),n}};function Kp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case ye:case B:case oe:l=o;break;case xe:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?DD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function DD(e,t){{var n=_D(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ne:t.add(a.stateNode);return;case j:t.add(a.stateNode.containerInfo);return;case G:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function _D(e,t){for(var n=e,a=!1;;){if(n.tag===ne)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 Zp;{Zp=!1;try{var iS=Object.preventExtensions({})}catch{Zp=!0}}function MD(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=je,this.subtreeFlags=je,this.deletions=null,this.lanes=W,this.childLanes=W,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,!Zp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Da=function(e,t,n,a){return new MD(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function LD(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Jp(e)?oe:ye;if(e!=null){var t=e.$$typeof;if(t===p)return xe;if(t===P)return et}return rt}function to(e,t){var n=e.alternate;n===null?(n=Da(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=je,n.subtreeFlags=je,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&xr,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 rt:case ye:case B:n.type=nl(e.type);break;case oe:n.type=Gp(e.type);break;case xe:n.type=Xp(e.type);break}return n}function OD(e,t){e.flags&=xr|Ln;var n=e.alternate;if(n===null)e.childLanes=W,e.lanes=t,e.child=null,e.subtreeFlags=je,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=je,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 AD(e,t,n){var a;return e===$s?(a=dt,t===!0&&(a|=on,a|=rr)):a=ke,$a&&(a|=Ut),Da(G,null,null,a)}function em(e,t,n,a,r,i){var o=rt,l=e;if(typeof e=="function")Jp(e)?(o=oe,l=Gp(l)):l=nl(l);else if(typeof e=="string")o=ne;else e:switch(e){case F:return hi(n.children,r,i,t);case _:o=xt,r|=on,(r&dt)!==ke&&(r|=rr);break;case S:return ND(n,r,i,t);case T:return jD(n,r,i,t);case E:return UD(n,r,i,t);case Qe:return oS(n,r,i,t);case _e:case H:case ot:case fn:case le:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:o=Xe;break e;case c:o=Rt;break e;case p:o=xe,l=Xp(l);break e;case P:o=et;break e;case ae:o=Ot,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?Ke(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 v=Da(o,n,t,r);return v.elementType=e,v.type=l,v.lanes=i,v._debugOwner=a,v}function tm(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=em(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function hi(e,t,n,a){var r=Da(kt,e,a,t);return r.lanes=n,r}function ND(e,t,n,a){typeof e.id!="string"&&d('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Da(mt,e,a,t|Ut);return r.elementType=S,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function jD(e,t,n,a){var r=Da(Re,e,a,t);return r.elementType=T,r.lanes=n,r}function UD(e,t,n,a){var r=Da(ee,e,a,t);return r.elementType=E,r.lanes=n,r}function oS(e,t,n,a){var r=Da(X,e,a,t);r.elementType=Qe,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Da(Ue,e,null,t);return a.lanes=n,a}function zD(){var e=Da(ne,null,null,ke);return e.elementType="DELETED",e}function HD(e){var t=Da(Fe,null,null,ke);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Da(j,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function lS(e,t){return e===null&&(e=Da(rt,null,null,ke)),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 FD(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=Hd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=An,this.eventTimes=ld(W),this.expirationTimes=ld(Gt),this.pendingLanes=W,this.suspendedLanes=W,this.pingedLanes=W,this.expiredLanes=W,this.mutableReadLanes=W,this.finishedLanes=W,this.entangledLanes=W,this.entanglements=ld(W),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<Hf;o++)i.push(new Set)}switch(t){case $s:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case ai:this._debugRootType=n?"hydrate()":"render()";break}}function uS(e,t,n,a,r,i,o,l,u,f){var v=new FD(e,t,n,l,u),b=AD(t,i);v.current=b,b.stateNode=v;{var g={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};b.memoizedState=g}return hv(b),v}var rm="18.3.1";function VD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Rn(a),{$$typeof:y,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function sS(e){if(!e)return wa;var t=mo(e),n=E1(t);if(t.tag===oe){var a=t.type;if(lr(a))return Uy(t,a,n)}return n}function PD(e,t){{var n=mo(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=oh(n);if(r===null)return null;if(r.mode&on){var i=Ke(n)||"Component";if(!om[i]){om[i]=!0;var o=Jn;try{tn(r),n.mode&on?d("%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):d("%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?tn(o):Mn()}}}return r.stateNode}}function cS(e,t,n,a,r,i,o,l){var u=!1,f=null;return uS(e,t,u,f,n,a,r,i,o)}function fS(e,t,n,a,r,i,o,l,u,f){var v=!0,b=uS(n,a,v,e,r,i,o,l,u);b.context=sS(null);var g=b.current,D=ra(),L=pi(g),A=Ar(D,L);return A.callback=t??null,oi(g,A,L),Gw(b,L,D),b}function Pu(e,t,n,a){mT(t,e);var r=t.current,i=ra(),o=pi(r);jT(o);var l=sS(n);t.context===null?t.context=l:t.pendingContext=l,Ei&&Jn!==null&&!im&&(im=!0,d(`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.`,Ke(Jn)||"Unknown"));var u=Ar(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=oi(r,u,o);return f!==null&&(Cn(f,r,o,i),rc(f,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ne:return t.child.stateNode;default:return t.child.stateNode}}function BD(e){switch(e.tag){case G:{var t=e.stateNode;if(vs(t)){var n=YT(t);Zw(t,n)}break}case Re:{zr(function(){var r=da(e,$e);if(r!==null){var i=ra();Cn(r,e,$e,i)}});var a=$e;lm(e,a);break}}}function dS(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=QT(n.retryLane,t))}function lm(e,t){dS(e,t);var n=e.alternate;n&&dS(n,t)}function $D(e){if(e.tag===Re){var t=wl,n=da(e,t);if(n!==null){var a=ra();Cn(n,e,t,a)}lm(e,t)}}function YD(e){if(e.tag===Re){var t=pi(e),n=da(e,t);if(n!==null){var a=ra();Cn(n,e,t,a)}lm(e,t)}}function vS(e){var t=oT(e);return t===null?null:t.stateNode}var pS=function(e){return null};function ID(e){return pS(e)}var mS=function(e){return!1};function WD(e){return mS(e)}var hS=null,yS=null,gS=null,bS=null,SS=null,TS=null,ES=null,CS=null,xS=null;{var RS=function(e,t,n){var a=t[n],r=lt(e)?e.slice():Me({},e);return n+1===t.length?(lt(r)?r.splice(a,1):delete r[a],r):(r[a]=RS(e[a],t,n+1),r)},wS=function(e,t){return RS(e,t,0)},DS=function(e,t,n,a){var r=t[a],i=lt(e)?e.slice():Me({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],lt(i)?i.splice(r,1):delete i[r]}else i[r]=DS(e[r],t,n,a+1);return i},_S=function(e,t,n){if(t.length!==n.length){Ee("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){Ee("copyWithRename() expects paths to be the same except for the deepest key");return}return DS(e,t,n,0)},MS=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=lt(e)?e.slice():Me({},e);return i[r]=MS(e[r],t,n+1,a),i},LS=function(e,t,n){return MS(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};hS=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=LS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Me({},e.memoizedProps);var o=da(e,$e);o!==null&&Cn(o,e,$e,Gt)}},yS=function(e,t,n){var a=um(e,t);if(a!==null){var r=wS(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=Me({},e.memoizedProps);var i=da(e,$e);i!==null&&Cn(i,e,$e,Gt)}},gS=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=_S(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Me({},e.memoizedProps);var o=da(e,$e);o!==null&&Cn(o,e,$e,Gt)}},bS=function(e,t,n){e.pendingProps=LS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,$e);a!==null&&Cn(a,e,$e,Gt)},SS=function(e,t){e.pendingProps=wS(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=da(e,$e);n!==null&&Cn(n,e,$e,Gt)},TS=function(e,t,n){e.pendingProps=_S(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,$e);a!==null&&Cn(a,e,$e,Gt)},ES=function(e){var t=da(e,$e);t!==null&&Cn(t,e,$e,Gt)},CS=function(e){pS=e},xS=function(e){mS=e}}function qD(e){var t=oh(e);return t===null?null:t.stateNode}function GD(e){return null}function XD(){return Jn}function QD(e){var t=e.findFiberByHostInstance,n=me.ReactCurrentDispatcher;return pT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:hS,overrideHookStateDeletePath:yS,overrideHookStateRenamePath:gS,overrideProps:bS,overridePropsDeletePath:SS,overridePropsRenamePath:TS,setErrorHandler:CS,setSuspenseHandler:xS,scheduleUpdate:ES,currentDispatcherRef:n,findHostInstanceByFiber:qD,findFiberByHostInstance:t||GD,findHostInstancesForRefresh:wD,scheduleRefresh:xD,scheduleRoot:RD,setRefreshHandler:CD,getCurrentFiber:XD,reconcilerVersion:rm})}var kS=typeof reportError=="function"?reportError:function(e){console.error(e)};function sm(e){this._internalRoot=e}Gc.prototype.render=sm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?d("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Xc(arguments[1])?d("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"&&d("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==pn){var a=vS(t.current);a&&a.parentNode!==n&&d("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)},Gc.prototype.unmount=sm.prototype.unmount=function(){typeof arguments[0]=="function"&&d("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;$b()&&d("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."),zr(function(){Pu(null,e,null,null)}),ky(t)}};function KD(e,t){if(!Xc(e))throw new Error("createRoot(...): Target container is not a DOM element.");OS(e);var n=!1,a=!1,r="",i=kS;t!=null&&(t.hydrate?Ee("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Kn&&d(`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=cS(e,$s,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return ql(l),new sm(o)}function Gc(e){this._internalRoot=e}function ZD(e){e&&vE(e)}Gc.prototype.unstable_scheduleHydration=ZD;function JD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");OS(e),t===void 0&&d("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=kS;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=fS(t,null,e,$s,a,i,o,l,u);if(Us(f.current,e),ql(e),r)for(var v=0;v<r.length;v++){var b=r[v];aR(f,b)}return new Gc(f)}function Xc(e){return!!(e&&(e.nodeType===ca||e.nodeType===Cr||e.nodeType===mf))}function Bu(e){return!!(e&&(e.nodeType===ca||e.nodeType===Cr||e.nodeType===mf||e.nodeType===pn&&e.nodeValue===" react-mount-point-unstable "))}function OS(e){e.nodeType===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("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."),ru(e)&&(e._reactRootContainer?d("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):d("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 e_=me.ReactCurrentOwner,AS;AS=function(e){if(e._reactRootContainer&&e.nodeType!==pn){var t=vS(e._reactRootContainer.current);t&&t.parentNode!==e&&d("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=cm(e),r=!!(a&&ti(a));r&&!n&&d("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===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("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 cm(e){return e?e.nodeType===Cr?e.documentElement:e.firstChild:null}function NS(){}function t_(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var g=qc(o);i.call(g)}}var o=fS(t,a,e,ai,null,!1,!1,"",NS);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return ql(l),zr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var g=qc(v);f.call(g)}}var v=cS(e,ai,null,!1,!1,"",NS);e._reactRootContainer=v,Us(v.current,e);var b=e.nodeType===pn?e.parentNode:e;return ql(b),zr(function(){Pu(t,v,n,a)}),v}}function n_(e,t){e!==null&&typeof e!="function"&&d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Qc(e,t,n,a,r){AS(n),n_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=t_(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Pu(t,o,e,r)}return qc(o)}var jS=!1;function a_(e){{jS||(jS=!0,d("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=e_.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||d("%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.",Et(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ca?e:PD(e,"findDOMNode")}function r_(e,t,n){if(d("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"),!Bu(t))throw new Error("Target container is not a DOM element.");{var a=ru(t)&&t._reactRootContainer===void 0;a&&d("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 Qc(null,e,t,!0,n)}function i_(e,t,n){if(d("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"),!Bu(t))throw new Error("Target container is not a DOM element.");{var a=ru(t)&&t._reactRootContainer===void 0;a&&d("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 Qc(null,e,t,!1,n)}function o_(e,t,n,a){if(d("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"),!Bu(n))throw new Error("Target container is not a DOM element.");if(e==null||!eT(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var US=!1;function l_(e){if(US||(US=!0,d("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")),!Bu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=ru(e)&&e._reactRootContainer===void 0;t&&d("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=cm(e),a=n&&!ti(n);a&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return zr(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,ky(e)})}),!0}else{{var r=cm(e),i=!!(r&&ti(r)),o=e.nodeType===ca&&Bu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&d("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}}aE(BD),iE($D),oE(YD),lE(Ya),uE(eE),(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")&&d("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"),$0(sx),W0(Pp,Jw,zr);function u_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xc(t))throw new Error("Target container is not a DOM element.");return VD(e,t,null,n)}function s_(e,t,n,a){return o_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[ti,Ao,zs,qm,Gm,Pp]};function c_(e,t){return fm.usingClientEntryPoint||d('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),KD(e,t)}function f_(e,t,n){return fm.usingClientEntryPoint||d('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),JD(e,t,n)}function d_(e){return $b()&&d("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."),zr(e)}var v_=QD({findFiberByHostInstance:Vi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!v_&&Jt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var zS=window.location.protocol;/^(https?|file):$/.test(zS)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(zS==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}la.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,la.createPortal=u_,la.createRoot=c_,la.findDOMNode=a_,la.flushSync=d_,la.hydrate=r_,la.hydrateRoot=f_,la.render=i_,la.unmountComponentAtNode=l_,la.unstable_batchedUpdates=Pp,la.unstable_renderSubtreeIntoContainer=s_,la.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),la}hm.exports=BS();var $S=hm.exports,Sm,Tm=$S;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(C,k){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(C,k)}finally{Em.usingClientEntryPoint=!1}}}const V=C=>{if(isNaN(C))return"00:00:00.000";const k=Math.floor(C/3600),me=Math.floor(C%3600/60),Se=Math.floor(C%60),ve=Math.round(C%1*1e3),Ee=String(k).padStart(2,"0"),d=String(me).padStart(2,"0"),Z=String(Se).padStart(2,"0"),ye=String(ve).padStart(3,"0");return`${Ee}:${d}:${Z}.${ye}`},yi=C=>V(C),YS=C=>V(C),ie={debug:(...C)=>{},error:(...C)=>console.error(...C),warn:(...C)=>console.warn(...C),info:(...C)=>console.info(...C)};var J=Zc();const IS=({videoRef:C,currentTime:k,duration:me,isPlaying:Se,isMuted:ve=!1,onPlayPause:Ee,onSeek:d,onToggleMute:Z})=>{var Be;const ye=J.useRef(null),[oe,rt]=J.useState(!1),[G,j]=J.useState(!1),[ne,Ue]=J.useState(null),[kt,xt]=J.useState(!1),Rt=J.useRef(!1),[Xe,xe]=J.useState({x:0}),[mt,Re]=J.useState(0),et=typeof window<"u"&&((Be=window.MEDIA_DATA)==null?void 0:Be.videoUrl)||"/videos/sample-video-37s.mp4";J.useEffect(()=>{if(rt((()=>{const $=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test($)&&!window.MSStream})()),typeof window<"u"){const $=localStorage.getItem("video_initialized")==="true";j($)}},[]),J.useEffect(()=>{Se&&!G&&(j(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Se,G]),J.useEffect(()=>{const I=C.current;if(!I)return;I.setAttribute("playsinline","true"),I.setAttribute("webkit-playsinline","true"),I.setAttribute("x-webkit-airplay","allow");const $=()=>{Rt.current||(Ue(I.currentTime),typeof window<"u"&&(window.lastSeekedPosition=I.currentTime))},He=()=>{oe&&(j(!0),localStorage.setItem("video_initialized","true"))},Ve=()=>{};return I.addEventListener("timeupdate",$),I.addEventListener("play",He),I.addEventListener("pause",Ve),()=>{I.removeEventListener("timeupdate",$),I.removeEventListener("play",He),I.removeEventListener("pause",Ve)}},[C,oe,Rt]),J.useEffect(()=>{Ue(k)},[k]);const B=me>0?k/me*100:0,Ot=I=>{I.preventDefault(),xt(!0),Rt.current=!0,at(I);const $=Ve=>{Rt.current&&at(Ve)},He=()=>{xt(!1),Rt.current=!1,document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",He)};document.addEventListener("mousemove",$),document.addEventListener("mouseup",He)},at=I=>{if(!ye.current)return;const $=ye.current.getBoundingClientRect(),He=Math.max(0,Math.min(1,(I.clientX-$.left)/$.width)),Ve=me*He;xe({x:I.clientX}),Re(Ve),Ue(Ve),typeof window<"u"&&(window.lastSeekedPosition=Ve),d(Ve)},Fe=I=>{if(!ye.current||!I.touches[0])return;I.preventDefault(),xt(!0),Rt.current=!0,ee(I);const $=Ve=>{Rt.current&&ee(Ve)},He=()=>{xt(!1),Rt.current=!1,document.removeEventListener("touchmove",$),document.removeEventListener("touchend",He),document.removeEventListener("touchcancel",He)};document.addEventListener("touchmove",$,{passive:!1}),document.addEventListener("touchend",He),document.addEventListener("touchcancel",He)},ee=I=>{if(!ye.current)return;const $="touches"in I?I.touches[0]:null;if(!$)return;I.preventDefault();const He=ye.current.getBoundingClientRect(),Ve=Math.max(0,Math.min(1,($.clientX-He.left)/He.width)),nt=me*Ve;xe({x:$.clientX}),Re(nt),Ue(nt),typeof window<"u"&&(window.lastSeekedPosition=nt),d(nt)},Je=I=>{if(!kt&&ye.current){const $=ye.current.getBoundingClientRect(),He=(I.clientX-$.left)/$.width,Ve=me*He;Ue(Ve),typeof window<"u"&&(window.lastSeekedPosition=Ve),d(Ve)}},X=()=>{C.current&&(document.fullscreenElement?document.exitFullscreen():C.current.requestFullscreen())},At=()=>{const I=C.current;I&&(I.paused?oe&&ne!==null&&ne>0?(I.currentTime=ne,setTimeout(()=>{C.current&&C.current.play().then(()=>{var $;ie.debug("iOS: Play started successfully at position:",($=C.current)==null?void 0:$.currentTime),Ee()}).catch($=>{console.error("iOS: Error playing video:",$)})},50)):I.play().then(()=>{Ee()}).catch($=>{console.error("Error playing video:",$)}):(I.pause(),Ee()))};return m.jsxs("div",{className:"video-player-container",children:[m.jsxs("video",{ref:C,preload:"auto",crossOrigin:"anonymous",onClick:At,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:ve,children:[m.jsx("source",{src:et,type:"video/mp4"}),m.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),oe&&!G&&!Se&&m.jsx("div",{className:"ios-first-play-indicator",children:m.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),m.jsx("div",{className:`play-pause-indicator ${Se?"pause-icon":"play-icon"}`}),m.jsxs("div",{className:"video-controls",children:[m.jsxs("div",{className:"video-time-display",children:[m.jsx("span",{className:"video-current-time",children:yi(k)}),m.jsxs("span",{className:"video-duration",children:["/ ",yi(me)]})]}),m.jsxs("div",{ref:ye,className:`video-progress ${kt?"dragging":""}`,onClick:Je,onMouseDown:Ot,onTouchStart:Fe,children:[m.jsx("div",{className:"video-progress-fill",style:{width:`${B}%`}}),m.jsx("div",{className:"video-scrubber",style:{left:`${B}%`}}),kt&&m.jsx("div",{className:"video-time-tooltip",style:{left:`${Xe.x}px`,transform:"translateX(-50%)"},children:V(mt)})]}),m.jsxs("div",{className:"video-controls-buttons",children:[Z&&m.jsx("button",{className:"mute-button","aria-label":ve?"Unmute":"Mute",onClick:Z,"data-tooltip":ve?"Unmute":"Mute",children:ve?m.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:[m.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),m.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),m.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),m.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),m.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):m.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:[m.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),m.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),m.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:X,"data-tooltip":"Toggle fullscreen",children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:m.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"})})})]})]})]})},tf=(C,k)=>{const me=Math.min(Math.max(C/(k||1),0),1),Se=210,ve=40+Math.floor(me*20),Ee=85+Math.floor(me*8);return`hsl(${Se}, ${ve}%, ${Ee}%)`},Cm=async(C,k)=>new Promise(me=>{const Se=document.createElement("canvas");Se.width=10,Se.height=10;const ve=Se.getContext("2d");if(ve){const d=tf(k,C.duration);ve.fillStyle=d,ve.fillRect(0,0,Se.width,Se.height)}const Ee=Se.toDataURL("image/png",.5);me(Ee)}),no=({isOpen:C,onClose:k,title:me,children:Se,actions:ve})=>{if(J.useEffect(()=>{const d=Z=>{Z.key==="Escape"&&C&&k()};return document.addEventListener("keydown",d),C&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[C,k]),!C)return null;const Ee=d=>{d.target===d.currentTarget&&k()};return m.jsx("div",{className:"modal-overlay",onClick:Ee,children:m.jsxs("div",{className:"modal-container",onClick:d=>d.stopPropagation(),children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("h2",{className:"modal-title",children:me}),m.jsx("button",{className:"modal-close-button",onClick:k,"aria-label":"Close modal",children:m.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:[m.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),m.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),m.jsx("div",{className:"modal-content",children:Se}),ve&&m.jsx("div",{className:"modal-actions",children:ve})]})})},xm=C=>new Promise(k=>setTimeout(k,C)),nf=async(C,k)=>{try{const me=await fetch(`/api/v1/media/${C}/trim_video`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k)});if(!me.ok)if(me.status===400)try{return{status:400,error:(await me.json()).error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:400,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else if(me.status!==404)try{const ve=await me.json();return{status:me.status,error:ve.error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:me.status,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${C}`};const Se=await me.json();return{status:200,msg:"Video Processed Successfully",url_redirect:Se.url_redirect||`./view?m=${C}`,...Se}}catch{return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${C}`}}},Rm="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",wm="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",Dm="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",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%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",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%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",GS="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",XS="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",QS={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},_m=C=>{let Ee,d;if(C<=25)if(C<=0)Ee="0%",d="none";else{const ye=-50*((C-0)/25);Ee=`${C}%`,d=`translateX(${ye}%)`}else if(C>=75)if(C>=100)Ee="100%",d="translateX(-100%)";else{const ye=-50-50*((C-75)/25);Ee=`${C}%`,d=`translateX(${ye}%)`}else Ee=`${C}%`,d="translateX(-50%)";return{left:Ee,transform:d}},KS=({currentTime:C,duration:k,thumbnails:me,trimStart:Se,trimEnd:ve,splitPoints:Ee,zoomLevel:d,clipSegments:Z,onTrimStartChange:ye,onTrimEndChange:oe,onZoomChange:rt,onSeek:G,videoRef:j,onSave:ne,onSaveACopy:Ue,onSaveSegments:kt,isPreviewMode:xt,hasUnsavedChanges:Rt=!1,isIOSUninitialized:Xe=!1,isPlaying:xe,setIsPlaying:mt,onPlayPause:Re,isPlayingSegments:et=!1})=>{const B=J.useRef(null),Ot=J.useRef(null),at=J.useRef(null),[Fe,ee]=J.useState(null),[Je,X]=J.useState(!1),[At,Be]=J.useState({x:0,y:0}),[I,$]=J.useState(0),[He,Ve]=J.useState(!1),[nt,ht]=J.useState(30),[Ze,Ae]=J.useState(!1),[Ne,st]=J.useState(null),[$t,Ie]=J.useState(0),[Nt,it]=J.useState(!1),We=J.useRef(null),Jt=y=>{const F=y;let _=null,S=null,w=I;const c=()=>{const p=F<0?Math.max(0,w+F):Math.min(k,w+F);w=p;const T=Ze;if(G(p),$(p),Ie(p),B.current){const E=B.current.getBoundingClientRect(),P=p/k*100,ae=E.left+E.width*(P/100);Be({x:ae,y:E.top-10});const H=Z.find(le=>p>=le.startTime&&p<=le.endTime);if(H)ee(H.id),X(!1);else{ee(null);const le=bt(p);ht(le),X(!0)}}T&&j.current&&(j.current.play(),Ae(!0))};return{onMouseDown:p=>{p.stopPropagation(),p.preventDefault(),w=I,c(),_=setTimeout(()=>{S=setInterval(c,200)},750);const T=()=>{_&&(clearTimeout(_),_=null),S&&(clearInterval(S),S=null),document.removeEventListener("mouseup",T),document.removeEventListener("mouseleave",T)};document.addEventListener("mouseup",T),document.addEventListener("mouseleave",T)},onTouchStart:p=>{p.stopPropagation(),p.preventDefault(),w=I,c(),_=setTimeout(()=>{S=setInterval(c,200)},750);const T=()=>{_&&(clearTimeout(_),_=null),S&&(clearInterval(S),S=null),document.removeEventListener("touchend",T),document.removeEventListener("touchcancel",T)};document.addEventListener("touchend",T),document.addEventListener("touchcancel",T)},onClick:p=>{p.stopPropagation()}}},[xn,Xt]=J.useState(!1),[cn,Yt]=J.useState(!1),[an,Rn]=J.useState(!1),[U,Y]=J.useState(!1),[pe,ue]=J.useState(!1),[Ce,De]=J.useState(!1),[yt,Le]=J.useState(""),[ct,wt]=J.useState(""),[un,wn]=J.useState(""),[Q,ge]=J.useState("save"),Pe=k>0?C/k*100:0,gt=k>0?Se/k*100:0,Pt=k>0?ve/k*100:0,Qt=async()=>{var y,F;Xt(!1),Y(!0),ge("save");try{const _=Z.map(p=>({startTime:V(p.startTime),endTime:V(p.endTime)})),S=typeof window<"u"&&((y=window.MEDIA_DATA)==null?void 0:y.mediaId)||null,w=typeof window<"u"&&((F=window.MEDIA_DATA)==null?void 0:F.redirectURL)||null;ie.debug("Save request:",{mediaId:S,segments:_,saveAsCopy:!1,redirectURL:w});const c=await nf(S,{segments:_,saveAsCopy:!1});if(ie.debug("Save response:",c),Y(!1),c.status===200){const p=w||c.url_redirect;ie.debug("Using redirect URL:",p),wn(p),Le("Video saved successfully!"),ue(!0)}else if(c.status===400){const p=c.error||"An error occurred during processing";ie.debug("Save error (400):",p),wt(p),De(!0)}else ie.debug("Save error (unknown status):",c),wt("An unexpected error occurred"),De(!0)}catch(_){ie.error("Error processing video:",_),Y(!1);const S=_ instanceof Error?_.message:"An error occurred during processing";wt(S),De(!0)}},Kt=async()=>{var y,F;Yt(!1),Y(!0),ge("copy");try{const _=Z.map(p=>({startTime:V(p.startTime),endTime:V(p.endTime)})),S=typeof window<"u"&&((y=window.MEDIA_DATA)==null?void 0:y.mediaId)||null,w=typeof window<"u"&&((F=window.MEDIA_DATA)==null?void 0:F.redirectUserMediaURL)||null;ie.debug("Save as copy request:",{mediaId:S,segments:_,saveAsCopy:!0,redirectUserMediaURL:w});const c=await nf(S,{segments:_,saveAsCopy:!0});if(ie.debug("Save as copy response:",c),Y(!1),c.status===200){const p=w||c.url_redirect;ie.debug("Using redirect user media URL:",p),wn(p),Le("Video saved as a new copy!"),ue(!0)}else if(c.status===400){const p=c.error||"An error occurred during processing";ie.debug("Save as copy error (400):",p),wt(p),De(!0)}else ie.debug("Save as copy error (unknown status):",c),wt("An unexpected error occurred"),De(!0)}catch(_){ie.error("Error processing video:",_),Y(!1);const S=_ instanceof Error?_.message:"An error occurred during processing";wt(S),De(!0)}},Dn=async()=>{var y,F;Rn(!1),Y(!0),ge("segments");try{const _=Z.map(p=>({startTime:V(p.startTime),endTime:V(p.endTime),name:p.name})),S=typeof window<"u"&&((y=window.MEDIA_DATA)==null?void 0:y.mediaId)||null,w=typeof window<"u"&&((F=window.MEDIA_DATA)==null?void 0:F.redirectUserMediaURL)||null;ie.debug("Save segments request:",{mediaId:S,segments:_,saveAsCopy:!0,saveIndividualSegments:!0,redirectUserMediaURL:w});const c=await nf(S,{segments:_,saveAsCopy:!0,saveIndividualSegments:!0});if(ie.debug("Save segments response:",c),Y(!1),c.status===200){const p=w||c.url_redirect;ie.debug("Using redirect user media URL for segments:",p),wn(p),Le(`${_.length} segments saved successfully!`),ue(!0)}else if(c.status===400){const p=c.error||"An error occurred during processing";ie.debug("Save segments error (400):",p),wt(p),De(!0)}else ie.debug("Save segments error (unknown status):",c),wt("An unexpected error occurred"),De(!0)}catch(_){ie.error("Error processing video segments:",_),Y(!1);const S=_ instanceof Error?_.message:"An error occurred during processing";wt(S),De(!0)}};J.useEffect(()=>{if(We.current&&B.current&&d>1){const y=We.current.clientWidth,F=B.current.clientWidth,_=C/k*F,S=Math.max(0,_-y/2);We.current.scrollTo({left:S,behavior:"smooth"});const w=B.current.getBoundingClientRect();We.current.getBoundingClientRect();const p=w.left-We.current.scrollLeft+Pe/100*w.width;(Fe!==null||Je)&&(Be({x:p,y:w.top-10}),$(C))}},[C,d,k,Fe,Je,Pe]),J.useEffect(()=>{const y=j.current;if(!y||!Ne||!Ze||xt||et)return;ie.debug("Segment boundary check ACTIVATED for segment:",Ne.id,"Start:",V(Ne.startTime),"End:",V(Ne.endTime));const F=()=>{const _=Ne.endTime-y.currentTime;if(Math.round(_*10)%10===0&&ie.debug("Segment playback - time remaining:",V(_),"Current:",V(y.currentTime),"End:",V(Ne.endTime),"ContinuePastBoundary:",Nt),y.currentTime>Ne.endTime){y.pause(),y.currentTime=Ne.endTime,Ae(!1),it(!1),ie.debug("Passed segment end - setting back to exact boundary:",V(Ne.endTime));return}if(Ne.endTime-y.currentTime<.05)if(Nt)ie.debug("Continuing past segment boundary:",V(Ne.endTime)),y.currentTime>Ne.endTime&&(it(!1),st(null),sessionStorage.removeItem("continuingPastSegment"));else{y.pause(),y.currentTime=Ne.endTime,Ae(!1),ie.debug("Paused at segment end boundary:",V(Ne.endTime));const w=[...Z].sort((c,p)=>c.startTime-p.startTime).find(c=>c.startTime>Ne.endTime);w&&Math.abs(w.startTime-Ne.endTime)<.1&&(ie.debug("Found adjacent next segment:",w.id),ee(w.id),st(w),Ie(w.startTime),$(w.startTime),y.currentTime=w.startTime)}};return y.addEventListener("timeupdate",F),()=>{y.removeEventListener("timeupdate",F)}},[Ne,Ze,xt,Nt,Z]),J.useEffect(()=>{if(j.current)if(j.current.paused)j.current.paused&&Ze&&(Ie(C),$(C),Ae(!1),ie.debug("Video paused at:",V(C)));else{Ie(C),$(C),Fe!==null&&Ae(!0);const y=Z.find(S=>C>=S.startTime&&C<=S.endTime),F=C/k*100;if(B.current){const S=B.current.offsetWidth,w=F/100*S;Be({x:w,y:B.current.getBoundingClientRect().top-10})}const _=sessionStorage.getItem("continuingPastSegment")==="true";if(y){const S=j.current,w=Ne&&Ne.id<0&&Ze;if((Ne==null?void 0:Ne.id)!==y.id&&!w&&!_&&!Nt&&(ie.debug(`Entered a new segment during playback: ${y.id}, setting as active`),st(y),ee(y.id),X(!1),it(!1),sessionStorage.removeItem("continuingPastSegment")),w&&S&&y){ie.debug(`CUTAWAY BOUNDARY REACHED: Current position ${V(S.currentTime)} at segment ${y.id} - STOPPING at boundary ${V(y.startTime)}`),S.pause(),setTimeout(()=>{if(j.current){j.current.currentTime=y.startTime,G(y.startTime),Ie(y.startTime),$(y.startTime),it(!1),ee(y.id),X(!1);const p=()=>{j.current&&(j.current.currentTime=y.startTime,G(y.startTime),Ie(y.startTime),$(y.startTime),ie.debug(`Position corrected to exact segment boundary: ${V(j.current.currentTime)} (target: ${V(y.startTime)})`))};setTimeout(p,10),setTimeout(p,20),setTimeout(p,50),setTimeout(p,100),setTimeout(p,200),j.current.addEventListener("seeked",p),j.current.addEventListener("canplay",p),j.current.addEventListener("waiting",p),setTimeout(()=>{j.current&&(j.current.removeEventListener("seeked",p),j.current.removeEventListener("canplay",p),j.current.removeEventListener("waiting",p))},300)}},10),Ae(!1),st(null);return}Ne===null&&Ze===!0||_||w?(Fe!==y.id||Je)&&(ie.debug("Tooltip updated for segment during continued playback:",y.id,w?"(cutaway playback - keeping virtual segment)":""),ee(y.id),X(!1),!w&&sessionStorage.getItem("lastSegmentId")!==y.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Ne==null?void 0:Ne.id)!==y.id||Je)&&(ie.debug("Playback moved into segment:",y.id),ee(y.id),st(y),X(!1),sessionStorage.setItem("lastSegmentId",y.id.toString()))}else if(Ne!==null||!Je){ee(null),st(null);const S=bt(C);ht(S),S>=.5?X(!0):X(!1)}}},[C,Ze,Ne,Fe,Z]),J.useEffect(()=>{const y=F=>{const _=F.target;He&&!_.closest(".zoom-dropdown-container")&&Ve(!1)};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[He]),J.useEffect(()=>()=>{},[Fe,Je,Ze]),J.useEffect(()=>{const y=Ot.current,F=at.current,_=B.current;if(!y||!F||!_)return;const S=w=>c=>{c.preventDefault();const p=_.getBoundingClientRect();let T=!0,E=w?Se:ve;const P=le=>new CustomEvent("trim-handle-event",{detail:{type:le,isStart:w}});document.dispatchEvent(P("drag-start"));const ae=le=>{if(!T)return;const Qe=p.width,ot=Math.max(0,Math.min(1,(le.clientX-p.left)/Qe))*k;typeof window<"u"&&(window.lastSeekedPosition=ot),w?ot<ve&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:ot,isStart:!0,recordHistory:!1}})),E=ot):ot>Se&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:ot,isStart:!1,recordHistory:!1}})),E=ot)},H=()=>{T=!1,document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",H),w?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:E,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:E,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(P("drag-end"))};document.addEventListener("mousemove",ae),document.addEventListener("mouseup",H)};return y.addEventListener("mousedown",S(!0)),F.addEventListener("mousedown",S(!1)),()=>{y.removeEventListener("mousedown",S(!0)),F.removeEventListener("mousedown",S(!1))}},[k,Se,ve,ye,oe]);const It=()=>{const y=me.length||10;return Array.from({length:y}).map((F,_)=>{const S=k/y,w=_*S,c=w+S,p=(w+c)/2,T=tf(p,k);return m.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/y}%`,backgroundColor:T}},_)})},Vt=()=>Ee.map((y,F)=>{const _=y/k*100;return m.jsx("div",{className:"split-point",style:{left:`${_}%`}},F)}),bt=y=>{const _=[...Z].sort((p,T)=>p.startTime-T.startTime),S=_.find(p=>p.startTime>y),w=[..._].reverse().find(p=>p.endTime<y);let c;return S?c=S.startTime-y:c=k-y,ie.debug("Space calculation:",{position:V(y),nextSegment:S?V(S.startTime):"none",prevSegment:w?V(w.endTime):"none",availableSpace:V(Math.max(.1,c))}),Math.max(.1,c)},ua=y=>{if(!B.current)return;const F=Z.find(E=>{const P=y>=E.startTime&&y<=E.endTime,ae=Math.abs(y-E.startTime)<.001,H=Math.abs(y-E.endTime)<.001;return P||ae||H}),_=[...Z].sort((E,P)=>E.startTime-P.startTime),S=_.find(E=>E.startTime>y),w=[..._].reverse().find(E=>E.endTime<y);if(F)ee(F.id),X(!1);else{const E=bt(y);ht(E),ee(null),X(!0),ie.debug("Cutaway position:",{current:V(y),prevSegmentEnd:w?V(w.endTime):"none",nextSegmentStart:S?V(S.startTime):"none",availableSpace:V(E)})}const c=B.current.getBoundingClientRect(),p=y/k*100;let T;d>1&&We.current?T=c.left-We.current.scrollLeft+c.width*(p/100):T=c.left+c.width*(p/100),Be({x:T,y:c.top-10})},ha=y=>{if(!B.current||!We.current||Xe)return;const F=j.current&&!j.current.paused;it(!1);const _=B.current.getBoundingClientRect();let S;if(d>1){const p=We.current.scrollLeft,T=B.current.clientWidth;S=(y.clientX-_.left+p)/T}else S=(y.clientX-_.left)/_.width;const w=S*k;ie.debug("Timeline clicked at:",V(w),"distance from end:",V(k-w)),typeof window<"u"&&(window.lastSeekedPosition=w),G(w),$(w),Ie(w);const c=Z.find(p=>{const T=w>=p.startTime&&w<=p.endTime,E=Math.abs(w-p.startTime)<.01,P=Math.abs(w-p.endTime)<.01;return T||E||P});if(c&&st(c),j.current)if(et&&F){if(c){const T=[...Z].sort((E,P)=>E.startTime-P.startTime).findIndex(E=>E.id===c.id);if(T!==-1){const E=new CustomEvent("update-segment-index",{detail:{segmentIndex:T}});document.dispatchEvent(E),ie.debug(`Segments playback mode: updating segment index to ${T} for timeline click in segment ${c.id}`)}}j.current.play().then(()=>{Ae(!0)}).catch(p=>{console.error("Error resuming segments playback:",p),Ae(!1)})}else(F||xt)&&!et&&j.current.play().then(()=>{Ae(!0)}).catch(p=>{console.error("Error resuming playback:",p),Ae(!1)});if(y.target===B.current||y.target.classList.contains("timeline-thumbnail"))if(c)ee(c.id),X(!1);else{ee(null);const p=bt(w);ht(p);let T;if(d>1){const H=_.left-We.current.scrollLeft,le=w/k;T=H+le*_.width}else T=y.clientX;Be({x:T,y:_.top-10}),X(!0);const E=[...Z].sort((H,le)=>H.startTime-le.startTime),P=[...E].reverse().find(H=>H.endTime<w),ae=E.find(H=>H.startTime>w);ie.debug("Clicked in cutaway area:",{position:V(w),availableSpace:V(p),prevSegmentEnd:P?V(P.endTime):"none",nextSegmentStart:ae?V(ae.startTime):"none"})}},Yn=(y,F)=>_=>{if(_.preventDefault(),_.stopPropagation(),!B.current)return;B.current.getBoundingClientRect().width;const w=Z.find(en=>en.id===y);if(!w)return;const c=w.startTime,p=w.endTime,T={...w};document.body.style.cursor="ew-resize";const E=document.createElement("div");E.style.position="fixed",E.style.top="0",E.style.left="0",E.style.width="100vw",E.style.height="100vh",E.style.zIndex="1000",E.style.cursor="ew-resize",document.body.appendChild(E);let P=!0,ae=c,H=p;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:y}}));const le=en=>{if(!P||!B.current)return;const Ft=B.current.getBoundingClientRect(),Dt=Math.max(0,Math.min(1,(en-Ft.left)/Ft.width))*k,Zn=F?Dt:c,yr=F?p:Dt;if(C>=Zn&&C<=yr)ee(y),X(!1);else{ee(null);const dn=bt(C);ht(dn),X(!0)}const Br=Z.filter(dn=>dn.id!==y);let ga=c,ba=p;if(F){ga=Math.min(Dt,p-.5);const _t=Br.filter(Ta=>Ta.endTime<=c).sort((Ta,sa)=>sa.endTime-Ta.endTime)[0];_t&&ga<_t.endTime&&(ga=_t.endTime),_t&&Math.abs(ga-_t.endTime)<.3&&(ga=_t.endTime),ae=ga}else{ba=Math.max(Dt,c+.5);const _t=Br.filter(Ta=>Ta.startTime>=p).sort((Ta,sa)=>Ta.startTime-sa.startTime)[0];_t&&ba>_t.startTime&&(ba=_t.startTime),_t&&Math.abs(ba-_t.startTime)<.3&&(ba=_t.startTime),H=ba}const $r=Z.map(dn=>dn.id===y?{...dn,startTime:ga,endTime:ba}:dn),gi=new CustomEvent("update-segments",{detail:{segments:$r,recordHistory:!1}});if(document.dispatchEvent(gi),Fe===y&&j.current){const dn=j.current.currentTime,_t=$r.find(Sa=>Sa.id===y);if(_t){const Sa=dn>=_t.startTime&&dn<=_t.endTime;ie.debug(`During drag - playhead at ${V(dn)} is ${Sa?"inside":"outside"} segment (${V(_t.startTime)} - ${V(_t.endTime)})`),!Sa&&Ze&&(j.current.pause(),Ae(!1),st(null)),dn<_t.startTime?(ie.debug(`Adjusting display time to segment start: ${V(_t.startTime)}`),Ie(_t.startTime),$(_t.startTime)):dn>_t.endTime&&(ie.debug(`Adjusting display time to segment end: ${V(_t.endTime)}`),Ie(_t.endTime),$(_t.endTime))}}},Qe=()=>{if(!P)return;P=!1,document.removeEventListener("mousemove",_e),document.removeEventListener("mouseup",ot),document.removeEventListener("touchmove",fn),document.removeEventListener("touchend",_n),document.removeEventListener("touchcancel",_n),document.body.style.cursor="",document.body.contains(E)&&document.body.removeChild(E);const en=Z.map(Me=>Me.id===y?{...Me,startTime:ae,endTime:H}:Me),Ft=F?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:en,recordHistory:!0,action:Ft}})),Fe===y&&j.current){const Me=j.current.currentTime,Dt=en.find(Zn=>Zn.id===y);if(Dt){const Zn=Me>=Dt.startTime&&Me<=Dt.endTime;ie.debug(`Drag complete - playhead at ${V(Me)} is ${Zn?"inside":"outside"} segment (${V(Dt.startTime)} - ${V(Dt.endTime)})`);const yr=Me>=T.startTime&&Me<=T.endTime;Zn?!yr&&Zn?(st(Dt),xt&&j.current.play().then(()=>{Ae(!0)}).catch(Va=>{console.error("Error starting playback:",Va)})):yr&&Zn&&(Dt.startTime!==T.startTime||Dt.endTime!==T.endTime)&&st(Dt):(Ze&&(j.current.pause(),Ae(!1),st(null),it(!1)),Me<Dt.startTime?(ie.debug(`Final adjustment - setting display time to segment start: ${V(Dt.startTime)}`),Ie(Dt.startTime),$(Dt.startTime)):Me>Dt.endTime&&(ie.debug(`Final adjustment - setting display time to segment end: ${V(Dt.endTime)}`),Ie(Dt.endTime),$(Dt.endTime)))}}},_e=en=>{le(en.clientX)},ot=()=>{Qe()},fn=en=>{en.touches.length>0&&(en.preventDefault(),le(en.touches[0].clientX))},_n=()=>{Qe()};document.addEventListener("mousemove",_e,{passive:!1}),document.addEventListener("mouseup",ot),document.addEventListener("touchmove",fn,{passive:!1}),document.addEventListener("touchend",_n),document.addEventListener("touchcancel",_n)},nr=y=>F=>{if(F.target.classList.contains("clip-segment-handle"))return;F.preventDefault(),F.stopPropagation(),it(!1);const _=j.current&&!j.current.paused;ee(y);const S=Z.find(H=>H.id===y);if(!S)return;const c=F.currentTarget.getBoundingClientRect(),p=(F.clientX-c.left)/c.width,T=S.startTime+p*(S.endTime-S.startTime),E=Math.max(S.startTime,Math.min(S.endTime,T));if($(E),Ie(E),j.current){const H=j.current.currentTime,le=H>=S.startTime&&H<=S.endTime;ie.debug(`Segment click - playhead at ${V(H)} is ${le?"inside":"outside"} segment (${V(S.startTime)} - ${V(S.endTime)})`),le||(Math.abs(H-S.startTime)<Math.abs(H-S.endTime)?(ie.debug(`Playhead outside segment - adjusting to segment start: ${V(S.startTime)}`),Ie(S.startTime)):(ie.debug(`Playhead outside segment - adjusting to segment end: ${V(S.endTime)}`),Ie(S.endTime)))}if(G(E),j.current)if(et&&_){const le=[...Z].sort((Qe,_e)=>Qe.startTime-_e.startTime).findIndex(Qe=>Qe.id===y);if(le!==-1){const Qe=new CustomEvent("update-segment-index",{detail:{segmentIndex:le}});document.dispatchEvent(Qe)}j.current.play().then(()=>{Ae(!0)}).catch(Qe=>{console.error("Error continuing segments playback after segment click:",Qe)})}else(_||xt)&&!et?(st(S),it(!1),j.current.play().then(()=>{Ae(!0)}).catch(H=>{console.error("Error resuming playback after segment click:",H)})):xt&&!et&&(st(S),j.current.play().then(()=>{Ae(!0)}).catch(H=>{console.error("Error continuing preview playback:",H)}));const P=F.clientX,ae=c.top-10;if(Be({x:P,y:ae}),d>1&&B.current&&We.current){B.current.getBoundingClientRect();const H=B.current.clientWidth,le=We.current.clientWidth,Qe=E/k*H,_e=Math.max(0,Qe-le/2);We.current.scrollTo({left:_e,behavior:"smooth"}),setTimeout(()=>{if(B.current&&We.current){const ot=B.current.getBoundingClientRect(),_n=E/k*H-We.current.scrollLeft+ot.left;Be({x:_n,y:ae})}},300)}},Vr=()=>Z.map((y,F)=>{const _=y.startTime/k*100,S=(y.endTime-y.startTime)/k*100,w=tf((y.startTime+y.endTime)/2,k);return m.jsxs("div",{className:`clip-segment ${Fe===y.id?"selected":""}`,style:{left:`${_}%`,width:`${S}%`,backgroundColor:w,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:nr(y.id),children:[m.jsxs("div",{className:"clip-segment-info",children:[m.jsxs("div",{className:"clip-segment-name",children:["Segment ",F+1]}),m.jsxs("div",{className:"clip-segment-time",children:[yi(y.startTime)," - ",yi(y.endTime)]}),m.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",yi(y.endTime-y.startTime)]})]}),m.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:c=>{c.stopPropagation(),Yn(y.id,!0)(c)},onTouchStart:c=>{c.stopPropagation(),Yn(y.id,!0)(c)}}),m.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:c=>{c.stopPropagation(),Yn(y.id,!1)(c)},onTouchStart:c=>{c.stopPropagation(),Yn(y.id,!1)(c)}})]},y.id)});J.useEffect(()=>{const y=F=>{const{segmentId:_}=F.detail;if(Z.filter(w=>w.id!==_).length===0){const w={id:Date.now(),name:"Full Video",startTime:0,endTime:k,thumbnail:""},c=new CustomEvent("update-segments",{detail:{segments:[w],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(c),ee(w.id),X(!1),$(C),Ie(C),st(w),B.current){const p=B.current.getBoundingClientRect(),T=C/k*100,E=p.left+p.width*(T/100);Be({x:E,y:p.top-10}),ie.debug("Created full video segment:",{id:w.id,duration:V(k),currentPosition:V(C)})}}else if(Fe===_){if(!Z.find(p=>p.id===_))return;const c=bt(C);if(ee(null),X(!0),ht(c),B.current){const p=B.current.getBoundingClientRect(),T=C/k*100,E=p.left+p.width*(T/100);Be({x:E,y:p.top-10}),ie.debug("Segment deleted, showing cutaway tooltip:",{position:V(C),availableSpace:V(c)})}}};return document.addEventListener("delete-segment",y),()=>{document.removeEventListener("delete-segment",y)}},[Fe,Z,C,k,B]),J.useEffect(()=>{const y=j.current;if(!y)return;const F=()=>{if(!j.current)return;const S=j.current,w=S.currentTime;it(!1);let c=k,p=null,T=null;p=Z.find(P=>{const ae=w>=P.startTime&&w<=P.endTime,H=Math.abs(w-P.startTime)<.001,le=Math.abs(w-P.endTime)<.001;return ae||H||le}),T=Z.filter(P=>{const ae=P.startTime>w,H=Math.abs(P.startTime-w)>.001;return ae&&H}).sort((P,ae)=>P.startTime-ae.startTime)[0],p?(c=p.endTime,st(p)):T&&(c=T.startTime);const E=()=>{if(!S)return;const P=S.currentTime;if(c-P<=.001||P>=c){S.pause();const H=()=>{S&&(S.currentTime=c,G(c),Ie(c),$(c),ie.debug("Position verification:",{target:V(c),actual:V(S.currentTime),difference:Math.abs(S.currentTime-c).toFixed(3)}))};H(),setTimeout(H,10),setTimeout(H,20),setTimeout(H,50),p?(ee(p.id),X(!1)):T?(ee(T.id),X(!1),st(T)):(ee(null),X(!0),st(null)),S.removeEventListener("timeupdate",E),mt(!1),Ae(!1),it(!1);return}};S.addEventListener("timeupdate",E),S.play().then(()=>{mt(!0),Ae(!0),ie.debug("Playback started:",{from:V(w),to:V(c),currentSegment:p?`Segment ${p.id}`:"None",nextSegment:T?`Segment ${T.id}`:"None"})}).catch(P=>{console.error("Error playing video:",P)})},_=()=>{Ae(!1)};return y.addEventListener("play",F),y.addEventListener("pause",_),()=>{y.removeEventListener("play",F),y.removeEventListener("pause",_)}},[Z,k,G]);const Pr=y=>{if(!B.current)return;const F=B.current.getBoundingClientRect(),S=(y.clientX-F.left)/F.width*k,w=Math.max(0,Math.min(k,S));typeof window<"u"&&(window.lastSeekedPosition=w)},[hr,Ha]=J.useState(!1),Fa=J.useRef(!1),ya=y=>{if(Xe)return;y.stopPropagation(),y.preventDefault(),Ha(!0),Fa.current=!0,ua(C);const F=S=>{if(!B.current||!We.current)return;const w=B.current.getBoundingClientRect();let c;if(d>1){const T=We.current.scrollLeft,E=B.current.clientWidth;c=(S.clientX-w.left+T)/E}else c=(S.clientX-w.left)/w.width;c=Math.max(0,Math.min(1,c));const p=c*k;$(p),Ie(p),ua(p),typeof window<"u"&&(window.lastSeekedPosition=p),G(p)},_=()=>{Ha(!1),Fa.current=!1,document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",F),document.addEventListener("mouseup",_)},Kn=y=>{if(Xe)return;y.stopPropagation(),y.preventDefault(),Ha(!0),Fa.current=!0,ua(C);const F=S=>{if(!B.current||!We.current||!S.touches[0])return;const w=B.current.getBoundingClientRect();let c;if(d>1){const T=We.current.scrollLeft,E=B.current.clientWidth;c=(S.touches[0].clientX-w.left+T)/E}else c=(S.touches[0].clientX-w.left)/w.width;c=Math.max(0,Math.min(1,c));const p=c*k;$(p),Ie(p),ua(p),typeof window<"u"&&(window.lastSeekedPosition=p),G(p)},_=()=>{Ha(!1),Fa.current=!1,document.removeEventListener("touchmove",F),document.removeEventListener("touchend",_),document.removeEventListener("touchcancel",_)};document.addEventListener("touchmove",F,{passive:!1}),document.addEventListener("touchend",_),document.addEventListener("touchcancel",_)};return J.useEffect(()=>{},[un,Q,pe]),J.useEffect(()=>{let y,F;if(pe&&un){let _=10;y=setInterval(()=>{_--;const S=document.querySelector(".countdown");S&&(S.textContent=_.toString()),_<=0&&clearInterval(y)},1e3),F=setTimeout(()=>{ne&&ne(),window.location.href=un},1e4)}return()=>{y&&clearInterval(y),F&&clearTimeout(F)}},[pe,un,ne]),m.jsxs("div",{className:`timeline-container-card ${et?"segments-playback-mode":""}`,children:[m.jsxs("div",{className:"timeline-header",children:[m.jsx("div",{className:"timeline-title",children:m.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),m.jsxs("div",{className:"duration-time",children:["Total Segments: ",m.jsx("span",{children:V(Z.reduce((y,F)=>y+(F.endTime-F.startTime),0))})]})]}),m.jsx("div",{ref:We,className:`timeline-scroll-container ${et?"segments-playback-mode":""}`,style:{overflow:d>1?"auto":"hidden"},children:m.jsxs("div",{ref:B,className:"timeline-container",onClick:ha,onMouseMove:Pr,style:{width:`${d*100}%`,cursor:"pointer"},children:[m.jsxs("div",{className:"timeline-marker",style:{left:`${Pe}%`},children:[m.jsx("div",{className:"timeline-marker-head",onClick:y=>{if(y.stopPropagation(),Z.find(F=>C>=F.startTime&&C<=F.endTime),Fe||Je){ee(null),X(!1);return}else ua(C),ie.debug("Opening tooltip at:",V(C))},children:m.jsx("span",{className:"timeline-marker-head-icon",children:Fe||Je?"-":"+"})}),m.jsx("div",{className:`timeline-marker-drag ${hr?"dragging":""}`,onMouseDown:ya,onTouchStart:Kn,children:m.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),Z.length===0&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"trim-line-marker",style:{left:`${gt}%`},children:m.jsx("div",{ref:Ot,className:"trim-handle left"})}),m.jsx("div",{className:"trim-line-marker",style:{left:`${Pt}%`},children:m.jsx("div",{ref:at,className:"trim-handle right"})})]}),Vr(),Vt(),It(),Fe!==null&&m.jsxs("div",{className:`segment-tooltip two-row-tooltip ${et?"segments-playback-mode":""}`,style:{position:"absolute",..._m(Pe)},children:[m.jsxs("div",{className:"tooltip-row",children:[m.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Seek -50ms (click or hold)",...Jt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),m.jsx("div",{className:"tooltip-time-display",children:V($t)}),m.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Seek +50ms (click or hold)",...Jt(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),m.jsxs("div",{className:"tooltip-row tooltip-actions",children:[m.jsx("button",{className:"tooltip-action-btn delete","data-tooltip":"Delete segment",onClick:y=>{y.stopPropagation();const F=new CustomEvent("delete-segment",{detail:{segmentId:Fe}});document.dispatchEvent(F)},children:m.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:[m.jsx("path",{d:"M3 6h18"}),m.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"}),m.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),m.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),m.jsx("button",{className:"tooltip-action-btn scissors","data-tooltip":"Split segment at current position",onClick:y=>{y.stopPropagation();const F=new CustomEvent("split-segment",{detail:{segmentId:Fe,time:I}});document.dispatchEvent(F)},children:m.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:[m.jsx("circle",{cx:"6",cy:"6",r:"3"}),m.jsx("circle",{cx:"6",cy:"18",r:"3"}),m.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),m.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),m.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),m.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play segment from beginning",onClick:y=>{y.stopPropagation();const F=Z.find(_=>_.id===Fe);if(F&&j.current){if(it(!0),Math.abs(j.current.currentTime-F.endTime)<.05){ie.debug(`Already at end boundary (${V(j.current.currentTime)}), nudging position back slightly`);const _=Math.max(F.startTime,F.endTime-.1);j.current.currentTime=_,G(_),$(_),ie.debug(`Position adjusted to ${V(_)}`)}else G(F.startTime),$(F.startTime);st(F),j.current.play().then(()=>{Ae(!0)}).catch(_=>{console.error("Error playing from beginning:",_)})}},children:m.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:`tooltip-action-btn ${xe?"pause":"play"}`,"data-tooltip":xe?"Pause playback":"Play from current position",onClick:y=>{y.stopPropagation(),xe?j.current&&(j.current.pause(),Ae(!1),it(!1)):Re()},children:xe?m.jsx("img",{src:wm,alt:"Pause",style:{width:"24px",height:"24px"}}):m.jsx("img",{src:Rm,alt:"Play",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:"tooltip-action-btn set-in","data-tooltip":"Set start point at current position",onClick:y=>{if(y.stopPropagation(),Z.find(_=>_.id===Fe)){const _=Z.map(w=>w.id===Fe?{...w,startTime:I<w.endTime-.5?I:w.endTime-.5}:w),S=new CustomEvent("update-segments",{detail:{segments:_,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(S)}},children:m.jsx("img",{src:qS,alt:"Set start point",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:"tooltip-action-btn set-out","data-tooltip":"Set end point at current position",onClick:y=>{if(y.stopPropagation(),Z.find(_=>_.id===Fe)){const _=Z.map(w=>w.id===Fe?{...w,endTime:I>w.startTime+.5?I:w.startTime+.5}:w),S=new CustomEvent("update-segments",{detail:{segments:_,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(S)}},children:m.jsx("img",{src:WS,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),Je&&Fe===null&&m.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${et?"segments-playback-mode":""}`,style:{position:"absolute",..._m(Pe)},children:[m.jsxs("div",{className:"tooltip-row",children:[m.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Seek -50ms (click or hold)",...Jt(-.05),children:"-50ms"}),m.jsx("div",{className:"tooltip-time-display",children:V(I)}),m.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Seek +50ms (click or hold)",...Jt(.05),children:"+50ms"})]}),m.jsxs("div",{className:"tooltip-row tooltip-actions",children:[m.jsxs("button",{className:`tooltip-action-btn new-segment ${nt<.5?"disabled":""}`,"data-tooltip":nt<.5?"Not enough space for new segment":"Create new segment",disabled:nt<.5,onClick:async y=>{if(y.stopPropagation(),nt<.5)return;const F=I,_=F+nt,S={id:Date.now(),name:"segment",startTime:F,endTime:_,thumbnail:""},w=[...Z,S],c=new CustomEvent("update-segments",{detail:{segments:w,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(c),X(!1),setTimeout(()=>{const p=w[w.length-1];p&&(ee(p.id),ie.debug("Created and selected new segment:",p.id))},100)},children:[m.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:[m.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),m.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),m.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),m.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),m.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play from beginning of cutaway",onClick:y=>{if(y.stopPropagation(),j.current){const F=I;it(!0);const _=[...Z].sort((P,ae)=>P.startTime-ae.startTime),S=[..._].reverse().find(P=>P.endTime<F),w=S?S.endTime+.025:0,c=_.find(P=>P.startTime>F),p=c?c.startTime:k,T={id:-999,name:"Cutaway",startTime:w,endTime:p,thumbnail:""};G(w),$(w),Ae(!1),setTimeout(()=>{st(T)},0);const E=()=>{if(!j.current)return;const P=j.current.currentTime,ae=[...Z].sort((_e,ot)=>_e.startTime-ot.startTime),H=ae.find(_e=>_e.startTime>P-.3),le=H&&P>=H.startTime-.25&&P<=H.startTime+.1&&!Nt;H&&P>=H.startTime-.25&&P<=H.startTime+.1&&ie.debug(`Approaching boundary at ${V(H.startTime)}, continuePastBoundary=${Nt}, willStop=${le}`);const Qe=ae.find(_e=>P>=_e.startTime&&P<=_e.endTime);if(Qe&&(Ne==null?void 0:Ne.id)!==Qe.id){ie.debug(`Entered segment ${Qe.id} during cutaway playback`),st(Qe),ee(Qe.id),X(!1),j.current.removeEventListener("timeupdate",E),it(!1),sessionStorage.removeItem("continuingPastSegment");return}if(le&&H){ie.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${V(P)} approaching segment at ${V(H.startTime)} (distance: ${Math.abs(P-H.startTime).toFixed(3)}s) - STOPPING`),j.current.pause(),setTimeout(()=>{if(j.current){j.current.currentTime=H.startTime,G(H.startTime),Ie(H.startTime),$(H.startTime),it(!1),ee(H.id),X(!1),st(H);const _e=()=>{j.current&&(j.current.currentTime=H.startTime,G(H.startTime),Ie(H.startTime),$(H.startTime),ie.debug(`Position corrected to exact segment boundary: ${V(j.current.currentTime)} (target: ${V(H.startTime)})`))};setTimeout(_e,10),setTimeout(_e,20),setTimeout(_e,50),setTimeout(_e,100),setTimeout(_e,200),j.current.addEventListener("seeked",_e),j.current.addEventListener("canplay",_e),j.current.addEventListener("waiting",_e),setTimeout(()=>{j.current&&(j.current.removeEventListener("seeked",_e),j.current.removeEventListener("canplay",_e),j.current.removeEventListener("waiting",_e))},300)}},10),Ae(!1),st(null),j.current.removeEventListener("timeupdate",E);return}};j.current.addEventListener("timeupdate",E),setTimeout(()=>{j.current&&j.current.play().then(()=>{Ae(!0),ie.debug("CUTAWAY PLAYBACK STARTED:",V(w),"to",V(p),S?`(after segment ${S.id}, offset +25ms from ${V(S.endTime)})`:"(from video start)",c?`(will stop at segment ${c.id})`:"(will play to end)")}).catch(P=>{console.error("Error playing cutaway:",P)})},50)}},children:m.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:`tooltip-action-btn ${xe?"pause":"play"}`,"data-tooltip":xe?"Pause playback":"Play from here until next segment",onClick:y=>{y.stopPropagation(),xe?j.current&&(j.current.pause(),Ae(!1),it(!1)):Re()},children:xe?m.jsx("img",{src:wm,alt:"Pause",style:{width:"24px",height:"24px"}}):m.jsx("img",{src:Rm,alt:"Play",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:"tooltip-action-btn segment-end","data-tooltip":"Adjust end of previous segment",onClick:y=>{y.stopPropagation();const _=[...Z].sort((S,w)=>S.startTime-w.startTime).filter(S=>S.endTime<=I).sort((S,w)=>w.endTime-S.endTime)[0];if(_){const S=Z.map(c=>c.id===_.id?{...c,endTime:I}:c),w=new CustomEvent("update-segments",{detail:{segments:S,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(w),ie.debug("Adjusted end of previous segment to:",V(I)),ee(_.id),X(!1)}else if(Z.length>0){const S=[...Z].sort((p,T)=>p.startTime-T.startTime);let w=!1,c=0;for(let p=0;p<S.length-1;p++){const T=S[p].endTime,E=S[p+1].startTime;if(I>T&&I<E){w=!0,c=T;break}}if(w){const p={id:Date.now(),name:"segment",startTime:c,endTime:I,thumbnail:""},T=[...Z,p],E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(E),ie.debug("Created new segment in gap from",V(c),"to",V(I)),ee(p.id),X(!1)}else if(I<S[0].startTime){const p={id:Date.now(),name:"segment",startTime:0,endTime:I,thumbnail:""},T=[...Z,p],E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(E),ie.debug("Created new segment from start to:",V(I)),ee(p.id),X(!1)}else{const p=[...Z].sort((T,E)=>E.endTime-T.endTime)[0];if(p&&p.endTime<k){const T=Z.map(P=>P.id===p.id?{...P,endTime:k}:P),E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(E),ee(p.id),X(!1)}}}else if(I>0){const S={id:Date.now(),name:"segment",startTime:0,endTime:I,thumbnail:""},w=new CustomEvent("update-segments",{detail:{segments:[S],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(w),ie.debug("Created new segment from start to:",V(I)),ee(S.id),X(!1)}},children:m.jsx("img",{src:XS,alt:"Set end point",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:"tooltip-action-btn segment-start","data-tooltip":"Adjust start of next segment",onClick:y=>{y.stopPropagation();const _=[...Z].sort((S,w)=>S.startTime-w.startTime).filter(S=>S.startTime>=I).sort((S,w)=>S.startTime-w.startTime)[0];if(_){const S=Z.map(c=>c.id===_.id?{...c,startTime:I}:c),w=new CustomEvent("update-segments",{detail:{segments:S,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(w),ie.debug("Adjusted start of next segment to:",V(I)),ee(_.id),X(!1)}else if(Z.length>0){const S=[...Z].sort((p,T)=>p.startTime-T.startTime);let w=!1,c=0;for(let p=0;p<S.length-1;p++){const T=S[p].endTime,E=S[p+1].startTime;if(I>T&&I<E){w=!0,c=E;break}}if(w){const p={id:Date.now(),name:"segment",startTime:I,endTime:c,thumbnail:""},T=[...Z,p],E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(E),ie.debug("Created new segment in gap from",V(I),"to",V(c)),ee(p.id),X(!1)}else if(I<S[0].startTime){const p={id:Date.now(),name:"segment",startTime:I,endTime:S[0].startTime,thumbnail:""},T=[...Z,p],E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(E),ie.debug("Created new segment from",V(I),"to first segment"),ee(p.id),X(!1)}else if(I>S[S.length-1].endTime){const p={id:Date.now(),name:"segment",startTime:I,endTime:k,thumbnail:""},T=[...Z,p],E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(E),ie.debug("Created new segment from",V(I),"to end"),ee(p.id),X(!1)}else{const p=S[0];if(p&&p.startTime>0){const T=Z.map(P=>P.id===p.id?{...P,startTime:0}:P),E=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(E),ee(p.id),X(!1)}}}else if(I<k){const S={id:Date.now(),name:"segment",startTime:I,endTime:k,thumbnail:""},w=new CustomEvent("update-segments",{detail:{segments:[S],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(w),ie.debug("Created new segment from",V(I),"to end"),ee(S.id),X(!1)}},children:m.jsx("img",{src:GS,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),m.jsxs("div",{className:"timeline-controls",children:[m.jsxs("div",{className:"time-navigation",children:[m.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),m.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:y=>{if(y.key==="Enter"){const F=y.currentTarget.value;try{const _=F.split(":");let S=0,w=0,c=0,p=0;if(_.length===3){S=parseInt(_[0]),w=parseInt(_[1]);const E=_[2].split(".");c=parseInt(E[0]),E.length>1&&(p=parseInt(E[1].padEnd(3,"0").substring(0,3)))}else if(_.length===2){w=parseInt(_[0]);const E=_[1].split(".");c=parseInt(E[0]),E.length>1&&(p=parseInt(E[1].padEnd(3,"0").substring(0,3)))}const T=S*3600+w*60+c+p/1e3;if(!isNaN(T)&&T>=0&&T<=k){G(T);const E=P=>{const ae=Z.find(H=>{const le=P>=H.startTime&&P<=H.endTime,Qe=Math.abs(P-H.startTime)<.001,_e=Math.abs(P-H.endTime)<.001;return le||Qe||_e});if(B.current&&We.current){const H=B.current.getBoundingClientRect();let le;if(d>1)le=H.left-We.current.scrollLeft+P/k*H.width;else{const Qe=P/k;le=H.left+H.width*Qe}Be({x:le,y:H.top-10}),$(P),ae?(ee(ae.id),X(!1)):(ee(null),X(!0))}};setTimeout(()=>E(T),10)}}catch(_){console.error("Invalid time format:",_)}}}}),m.jsx("div",{className:"time-button-group",children:(()=>{const y=()=>{const F=Z.find(_=>{const S=C>=_.startTime&&C<=_.endTime,w=Math.abs(C-_.startTime)<.001,c=Math.abs(C-_.endTime)<.001;return S||w||c});if(B.current&&We.current){const _=B.current.getBoundingClientRect();let S;if(d>1)S=_.left-We.current.scrollLeft+C/k*_.width;else{const w=C/k;S=_.left+_.width*w}if(Be({x:S,y:_.top-10}),$(C),F)ee(F.id),X(!1);else{const w=bt(C);ht(w),w>=.5?(ee(null),X(!0)):(ee(null),X(!1))}}};return m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"time-button",onClick:()=>{G(C-.01),setTimeout(y,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),m.jsx("button",{className:"time-button",onClick:()=>{G(C-.001),setTimeout(y,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),m.jsx("button",{className:"time-button",onClick:()=>{G(C+.001),setTimeout(y,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),m.jsx("button",{className:"time-button",onClick:()=>{G(C+.01),setTimeout(y,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),m.jsxs("div",{className:"controls-right",children:[m.jsxs("div",{className:"zoom-dropdown-container",children:[m.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>Ve(!He),children:["Zoom ",d,"x",m.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:m.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),He&&m.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(y=>m.jsxs("div",{className:`zoom-option ${d===y?"selected":""}`,onClick:()=>{rt(y),Ve(!1)},children:[d===y&&m.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:m.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",y,"x"]},y))})]}),m.jsxs("div",{className:"save-buttons-row",children:[ne&&m.jsx("button",{onClick:()=>Xt(!0),className:"save-button","data-tooltip":"Save changes",children:"Save"}),Ue&&m.jsx("button",{onClick:()=>Yt(!0),className:"save-copy-button","data-tooltip":"Save as a new copy",children:"Save as Copy"}),kt&&m.jsx("button",{onClick:()=>Rn(!0),className:"save-segments-button","data-tooltip":"Save segments as separate files",children:"Save Segments"})]}),m.jsx(no,{isOpen:xn,onClose:()=>Xt(!1),title:"Save Changes",actions:m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Xt(!1),children:"Cancel"}),m.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{ne&&ne(),Qt()},children:"Confirm Save"})]}),children:m.jsx("p",{className:"modal-message",children:"You're about to replace the original video with this trimmed version. This can't be undone."})}),m.jsx(no,{isOpen:cn,onClose:()=>Yt(!1),title:"Save As New Copy",actions:m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Yt(!1),children:"Cancel"}),m.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{Ue&&Ue(),Kt()},children:"Confirm Save As Copy"})]}),children:m.jsx("p",{className:"modal-message",children:"You're about to save a new copy with your edits. The original video will stay the same. Find the new file in your My Media folder - named after the original file."})}),m.jsxs(no,{isOpen:U,onClose:()=>{},title:"Processing Video",children:[m.jsx("div",{className:"modal-spinner",children:m.jsx("div",{className:"spinner"})}),m.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),m.jsx(no,{isOpen:an,onClose:()=>Rn(!1),title:"Save Segments",actions:m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Rn(!1),children:"Cancel"}),m.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{kt&&kt(),Dn()},children:"Save Segments"})]}),children:m.jsx("p",{className:"modal-message",children:"You're about to save each segment as a separate video. Find the new files in your My Media folder - named after the original file."})}),m.jsx(no,{isOpen:pe,onClose:()=>ue(!1),title:"Video Edited Successfully",children:m.jsx("div",{className:"modal-success-content",children:m.jsxs("p",{className:"modal-message text-center redirect-message",children:["You will be redirected to your ",m.jsx("a",{href:un,className:"media-page-link",style:QS,children:"media page"})," in ",m.jsx("span",{className:"countdown",children:"10"})," seconds. "," ",Q==="segments"?"The new video(s) will soon be there.":"Changes to the video might take a few minutes to be applied."]})})}),m.jsxs(no,{isOpen:Ce,onClose:()=>De(!1),title:"Video Processing Error",children:[m.jsxs("div",{className:"modal-error-content",children:[m.jsx("div",{className:"modal-error-icon",children:m.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:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),m.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),m.jsx("p",{className:"modal-message text-center error-message",children:ct})]}),m.jsx("div",{className:"modal-choices",children:m.jsxs("button",{onClick:()=>De(!1),className:"modal-choice-button centered-choice",children:[m.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:[m.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),m.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),Xe&&m.jsx("div",{className:"mobile-timeline-overlay",children:m.jsxs("div",{className:"mobile-timeline-message",children:[m.jsx("p",{children:"Please play the video first to enable timeline controls"}),m.jsx("div",{className:"mobile-play-icon"})]})})]})},ZS=({onSplit:C,onReset:k,onUndo:me,onRedo:Se,onPreview:ve,onPlaySegments:Ee,onPlay:d,canUndo:Z,canRedo:ye,isPreviewMode:oe=!1,isPlaying:rt=!1,isPlayingSegments:G=!1})=>{const[j,ne]=J.useState(!1);J.useEffect(()=>{const kt=()=>{ne(window.innerWidth<=640)};return kt(),window.addEventListener("resize",kt),()=>window.removeEventListener("resize",kt)},[]);const Ue=()=>{typeof window<"u"&&console.log("Play button clicked, current lastSeekedPosition:",window.lastSeekedPosition),d()};return m.jsx("div",{className:"editing-tools-container",children:m.jsxs("div",{className:"flex-container single-row",children:[m.jsxs("div",{className:"button-group play-buttons-group",children:[m.jsx("button",{className:"button segments-button",onClick:Ee,"data-tooltip":G?"Stop segments playback":"Play segments in one continuous flow",style:{fontSize:"0.875rem"},children:G?m.jsxs(m.Fragment,{children:[m.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:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),m.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),m.jsx("span",{className:"full-text",children:"Stop Preview"}),m.jsx("span",{className:"short-text",children:"Stop Preview"})]}):m.jsxs(m.Fragment,{children:[m.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:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),m.jsx("span",{className:"full-text",children:"Play Preview"}),m.jsx("span",{className:"short-text",children:"Play Preview"})]})}),!oe&&(!G||!j)&&m.jsx("button",{className:`button play-button ${G?"greyed-out":""}`,onClick:Ue,"data-tooltip":rt?"Pause video":"Play full video",style:{fontSize:"0.875rem"},disabled:G,children:rt?m.jsxs(m.Fragment,{children:[m.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:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),m.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),m.jsx("span",{className:"full-text",children:"Pause"}),m.jsx("span",{className:"short-text",children:"Pause"})]}):m.jsxs(m.Fragment,{children:[m.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:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),m.jsx("span",{className:"full-text",children:"Play"}),m.jsx("span",{className:"short-text",children:"Play"})]})})]}),m.jsxs("div",{className:"button-group secondary",children:[m.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":"Undo last action",disabled:!Z,onClick:me,children:[m.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:[m.jsx("path",{d:"M9 14 4 9l5-5"}),m.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"})]}),m.jsx("span",{className:"button-text",children:"Undo"})]}),m.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":"Redo last undone action",disabled:!ye,onClick:Se,children:[m.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:[m.jsx("path",{d:"m15 14 5-5-5-5"}),m.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),m.jsx("span",{className:"button-text",children:"Redo"})]}),m.jsx("div",{className:"divider"}),m.jsxs("button",{className:"button",onClick:k,"data-tooltip":"Reset to full video",children:[m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:m.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"})}),m.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},JS=({segments:C})=>{const k=[...C].sort((ve,Ee)=>ve.startTime-Ee.startTime),me=ve=>{const Ee=new CustomEvent("delete-segment",{detail:{segmentId:ve}});document.dispatchEvent(Ee)},Se=ve=>`segment-default-color segment-color-${ve%8+1}`;return m.jsxs("div",{className:"clip-segments-container",children:[m.jsx("h3",{className:"clip-segments-title",children:"Clip Segments"}),k.map((ve,Ee)=>m.jsxs("div",{className:`segment-item ${Se(Ee)}`,children:[m.jsxs("div",{className:"segment-content",children:[m.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${ve.thumbnail})`}}),m.jsxs("div",{className:"segment-info",children:[m.jsxs("div",{className:"segment-title",children:["Segment ",Ee+1]}),m.jsxs("div",{className:"segment-time",children:[yi(ve.startTime)," - ",yi(ve.endTime)]}),m.jsxs("div",{className:"segment-duration",children:["Duration: ",YS(ve.endTime-ve.startTime)]})]})]}),m.jsx("div",{className:"segment-actions",children:m.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>me(ve.id),children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:m.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"})})})})]},ve.id)),k.length===0&&m.jsx("div",{className:"empty-message",children:"No segments created yet. Use the split button to create segments."})]})},e0=({videoRef:C,onPlay:k})=>{const[me,Se]=J.useState(!1);J.useEffect(()=>{const d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);Se(d)},[]),J.useEffect(()=>{const Ee=C.current;if(!Ee)return;const d=()=>{Se(!1)};return Ee.addEventListener("play",d),()=>{Ee.removeEventListener("play",d)}},[C]);const ve=()=>{k()};return me?m.jsx("div",{className:"mobile-play-prompt-overlay",children:m.jsx("div",{className:"mobile-play-prompt",children:m.jsx("button",{className:"mobile-play-button",onClick:ve,children:"Click to start editing..."})})}):null},t0=()=>{const C=J.useRef(null),[k,me]=J.useState(0),[Se,ve]=J.useState(0),[Ee,d]=J.useState(!1),[Z,ye]=J.useState(!1),[oe,rt]=J.useState(!1),[G,j]=J.useState(0),[ne,Ue]=J.useState([]),[kt,xt]=J.useState(0),[Rt,Xe]=J.useState(0),[xe,mt]=J.useState([]),[Re,et]=J.useState(1),[B,Ot]=J.useState([]),[at,Fe]=J.useState([]),[ee,Je]=J.useState(-1),[X,At]=J.useState(!1),[Be,I]=J.useState(!1),[$,He]=J.useState(0);J.useEffect(()=>{var U;if(at.length>0){const Y=((U=at[ee])==null?void 0:U.action)||"";Y!=="save"&&Y!=="save_copy"&&Y!=="save_segments"&&At(!0)}},[at,ee]),J.useEffect(()=>{const U=Y=>{if(X){const pe="Your edits will get lost if you leave the page. Do you want to continue?";return Y.preventDefault(),Y.returnValue=pe,pe}};return window.addEventListener("beforeunload",U),()=>{window.removeEventListener("beforeunload",U)}},[X]),J.useEffect(()=>{const U=C.current;if(!U)return;const Y=()=>{ve(U.duration),Xe(U.duration),(async()=>{const Le=await Cm(U,U.duration/2),ct={id:1,name:"segment",startTime:0,endTime:U.duration,thumbnail:Le},wt={trimStart:0,trimEnd:U.duration,splitPoints:[],clipSegments:[ct]};Fe([wt]),Je(0),Ot([ct]);const un=6,wn=U.duration/un,Q=[];for(let ge=0;ge<un;ge++){const Pe=wn*ge+wn/2,gt=await Cm(U,Pe);Q.push(gt)}Ue(Q)})()},pe=()=>{me(U.currentTime)},ue=()=>{oe||(d(!0),an(!0))},Ce=()=>{oe||d(!1)},De=()=>{d(!1),U.currentTime=kt};return U.addEventListener("loadedmetadata",Y),U.addEventListener("timeupdate",pe),U.addEventListener("play",ue),U.addEventListener("pause",Ce),U.addEventListener("ended",De),()=>{U.removeEventListener("loadedmetadata",Y),U.removeEventListener("timeupdate",pe),U.removeEventListener("play",ue),U.removeEventListener("pause",Ce),U.removeEventListener("ended",De)}},[oe]);const Ve=U=>{const Y=C.current;if(!Y)return;const pe=!Y.paused,ue=oe;if(Y.currentTime=U,me(U),typeof window<"u"&&(window.lastSeekedPosition=U),ue){const Ce=B.find(De=>U>=De.startTime&&U<=De.endTime);if(Ce){const yt=[...B].sort((Le,ct)=>Le.startTime-ct.startTime).findIndex(Le=>Le.id===Ce.id);yt!==-1&&j(yt)}}(pe||ue)&&(ue&&rt(!0),Y.play().then(()=>{d(!0)}).catch(Ce=>{console.error("Error resuming playback:",Ce),d(!1)}))},nt=U=>{const Y={trimStart:kt,trimEnd:Rt,splitPoints:[...xe],clipSegments:JSON.parse(JSON.stringify(B)),action:U||"manual_save"},pe=at[ee],ue=()=>{if(!pe||pe.clipSegments.length!==Y.clipSegments.length)return!0;for(let yt=0;yt<Y.clipSegments.length;yt++){const Le=pe.clipSegments[yt],ct=Y.clipSegments[yt];if(!Le||!ct||Math.abs(Le.startTime-ct.startTime)>.001||Math.abs(Le.endTime-ct.endTime)>.001)return!0}return!1},Ce=!pe||pe.trimStart!==Y.trimStart||pe.trimEnd!==Y.trimEnd||pe.splitPoints.length!==Y.splitPoints.length||ue(),De=Y.action!==void 0;if(Ce||De){const yt=ee;Fe(Le=>yt<Le.length-1?[...Le.slice(0,yt+1),Y]:[...Le,Y]),Je(Le=>Le+1)}};J.useEffect(()=>{const U=Y=>{if(Y.detail){const{time:pe,isStart:ue,recordHistory:Ce,action:De}=Y.detail;ue?xt(pe):Xe(pe),Ce&&setTimeout(()=>{nt(De||(ue?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",U),()=>{document.removeEventListener("update-trim",U)}},[]),J.useEffect(()=>{const U=ue=>{if(ue.detail&&ue.detail.segments){const Ce=ue.detail.recordHistory!==!1,De=ue.detail.action||"update_segments";Ot(ue.detail.segments),Ce&&setTimeout(()=>{const yt=JSON.parse(JSON.stringify(ue.detail.segments)),Le={trimStart:kt,trimEnd:Rt,splitPoints:[...xe],clipSegments:yt,action:De},ct=ee;Fe(wt=>ct<wt.length-1?[...wt.slice(0,ct+1),Le]:[...wt,Le]),Je(wt=>wt+1)},20)}},Y=async ue=>{const Ce=ue;if(Ce.detail&&typeof Ce.detail.time=="number"&&typeof Ce.detail.segmentId=="number"){const De=Ce.detail.time,yt=Ce.detail.segmentId;Ve(De);const Le=B.find(Q=>Q.id===yt);if(!Le||De<=Le.startTime||De>=Le.endTime)return;const ct=[...B],wt=ct.findIndex(Q=>Q.id===yt);if(wt===-1)return;ct.splice(wt,1);const un={id:Date.now(),name:`${Le.name}-A`,startTime:Le.startTime,endTime:De,thumbnail:""},wn={id:Date.now()+1,name:`${Le.name}-B`,startTime:De,endTime:Le.endTime,thumbnail:""};ct.push(un,wn),ct.sort((Q,ge)=>Q.startTime-ge.startTime),Ot(ct),nt("split_segment")}},pe=async ue=>{const Ce=ue;if(Ce.detail&&typeof Ce.detail.segmentId=="number"){const De=Ce.detail.segmentId,yt=B.filter(Le=>Le.id!==De);if(yt.length!==B.length){if(yt.length===0&&C.current){const Le={id:Date.now(),name:"segment",startTime:0,endTime:C.current.duration,thumbnail:""};xt(0),Xe(C.current.duration),mt([]),Ot([Le])}else Ot(yt);nt("delete_segment")}}};return document.addEventListener("update-segments",U),document.addEventListener("split-segment",Y),document.addEventListener("delete-segment",pe),()=>{document.removeEventListener("update-segments",U),document.removeEventListener("split-segment",Y),document.removeEventListener("delete-segment",pe)}},[B,Se]),J.useEffect(()=>{if(!oe||!C.current)return;const U=[...B].sort((ue,Ce)=>ue.startTime-Ce.startTime);if(U.length===0)return;const Y=C.current,pe=()=>{if(!oe||!Y)return;const ue=U[G];if(!ue)return;const Ce=Y.currentTime;if(Ce<ue.startTime){Y.currentTime=ue.startTime;return}if(Ce>=ue.endTime-.01){if(G<U.length-1){const De=U[G+1];Y.currentTime=De.startTime,j(G+1),ie.debug("Preview: Moving to next segment",{from:V(ue.endTime),to:V(De.startTime),segmentIndex:G+1})}else Y.currentTime=U[0].startTime,j(0);Y.play().catch(De=>{console.error("Error continuing preview playback:",De)})}};return Y.addEventListener("timeupdate",pe),Y.paused&&(Y.currentTime=U[G].startTime,Y.play().catch(ue=>{console.error("Error starting preview playback:",ue)})),()=>{Y&&Y.removeEventListener("timeupdate",pe)}},[oe,G,B]);const ht=()=>{const U=C.current;if(!U||B.length===0)return;if(oe){rt(!1),U.pause(),d(!1);return}const Y=[...B].sort((pe,ue)=>pe.startTime-ue.startTime);Y.length!==0&&(rt(!0),j(0),U.currentTime=Y[0].startTime,U.play().then(()=>{d(!0)}).catch(pe=>{console.error("Error starting preview:",pe),rt(!1),d(!1)}))},Ze=U=>{xt(U),nt("adjust_trim_start")},Ae=U=>{Xe(U),nt("adjust_trim_end")},Ne=async()=>{if(C.current&&!xe.includes(k)){const U=[...xe,k].sort((ue,Ce)=>ue-Ce);mt(U);const Y=[];let pe=0;for(let ue=0;ue<=U.length;ue++){const Ce=ue<U.length?U[ue]:Se;pe<Ce&&(Y.push({id:Date.now()+ue,name:`Segment ${ue+1}`,startTime:pe,endTime:Ce,thumbnail:""}),pe=Ce)}Ot(Y),nt("create_split_points")}},st=async()=>{if(xt(0),Xe(Se),mt([]),!C.current)return;const U={id:Date.now(),name:"segment",startTime:0,endTime:Se,thumbnail:""};Ot([U]),nt("reset_all")},$t=()=>{if(ee>0){const U=at[ee-1];ie.debug(`** UNDO ** to position ${ee-1}, action: ${U.action}, segments: ${U.clipSegments.length}`),ie.debug("Segment details after undo:",U.clipSegments.map(Y=>`ID: ${Y.id}, Time: ${V(Y.startTime)} - ${V(Y.endTime)}`)),xt(U.trimStart),Xe(U.trimEnd),mt([...U.splitPoints]),Ot(JSON.parse(JSON.stringify(U.clipSegments))),Je(ee-1)}},Ie=()=>{if(ee<at.length-1){const U=at[ee+1];ie.debug(`** REDO ** to position ${ee+1}, action: ${U.action}, segments: ${U.clipSegments.length}`),ie.debug("Segment details after redo:",U.clipSegments.map(Y=>`ID: ${Y.id}, Time: ${V(Y.startTime)} - ${V(Y.endTime)}`)),xt(U.trimStart),Xe(U.trimEnd),mt([...U.splitPoints]),Ot(JSON.parse(JSON.stringify(U.clipSegments))),Je(ee+1)}},Nt=U=>{et(U)},it=()=>{const U=C.current;U&&(U.muted=!U.muted,ye(!Z))},We=()=>{[...B].sort((Y,pe)=>Y.startTime-pe.startTime).map(Y=>({startTime:V(Y.startTime),endTime:V(Y.endTime)})),At(!1),nt("save")},Jt=()=>{[...B].sort((Y,pe)=>Y.startTime-pe.startTime).map(Y=>({startTime:V(Y.startTime),endTime:V(Y.endTime)})),At(!1),nt("save_copy")},xn=()=>{[...B].sort((Y,pe)=>Y.startTime-pe.startTime).map(Y=>({name:Y.name,startTime:V(Y.startTime),endTime:V(Y.endTime)})),At(!1),nt("save_segments")},Xt=U=>{(!cn||Yt)&&Ve(U)},cn=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[Yt,an]=J.useState(!1);return J.useEffect(()=>{if(!Be||!C.current)return;const U=C.current,Y=[...B].sort((ue,Ce)=>ue.startTime-Ce.startTime),pe=()=>{const ue=Y[$];if(!ue)return;const Ce=U.currentTime;if(Ce<ue.startTime){U.currentTime=ue.startTime;return}if(Ce>=ue.endTime-.01)if($<Y.length-1){const De=Y[$+1];U.currentTime=De.startTime,He($+1),U.paused&&U.play().catch(yt=>{console.error("Error continuing segment playback:",yt)})}else U.pause(),I(!1),He(0),U.removeEventListener("timeupdate",pe)};return U.addEventListener("timeupdate",pe),U.paused&&Y.length>0&&(U.currentTime=Y[0].startTime,U.play().catch(console.error)),()=>{U.removeEventListener("timeupdate",pe)}},[Be,$,B]),J.useEffect(()=>{const U=Y=>{const{segmentIndex:pe}=Y.detail;Be&&pe!==$&&He(pe)};return document.addEventListener("update-segment-index",U),()=>{document.removeEventListener("update-segment-index",U)}},[Be,$]),{videoRef:C,currentTime:k,duration:Se,isPlaying:Ee,setIsPlaying:d,isMuted:Z,isPreviewMode:oe,isPlayingSegments:Be,thumbnails:ne,trimStart:kt,trimEnd:Rt,splitPoints:xe,zoomLevel:Re,clipSegments:B,hasUnsavedChanges:X,historyPosition:ee,history:at,handleTrimStartChange:Ze,handleTrimEndChange:Ae,handleZoomChange:Nt,handleMobileSafeSeek:Xt,handleSplit:Ne,handleReset:st,handleUndo:$t,handleRedo:Ie,handlePreview:ht,handlePlaySegments:()=>{const U=C.current;if(!(!U||B.length===0))if(Be)U.pause(),I(!1),He(0);else{I(!0),He(0),oe&&rt(!1);const Y=[...B].sort((pe,ue)=>pe.startTime-ue.startTime);U.currentTime=Y[0].startTime,U.play().catch(pe=>{console.error("Error starting segments playback:",pe),I(!1)})}},toggleMute:it,handleSave:We,handleSaveACopy:Jt,handleSaveSegments:xn,isMobile:cn,videoInitialized:Yt,setVideoInitialized:an}},n0=()=>{const{videoRef:C,currentTime:k,duration:me,isPlaying:Se,setIsPlaying:ve,isMuted:Ee,isPreviewMode:d,thumbnails:Z,trimStart:ye,trimEnd:oe,splitPoints:rt,zoomLevel:G,clipSegments:j,hasUnsavedChanges:ne,historyPosition:Ue,history:kt,handleTrimStartChange:xt,handleTrimEndChange:Rt,handleZoomChange:Xe,handleMobileSafeSeek:xe,handleSplit:mt,handleReset:Re,handleUndo:et,handleRedo:B,handlePreview:Ot,toggleMute:at,handleSave:Fe,handleSaveACopy:ee,handleSaveSegments:Je,isMobile:X,videoInitialized:At,setVideoInitialized:Be,isPlayingSegments:I,handlePlaySegments:$}=t0(),He=()=>{if(!C.current)return;const Ve=C.current;if(Se){Ve.pause(),ve(!1);return}const nt=Number(Ve.currentTime.toFixed(6));let ht=me,Ze=null,Ae=null;const Ne=[...j].sort(($t,Ie)=>$t.startTime-Ie.startTime);Ze=Ne.find($t=>{const Ie=Number($t.startTime.toFixed(6)),Nt=Number($t.endTime.toFixed(6));return nt>Ie&&nt<Nt||nt===Ie}),Ze||(Ae=Ne.find($t=>Number($t.startTime.toFixed(6))>nt)),Ze?ht=Number(Ze.endTime.toFixed(6)):Ae&&(ht=Number(Ae.startTime.toFixed(6)));const st=()=>{if(!Ve)return;const $t=Number(Ve.currentTime.toFixed(6));if(Number((ht-$t).toFixed(6))<=0||$t>=ht){Ve.pause();const Nt=()=>{if(!Ve)return;Ve.currentTime=ht,xe(ht);const it=Number(Ve.currentTime.toFixed(6)),We=Number(Math.abs(it-ht).toFixed(6));ie.debug("Position verification:",{target:V(ht),actual:V(it),difference:We}),We>0&&(Ve.currentTime=ht,xe(ht))};Nt(),setTimeout(Nt,5),setTimeout(Nt,10),setTimeout(Nt,20),setTimeout(Nt,50),Ve.removeEventListener("timeupdate",st),ve(!1),ie.debug("Stopped at position:",{target:V(ht),actual:V(Ve.currentTime),type:Ze?"segment end":Ae?"next segment start":"end of video",segment:Ze?{id:Ze.id,start:V(Ze.startTime),end:V(Ze.endTime)}:null,nextSegment:Ae?{id:Ae.id,start:V(Ae.startTime),end:V(Ae.endTime)}:null});return}};Ve.addEventListener("timeupdate",st),Ve.play().then(()=>{ve(!0),Be(!0),ie.debug("Playback started:",{from:V(nt),to:V(ht),currentSegment:Ze?{id:Ze.id,start:V(Ze.startTime),end:V(Ze.endTime)}:"None",nextSegment:Ae?{id:Ae.id,start:V(Ae.startTime),end:V(Ae.endTime)}:"None"})}).catch($t=>{console.error("Error playing video:",$t)})};return m.jsxs("div",{className:"bg-background min-h-screen",children:[m.jsx(e0,{videoRef:C,onPlay:He}),m.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[m.jsx(IS,{videoRef:C,currentTime:k,duration:me,isPlaying:Se,isMuted:Ee,onPlayPause:He,onSeek:xe,onToggleMute:at}),m.jsx(ZS,{onSplit:mt,onReset:Re,onUndo:et,onRedo:B,onPreview:Ot,onPlaySegments:$,onPlay:He,isPreviewMode:d,isPlaying:Se,isPlayingSegments:I,canUndo:Ue>0,canRedo:Ue<kt.length-1}),m.jsx(KS,{currentTime:k,duration:me,thumbnails:Z,trimStart:ye,trimEnd:oe,splitPoints:rt,zoomLevel:G,clipSegments:j,onTrimStartChange:xt,onTrimEndChange:Rt,onZoomChange:Xe,onSeek:xe,videoRef:C,onSave:Fe,onSaveACopy:ee,onSaveSegments:Je,isPreviewMode:d,hasUnsavedChanges:ne,isIOSUninitialized:X&&!At,isPlaying:Se,setIsPlaying:ve,onPlayPause:He,isPlayingSegments:I}),m.jsx(JS,{segments:j})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Mm=()=>{const C=document.getElementById("video-editor-trim-root");C&&Sm(C).render(m.jsx(n0,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Mm):Mm()})();
//# sourceMappingURL=video-editor.js.map