mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-07 16:08:54 -05:00
204 lines
396 KiB
JavaScript
204 lines
396 KiB
JavaScript
(function(){"use strict";var dm={exports:{}},Kc={exports:{}},al={exports:{}};al.exports;var vm;function HS(){return vm||(vm=1,function(T,D){/**
|
|
* @license React
|
|
* react.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var pe="18.3.1",Te=Symbol.for("react.element"),ve=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),ae=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Fe=Symbol.for("react.lazy"),$t=Symbol.for("react.offscreen"),wt=Symbol.iterator,Dt="@@iterator";function Qe(s){if(s===null||typeof s!="object")return null;var m=wt&&s[wt]||s[Dt];return typeof m=="function"?m:null}var De={current:null},gt={transition:null},_e={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},oe={current:null},Ee={},Ot=null;function Re(s){Ot=s}Ee.setExtraStackFrame=function(s){Ot=s},Ee.getCurrentStack=null,Ee.getStackAddendum=function(){var s="";Ot&&(s+=Ot);var m=Ee.getCurrentStack;return m&&(s+=m()||""),s};var le=!1,Pe=!1,K=!1,Ue=!1,nt=!1,ce={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:gt,ReactCurrentOwner:oe};ce.ReactDebugCurrentFrame=Ee,ce.ReactCurrentActQueue=_e;function I(s){{for(var m=arguments.length,M=new Array(m>1?m-1:0),A=1;A<m;A++)M[A-1]=arguments[A];Ie("warn",s,M)}}function W(s){{for(var m=arguments.length,M=new Array(m>1?m-1:0),A=1;A<m;A++)M[A-1]=arguments[A];Ie("error",s,M)}}function Ie(s,m,M){{var A=ce.ReactDebugCurrentFrame,G=A.getStackAddendum();G!==""&&(m+="%s",M=M.concat([G]));var ke=M.map(function(ye){return String(ye)});ke.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,ke)}}var We={};function Je(s,m){{var M=s.constructor,A=M&&(M.displayName||M.name)||"ReactClass",G=A+"."+m;if(We[G])return;W("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,A),We[G]=!0}}var ft={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,M){Je(s,"forceUpdate")},enqueueReplaceState:function(s,m,M,A){Je(s,"replaceState")},enqueueSetState:function(s,m,M,A){Je(s,"setState")}},Ke=Object.assign,Be={};Object.freeze(Be);function Ae(s,m,M){this.props=s,this.context=m,this.refs=Be,this.updater=M||ft}Ae.prototype.isReactComponent={},Ae.prototype.setState=function(s,m){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,m,"setState")},Ae.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var dn={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)."]},at=function(s,m){Object.defineProperty(Ae.prototype,s,{get:function(){I("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var Vt in dn)dn.hasOwnProperty(Vt)&&at(Vt,dn[Vt])}function bt(){}bt.prototype=Ae.prototype;function et(s,m,M){this.props=s,this.context=m,this.refs=Be,this.updater=M||ft}var Qt=et.prototype=new bt;Qt.constructor=et,Ke(Qt,Ae.prototype),Qt.isPureReactComponent=!0;function on(){var s={current:null};return Object.seal(s),s}var ln=Array.isArray;function F(s){return ln(s)}function Q(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,M=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return M}}function Se(s){try{return be(s),!1}catch{return!0}}function be(s){return""+s}function Ne(s){if(Se(s))return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Q(s)),be(s)}function rt(s,m,M){var A=s.displayName;if(A)return A;var G=m.displayName||m.name||"";return G!==""?M+"("+G+")":M}function dt(s){return s.displayName||"Context"}function Ve(s){if(s==null)return null;if(typeof s.tag=="number"&&W("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 Oe:return"Fragment";case ve:return"Portal";case X:return"Profiler";case d:return"StrictMode";case q:return"Suspense";case U:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ae:var m=s;return dt(m)+".Consumer";case ge:var M=s;return dt(M._context)+".Provider";case ct:return rt(s,s.render,"ForwardRef");case ee:var A=s.displayName||null;return A!==null?A:Ve(s.type)||"Memo";case Fe:{var G=s,ke=G._payload,ye=G._init;try{return Ve(ye(ke))}catch{return null}}}return null}var st=Object.prototype.hasOwnProperty,ot={key:!0,ref:!0,__self:!0,__source:!0},an,hn,Nt;Nt={};function kt(s){if(st.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function Rn(s){if(st.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function ia(s,m){var M=function(){an||(an=!0,W("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};M.isReactWarning=!0,Object.defineProperty(s,"key",{get:M,configurable:!0})}function va(s,m){var M=function(){hn||(hn=!0,W("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};M.isReactWarning=!0,Object.defineProperty(s,"ref",{get:M,configurable:!0})}function Z(s){if(typeof s.ref=="string"&&oe.current&&s.__self&&oe.current.stateNode!==s.__self){var m=Ve(oe.current.type);Nt[m]||(W('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',m,s.ref),Nt[m]=!0)}}var Ce=function(s,m,M,A,G,ke,ye){var Ge={$$typeof:Te,type:s,key:m,ref:M,props:ye,_owner:ke};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function tt(s,m,M){var A,G={},ke=null,ye=null,Ge=null,pt=null;if(m!=null){kt(m)&&(ye=m.ref,Z(m)),Rn(m)&&(Ne(m.key),ke=""+m.key),Ge=m.__self===void 0?null:m.__self,pt=m.__source===void 0?null:m.__source;for(A in m)st.call(m,A)&&!ot.hasOwnProperty(A)&&(G[A]=m[A])}var jt=arguments.length-2;if(jt===1)G.children=M;else if(jt>1){for(var qt=Array(jt),Gt=0;Gt<jt;Gt++)qt[Gt]=arguments[Gt+2];Object.freeze&&Object.freeze(qt),G.children=qt}if(s&&s.defaultProps){var lt=s.defaultProps;for(A in lt)G[A]===void 0&&(G[A]=lt[A])}if(ke||ye){var nn=typeof s=="function"?s.displayName||s.name||"Unknown":s;ke&&ia(G,nn),ye&&va(G,nn)}return Ce(s,ke,ye,Ge,pt,oe.current,G)}function _t(s,m){var M=Ce(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return M}function Yt(s,m,M){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var A,G=Ke({},s.props),ke=s.key,ye=s.ref,Ge=s._self,pt=s._source,jt=s._owner;if(m!=null){kt(m)&&(ye=m.ref,jt=oe.current),Rn(m)&&(Ne(m.key),ke=""+m.key);var qt;s.type&&s.type.defaultProps&&(qt=s.type.defaultProps);for(A in m)st.call(m,A)&&!ot.hasOwnProperty(A)&&(m[A]===void 0&&qt!==void 0?G[A]=qt[A]:G[A]=m[A])}var Gt=arguments.length-2;if(Gt===1)G.children=M;else if(Gt>1){for(var lt=Array(Gt),nn=0;nn<Gt;nn++)lt[nn]=arguments[nn+2];G.children=lt}return Ce(s.type,ke,ye,Ge,pt,jt,G)}function Kt(s){return typeof s=="object"&&s!==null&&s.$$typeof===Te}var Zt=".",wn=":";function Wt(s){var m=/[=:]/g,M={"=":"=0",":":"=2"},A=s.replace(m,function(G){return M[G]});return"$"+A}var vt=!1,Bt=/\/+/g;function pa(s){return s.replace(Bt,"$&/")}function ma(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(Ne(s.key),Wt(""+s.key)):m.toString(36)}function ha(s,m,M,A,G){var ke=typeof s;(ke==="undefined"||ke==="boolean")&&(s=null);var ye=!1;if(s===null)ye=!0;else switch(ke){case"string":case"number":ye=!0;break;case"object":switch(s.$$typeof){case Te:case ve:ye=!0}}if(ye){var Ge=s,pt=G(Ge),jt=A===""?Zt+ma(Ge,0):A;if(F(pt)){var qt="";jt!=null&&(qt=pa(jt)+"/"),ha(pt,m,qt,"",function(cf){return cf})}else pt!=null&&(Kt(pt)&&(pt.key&&(!Ge||Ge.key!==pt.key)&&Ne(pt.key),pt=_t(pt,M+(pt.key&&(!Ge||Ge.key!==pt.key)?pa(""+pt.key)+"/":"")+jt)),m.push(pt));return 1}var Gt,lt,nn=0,vn=A===""?Zt:A+wn;if(F(s))for(var Ci=0;Ci<s.length;Ci++)Gt=s[Ci],lt=vn+ma(Gt,Ci),nn+=ha(Gt,m,M,lt,G);else{var pl=Qe(s);if(typeof pl=="function"){var gr=s;pl===gr.entries&&(vt||I("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),vt=!0);for(var ml=pl.call(gr),hl,sf=0;!(hl=ml.next()).done;)Gt=hl.value,lt=vn+ma(Gt,sf++),nn+=ha(Gt,m,M,lt,G)}else if(ke==="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 Ja(s,m,M){if(s==null)return s;var A=[],G=0;return ha(s,A,"","",function(ke){return m.call(M,ke,G++)}),A}function Hr(s){var m=0;return Ja(s,function(){m++}),m}function Ua(s,m,M){Ja(s,function(){m.apply(this,arguments)},M)}function Ra(s){return Ja(s,function(m){return m})||[]}function Vr(s){if(!Kt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function Fr(s){var m={$$typeof:ae,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:ge,_context:m};var M=!1,A=!1,G=!1;{var ke={$$typeof:ae,_context:m};Object.defineProperties(ke,{Provider:{get:function(){return A||(A=!0,W("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),m.Provider},set:function(ye){m.Provider=ye}},_currentValue:{get:function(){return m._currentValue},set:function(ye){m._currentValue=ye}},_currentValue2:{get:function(){return m._currentValue2},set:function(ye){m._currentValue2=ye}},_threadCount:{get:function(){return m._threadCount},set:function(ye){m._threadCount=ye}},Consumer:{get:function(){return M||(M=!0,W("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(ye){G||(I("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ye),G=!0)}}}),m.Consumer=ke}return m._currentRenderer=null,m._currentRenderer2=null,m}var g=-1,H=0,w=1,C=2;function E(s){if(s._status===g){var m=s._result,M=m();if(M.then(function(ke){if(s._status===H||s._status===g){var ye=s;ye._status=w,ye._result=ke}},function(ke){if(s._status===H||s._status===g){var ye=s;ye._status=C,ye._result=ke}}),s._status===g){var A=s;A._status=H,A._result=M}}if(s._status===w){var G=s._result;return G===void 0&&W(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
|
|
Did you accidentally put curly braces around the import?`,G),"default"in G||W(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))`,G),G.default}else throw s._result}function k(s){var m={_status:g,_result:s},M={$$typeof:Fe,_payload:m,_init:E};{var A,G;Object.defineProperties(M,{defaultProps:{configurable:!0,get:function(){return A},set:function(ke){W("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."),A=ke,Object.defineProperty(M,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return G},set:function(ke){W("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),G=ke,Object.defineProperty(M,"propTypes",{enumerable:!0})}}})}return M}function b(s){s!=null&&s.$$typeof===ee?W("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?W("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&W("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)&&W("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:ct,render:s};{var M;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return M},set:function(A){M=A,!s.name&&!s.displayName&&(s.displayName=A)}})}return m}var f;f=Symbol.for("react.module.reference");function S(s){return!!(typeof s=="string"||typeof s=="function"||s===Oe||s===X||nt||s===d||s===q||s===U||Ue||s===$t||le||Pe||K||typeof s=="object"&&s!==null&&(s.$$typeof===Fe||s.$$typeof===ee||s.$$typeof===ge||s.$$typeof===ae||s.$$typeof===ct||s.$$typeof===f||s.getModuleId!==void 0))}function O(s,m){S(s)||W("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var M={$$typeof:ee,type:s,compare:m===void 0?null:m};{var A;Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(G){A=G,!s.name&&!s.displayName&&(s.displayName=G)}})}return M}function P(){var s=De.current;return s===null&&W(`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 V(s){var m=P();if(s._context!==void 0){var M=s._context;M.Consumer===s?W("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&&W("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function re(s){var m=P();return m.useState(s)}function we(s,m,M){var A=P();return A.useReducer(s,m,M)}function me(s){var m=P();return m.useRef(s)}function St(s,m){var M=P();return M.useEffect(s,m)}function Ft(s,m){var M=P();return M.useInsertionEffect(s,m)}function At(s,m){var M=P();return M.useLayoutEffect(s,m)}function Pt(s,m){var M=P();return M.useCallback(s,m)}function Bn(s,m){var M=P();return M.useMemo(s,m)}function en(s,m,M){var A=P();return A.useImperativeHandle(s,m,M)}function qe(s,m){{var M=P();return M.useDebugValue(s,m)}}function ze(){var s=P();return s.useTransition()}function oa(s){var m=P();return m.useDeferredValue(s)}function mr(){var s=P();return s.useId()}function hi(s,m,M){var A=P();return A.useSyncExternalStore(s,m,M)}var $n=0,ya,Pr,yi,cn,Ct,za,wa;function er(){}er.__reactDisabledLog=!0;function il(){{if($n===0){ya=console.log,Pr=console.info,yi=console.warn,cn=console.error,Ct=console.group,za=console.groupCollapsed,wa=console.groupEnd;var s={configurable:!0,enumerable:!0,value:er,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}$n++}}function tr(){{if($n--,$n===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},s,{value:ya}),info:Ke({},s,{value:Pr}),warn:Ke({},s,{value:yi}),error:Ke({},s,{value:cn}),group:Ke({},s,{value:Ct}),groupCollapsed:Ke({},s,{value:za}),groupEnd:Ke({},s,{value:wa})})}$n<0&&W("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var gi=ce.ReactCurrentDispatcher,Br;function no(s,m,M){{if(Br===void 0)try{throw Error()}catch(G){var A=G.stack.trim().match(/\n( *(at )?)/);Br=A&&A[1]||""}return`
|
|
`+Br+s}}var bi=!1,ao;{var ol=typeof WeakMap=="function"?WeakMap:Map;ao=new ol}function Yu(s,m){if(!s||bi)return"";{var M=ao.get(s);if(M!==void 0)return M}var A;bi=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=gi.current,gi.current=null,il();try{if(m){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(vn){A=vn}Reflect.construct(s,[],ye)}else{try{ye.call()}catch(vn){A=vn}s.call(ye.prototype)}}else{try{throw Error()}catch(vn){A=vn}s()}}catch(vn){if(vn&&A&&typeof vn.stack=="string"){for(var Ge=vn.stack.split(`
|
|
`),pt=A.stack.split(`
|
|
`),jt=Ge.length-1,qt=pt.length-1;jt>=1&&qt>=0&&Ge[jt]!==pt[qt];)qt--;for(;jt>=1&&qt>=0;jt--,qt--)if(Ge[jt]!==pt[qt]){if(jt!==1||qt!==1)do if(jt--,qt--,qt<0||Ge[jt]!==pt[qt]){var Gt=`
|
|
`+Ge[jt].replace(" at new "," at ");return s.displayName&&Gt.includes("<anonymous>")&&(Gt=Gt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ao.set(s,Gt),Gt}while(jt>=1&&qt>=0);break}}}finally{bi=!1,gi.current=ke,tr(),Error.prepareStackTrace=G}var lt=s?s.displayName||s.name:"",nn=lt?no(lt):"";return typeof s=="function"&&ao.set(s,nn),nn}function ll(s,m,M){return Yu(s,!1)}function af(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function Si(s,m,M){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return no(s);switch(s){case q:return no("Suspense");case U:return no("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case ct:return ll(s.render);case ee:return Si(s.type,m,M);case Fe:{var A=s,G=A._payload,ke=A._init;try{return Si(ke(G),m,M)}catch{}}}return""}var Iu={},ul=ce.ReactDebugCurrentFrame;function xt(s){if(s){var m=s._owner,M=Si(s.type,s._source,m?m.type:null);ul.setExtraStackFrame(M)}else ul.setExtraStackFrame(null)}function rf(s,m,M,A,G){{var ke=Function.call.bind(st);for(var ye in s)if(ke(s,ye)){var Ge=void 0;try{if(typeof s[ye]!="function"){var pt=Error((A||"React class")+": "+M+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw pt.name="Invariant Violation",pt}Ge=s[ye](m,ye,A,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(jt){Ge=jt}Ge&&!(Ge instanceof Error)&&(xt(G),W("%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",M,ye,typeof Ge),xt(null)),Ge instanceof Error&&!(Ge.message in Iu)&&(Iu[Ge.message]=!0,xt(G),W("Failed %s type: %s",M,Ge.message),xt(null))}}}function hr(s){if(s){var m=s._owner,M=Si(s.type,s._source,m?m.type:null);Re(M)}else Re(null)}var Ze;Ze=!1;function sl(){if(oe.current){var s=Ve(oe.current.type);if(s)return`
|
|
|
|
Check the render method of \``+s+"`."}return""}function Qn(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),M=s.lineNumber;return`
|
|
|
|
Check your code at `+m+":"+M+"."}return""}function Ti(s){return s!=null?Qn(s.__source):""}var $r={};function of(s){var m=sl();if(!m){var M=typeof s=="string"?s:s.displayName||s.name;M&&(m=`
|
|
|
|
Check the top-level render call using <`+M+">.")}return m}function Dn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var M=of(m);if(!$r[M]){$r[M]=!0;var A="";s&&s._owner&&s._owner!==oe.current&&(A=" It was passed a child from "+Ve(s._owner.type)+"."),hr(s),W('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,A),hr(null)}}}function tn(s,m){if(typeof s=="object"){if(F(s))for(var M=0;M<s.length;M++){var A=s[M];Kt(A)&&Dn(A,m)}else if(Kt(s))s._store&&(s._store.validated=!0);else if(s){var G=Qe(s);if(typeof G=="function"&&G!==s.entries)for(var ke=G.call(s),ye;!(ye=ke.next()).done;)Kt(ye.value)&&Dn(ye.value,m)}}}function Wu(s){{var m=s.type;if(m==null||typeof m=="string")return;var M;if(typeof m=="function")M=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===ct||m.$$typeof===ee))M=m.propTypes;else return;if(M){var A=Ve(m);rf(M,s.props,"prop",A,s)}else if(m.PropTypes!==void 0&&!Ze){Ze=!0;var G=Ve(m);W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Da(s){{for(var m=Object.keys(s.props),M=0;M<m.length;M++){var A=m[M];if(A!=="children"&&A!=="key"){hr(s),W("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),hr(null);break}}s.ref!==null&&(hr(s),W("Invalid attribute `ref` supplied to `React.Fragment`."),hr(null))}}function Kn(s,m,M){var A=S(s);if(!A){var G="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ke=Ti(m);ke?G+=ke:G+=sl();var ye;s===null?ye="null":F(s)?ye="array":s!==void 0&&s.$$typeof===Te?(ye="<"+(Ve(s.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):ye=typeof s,W("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ye,G)}var Ge=tt.apply(this,arguments);if(Ge==null)return Ge;if(A)for(var pt=2;pt<arguments.length;pt++)tn(arguments[pt],s);return s===Oe?Da(Ge):Wu(Ge),Ge}var Ha=!1;function lf(s){var m=Kn.bind(null,s);return m.type=s,Ha||(Ha=!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(m,"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}}),m}function cl(s,m,M){for(var A=Yt.apply(this,arguments),G=2;G<arguments.length;G++)tn(arguments[G],A.type);return Wu(A),A}function qu(s,m){var M=gt.transition;gt.transition={};var A=gt.transition;gt.transition._updatedFibers=new Set;try{s()}finally{if(gt.transition=M,M===null&&A._updatedFibers){var G=A._updatedFibers.size;G>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."),A._updatedFibers.clear()}}}var fl=!1,ro=null;function uf(s){if(ro===null)try{var m=("require"+Math.random()).slice(0,7),M=T&&T[m];ro=M.call(T,"timers").setImmediate}catch{ro=function(G){fl===!1&&(fl=!0,typeof MessageChannel>"u"&&W("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 ke=new MessageChannel;ke.port1.onmessage=G,ke.port2.postMessage(void 0)}}return ro(s)}var Yr=0,Ei=!1;function dl(s){{var m=Yr;Yr++,_e.current===null&&(_e.current=[]);var M=_e.isBatchingLegacy,A;try{if(_e.isBatchingLegacy=!0,A=s(),!M&&_e.didScheduleLegacyUpdate){var G=_e.current;G!==null&&(_e.didScheduleLegacyUpdate=!1,lo(G))}}catch(lt){throw yr(m),lt}finally{_e.isBatchingLegacy=M}if(A!==null&&typeof A=="object"&&typeof A.then=="function"){var ke=A,ye=!1,Ge={then:function(lt,nn){ye=!0,ke.then(function(vn){yr(m),Yr===0?io(vn,lt,nn):lt(vn)},function(vn){yr(m),nn(vn)})}};return!Ei&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ye||(Ei=!0,W("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 () => ...);"))}),Ge}else{var pt=A;if(yr(m),Yr===0){var jt=_e.current;jt!==null&&(lo(jt),_e.current=null);var qt={then:function(lt,nn){_e.current===null?(_e.current=[],io(pt,lt,nn)):lt(pt)}};return qt}else{var Gt={then:function(lt,nn){lt(pt)}};return Gt}}}}function yr(s){s!==Yr-1&&W("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Yr=s}function io(s,m,M){{var A=_e.current;if(A!==null)try{lo(A),uf(function(){A.length===0?(_e.current=null,m(s)):io(s,m,M)})}catch(G){M(G)}else m(s)}}var oo=!1;function lo(s){if(!oo){oo=!0;var m=0;try{for(;m<s.length;m++){var M=s[m];do M=M(!0);while(M!==null)}s.length=0}catch(A){throw s=s.slice(m+1),A}finally{oo=!1}}}var Gu=Kn,Xu=cl,vl=lf,Qu={map:Ja,forEach:Ua,count:Hr,toArray:Ra,only:Vr};D.Children=Qu,D.Component=Ae,D.Fragment=Oe,D.Profiler=X,D.PureComponent=et,D.StrictMode=d,D.Suspense=q,D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce,D.act=dl,D.cloneElement=Xu,D.createContext=Fr,D.createElement=Gu,D.createFactory=vl,D.createRef=on,D.forwardRef=b,D.isValidElement=Kt,D.lazy=k,D.memo=O,D.startTransition=qu,D.unstable_act=dl,D.useCallback=Pt,D.useContext=V,D.useDebugValue=qe,D.useDeferredValue=oa,D.useEffect=St,D.useId=mr,D.useImperativeHandle=en,D.useInsertionEffect=Ft,D.useLayoutEffect=At,D.useMemo=Bn,D.useReducer=we,D.useRef=me,D.useState=re,D.useSyncExternalStore=hi,D.useTransition=ze,D.version=pe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(al,al.exports)),al.exports}var pm;function Zc(){return pm||(pm=1,Kc.exports=HS()),Kc.exports}var rl={},mm;function VS(){if(mm)return rl;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 T=Zc(),D=Symbol.for("react.element"),pe=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Oe=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),X=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ct=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),ee=Symbol.for("react.offscreen"),Fe=Symbol.iterator,$t="@@iterator";function wt(f){if(f===null||typeof f!="object")return null;var S=Fe&&f[Fe]||f[$t];return typeof S=="function"?S:null}var Dt=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Qe(f){{for(var S=arguments.length,O=new Array(S>1?S-1:0),P=1;P<S;P++)O[P-1]=arguments[P];De("error",f,O)}}function De(f,S,O){{var P=Dt.ReactDebugCurrentFrame,V=P.getStackAddendum();V!==""&&(S+="%s",O=O.concat([V]));var re=O.map(function(we){return String(we)});re.unshift("Warning: "+S),Function.prototype.apply.call(console[f],console,re)}}var gt=!1,_e=!1,oe=!1,Ee=!1,Ot=!1,Re;Re=Symbol.for("react.module.reference");function le(f){return!!(typeof f=="string"||typeof f=="function"||f===Te||f===Oe||Ot||f===ve||f===ae||f===ct||Ee||f===ee||gt||_e||oe||typeof f=="object"&&f!==null&&(f.$$typeof===U||f.$$typeof===q||f.$$typeof===d||f.$$typeof===X||f.$$typeof===ge||f.$$typeof===Re||f.getModuleId!==void 0))}function Pe(f,S,O){var P=f.displayName;if(P)return P;var V=S.displayName||S.name||"";return V!==""?O+"("+V+")":O}function K(f){return f.displayName||"Context"}function Ue(f){if(f==null)return null;if(typeof f.tag=="number"&&Qe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case Te:return"Fragment";case pe:return"Portal";case Oe:return"Profiler";case ve:return"StrictMode";case ae:return"Suspense";case ct:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case X:var S=f;return K(S)+".Consumer";case d:var O=f;return K(O._context)+".Provider";case ge:return Pe(f,f.render,"ForwardRef");case q:var P=f.displayName||null;return P!==null?P:Ue(f.type)||"Memo";case U:{var V=f,re=V._payload,we=V._init;try{return Ue(we(re))}catch{return null}}}return null}var nt=Object.assign,ce=0,I,W,Ie,We,Je,ft,Ke;function Be(){}Be.__reactDisabledLog=!0;function Ae(){{if(ce===0){I=console.log,W=console.info,Ie=console.warn,We=console.error,Je=console.group,ft=console.groupCollapsed,Ke=console.groupEnd;var f={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}ce++}}function dn(){{if(ce--,ce===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:nt({},f,{value:I}),info:nt({},f,{value:W}),warn:nt({},f,{value:Ie}),error:nt({},f,{value:We}),group:nt({},f,{value:Je}),groupCollapsed:nt({},f,{value:ft}),groupEnd:nt({},f,{value:Ke})})}ce<0&&Qe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var at=Dt.ReactCurrentDispatcher,Vt;function bt(f,S,O){{if(Vt===void 0)try{throw Error()}catch(V){var P=V.stack.trim().match(/\n( *(at )?)/);Vt=P&&P[1]||""}return`
|
|
`+Vt+f}}var et=!1,Qt;{var on=typeof WeakMap=="function"?WeakMap:Map;Qt=new on}function ln(f,S){if(!f||et)return"";{var O=Qt.get(f);if(O!==void 0)return O}var P;et=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=at.current,at.current=null,Ae();try{if(S){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(qe){P=qe}Reflect.construct(f,[],we)}else{try{we.call()}catch(qe){P=qe}f.call(we.prototype)}}else{try{throw Error()}catch(qe){P=qe}f()}}catch(qe){if(qe&&P&&typeof qe.stack=="string"){for(var me=qe.stack.split(`
|
|
`),St=P.stack.split(`
|
|
`),Ft=me.length-1,At=St.length-1;Ft>=1&&At>=0&&me[Ft]!==St[At];)At--;for(;Ft>=1&&At>=0;Ft--,At--)if(me[Ft]!==St[At]){if(Ft!==1||At!==1)do if(Ft--,At--,At<0||me[Ft]!==St[At]){var Pt=`
|
|
`+me[Ft].replace(" at new "," at ");return f.displayName&&Pt.includes("<anonymous>")&&(Pt=Pt.replace("<anonymous>",f.displayName)),typeof f=="function"&&Qt.set(f,Pt),Pt}while(Ft>=1&&At>=0);break}}}finally{et=!1,at.current=re,dn(),Error.prepareStackTrace=V}var Bn=f?f.displayName||f.name:"",en=Bn?bt(Bn):"";return typeof f=="function"&&Qt.set(f,en),en}function F(f,S,O){return ln(f,!1)}function Q(f){var S=f.prototype;return!!(S&&S.isReactComponent)}function Se(f,S,O){if(f==null)return"";if(typeof f=="function")return ln(f,Q(f));if(typeof f=="string")return bt(f);switch(f){case ae:return bt("Suspense");case ct:return bt("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case ge:return F(f.render);case q:return Se(f.type,S,O);case U:{var P=f,V=P._payload,re=P._init;try{return Se(re(V),S,O)}catch{}}}return""}var be=Object.prototype.hasOwnProperty,Ne={},rt=Dt.ReactDebugCurrentFrame;function dt(f){if(f){var S=f._owner,O=Se(f.type,f._source,S?S.type:null);rt.setExtraStackFrame(O)}else rt.setExtraStackFrame(null)}function Ve(f,S,O,P,V){{var re=Function.call.bind(be);for(var we in f)if(re(f,we)){var me=void 0;try{if(typeof f[we]!="function"){var St=Error((P||"React class")+": "+O+" type `"+we+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[we]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw St.name="Invariant Violation",St}me=f[we](S,we,P,O,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ft){me=Ft}me&&!(me instanceof Error)&&(dt(V),Qe("%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).",P||"React class",O,we,typeof me),dt(null)),me instanceof Error&&!(me.message in Ne)&&(Ne[me.message]=!0,dt(V),Qe("Failed %s type: %s",O,me.message),dt(null))}}}var st=Array.isArray;function ot(f){return st(f)}function an(f){{var S=typeof Symbol=="function"&&Symbol.toStringTag,O=S&&f[Symbol.toStringTag]||f.constructor.name||"Object";return O}}function hn(f){try{return Nt(f),!1}catch{return!0}}function Nt(f){return""+f}function kt(f){if(hn(f))return Qe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",an(f)),Nt(f)}var Rn=Dt.ReactCurrentOwner,ia={key:!0,ref:!0,__self:!0,__source:!0},va,Z;function Ce(f){if(be.call(f,"ref")){var S=Object.getOwnPropertyDescriptor(f,"ref").get;if(S&&S.isReactWarning)return!1}return f.ref!==void 0}function tt(f){if(be.call(f,"key")){var S=Object.getOwnPropertyDescriptor(f,"key").get;if(S&&S.isReactWarning)return!1}return f.key!==void 0}function _t(f,S){typeof f.ref=="string"&&Rn.current}function Yt(f,S){{var O=function(){va||(va=!0,Qe("%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)",S))};O.isReactWarning=!0,Object.defineProperty(f,"key",{get:O,configurable:!0})}}function Kt(f,S){{var O=function(){Z||(Z=!0,Qe("%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)",S))};O.isReactWarning=!0,Object.defineProperty(f,"ref",{get:O,configurable:!0})}}var Zt=function(f,S,O,P,V,re,we){var me={$$typeof:D,type:f,key:S,ref:O,props:we,_owner:re};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:P}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function wn(f,S,O,P,V){{var re,we={},me=null,St=null;O!==void 0&&(kt(O),me=""+O),tt(S)&&(kt(S.key),me=""+S.key),Ce(S)&&(St=S.ref,_t(S,V));for(re in S)be.call(S,re)&&!ia.hasOwnProperty(re)&&(we[re]=S[re]);if(f&&f.defaultProps){var Ft=f.defaultProps;for(re in Ft)we[re]===void 0&&(we[re]=Ft[re])}if(me||St){var At=typeof f=="function"?f.displayName||f.name||"Unknown":f;me&&Yt(we,At),St&&Kt(we,At)}return Zt(f,me,St,V,P,Rn.current,we)}}var Wt=Dt.ReactCurrentOwner,vt=Dt.ReactDebugCurrentFrame;function Bt(f){if(f){var S=f._owner,O=Se(f.type,f._source,S?S.type:null);vt.setExtraStackFrame(O)}else vt.setExtraStackFrame(null)}var pa;pa=!1;function ma(f){return typeof f=="object"&&f!==null&&f.$$typeof===D}function ha(){{if(Wt.current){var f=Ue(Wt.current.type);if(f)return`
|
|
|
|
Check the render method of \``+f+"`."}return""}}function Ja(f){return""}var Hr={};function Ua(f){{var S=ha();if(!S){var O=typeof f=="string"?f:f.displayName||f.name;O&&(S=`
|
|
|
|
Check the top-level render call using <`+O+">.")}return S}}function Ra(f,S){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var O=Ua(S);if(Hr[O])return;Hr[O]=!0;var P="";f&&f._owner&&f._owner!==Wt.current&&(P=" It was passed a child from "+Ue(f._owner.type)+"."),Bt(f),Qe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',O,P),Bt(null)}}function Vr(f,S){{if(typeof f!="object")return;if(ot(f))for(var O=0;O<f.length;O++){var P=f[O];ma(P)&&Ra(P,S)}else if(ma(f))f._store&&(f._store.validated=!0);else if(f){var V=wt(f);if(typeof V=="function"&&V!==f.entries)for(var re=V.call(f),we;!(we=re.next()).done;)ma(we.value)&&Ra(we.value,S)}}}function Fr(f){{var S=f.type;if(S==null||typeof S=="string")return;var O;if(typeof S=="function")O=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===ge||S.$$typeof===q))O=S.propTypes;else return;if(O){var P=Ue(S);Ve(O,f.props,"prop",P,f)}else if(S.PropTypes!==void 0&&!pa){pa=!0;var V=Ue(S);Qe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&Qe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function g(f){{for(var S=Object.keys(f.props),O=0;O<S.length;O++){var P=S[O];if(P!=="children"&&P!=="key"){Bt(f),Qe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",P),Bt(null);break}}f.ref!==null&&(Bt(f),Qe("Invalid attribute `ref` supplied to `React.Fragment`."),Bt(null))}}var H={};function w(f,S,O,P,V,re){{var we=le(f);if(!we){var me="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(me+=" 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 St=Ja();St?me+=St:me+=ha();var Ft;f===null?Ft="null":ot(f)?Ft="array":f!==void 0&&f.$$typeof===D?(Ft="<"+(Ue(f.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):Ft=typeof f,Qe("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ft,me)}var At=wn(f,S,O,V,re);if(At==null)return At;if(we){var Pt=S.children;if(Pt!==void 0)if(P)if(ot(Pt)){for(var Bn=0;Bn<Pt.length;Bn++)Vr(Pt[Bn],f);Object.freeze&&Object.freeze(Pt)}else Qe("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 Vr(Pt,f)}if(be.call(S,"key")){var en=Ue(f),qe=Object.keys(S).filter(function(mr){return mr!=="key"}),ze=qe.length>0?"{key: someKey, "+qe.join(": ..., ")+": ...}":"{key: someKey}";if(!H[en+ze]){var oa=qe.length>0?"{"+qe.join(": ..., ")+": ...}":"{}";Qe(`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} />`,ze,en,oa,en),H[en+ze]=!0}}return f===Te?g(At):Fr(At),At}}function C(f,S,O){return w(f,S,O,!0)}function E(f,S,O){return w(f,S,O,!1)}var k=E,b=C;rl.Fragment=Te,rl.jsx=k,rl.jsxs=b}(),rl}dm.exports=VS();var p=dm.exports,hm={exports:{}},Jc={exports:{}},ef={},ym;function FS(){return ym||(ym=1,function(T){/**
|
|
* @license React
|
|
* scheduler.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var D=!1,pe=5;function Te(Z,Ce){var tt=Z.length;Z.push(Ce),d(Z,Ce,tt)}function ve(Z){return Z.length===0?null:Z[0]}function Oe(Z){if(Z.length===0)return null;var Ce=Z[0],tt=Z.pop();return tt!==Ce&&(Z[0]=tt,X(Z,tt,0)),Ce}function d(Z,Ce,tt){for(var _t=tt;_t>0;){var Yt=_t-1>>>1,Kt=Z[Yt];if(ge(Kt,Ce)>0)Z[Yt]=Ce,Z[_t]=Kt,_t=Yt;else return}}function X(Z,Ce,tt){for(var _t=tt,Yt=Z.length,Kt=Yt>>>1;_t<Kt;){var Zt=(_t+1)*2-1,wn=Z[Zt],Wt=Zt+1,vt=Z[Wt];if(ge(wn,Ce)<0)Wt<Yt&&ge(vt,wn)<0?(Z[_t]=vt,Z[Wt]=Ce,_t=Wt):(Z[_t]=wn,Z[Zt]=Ce,_t=Zt);else if(Wt<Yt&&ge(vt,Ce)<0)Z[_t]=vt,Z[Wt]=Ce,_t=Wt;else return}}function ge(Z,Ce){var tt=Z.sortIndex-Ce.sortIndex;return tt!==0?tt:Z.id-Ce.id}var ae=1,ct=2,q=3,U=4,ee=5;function Fe(Z,Ce){}var $t=typeof performance=="object"&&typeof performance.now=="function";if($t){var wt=performance;T.unstable_now=function(){return wt.now()}}else{var Dt=Date,Qe=Dt.now();T.unstable_now=function(){return Dt.now()-Qe}}var De=1073741823,gt=-1,_e=250,oe=5e3,Ee=1e4,Ot=De,Re=[],le=[],Pe=1,K=null,Ue=q,nt=!1,ce=!1,I=!1,W=typeof setTimeout=="function"?setTimeout:null,Ie=typeof clearTimeout=="function"?clearTimeout:null,We=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(Z){for(var Ce=ve(le);Ce!==null;){if(Ce.callback===null)Oe(le);else if(Ce.startTime<=Z)Oe(le),Ce.sortIndex=Ce.expirationTime,Te(Re,Ce);else return;Ce=ve(le)}}function ft(Z){if(I=!1,Je(Z),!ce)if(ve(Re)!==null)ce=!0,Nt(Ke);else{var Ce=ve(le);Ce!==null&&kt(ft,Ce.startTime-Z)}}function Ke(Z,Ce){ce=!1,I&&(I=!1,Rn()),nt=!0;var tt=Ue;try{var _t;if(!D)return Be(Z,Ce)}finally{K=null,Ue=tt,nt=!1}}function Be(Z,Ce){var tt=Ce;for(Je(tt),K=ve(Re);K!==null&&!(K.expirationTime>tt&&(!Z||rt()));){var _t=K.callback;if(typeof _t=="function"){K.callback=null,Ue=K.priorityLevel;var Yt=K.expirationTime<=tt,Kt=_t(Yt);tt=T.unstable_now(),typeof Kt=="function"?K.callback=Kt:K===ve(Re)&&Oe(Re),Je(tt)}else Oe(Re);K=ve(Re)}if(K!==null)return!0;var Zt=ve(le);return Zt!==null&&kt(ft,Zt.startTime-tt),!1}function Ae(Z,Ce){switch(Z){case ae:case ct:case q:case U:case ee:break;default:Z=q}var tt=Ue;Ue=Z;try{return Ce()}finally{Ue=tt}}function dn(Z){var Ce;switch(Ue){case ae:case ct:case q:Ce=q;break;default:Ce=Ue;break}var tt=Ue;Ue=Ce;try{return Z()}finally{Ue=tt}}function at(Z){var Ce=Ue;return function(){var tt=Ue;Ue=Ce;try{return Z.apply(this,arguments)}finally{Ue=tt}}}function Vt(Z,Ce,tt){var _t=T.unstable_now(),Yt;if(typeof tt=="object"&&tt!==null){var Kt=tt.delay;typeof Kt=="number"&&Kt>0?Yt=_t+Kt:Yt=_t}else Yt=_t;var Zt;switch(Z){case ae:Zt=gt;break;case ct:Zt=_e;break;case ee:Zt=Ot;break;case U:Zt=Ee;break;case q:default:Zt=oe;break}var wn=Yt+Zt,Wt={id:Pe++,callback:Ce,priorityLevel:Z,startTime:Yt,expirationTime:wn,sortIndex:-1};return Yt>_t?(Wt.sortIndex=Yt,Te(le,Wt),ve(Re)===null&&Wt===ve(le)&&(I?Rn():I=!0,kt(ft,Yt-_t))):(Wt.sortIndex=wn,Te(Re,Wt),!ce&&!nt&&(ce=!0,Nt(Ke))),Wt}function bt(){}function et(){!ce&&!nt&&(ce=!0,Nt(Ke))}function Qt(){return ve(Re)}function on(Z){Z.callback=null}function ln(){return Ue}var F=!1,Q=null,Se=-1,be=pe,Ne=-1;function rt(){var Z=T.unstable_now()-Ne;return!(Z<be)}function dt(){}function Ve(Z){if(Z<0||Z>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Z>0?be=Math.floor(1e3/Z):be=pe}var st=function(){if(Q!==null){var Z=T.unstable_now();Ne=Z;var Ce=!0,tt=!0;try{tt=Q(Ce,Z)}finally{tt?ot():(F=!1,Q=null)}}else F=!1},ot;if(typeof We=="function")ot=function(){We(st)};else if(typeof MessageChannel<"u"){var an=new MessageChannel,hn=an.port2;an.port1.onmessage=st,ot=function(){hn.postMessage(null)}}else ot=function(){W(st,0)};function Nt(Z){Q=Z,F||(F=!0,ot())}function kt(Z,Ce){Se=W(function(){Z(T.unstable_now())},Ce)}function Rn(){Ie(Se),Se=-1}var ia=dt,va=null;T.unstable_IdlePriority=ee,T.unstable_ImmediatePriority=ae,T.unstable_LowPriority=U,T.unstable_NormalPriority=q,T.unstable_Profiling=va,T.unstable_UserBlockingPriority=ct,T.unstable_cancelCallback=on,T.unstable_continueExecution=et,T.unstable_forceFrameRate=Ve,T.unstable_getCurrentPriorityLevel=ln,T.unstable_getFirstCallbackNode=Qt,T.unstable_next=dn,T.unstable_pauseExecution=bt,T.unstable_requestPaint=ia,T.unstable_runWithPriority=Ae,T.unstable_scheduleCallback=Vt,T.unstable_shouldYield=rt,T.unstable_wrapCallback=at,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=FS()),Jc.exports}var ra={},bm;function BS(){if(bm)return ra;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 T=Zc(),D=PS(),pe=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Te=!1;function ve(e){Te=e}function Oe(e){if(!Te){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];X("warn",e,n)}}function d(e){if(!Te){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];X("error",e,n)}}function X(e,t,n){{var a=pe.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 ge=0,ae=1,ct=2,q=3,U=4,ee=5,Fe=6,$t=7,wt=8,Dt=9,Qe=10,De=11,gt=12,_e=13,oe=14,Ee=15,Ot=16,Re=17,le=18,Pe=19,K=21,Ue=22,nt=23,ce=24,I=25,W=!0,Ie=!1,We=!1,Je=!1,ft=!1,Ke=!0,Be=!0,Ae=!0,dn=!0,at=new Set,Vt={},bt={};function et(e,t){Qt(e,t),Qt(e+"Capture",t)}function Qt(e,t){Vt[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Vt[e]=t;{var n=e.toLowerCase();bt[n]=e,e==="onDoubleClick"&&(bt.ondblclick=e)}for(var a=0;a<t.length;a++)at.add(t[a])}var on=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ln=Object.prototype.hasOwnProperty;function F(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Q(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function be(e,t){if(Q(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,F(e)),Se(e)}function Ne(e){if(Q(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",F(e)),Se(e)}function rt(e,t){if(Q(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,F(e)),Se(e)}function dt(e,t){if(Q(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,F(e)),Se(e)}function Ve(e){if(Q(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.",F(e)),Se(e)}function st(e){if(Q(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.",F(e)),Se(e)}var ot=0,an=1,hn=2,Nt=3,kt=4,Rn=5,ia=6,va=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Z=va+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ce=new RegExp("^["+va+"]["+Z+"]*$"),tt={},_t={};function Yt(e){return ln.call(_t,e)?!0:ln.call(tt,e)?!1:Ce.test(e)?(_t[e]=!0,!0):(tt[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function Kt(e,t,n){return t!==null?t.type===ot:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Zt(e,t,n,a){if(n!==null&&n.type===ot)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 wn(e,t,n,a){if(t===null||typeof t>"u"||Zt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Nt:return!t;case kt:return t===!1;case Rn:return isNaN(t);case ia:return isNaN(t)||t<1}return!1}function Wt(e){return Bt.hasOwnProperty(e)?Bt[e]:null}function vt(e,t,n,a,r,i,o){this.acceptsBooleans=t===hn||t===Nt||t===kt,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Bt={},pa=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];pa.forEach(function(e){Bt[e]=new vt(e,ot,!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,an,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bt[e]=new vt(e,hn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Bt[e]=new vt(e,hn,!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,Nt,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Bt[e]=new vt(e,Nt,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Bt[e]=new vt(e,kt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Bt[e]=new vt(e,ia,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Bt[e]=new vt(e,Rn,!1,e.toLowerCase(),null,!1,!1)});var ma=/[\-\:]([a-z])/g,ha=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(ma,ha);Bt[t]=new vt(t,an,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ma,ha);Bt[t]=new vt(t,an,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ma,ha);Bt[t]=new vt(t,an,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Bt[e]=new vt(e,an,!1,e.toLowerCase(),null,!1,!1)});var Ja="xlinkHref";Bt[Ja]=new vt("xlinkHref",an,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Bt[e]=new vt(e,an,!1,e.toLowerCase(),null,!0,!0)});var Hr=/^[\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,Ua=!1;function Ra(e){!Ua&&Hr.test(e)&&(Ua=!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 Vr(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{be(n,t),a.sanitizeURL&&Ra(""+n);var i=a.attributeName,o=null;if(a.type===kt){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:wn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(wn(t,n,a,!1))return e.getAttribute(i);if(a.type===Nt)return n;o=e.getAttribute(i)}return wn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function Fr(e,t,n,a){{if(!Yt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return be(n,t),r===""+n?n:r}}function g(e,t,n,a){var r=Wt(t);if(!Kt(t,r,a)){if(wn(t,n,r,a)&&(n=null),a||r===null){if(Yt(t)){var i=t;n===null?e.removeAttribute(i):(be(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===Nt?!1:""}else e[l]=n;return}var c=r.attributeName,v=r.attributeNamespace;if(n===null)e.removeAttribute(c);else{var y=r.type,h;y===Nt||y===kt&&n===!0?h="":(be(n,c),h=""+n,r.sanitizeURL&&Ra(h.toString())),v?e.setAttributeNS(v,c,h):e.setAttribute(c,h)}}}var H=Symbol.for("react.element"),w=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),f=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),we=Symbol.for("react.scope"),me=Symbol.for("react.debug_trace_mode"),St=Symbol.for("react.offscreen"),Ft=Symbol.for("react.legacy_hidden"),At=Symbol.for("react.cache"),Pt=Symbol.for("react.tracing_marker"),Bn=Symbol.iterator,en="@@iterator";function qe(e){if(e===null||typeof e!="object")return null;var t=Bn&&e[Bn]||e[en];return typeof t=="function"?t:null}var ze=Object.assign,oa=0,mr,hi,$n,ya,Pr,yi,cn;function Ct(){}Ct.__reactDisabledLog=!0;function za(){{if(oa===0){mr=console.log,hi=console.info,$n=console.warn,ya=console.error,Pr=console.group,yi=console.groupCollapsed,cn=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ct,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}oa++}}function wa(){{if(oa--,oa===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ze({},e,{value:mr}),info:ze({},e,{value:hi}),warn:ze({},e,{value:$n}),error:ze({},e,{value:ya}),group:ze({},e,{value:Pr}),groupCollapsed:ze({},e,{value:yi}),groupEnd:ze({},e,{value:cn})})}oa<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var er=pe.ReactCurrentDispatcher,il;function tr(e,t,n){{if(il===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);il=a&&a[1]||""}return`
|
|
`+il+e}}var gi=!1,Br;{var no=typeof WeakMap=="function"?WeakMap:Map;Br=new no}function bi(e,t){if(!e||gi)return"";{var n=Br.get(e);if(n!==void 0)return n}var a;gi=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=er.current,er.current=null,za();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(`
|
|
`),c=l.length-1,v=u.length-1;c>=1&&v>=0&&l[c]!==u[v];)v--;for(;c>=1&&v>=0;c--,v--)if(l[c]!==u[v]){if(c!==1||v!==1)do if(c--,v--,v<0||l[c]!==u[v]){var y=`
|
|
`+l[c].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&Br.set(e,y),y}while(c>=1&&v>=0);break}}}finally{gi=!1,er.current=i,wa(),Error.prepareStackTrace=r}var h=e?e.displayName||e.name:"",_=h?tr(h):"";return typeof e=="function"&&Br.set(e,_),_}function ao(e,t,n){return bi(e,!0)}function ol(e,t,n){return bi(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 bi(e,Yu(e));if(typeof e=="string")return tr(e);switch(e){case O:return tr("Suspense");case P:return tr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case S:return ol(e.render);case V:return ll(e.type,t,n);case re:{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 ee:return tr(e.type);case Ot:return tr("Lazy");case _e:return tr("Suspense");case Pe:return tr("SuspenseList");case ge:case ct:case Ee:return ol(e.type);case De:return ol(e.type.render);case ae:return ao(e.type);default:return""}}function Si(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 xt(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 C:return"Fragment";case w:return"Portal";case k:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var t=e;return ul(t)+".Consumer";case b:var n=e;return ul(n._context)+".Provider";case S:return Iu(e,e.render,"ForwardRef");case V:var a=e.displayName||null;return a!==null?a:xt(e.type)||"Memo";case re:{var r=e,i=r._payload,o=r._init;try{return xt(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 hr(e){return e.displayName||"Context"}function Ze(e){var t=e.tag,n=e.type;switch(t){case ce:return"Cache";case Dt:var a=n;return hr(a)+".Consumer";case Qe:var r=n;return hr(r._context)+".Provider";case le:return"DehydratedFragment";case De:return rf(n,n.render,"ForwardRef");case $t:return"Fragment";case ee:return n;case U:return"Portal";case q:return"Root";case Fe:return"Text";case Ot:return xt(n);case wt:return n===E?"StrictMode":"Mode";case Ue:return"Offscreen";case gt:return"Profiler";case K:return"Scope";case _e:return"Suspense";case Pe:return"SuspenseList";case I:return"TracingMarker";case ae:case ge:case Re:case ct:case oe:case Ee:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var sl=pe.ReactDebugCurrentFrame,Qn=null,Ti=!1;function $r(){{if(Qn===null)return null;var e=Qn._debugOwner;if(e!==null&&typeof e<"u")return Ze(e)}return null}function of(){return Qn===null?"":Si(Qn)}function Dn(){sl.getCurrentStack=null,Qn=null,Ti=!1}function tn(e){sl.getCurrentStack=e===null?null:of,Qn=e,Ti=!1}function Wu(){return Qn}function Da(e){Ti=e}function Kn(e){return""+e}function Ha(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return st(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 ro(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Yr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);st(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){st(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){st(l),a=""+l},stopTracking:function(){ro(e),delete e[t]}};return o}}function Ei(e){fl(e)||(e._valueTracker=Yr(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 yr(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 io=!1,oo=!1,lo=!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=ze({},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&&!oo&&(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",$r()||"A component",t.type),oo=!0),t.value!==void 0&&t.defaultValue!==void 0&&!io&&(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",$r()||"A component",t.type),io=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Ha(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&g(n,"checked",a,!1)}function m(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&&!lo&&(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"),lo=!0)}s(e,t);var r=Ha(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=Kn(r)):n.value!==Kn(r)&&(n.value=Kn(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?ke(n,t.type,r):t.hasOwnProperty("defaultValue")&&ke(n,t.type,Ha(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=Kn(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 A(e,t){var n=e;m(n,t),G(n,t)}function G(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;be(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),m(o,l)}}}}function ke(e,t,n){(t!=="number"||yr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=Kn(e._wrapperState.initialValue):e.defaultValue!==Kn(n)&&(e.defaultValue=Kn(n)))}var ye=!1,Ge=!1,pt=!1;function jt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?T.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||Ge||(Ge=!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&&(pt||(pt=!0,d("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!ye&&(d("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ye=!0)}function qt(e,t){t.value!=null&&e.setAttribute("value",Kn(Ha(t.value)))}var Gt=Array.isArray;function lt(e){return Gt(e)}var nn;nn=!1;function vn(){var e=$r();return e?`
|
|
|
|
Check the render method of \``+e+"`.":""}var Ci=["value","defaultValue"];function pl(e){{cl("select",e);for(var t=0;t<Ci.length;t++){var n=Ci[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 gr(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 c=o.hasOwnProperty("$"+r[u].value);r[u].selected!==c&&(r[u].selected=c),c&&a&&(r[u].defaultSelected=!0)}}else{for(var v=Kn(Ha(n)),y=null,h=0;h<r.length;h++){if(r[h].value===v){r[h].selected=!0,a&&(r[h].defaultSelected=!0);return}y===null&&!r[h].disabled&&(y=r[h])}y!==null&&(y.selected=!0)}}function ml(e,t){return ze({},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?gr(n,!!t.multiple,a,!1):t.defaultValue!=null&&gr(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?gr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?gr(n,!!t.multiple,t.defaultValue,!0):gr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&gr(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=ze({},t,{value:void 0,defaultValue:void 0,children:Kn(n._wrapperState.initialValue)});return a}function Om(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",$r()||"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:Ha(a)}}function km(e,t){var n=e,a=Ha(t.value),r=Ha(t.defaultValue);if(a!=null){var i=Kn(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=Kn(r))}function Am(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function n0(e,t){km(e,t)}var br="http://www.w3.org/1999/xhtml",a0="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 a0;default:return br}}function pf(e,t){return e==null||e===br?vf(t):e===df&&t==="foreignObject"?br:e}var r0=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=r0(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}),la=1,Sr=3,pn=8,Tr=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Sr){n.nodeValue=t;return}}e.textContent=t},i0={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 o0(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var l0=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){l0.forEach(function(t){yl[o0(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":(dt(t,e),(""+t).trim())}var u0=/([A-Z])/g,s0=/^ms-/;function c0(e){return e.replace(u0,"-$1").toLowerCase().replace(s0,"-ms-")}var jm=function(){};{var f0=/^(?:webkit|moz|o)[A-Z]/,d0=/^-ms-/,v0=/-(.)/g,Um=/;\s*$/,uo={},yf={},zm=!1,Hm=!1,p0=function(e){return e.replace(v0,function(t,n){return n.toUpperCase()})},m0=function(e){uo.hasOwnProperty(e)&&uo[e]||(uo[e]=!0,d("Unsupported style property %s. Did you mean %s?",e,p0(e.replace(d0,"ms-"))))},h0=function(e){uo.hasOwnProperty(e)&&uo[e]||(uo[e]=!0,d("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},y0=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,"")))},g0=function(e,t){zm||(zm=!0,d("`NaN` is an invalid value for the `%s` css style property.",e))},b0=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?m0(e):f0.test(e)?h0(e):Um.test(t)&&y0(e,t),typeof t=="number"&&(isNaN(t)?g0(e,t):isFinite(t)||b0(e,t))}}var S0=jm;function T0(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:c0(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Vm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||S0(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function E0(e){return e==null||typeof e=="boolean"||e===""}function Fm(e){var t={};for(var n in e)for(var a=i0[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function C0(e,t){{if(!t)return;var n=Fm(e),a=Fm(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.",E0(e[o])?"Removing":"Updating",o,l)}}}}var x0={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},R0=ze({menuitem:!0},x0),w0="__html";function gf(e,t){if(t){if(R0[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"||!(w0 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 xi(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},so={},D0=new RegExp("^(aria)-["+Z+"]*$"),_0=new RegExp("^(aria)[A-Z]["+Z+"]*$");function M0(e,t){{if(ln.call(so,t)&&so[t])return!0;if(_0.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),so[t]=!0,!0;if(t!==a)return d("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),so[t]=!0,!0}if(D0.test(t)){var r=t.toLowerCase(),i=Pm.hasOwnProperty(r)?r:null;if(i==null)return so[t]=!0,!1;if(t!==i)return d("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),so[t]=!0,!0}}return!0}function L0(e,t){{var n=[];for(var a in t){var r=M0(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){xi(e,t)||L0(e,t)}var Bm=!1;function k0(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 Zn={},Ym=/^on./,A0=/^on[^A-Z]/,N0=new RegExp("^(aria)-["+Z+"]*$"),j0=new RegExp("^(aria)[A-Z]["+Z+"]*$");$m=function(e,t,n,a){if(ln.call(Zn,t)&&Zn[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."),Zn[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),Zn[t]=!0,!0;if(Ym.test(t))return d("Unknown event handler property `%s`. It will be ignored.",t),Zn[t]=!0,!0}else if(Ym.test(t))return A0.test(t)&&d("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Zn[t]=!0,!0;if(N0.test(t)||j0.test(t))return!0;if(r==="innerhtml")return d("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Zn[t]=!0,!0;if(r==="aria")return d("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Zn[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),Zn[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),Zn[t]=!0,!0;var u=Wt(t),c=u!==null&&u.type===ot;if(es.hasOwnProperty(r)){var v=es[r];if(v!==t)return d("Invalid DOM property `%s`. Did you mean `%s`?",t,v),Zn[t]=!0,!0}else if(!c&&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),Zn[t]=!0,!0;return typeof n=="boolean"&&Zt(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),Zn[t]=!0,!0):c?!0:Zt(t,n,u,!1)?(Zn[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===Nt&&(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),Zn[t]=!0),!0)}}var U0=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 z0(e,t,n){xi(e,t)||U0(e,t,n)}var Im=1,bf=2,gl=4,H0=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 F0(){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 P0(e){return e===bl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Sr?t.parentNode:t}var Tf=null,co=null,fo=null;function Wm(e){var t=Jr(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 B0(e){Tf=e}function qm(e){co?fo?fo.push(e):fo=[e]:co=e}function $0(){return co!==null||fo!==null}function Gm(){if(co){var e=co,t=fo;if(co=null,fo=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 Y0(){var e=$0();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,Y0()}}function I0(e,t,n){Xm=e,Qm=n}function W0(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function q0(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&&W0(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(q0(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(on)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 c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}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,c){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"),y=!1,h=!0,_=window.event,L=Object.getOwnPropertyDescriptor(window,"event");function N(){xf.removeEventListener(j,Me,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=_)}var te=Array.prototype.slice.call(arguments,3);function Me(){y=!0,N(),n.apply(a,te),h=!1}var xe,yt=!1,ut=!1;function x(R){if(xe=R.error,yt=!0,xe===null&&R.colno===0&&R.lineno===0&&(ut=!0),R.defaultPrevented&&xe!=null&&typeof xe=="object")try{xe._suppressLogging=!0}catch{}}var j="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",x),xf.addEventListener(j,Me,!1),v.initEvent(j,!1,!1),xf.dispatchEvent(v),L&&Object.defineProperty(window,"event",L),y&&h&&(yt?ut&&(xe=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.")):xe=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(xe)),window.removeEventListener("error",x),!y)return N(),Zm.apply(this,arguments)}}var G0=Jm,vo=!1,ts=null,ns=!1,Rf=null,X0={onError:function(e){vo=!0,ts=e}};function wf(e,t,n,a,r,i,o,l,u){vo=!1,ts=null,G0.apply(X0,arguments)}function Q0(e,t,n,a,r,i,o,l,u){if(wf.apply(this,arguments),vo){var c=Df();ns||(ns=!0,Rf=c)}}function K0(){if(ns){var e=Rf;throw ns=!1,Rf=null,e}}function Z0(){return vo}function Df(){if(vo){var e=ts;return vo=!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 po(e){return e._reactInternals}function J0(e){return e._reactInternals!==void 0}function eT(e,t){e._reactInternals=t}var je=0,mo=1,_n=2,Rt=4,Ri=16,as=32,eh=64,Mt=128,wi=256,Di=512,ho=1024,Ir=2048,_i=4096,Mi=8192,_f=16384,tT=32767,rs=32768,Va=65536,Mf=131072,th=1048576,Lf=2097152,Li=4194304,Of=8388608,Wr=16777216,kf=33554432,Af=Rt|ho|0,Nf=_n|Rt|Ri|as|Di|_i|Mi,El=Rt|eh|Di|Mi,yo=Ir|Ri,Er=Li|Of|Lf,nT=pe.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&(_n|_i))!==je&&(n=t.return),a=t.return;while(a)}return t.tag===q?n:null}function nh(e){if(e.tag===_e){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===q?e.stateNode.containerInfo:null}function aT(e){return Oi(e)===e}function rT(e){{var t=nT.current;if(t!==null&&t.tag===ae){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.",Ze(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=po(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 c=!1,v=i.child;v;){if(v===a){c=!0,a=i,r=o;break}if(v===r){c=!0,r=i,a=o;break}v=v.sibling}if(!c){for(v=o.child;v;){if(v===a){c=!0,a=o,r=i;break}if(v===r){c=!0,r=o,a=i;break}v=v.sibling}if(!c)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!==q)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===ee||e.tag===Fe)return e;for(var t=e.child;t!==null;){var n=lh(t);if(n!==null)return n;t=t.sibling}return null}function iT(e){var t=ih(e);return t!==null?uh(t):null}function uh(e){if(e.tag===ee||e.tag===Fe)return e;for(var t=e.child;t!==null;){if(t.tag!==U){var n=uh(t);if(n!==null)return n}t=t.sibling}return null}var sh=D.unstable_scheduleCallback,oT=D.unstable_cancelCallback,lT=D.unstable_shouldYield,uT=D.unstable_requestPaint,Mn=D.unstable_now,sT=D.unstable_getCurrentPriorityLevel,is=D.unstable_ImmediatePriority,jf=D.unstable_UserBlockingPriority,ki=D.unstable_NormalPriority,cT=D.unstable_LowPriority,Uf=D.unstable_IdlePriority,fT=D.unstable_yieldValue,dT=D.unstable_setDisableYieldValue,go=null,Yn=null,se=null,nr=!1,Fa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function vT(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{Be&&(e=ze({},e,{getLaneLabelMap:bT,injectProfilingHooks:gT})),go=t.inject(e),Yn=t}catch(n){d("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function pT(e,t){if(Yn&&typeof Yn.onScheduleFiberRoot=="function")try{Yn.onScheduleFiberRoot(go,e,t)}catch(n){nr||(nr=!0,d("React instrumentation encountered an error: %s",n))}}function mT(e,t){if(Yn&&typeof Yn.onCommitFiberRoot=="function")try{var n=(e.current.flags&Mt)===Mt;if(Ae){var a;switch(t){case ba:a=is;break;case xr:a=jf;break;case Rr:a=ki;break;case ds:a=Uf;break;default:a=ki;break}Yn.onCommitFiberRoot(go,e,a,n)}}catch(r){nr||(nr=!0,d("React instrumentation encountered an error: %s",r))}}function hT(e){if(Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(go,e)}catch(t){nr||(nr=!0,d("React instrumentation encountered an error: %s",t))}}function yT(e){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(go,e)}catch(t){nr||(nr=!0,d("React instrumentation encountered an error: %s",t))}}function Ln(e){if(typeof fT=="function"&&(dT(e),ve(e)),Yn&&typeof Yn.setStrictMode=="function")try{Yn.setStrictMode(go,e)}catch(t){nr||(nr=!0,d("React instrumentation encountered an error: %s",t))}}function gT(e){se=e}function bT(){{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 ST(e){se!==null&&typeof se.markCommitStarted=="function"&&se.markCommitStarted(e)}function ch(){se!==null&&typeof se.markCommitStopped=="function"&&se.markCommitStopped()}function Cl(e){se!==null&&typeof se.markComponentRenderStarted=="function"&&se.markComponentRenderStarted(e)}function bo(){se!==null&&typeof se.markComponentRenderStopped=="function"&&se.markComponentRenderStopped()}function TT(e){se!==null&&typeof se.markComponentPassiveEffectMountStarted=="function"&&se.markComponentPassiveEffectMountStarted(e)}function ET(){se!==null&&typeof se.markComponentPassiveEffectMountStopped=="function"&&se.markComponentPassiveEffectMountStopped()}function CT(e){se!==null&&typeof se.markComponentPassiveEffectUnmountStarted=="function"&&se.markComponentPassiveEffectUnmountStarted(e)}function xT(){se!==null&&typeof se.markComponentPassiveEffectUnmountStopped=="function"&&se.markComponentPassiveEffectUnmountStopped()}function RT(e){se!==null&&typeof se.markComponentLayoutEffectMountStarted=="function"&&se.markComponentLayoutEffectMountStarted(e)}function wT(){se!==null&&typeof se.markComponentLayoutEffectMountStopped=="function"&&se.markComponentLayoutEffectMountStopped()}function fh(e){se!==null&&typeof se.markComponentLayoutEffectUnmountStarted=="function"&&se.markComponentLayoutEffectUnmountStarted(e)}function dh(){se!==null&&typeof se.markComponentLayoutEffectUnmountStopped=="function"&&se.markComponentLayoutEffectUnmountStopped()}function DT(e,t,n){se!==null&&typeof se.markComponentErrored=="function"&&se.markComponentErrored(e,t,n)}function _T(e,t,n){se!==null&&typeof se.markComponentSuspended=="function"&&se.markComponentSuspended(e,t,n)}function MT(e){se!==null&&typeof se.markLayoutEffectsStarted=="function"&&se.markLayoutEffectsStarted(e)}function LT(){se!==null&&typeof se.markLayoutEffectsStopped=="function"&&se.markLayoutEffectsStopped()}function OT(e){se!==null&&typeof se.markPassiveEffectsStarted=="function"&&se.markPassiveEffectsStarted(e)}function kT(){se!==null&&typeof se.markPassiveEffectsStopped=="function"&&se.markPassiveEffectsStopped()}function vh(e){se!==null&&typeof se.markRenderStarted=="function"&&se.markRenderStarted(e)}function AT(){se!==null&&typeof se.markRenderYielded=="function"&&se.markRenderYielded()}function ph(){se!==null&&typeof se.markRenderStopped=="function"&&se.markRenderStopped()}function NT(e){se!==null&&typeof se.markRenderScheduled=="function"&&se.markRenderScheduled(e)}function jT(e,t){se!==null&&typeof se.markForceUpdateScheduled=="function"&&se.markForceUpdateScheduled(e,t)}function zf(e,t){se!==null&&typeof se.markStateUpdateScheduled=="function"&&se.markStateUpdateScheduled(e,t)}var Le=0,mt=1,Ut=2,un=8,ar=16,mh=Math.clz32?Math.clz32:HT,UT=Math.log,zT=Math.LN2;function HT(e){var t=e>>>0;return t===0?32:31-(UT(t)/zT|0)|0}var Hf=31,$=0,On=0,$e=1,So=2,Cr=4,Ai=8,rr=16,xl=32,To=4194240,Rl=64,Vf=128,Ff=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,Eo=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,hh=Eo,wl=134217728,yh=268435455,Dl=268435456,Ni=536870912,_a=1073741824;function VT(e){{if(e&$e)return"Sync";if(e&So)return"InputContinuousHydration";if(e&Cr)return"InputContinuous";if(e&Ai)return"DefaultHydration";if(e&rr)return"Default";if(e&xl)return"TransitionHydration";if(e&To)return"Transition";if(e&os)return"Retry";if(e&wl)return"SelectiveHydration";if(e&Dl)return"IdleHydration";if(e&Ni)return"Idle";if(e&_a)return"Offscreen"}}var Xt=-1,ls=Rl,us=Eo;function _l(e){switch(ji(e)){case $e:return $e;case So:return So;case Cr:return Cr;case Ai:return Ai;case rr:return rr;case xl:return xl;case Rl:case Vf:case Ff: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&To;case Eo:case ed:case td:case nd:case ad:return e&os;case wl:return wl;case Dl:return Dl;case Ni:return Ni;case _a:return _a;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===$)return $;var a=$,r=e.suspendedLanes,i=e.pingedLanes,o=n&yh;if(o!==$){var l=o&~r;if(l!==$)a=_l(l);else{var u=o&i;u!==$&&(a=_l(u))}}else{var c=n&~r;c!==$?a=_l(c):i!==$&&(a=_l(i))}if(a===$)return $;if(t!==$&&t!==a&&(t&r)===$){var v=ji(a),y=ji(t);if(v>=y||v===rr&&(y&To)!==$)return t}(a&Cr)!==$&&(a|=n&rr);var h=e.entangledLanes;if(h!==$)for(var _=e.entanglements,L=a&h;L>0;){var N=Ui(L),te=1<<N;a|=_[N],L&=~te}return a}function FT(e,t){for(var n=e.eventTimes,a=Xt;t>0;){var r=Ui(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function PT(e,t){switch(e){case $e:case So:case Cr:return t+250;case Ai:case rr:case xl:case Rl:case Vf:case Ff: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 Eo:case ed:case td:case nd:case ad:return Xt;case wl:case Dl:case Ni:case _a:return Xt;default:return d("Should have found matching lanes. This is a bug in React."),Xt}}function BT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Ui(o),u=1<<l,c=i[l];c===Xt?((u&a)===$||(u&r)!==$)&&(i[l]=PT(u,t)):c<=t&&(e.expiredLanes|=u),o&=~u}}function $T(e){return _l(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==$?t:t&_a?_a:$}function YT(e){return(e&$e)!==$}function id(e){return(e&yh)!==$}function gh(e){return(e&os)===e}function IT(e){var t=$e|Cr|rr;return(e&t)===$}function WT(e){return(e&To)===e}function cs(e,t){var n=So|Cr|Ai|rr;return(t&n)!==$}function qT(e,t){return(t&e.expiredLanes)!==$}function bh(e){return(e&To)!==$}function Sh(){var e=ls;return ls<<=1,(ls&To)===$&&(ls=Rl),e}function GT(){var e=us;return us<<=1,(us&os)===$&&(us=Eo),e}function ji(e){return e&-e}function Ml(e){return ji(e)}function Ui(e){return 31-mh(e)}function od(e){return Ui(e)}function ga(e,t){return(e&t)!==$}function Co(e,t){return(e&t)===t}function it(e,t){return e|t}function fs(e,t){return e&~t}function Th(e,t){return e&t}function m_(e){return e}function XT(e,t){return e!==On&&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!==Ni&&(e.suspendedLanes=$,e.pingedLanes=$);var a=e.eventTimes,r=od(t);a[r]=n}function QT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Ui(a),i=1<<r;n[r]=Xt,a&=~i}}function Eh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function KT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=$,e.pingedLanes=$,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=Ui(o),u=1<<l;a[l]=$,r[l]=Xt,i[l]=Xt,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Ui(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function ZT(e,t){var n=ji(t),a;switch(n){case Cr:a=So;break;case rr:a=Ai;break;case Rl:case Vf:case Ff: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 Eo:case ed:case td:case nd:case ad:a=xl;break;case Ni:a=Dl;break;default:a=On;break}return(a&(e.suspendedLanes|t))!==On?On:a}function Ch(e,t,n){if(Fa)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(Fa)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 ba=$e,xr=Cr,Rr=rr,ds=Ni,Ol=On;function Pa(){return Ol}function kn(e){Ol=e}function JT(e,t){var n=Ol;try{return Ol=e,t()}finally{Ol=n}}function eE(e,t){return e!==0&&e<t?e:t}function tE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function wh(e){var t=ji(e);return sd(ba,t)?sd(xr,t)?id(t)?Rr:ds:xr:ba}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var Dh;function nE(e){Dh=e}function aE(e){Dh(e)}var cd;function rE(e){cd=e}var _h;function iE(e){_h=e}var Mh;function oE(e){Mh=e}var Lh;function lE(e){Lh=e}var fd=!1,ps=[],qr=null,Gr=null,Xr=null,kl=new Map,Al=new Map,Qr=[],uE=["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 sE(e){return uE.indexOf(e)>-1}function cE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function Oh(e,t){switch(e){case"focusin":case"focusout":qr=null;break;case"dragenter":case"dragleave":Gr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;kl.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=cE(t,n,a,r,i);if(t!==null){var l=Jr(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 fE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return qr=Nl(qr,e,t,n,a,i),!0}case"dragenter":{var o=r;return Gr=Nl(Gr,e,t,n,a,o),!0}case"mouseover":{var l=r;return Xr=Nl(Xr,e,t,n,a,l),!0}case"pointerover":{var u=r,c=u.pointerId;return kl.set(c,Nl(kl.get(c)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var v=r,y=v.pointerId;return Al.set(y,Nl(Al.get(y)||null,e,t,n,a,v)),!0}}return!1}function kh(e){var t=Vi(e.target);if(t!==null){var n=Oi(t);if(n!==null){var a=n.tag;if(a===_e){var r=nh(n);if(r!==null){e.blockedOn=r,Lh(e.priority,function(){_h(n)});return}}else if(a===q){var i=n.stateNode;if(vs(i)){e.blockedOn=ah(n);return}}}}e.blockedOn=null}function dE(e){for(var t=Mh(),n={blockedOn:null,target:e,priority:t},a=0;a<Qr.length&&sd(t,Qr[a].priority);a++);Qr.splice(a,0,n),a===0&&kh(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),F0()}else{var o=Jr(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 vE(){fd=!1,qr!==null&&ms(qr)&&(qr=null),Gr!==null&&ms(Gr)&&(Gr=null),Xr!==null&&ms(Xr)&&(Xr=null),kl.forEach(Ah),Al.forEach(Ah)}function jl(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,D.unstable_scheduleCallback(D.unstable_NormalPriority,vE)))}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)}}qr!==null&&jl(qr,e),Gr!==null&&jl(Gr,e),Xr!==null&&jl(Xr,e);var a=function(l){return jl(l,e)};kl.forEach(a),Al.forEach(a);for(var r=0;r<Qr.length;r++){var i=Qr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;Qr.length>0;){var o=Qr[0];if(o.blockedOn!==null)break;kh(o),o.blockedOn===null&&Qr.shift()}}var xo=pe.ReactCurrentBatchConfig,dd=!0;function Nh(e){dd=!!e}function pE(){return dd}function mE(e,t,n){var a=jh(t),r;switch(a){case ba:r=hE;break;case xr:r=yE;break;case Rr:default:r=vd;break}return r.bind(null,t,n,e)}function hE(e,t,n,a){var r=Pa(),i=xo.transition;xo.transition=null;try{kn(ba),vd(e,t,n,a)}finally{kn(r),xo.transition=i}}function yE(e,t,n,a){var r=Pa(),i=xo.transition;xo.transition=null;try{kn(xr),vd(e,t,n,a)}finally{kn(r),xo.transition=i}}function vd(e,t,n,a){dd&&gE(e,t,n,a)}function gE(e,t,n,a){var r=pd(e,t,n,a);if(r===null){_d(e,t,a,hs,n),Oh(e,a);return}if(fE(r,e,t,n,a)){a.stopPropagation();return}if(Oh(e,a),t&gl&&sE(e)){for(;r!==null;){var i=Jr(r);i!==null&&aE(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===_e){var u=nh(o);if(u!==null)return u;i=null}else if(l===q){var c=o.stateNode;if(vs(c))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 ba;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 xr;case"message":{var t=sT();switch(t){case is:return ba;case jf:return xr;case ki:case cT:return Rr;case Uf:return ds;default:return Rr}}default:return Rr}}function bE(e,t,n){return e.addEventListener(t,n,!1),n}function SE(e,t,n){return e.addEventListener(t,n,!0),n}function TE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function EE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var zl=null,md=null,Hl=null;function CE(e){return zl=e,md=zh(),!0}function xE(){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 Sa(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 c=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return c?this.isDefaultPrevented=gs:this.isDefaultPrevented=Hh,this.isPropagationStopped=Hh,this}return ze(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 Ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=Sa(Ro),Vl=ze({},Ro,{view:0,detail:0}),RE=Sa(Vl),yd,gd,Fl;function wE(e){e!==Fl&&(Fl&&e.type==="mousemove"?(yd=e.screenX-Fl.screenX,gd=e.screenY-Fl.screenY):(yd=0,gd=0),Fl=e)}var bs=ze({},Vl,{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:(wE(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Vh=Sa(bs),DE=ze({},bs,{dataTransfer:0}),_E=Sa(DE),ME=ze({},Vl,{relatedTarget:0}),bd=Sa(ME),LE=ze({},Ro,{animationName:0,elapsedTime:0,pseudoElement:0}),OE=Sa(LE),kE=ze({},Ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),AE=Sa(kE),NE=ze({},Ro,{data:0}),Fh=Sa(NE),jE=Fh,UE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function HE(e){if(e.key){var t=UE[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"?zE[e.keyCode]||"Unidentified":""}var VE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=VE[e];return a?!!n[a]:!1}function Sd(e){return FE}var PE=ze({},Vl,{key:HE,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}}),BE=Sa(PE),$E=ze({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ph=Sa($E),YE=ze({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),IE=Sa(YE),WE=ze({},Ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),qE=Sa(WE),GE=ze({},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}),XE=Sa(GE),QE=[9,13,27,32],Bh=229,Td=on&&"CompositionEvent"in window,Pl=null;on&&"documentMode"in document&&(Pl=document.documentMode);var KE=on&&"TextEvent"in window&&!Pl,$h=on&&(!Td||Pl&&Pl>8&&Pl<=11),Yh=32,Ih=String.fromCharCode(Yh);function ZE(){et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),et("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),et("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Wh=!1;function JE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function eC(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function tC(e,t){return e==="keydown"&&t.keyCode===Bh}function qh(e,t){switch(e){case"keyup":return QE.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 wo=!1;function nC(e,t,n,a,r){var i,o;if(Td?i=eC(t):wo?qh(t,a)&&(i="onCompositionEnd"):tC(t,a)&&(i="onCompositionStart"),!i)return null;$h&&!Xh(a)&&(!wo&&i==="onCompositionStart"?wo=CE(r):i==="onCompositionEnd"&&wo&&(o=Uh()));var l=xs(n,i);if(l.length>0){var u=new Fh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var c=Gh(a);c!==null&&(u.data=c)}}}function aC(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 rC(e,t){if(wo){if(e==="compositionend"||!Td&&qh(e,t)){var n=Uh();return xE(),wo=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!JE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $h&&!Xh(t)?null:t.data;default:return null}}function iC(e,t,n,a,r){var i;if(KE?i=aC(t,a):i=rC(t,a),!i)return null;var o=xs(n,"onBeforeInput");if(o.length>0){var l=new jE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function oC(e,t,n,a,r,i,o){nC(e,t,n,a,r),iC(e,t,n,a,r)}var lC={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"?!!lC[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 uC(e){if(!on)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 sC(){et("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 cC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function fC(e){var t=[];Kh(t,$l,e,Sf(e)),Km(dC,t)}function dC(e){my(e,0)}function Ss(e){var t=ko(e);if(dl(t))return e}function vC(e,t){if(e==="change")return t}var Zh=!1;on&&(Zh=uC("input")&&(!document.documentMode||document.documentMode>9));function pC(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)&&fC(e)}function mC(e,t,n){e==="focusin"?(Jh(),pC(t,n)):e==="focusout"&&Jh()}function hC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss($l)}function yC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function gC(e,t){if(e==="click")return Ss(t)}function bC(e,t){if(e==="input"||e==="change")return Ss(t)}function SC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||ke(e,"number",e.value)}function TC(e,t,n,a,r,i,o){var l=n?ko(n):window,u,c;if(cC(l)?u=vC:Qh(l)?Zh?u=bC:(u=hC,c=mC):yC(l)&&(u=gC),u){var v=u(t,n);if(v){Kh(e,v,a,r);return}}c&&c(t,l,n),t==="focusout"&&SC(l)}function EC(){Qt("onMouseEnter",["mouseout","mouseover"]),Qt("onMouseLeave",["mouseout","mouseover"]),Qt("onPointerEnter",["pointerout","pointerover"]),Qt("onPointerLeave",["pointerout","pointerover"])}function CC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!P0(a)){var c=a.relatedTarget||a.fromElement;if(c&&(Vi(c)||ru(c)))return}if(!(!u&&!l)){var v;if(r.window===r)v=r;else{var y=r.ownerDocument;y?v=y.defaultView||y.parentWindow:v=window}var h,_;if(u){var L=a.relatedTarget||a.toElement;if(h=n,_=L?Vi(L):null,_!==null){var N=Oi(_);(_!==N||_.tag!==ee&&_.tag!==Fe)&&(_=null)}}else h=null,_=n;if(h!==_){var te=Vh,Me="onMouseLeave",xe="onMouseEnter",yt="mouse";(t==="pointerout"||t==="pointerover")&&(te=Ph,Me="onPointerLeave",xe="onPointerEnter",yt="pointer");var ut=h==null?v:ko(h),x=_==null?v:ko(_),j=new te(Me,yt+"leave",h,a,r);j.target=ut,j.relatedTarget=x;var R=null,Y=Vi(r);if(Y===n){var de=new te(xe,yt+"enter",_,a,r);de.target=x,de.relatedTarget=ut,R=de}qC(e,j,R,h,_)}}}function xC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ta=typeof Object.is=="function"?Object.is:xC;function Yl(e,t){if(Ta(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(!ln.call(t,i)||!Ta(e[i],t[i]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function RC(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===Sr){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=ty(RC(n))}}function wC(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 DC(e,r,i,o,l)}function DC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,c=0,v=e,y=null;e:for(;;){for(var h=null;v===t&&(n===0||v.nodeType===Sr)&&(o=i+n),v===a&&(r===0||v.nodeType===Sr)&&(l=i+r),v.nodeType===Sr&&(i+=v.nodeValue.length),(h=v.firstChild)!==null;)y=v,v=h;for(;;){if(v===e)break e;if(y===t&&++u===n&&(o=i),y===a&&++c===r&&(l=i),(h=v.nextSibling)!==null)break;v=y,y=v.parentNode}v=h}return o===-1||l===-1?null:{start:o,end:l}}function _C(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 c=ny(e,o),v=ny(e,l);if(c&&v){if(r.rangeCount===1&&r.anchorNode===c.node&&r.anchorOffset===c.offset&&r.focusNode===v.node&&r.focusOffset===v.offset)return;var y=n.createRange();y.setStart(c.node,c.offset),r.removeAllRanges(),o>l?(r.addRange(y),r.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),r.addRange(y))}}}function ay(e){return e&&e.nodeType===Sr}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 MC(e){return e&&e.ownerDocument&&ry(e.ownerDocument.documentElement,e)}function LC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function iy(){for(var e=window,t=yr();t instanceof e.HTMLIFrameElement;){if(LC(t))e=t.contentWindow;else return t;t=yr(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)?AC(e):null}}function kC(e){var t=iy(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&MC(n)){a!==null&&Ed(n)&&NC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===la&&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 AC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=wC(e),t||{start:0,end:0}}function NC(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)):_C(e,t)}var jC=on&&"documentMode"in document&&document.documentMode<=11;function UC(){et("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Do=null,Cd=null,Il=null,xd=!1;function zC(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 HC(e){return e.window===e?e.document:e.nodeType===Tr?e:e.ownerDocument}function oy(e,t,n){var a=HC(n);if(!(xd||Do==null||Do!==yr(a))){var r=zC(Do);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=Do}}}}function VC(e,t,n,a,r,i,o){var l=n?ko(n):window;switch(t){case"focusin":(Qh(l)||l.contentEditable==="true")&&(Do=l,Cd=n,Il=null);break;case"focusout":Do=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(jC)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 _o={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},Rd={},ly={};on&&(ly=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function Es(e){if(Rd[e])return Rd[e];if(!_o[e])return e;var t=_o[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 Kr(e,t){dy.set(e,t),et(t,[e])}function FC(){for(var e=0;e<vy.length;e++){var t=vy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);Kr(n,"on"+a)}Kr(uy,"onAnimationEnd"),Kr(sy,"onAnimationIteration"),Kr(cy,"onAnimationStart"),Kr("dblclick","onDoubleClick"),Kr("focusin","onFocus"),Kr("focusout","onBlur"),Kr(fy,"onTransitionEnd")}function PC(e,t,n,a,r,i,o){var l=dy.get(t);if(l!==void 0){var u=hd,c=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=BE;break;case"focusin":c="focus",u=bd;break;case"focusout":c="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=Vh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=_E;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=IE;break;case uy:case sy:case cy:u=OE;break;case fy:u=qE;break;case"scroll":u=RE;break;case"wheel":u=XE;break;case"copy":case"cut":case"paste":u=AE;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 y=!v&&t==="scroll",h=IC(n,l,a.type,v,y);if(h.length>0){var _=new u(l,c,null,a,r);e.push({event:_,listeners:h})}}}}FC(),EC(),sC(),UC(),ZE();function BC(e,t,n,a,r,i,o){PC(e,t,n,a,r,i);var l=(i&H0)===0;l&&(CC(e,t,n,a,r),TC(e,t,n,a,r),VC(e,t,n,a,r),oC(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,Q0(a,t,void 0,e),e.currentTarget=null}function $C(e,t,n){var a;if(n)for(var r=t.length-1;r>=0;r--){var i=t[r],o=i.instance,l=i.currentTarget,u=i.listener;if(o!==a&&e.isPropagationStopped())return;py(e,u,l),a=o}else for(var c=0;c<t.length;c++){var v=t[c],y=v.instance,h=v.currentTarget,_=v.listener;if(y!==a&&e.isPropagationStopped())return;py(e,_,h),a=y}}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;$C(i,o,n)}K0()}function YC(e,t,n,a,r){var i=Sf(n),o=[];BC(o,e,a,n,i,t),my(o,t)}function Jt(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=S1(t),r=GC(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,at.forEach(function(n){n!=="selectionchange"&&(wd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===Tr?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function hy(e,t,n,a,r){var i=mE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?TE(e,t,i,o):SE(e,t,i):o!==void 0?EE(e,t,i,o):bE(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===q||u===U){var c=l.stateNode.containerInfo;if(yy(c,o))break;if(u===U)for(var v=l.return;v!==null;){var y=v.tag;if(y===q||y===U){var h=v.stateNode.containerInfo;if(yy(h,o))return}v=v.return}for(;c!==null;){var _=Vi(c);if(_===null)return;var L=_.tag;if(L===ee||L===Fe){l=i=_;continue e}c=c.parentNode}}l=l.return}}}Km(function(){return YC(e,t,n,i)})}function Gl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function IC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],c=e,v=null;c!==null;){var y=c,h=y.stateNode,_=y.tag;if(_===ee&&h!==null&&(v=h,l!==null)){var L=Sl(c,l);L!=null&&u.push(Gl(c,L,v))}if(r)break;c=c.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===ee&&o!==null){var u=o,c=Sl(r,n);c!=null&&a.unshift(Gl(r,c,u));var v=Sl(r,t);v!=null&&a.push(Gl(r,v,u))}r=r.return}return a}function Mo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==ee);return e||null}function WC(e,t){for(var n=e,a=t,r=0,i=n;i;i=Mo(i))r++;for(var o=0,l=a;l;l=Mo(l))o++;for(;r-o>0;)n=Mo(n),r--;for(;o-r>0;)a=Mo(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=Mo(n),a=Mo(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,c=u.alternate,v=u.stateNode,y=u.tag;if(c!==null&&c===a)break;if(y===ee&&v!==null){var h=v;if(r){var _=Sl(l,i);_!=null&&o.unshift(Gl(l,_,h))}else if(!r){var L=Sl(l,i);L!=null&&o.push(Gl(l,L,h))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function qC(e,t,n,a,r){var i=a&&r?WC(a,r):null;a!==null&&gy(e,t,a,i,!1),r!==null&&n!==null&&gy(e,n,r,i,!0)}function GC(e,t){return e+"__bubble"}var ua=!1,Xl="dangerouslySetInnerHTML",Rs="suppressContentEditableWarning",Zr="suppressHydrationWarning",by="autoFocus",zi="children",Hi="style",ws="__html",Md,Ds,Ql,Sy,_s,Ty,Ey;Md={dialog:!0,webview:!0},Ds=function(e,t){O0(e,t),k0(e,t),z0(e,t,{registrationNameDependencies:Vt,possibleRegistrationNames:bt})},Ty=on&&!document.documentMode,Ql=function(e,t,n){if(!ua){var a=Ms(n),r=Ms(t);r!==a&&(ua=!0,d("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},Sy=function(e){if(!ua){ua=!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===br?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var XC=/\r\n?/g,QC=/\u0000|\uFFFD/g;function Ms(e){Ve(e);var t=typeof e=="string"?e:""+e;return t.replace(XC,`
|
|
`).replace(QC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(ua||(ua=!0,d('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&W))throw new Error("Text content does not match server-rendered HTML.")}function Cy(e){return e.nodeType===Tr?e:e.ownerDocument}function KC(){}function Os(e){e.onclick=KC}function ZC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Hi)o&&Object.freeze(o),Vm(t,o);else if(i===Xl){var l=o?o[ws]:void 0;l!=null&&Nm(t,l)}else if(i===zi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Ju(t,o)}else typeof o=="number"&&Ju(t,""+o);else i===Rs||i===Zr||i===by||(Vt.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Jt("scroll",t)):o!=null&&g(t,i,o,r))}}function JC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Hi?Vm(e,o):i===Xl?Nm(e,o):i===zi?Ju(e,o):g(e,i,o,a)}}function ex(e,t,n,a){var r,i=Cy(n),o,l=a;if(l===br&&(l=vf(e)),l===br){if(r=xi(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 c=u.firstChild;o=u.removeChild(c)}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===br&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!ln.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 tx(e,t){return Cy(t).createTextNode(e)}function nx(e,t,n,a){var r=xi(t,n);Ds(t,n);var i;switch(t){case"dialog":Jt("cancel",e),Jt("close",e),i=n;break;case"iframe":case"object":case"embed":Jt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Wl.length;o++)Jt(Wl[o],e);i=n;break;case"source":Jt("error",e),i=n;break;case"img":case"image":case"link":Jt("error",e),Jt("load",e),i=n;break;case"details":Jt("toggle",e),i=n;break;case"input":Qu(e,n),i=vl(e,n),Jt("invalid",e);break;case"option":jt(e,n),i=n;break;case"select":hl(e,n),i=ml(e,n),Jt("invalid",e);break;case"textarea":Om(e,n),i=ff(e,n),Jt("invalid",e);break;default:i=n}switch(gf(t,i),ZC(t,e,a,i,r),t){case"input":Ei(e),M(e,n,!1);break;case"textarea":Ei(e),Am(e);break;case"option":qt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Os(e);break}}function ax(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"&&Os(e);break}gf(t,l);var u,c,v=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Hi){var y=o[u];for(c in y)y.hasOwnProperty(c)&&(v||(v={}),v[c]="")}else u===Xl||u===zi||u===Rs||u===Zr||u===by||(Vt.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var h=l[u],_=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||h===_||h==null&&_==null))if(u===Hi)if(h&&Object.freeze(h),_){for(c in _)_.hasOwnProperty(c)&&(!h||!h.hasOwnProperty(c))&&(v||(v={}),v[c]="");for(c in h)h.hasOwnProperty(c)&&_[c]!==h[c]&&(v||(v={}),v[c]=h[c])}else v||(i||(i=[]),i.push(u,v)),v=h;else if(u===Xl){var L=h?h[ws]:void 0,N=_?_[ws]:void 0;L!=null&&N!==L&&(i=i||[]).push(u,L)}else u===zi?(typeof h=="string"||typeof h=="number")&&(i=i||[]).push(u,""+h):u===Rs||u===Zr||(Vt.hasOwnProperty(u)?(h!=null&&(typeof h!="function"&&_s(u,h),u==="onScroll"&&Jt("scroll",e)),!i&&_!==h&&(i=[])):(i=i||[]).push(u,h))}return v&&(C0(v,l[Hi]),(i=i||[]).push(Hi,v)),i}function rx(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=xi(n,a),o=xi(n,r);switch(JC(e,t,i,o),n){case"input":m(e,r);break;case"textarea":km(e,r);break;case"select":Ku(e,r);break}}function ix(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function ox(e,t,n,a,r,i,o){var l,u;switch(l=xi(t,n),Ds(t,n),t){case"dialog":Jt("cancel",e),Jt("close",e);break;case"iframe":case"object":case"embed":Jt("load",e);break;case"video":case"audio":for(var c=0;c<Wl.length;c++)Jt(Wl[c],e);break;case"source":Jt("error",e);break;case"img":case"image":case"link":Jt("error",e),Jt("load",e);break;case"details":Jt("toggle",e);break;case"input":Qu(e,n),Jt("invalid",e);break;case"option":jt(e,n);break;case"select":hl(e,n),Jt("invalid",e);break;case"textarea":Om(e,n),Jt("invalid",e);break}gf(t,n);{u=new Set;for(var v=e.attributes,y=0;y<v.length;y++){var h=v[y].name.toLowerCase();switch(h){case"value":break;case"checked":break;case"selected":break;default:u.add(v[y].name)}}}var _=null;for(var L in n)if(n.hasOwnProperty(L)){var N=n[L];if(L===zi)typeof N=="string"?e.textContent!==N&&(n[Zr]!==!0&&Ls(e.textContent,N,i,o),_=[zi,N]):typeof N=="number"&&e.textContent!==""+N&&(n[Zr]!==!0&&Ls(e.textContent,N,i,o),_=[zi,""+N]);else if(Vt.hasOwnProperty(L))N!=null&&(typeof N!="function"&&_s(L,N),L==="onScroll"&&Jt("scroll",e));else if(o&&typeof l=="boolean"){var te=void 0,Me=Wt(L);if(n[Zr]!==!0){if(!(L===Rs||L===Zr||L==="value"||L==="checked"||L==="selected")){if(L===Xl){var xe=e.innerHTML,yt=N?N[ws]:void 0;if(yt!=null){var ut=Ey(e,yt);ut!==xe&&Ql(L,xe,ut)}}else if(L===Hi){if(u.delete(L),Ty){var x=T0(N);te=e.getAttribute("style"),x!==te&&Ql(L,te,x)}}else if(l)u.delete(L.toLowerCase()),te=Fr(e,L,N),N!==te&&Ql(L,te,N);else if(!Kt(L,Me,l)&&!wn(L,N,Me,l)){var j=!1;if(Me!==null)u.delete(Me.attributeName),te=Vr(e,L,N,Me);else{var R=a;if(R===br&&(R=vf(t)),R===br)u.delete(L.toLowerCase());else{var Y=ix(L);Y!==null&&Y!==L&&(j=!0,u.delete(Y)),u.delete(L)}te=Fr(e,L,N)}var de=ft;!de&&N!==te&&!j&&Ql(L,te,N)}}}}}switch(o&&u.size>0&&n[Zr]!==!0&&Sy(u),t){case"input":Ei(e),M(e,n,!0);break;case"textarea":Ei(e),Am(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Os(e);break}return _}function lx(e,t,n){var a=e.nodeValue!==t;return a}function Ld(e,t){{if(ua)return;ua=!0,d("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Od(e,t){{if(ua)return;ua=!0,d('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function kd(e,t,n){{if(ua)return;ua=!0,d("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||ua)return;ua=!0,d('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function ux(e,t,n){switch(t){case"input":A(e,n);return;case"textarea":n0(e,n);return;case"select":cf(e,n);return}}var Kl=function(){},Zl=function(){};{var sx=["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"],cx=xy.concat(["button"]),fx=["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=ze({},e||Ry),a={tag:t};return xy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),cx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),sx.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 dx=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 fx.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},vx=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=dx(e,r)?null:a,o=i?null:vx(e,n),l=i||o;if(l){var u=l.tag,c=!!i+"|"+e+"|"+u;if(!wy[c]){wy[c]=!0;var v=e,y="";if(e==="#text"?/\S/.test(t)?v="Text nodes":(v="Whitespace text nodes",y=" Make sure you don't have any extra whitespace between tags on each line of your source code."):v="<"+e+">",i){var h="";u==="table"&&e==="tr"&&(h+=" 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,y,h)}else d("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",v,u)}}}}var ks="suppressHydrationWarning",As="$",Ns="/$",Jl="$?",eu="$!",px="style",Nd=null,jd=null;function mx(e){var t,n,a=e.nodeType;switch(a){case Tr:case mf:{t=a===Tr?"#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 hx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Zl(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function h_(e){return e}function yx(e){Nd=pE(),jd=OC();var t=null;return Nh(!1),t}function gx(e){kC(jd),Nh(Nd),Nd=null,jd=null}function bx(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 c=ex(e,t,n,i);return au(r,c),$d(c,t),c}function Sx(e,t){e.appendChild(t)}function Tx(e,t,n,a,r){switch(nx(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Ex(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 ax(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 Cx(e,t,n,a){{var r=n;Kl(null,e,r.ancestorInfo)}var i=tx(e,t);return au(a,i),i}function xx(){var e=window.event;return e===void 0?Rr:jh(e.type)}var zd=typeof setTimeout=="function"?setTimeout:void 0,Rx=typeof clearTimeout=="function"?clearTimeout:void 0,Hd=-1,Dy=typeof Promise=="function"?Promise:void 0,wx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dy<"u"?function(e){return Dy.resolve(null).then(e).catch(Dx)}:zd;function Dx(e){setTimeout(function(){throw e})}function _x(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 Mx(e,t,n,a,r,i){rx(e,t,n,a,r),$d(e,r)}function _y(e){Ju(e,"")}function Lx(e,t,n){e.nodeValue=n}function Ox(e,t){e.appendChild(t)}function kx(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&&Os(n)}function Ax(e,t,n){e.insertBefore(t,n)}function Nx(e,t,n){e.nodeType===pn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function jx(e,t){e.removeChild(t)}function Ux(e,t){e.nodeType===pn?e.parentNode.removeChild(t):e.removeChild(t)}function Vd(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 zx(e,t){e.nodeType===pn?Vd(e.parentNode,t):e.nodeType===la&&Vd(e,t),Ul(e)}function Hx(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 Fx(e,t){e=e;var n=t[px],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Px(e,t){e.nodeValue=t}function Bx(e){e.nodeType===la?e.textContent="":e.nodeType===Tr&&e.documentElement&&e.removeChild(e.documentElement)}function $x(e,t,n){return e.nodeType!==la||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Yx(e,t){return t===""||e.nodeType!==Sr?null:e}function Ix(e){return e.nodeType!==pn?null:e}function My(e){return e.data===Jl}function Fd(e){return e.data===eu}function Wx(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 qx(e,t){e._reactRetry=t}function js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===la||t===Sr)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 Gx(e){return js(e.firstChild)}function Xx(e){return js(e.firstChild)}function Qx(e){return js(e.nextSibling)}function Kx(e,t,n,a,r,i,o){au(i,e),$d(e,n);var l;{var u=r;l=u.namespace}var c=(i.mode&mt)!==Le;return ox(e,t,n,l,a,c,o)}function Zx(e,t,n,a){return au(n,e),n.mode&mt,lx(e,t)}function Jx(e,t){au(t,e)}function e1(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 t1(e){Ul(e)}function n1(e){Ul(e)}function a1(e){return e!=="head"&&e!=="body"}function r1(e,t,n,a){var r=!0;Ls(t.nodeValue,n,a,r)}function i1(e,t,n,a,r,i){if(t[ks]!==!0){var o=!0;Ls(a.nodeValue,r,i,o)}}function o1(e,t){t.nodeType===la?Ld(e,t):t.nodeType===pn||Od(e,t)}function l1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===la?Ld(n,t):t.nodeType===pn||Od(n,t))}}function u1(e,t,n,a,r){(r||t[ks]!==!0)&&(a.nodeType===la?Ld(n,a):a.nodeType===pn||Od(n,a))}function s1(e,t,n){kd(e,t)}function c1(e,t){Ad(e,t)}function f1(e,t,n){{var a=e.parentNode;a!==null&&kd(a,t)}}function d1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function v1(e,t,n,a,r,i){(i||t[ks]!==!0)&&kd(n,a)}function p1(e,t,n,a,r){(r||t[ks]!==!0)&&Ad(n,a)}function m1(e){d("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function h1(e){ql(e)}var Lo=Math.random().toString(36).slice(2),Oo="__reactFiber$"+Lo,Pd="__reactProps$"+Lo,nu="__reactContainer$"+Lo,Bd="__reactEvents$"+Lo,y1="__reactListeners$"+Lo,g1="__reactHandles$"+Lo;function b1(e){delete e[Oo],delete e[Pd],delete e[Bd],delete e[y1],delete e[g1]}function au(e,t){t[Oo]=e}function Us(e,t){t[nu]=e}function Oy(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 Jr(e){var t=e[Oo]||e[nu];return t&&(t.tag===ee||t.tag===Fe||t.tag===_e||t.tag===q)?t:null}function ko(e){if(e.tag===ee||e.tag===Fe)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zs(e){return e[Pd]||null}function $d(e,t){e[Pd]=t}function S1(e){var t=e[Bd];return t===void 0&&(t=e[Bd]=new Set),t}var ky={},Ay=pe.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 Ba(e,t,n,a,r){{var i=Function.call.bind(ln);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(c){l=c}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 ky)&&(ky[l.message]=!0,Hs(r),d("Failed %s type: %s",n,l.message),Hs(null))}}}var Yd=[],Vs;Vs=[];var wr=-1;function ei(e){return{current:e}}function In(e,t){if(wr<0){d("Unexpected pop.");return}t!==Vs[wr]&&d("Unexpected Fiber popped."),e.current=Yd[wr],Yd[wr]=null,Vs[wr]=null,wr--}function Wn(e,t,n){wr++,Yd[wr]=e.current,Vs[wr]=n,e.current=t}var Id;Id={};var Ea={};Object.freeze(Ea);var Dr=ei(Ea),ir=ei(!1),Wd=Ea;function Ao(e,t,n){return n&&or(t)?Wd:Dr.current}function Ny(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function No(e,t){{var n=e.type,a=n.contextTypes;if(!a)return Ea;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=Ze(e)||"Unknown";Ba(a,i,"context",l)}return r&&Ny(e,t,i),i}}function Fs(){return ir.current}function or(e){{var t=e.childContextTypes;return t!=null}}function Ps(e){In(ir,e),In(Dr,e)}function qd(e){In(ir,e),In(Dr,e)}function jy(e,t,n){{if(Dr.current!==Ea)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Wn(Dr,t,e),Wn(ir,n,e)}}function Uy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Ze(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((Ze(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Ze(e)||"Unknown";Ba(r,o,"child context",u)}return ze({},n,o)}}function Bs(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Ea;return Wd=Dr.current,Wn(Dr,n,e),Wn(ir,ir.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,In(ir,e),In(Dr,e),Wn(Dr,r,e),Wn(ir,n,e)}else In(ir,e),Wn(ir,n,e)}}function T1(e){{if(!aT(e)||e.tag!==ae)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 q:return t.stateNode.context;case ae:{var n=t.type;if(or(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 ti=0,$s=1,_r=null,Gd=!1,Xd=!1;function Hy(e){_r===null?_r=[e]:_r.push(e)}function E1(e){Gd=!0,Hy(e)}function Vy(){Gd&&ni()}function ni(){if(!Xd&&_r!==null){Xd=!0;var e=0,t=Pa();try{var n=!0,a=_r;for(kn(ba);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}_r=null,Gd=!1}catch(i){throw _r!==null&&(_r=_r.slice(e+1)),sh(is,ni),i}finally{kn(t),Xd=!1}}return null}var jo=[],Uo=0,Ys=null,Is=0,Ma=[],La=0,Fi=null,Mr=1,Lr="";function C1(e){return Bi(),(e.flags&th)!==je}function x1(e){return Bi(),Is}function R1(){var e=Lr,t=Mr,n=t&~w1(t);return n.toString(32)+e}function Pi(e,t){Bi(),jo[Uo++]=Is,jo[Uo++]=Ys,Ys=e,Is=t}function Fy(e,t,n){Bi(),Ma[La++]=Mr,Ma[La++]=Lr,Ma[La++]=Fi,Fi=e;var a=Mr,r=Lr,i=Ws(a)-1,o=a&~(1<<i),l=n+1,u=Ws(t)+i;if(u>30){var c=i-i%5,v=(1<<c)-1,y=(o&v).toString(32),h=o>>c,_=i-c,L=Ws(t)+_,N=l<<_,te=N|h,Me=y+r;Mr=1<<L|te,Lr=Me}else{var xe=l<<i,yt=xe|o,ut=r;Mr=1<<u|yt,Lr=ut}}function Qd(e){Bi();var t=e.return;if(t!==null){var n=1,a=0;Pi(e,n),Fy(e,n,a)}}function Ws(e){return 32-mh(e)}function w1(e){return 1<<Ws(e)-1}function Kd(e){for(;e===Ys;)Ys=jo[--Uo],jo[Uo]=null,Is=jo[--Uo],jo[Uo]=null;for(;e===Fi;)Fi=Ma[--La],Ma[La]=null,Lr=Ma[--La],Ma[La]=null,Mr=Ma[--La],Ma[La]=null}function D1(){return Bi(),Fi!==null?{id:Mr,overflow:Lr}:null}function _1(e,t){Bi(),Ma[La++]=Mr,Ma[La++]=Lr,Ma[La++]=Fi,Mr=t.id,Lr=t.overflow,Fi=e}function Bi(){Nn()||d("Expected to be hydrating. This is a bug in React. Please file an issue.")}var An=null,Oa=null,$a=!1,$i=!1,ai=null;function M1(){$a&&d("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Py(){$i=!0}function L1(){return $i}function O1(e){var t=e.stateNode.containerInfo;return Oa=Xx(t),An=e,$a=!0,ai=null,$i=!1,!0}function k1(e,t,n){return Oa=Qx(t),An=e,$a=!0,ai=null,$i=!1,n!==null&&_1(e,n),!0}function By(e,t){switch(e.tag){case q:{o1(e.stateNode.containerInfo,t);break}case ee:{var n=(e.mode&mt)!==Le;u1(e.type,e.memoizedProps,e.stateNode,t,n);break}case _e:{var a=e.memoizedState;a.dehydrated!==null&&l1(a.dehydrated,t);break}}}function $y(e,t){By(e,t);var n=UD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=Ri):a.push(n)}function Zd(e,t){{if($i)return;switch(e.tag){case q:{var n=e.stateNode.containerInfo;switch(t.tag){case ee:var a=t.type;t.pendingProps,s1(n,a);break;case Fe:var r=t.pendingProps;c1(n,r);break}break}case ee:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case ee:{var u=t.type,c=t.pendingProps,v=(e.mode&mt)!==Le;v1(i,o,l,u,c,v);break}case Fe:{var y=t.pendingProps,h=(e.mode&mt)!==Le;p1(i,o,l,y,h);break}}break}case _e:{var _=e.memoizedState,L=_.dehydrated;if(L!==null)switch(t.tag){case ee:var N=t.type;t.pendingProps,f1(L,N);break;case Fe:var te=t.pendingProps;d1(L,te);break}break}default:return}}}function Yy(e,t){t.flags=t.flags&-4097|_n,Zd(e,t)}function Iy(e,t){switch(e.tag){case ee:{var n=e.type;e.pendingProps;var a=$x(t,n);return a!==null?(e.stateNode=a,An=e,Oa=Gx(a),!0):!1}case Fe:{var r=e.pendingProps,i=Yx(t,r);return i!==null?(e.stateNode=i,An=e,Oa=null,!0):!1}case _e:{var o=Ix(t);if(o!==null){var l={dehydrated:o,treeContext:D1(),retryLane:_a};e.memoizedState=l;var u=zD(o);return u.return=e,e.child=u,An=e,Oa=null,!0}return!1}default:return!1}}function Jd(e){return(e.mode&mt)!==Le&&(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($a){var t=Oa;if(!t){Jd(e)&&(Zd(An,e),ev()),Yy(An,e),$a=!1,An=e;return}var n=t;if(!Iy(e,t)){Jd(e)&&(Zd(An,e),ev()),t=tu(n);var a=An;if(!t||!Iy(e,t)){Yy(An,e),$a=!1,An=e;return}$y(a,n)}}}function A1(e,t,n){var a=e.stateNode,r=!$i,i=Kx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function N1(e){var t=e.stateNode,n=e.memoizedProps,a=Zx(t,n,e);if(a){var r=An;if(r!==null)switch(r.tag){case q:{var i=r.stateNode.containerInfo,o=(r.mode&mt)!==Le;r1(i,t,n,o);break}case ee:{var l=r.type,u=r.memoizedProps,c=r.stateNode,v=(r.mode&mt)!==Le;i1(l,u,c,t,n,v);break}}}return a}function j1(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Jx(n,e)}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.");return e1(n)}function Wy(e){for(var t=e.return;t!==null&&t.tag!==ee&&t.tag!==q&&t.tag!==_e;)t=t.return;An=t}function qs(e){if(e!==An)return!1;if(!$a)return Wy(e),$a=!0,!1;if(e.tag!==q&&(e.tag!==ee||a1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Oa;if(t)if(Jd(e))qy(e),ev();else for(;t;)$y(e,t),t=tu(t)}return Wy(e),e.tag===_e?Oa=U1(e):Oa=An?tu(e.stateNode):null,!0}function z1(){return $a&&Oa!==null}function qy(e){for(var t=Oa;t;)By(e,t),t=tu(t)}function zo(){An=null,Oa=null,$a=!1,$i=!1}function Gy(){ai!==null&&(Pb(ai),ai=null)}function Nn(){return $a}function nv(e){ai===null?ai=[e]:ai.push(e)}var H1=pe.ReactCurrentBatchConfig,V1=null;function F1(){return H1.transition}var Ya={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var P1=function(e){for(var t=null,n=e;n!==null;)n.mode&un&&(t=n),n=n.return;return t},Yi=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},iu=[],ou=[],lu=[],uu=[],su=[],cu=[],Ii=new Set;Ya.recordUnsafeLifecycleWarnings=function(e,t){Ii.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&iu.push(e),e.mode&un&&typeof t.UNSAFE_componentWillMount=="function"&&ou.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&un&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&uu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&su.push(e),e.mode&un&&typeof t.UNSAFE_componentWillUpdate=="function"&&cu.push(e))},Ya.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;iu.length>0&&(iu.forEach(function(h){e.add(Ze(h)||"Component"),Ii.add(h.type)}),iu=[]);var t=new Set;ou.length>0&&(ou.forEach(function(h){t.add(Ze(h)||"Component"),Ii.add(h.type)}),ou=[]);var n=new Set;lu.length>0&&(lu.forEach(function(h){n.add(Ze(h)||"Component"),Ii.add(h.type)}),lu=[]);var a=new Set;uu.length>0&&(uu.forEach(function(h){a.add(Ze(h)||"Component"),Ii.add(h.type)}),uu=[]);var r=new Set;su.length>0&&(su.forEach(function(h){r.add(Ze(h)||"Component"),Ii.add(h.type)}),su=[]);var i=new Set;if(cu.length>0&&(cu.forEach(function(h){i.add(Ze(h)||"Component"),Ii.add(h.type)}),cu=[]),t.size>0){var o=Yi(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=Yi(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=Yi(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 c=Yi(e);Oe(`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`,c)}if(n.size>0){var v=Yi(n);Oe(`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 y=Yi(r);Oe(`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`,y)}};var Gs=new Map,Xy=new Set;Ya.recordLegacyContextWarning=function(e,t){var n=P1(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))}},Ya.flushLegacyContextWarning=function(){Gs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Ze(i)||"Component"),Xy.add(i.type)});var r=Yi(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{Dn()}}})},Ya.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=Ze(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 B1(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&un||Ke)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==ae)&&!(typeof n.type=="function"&&!B1(n.type))&&n._owner){var r=Ze(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!==ae)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;rt(a,"ref");var c=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c)return t.ref;var v=function(y){var h=u.refs;y===null?delete h[c]:h[c]=y};return v._stringRef=c,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=Ze(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,j){if(e){var R=x.deletions;R===null?(x.deletions=[j],x.flags|=Ri):R.push(j)}}function n(x,j){if(!e)return null;for(var R=j;R!==null;)t(x,R),R=R.sibling;return null}function a(x,j){for(var R=new Map,Y=j;Y!==null;)Y.key!==null?R.set(Y.key,Y):R.set(Y.index,Y),Y=Y.sibling;return R}function r(x,j){var R=eo(x,j);return R.index=0,R.sibling=null,R}function i(x,j,R){if(x.index=R,!e)return x.flags|=th,j;var Y=x.alternate;if(Y!==null){var de=Y.index;return de<j?(x.flags|=_n,j):de}else return x.flags|=_n,j}function o(x){return e&&x.alternate===null&&(x.flags|=_n),x}function l(x,j,R,Y){if(j===null||j.tag!==Fe){var de=nm(R,x.mode,Y);return de.return=x,de}else{var ue=r(j,R);return ue.return=x,ue}}function u(x,j,R,Y){var de=R.type;if(de===C)return v(x,j,R.props.children,Y,R.key);if(j!==null&&(j.elementType===de||aS(j,R)||typeof de=="object"&&de!==null&&de.$$typeof===re&&Ky(de)===j.type)){var ue=r(j,R.props);return ue.ref=fu(x,j,R),ue.return=x,ue._debugSource=R._source,ue._debugOwner=R._owner,ue}var He=tm(R,x.mode,Y);return He.ref=fu(x,j,R),He.return=x,He}function c(x,j,R,Y){if(j===null||j.tag!==U||j.stateNode.containerInfo!==R.containerInfo||j.stateNode.implementation!==R.implementation){var de=am(R,x.mode,Y);return de.return=x,de}else{var ue=r(j,R.children||[]);return ue.return=x,ue}}function v(x,j,R,Y,de){if(j===null||j.tag!==$t){var ue=pi(R,x.mode,Y,de);return ue.return=x,ue}else{var He=r(j,R);return He.return=x,He}}function y(x,j,R){if(typeof j=="string"&&j!==""||typeof j=="number"){var Y=nm(""+j,x.mode,R);return Y.return=x,Y}if(typeof j=="object"&&j!==null){switch(j.$$typeof){case H:{var de=tm(j,x.mode,R);return de.ref=fu(x,null,j),de.return=x,de}case w:{var ue=am(j,x.mode,R);return ue.return=x,ue}case re:{var He=j._payload,Xe=j._init;return y(x,Xe(He),R)}}if(lt(j)||qe(j)){var Ht=pi(j,x.mode,R,null);return Ht.return=x,Ht}Xs(x,j)}return typeof j=="function"&&Qs(x),null}function h(x,j,R,Y){var de=j!==null?j.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return de!==null?null:l(x,j,""+R,Y);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case H:return R.key===de?u(x,j,R,Y):null;case w:return R.key===de?c(x,j,R,Y):null;case re:{var ue=R._payload,He=R._init;return h(x,j,He(ue),Y)}}if(lt(R)||qe(R))return de!==null?null:v(x,j,R,Y,null);Xs(x,R)}return typeof R=="function"&&Qs(x),null}function _(x,j,R,Y,de){if(typeof Y=="string"&&Y!==""||typeof Y=="number"){var ue=x.get(R)||null;return l(j,ue,""+Y,de)}if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case H:{var He=x.get(Y.key===null?R:Y.key)||null;return u(j,He,Y,de)}case w:{var Xe=x.get(Y.key===null?R:Y.key)||null;return c(j,Xe,Y,de)}case re:var Ht=Y._payload,Tt=Y._init;return _(x,j,R,Tt(Ht),de)}if(lt(Y)||qe(Y)){var fn=x.get(R)||null;return v(j,fn,Y,de,null)}Xs(j,Y)}return typeof Y=="function"&&Qs(j),null}function L(x,j,R){{if(typeof x!="object"||x===null)return j;switch(x.$$typeof){case H:case w:Qy(x,R);var Y=x.key;if(typeof Y!="string")break;if(j===null){j=new Set,j.add(Y);break}if(!j.has(Y)){j.add(Y);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.",Y);break;case re:var de=x._payload,ue=x._init;L(ue(de),j,R);break}}return j}function N(x,j,R,Y){for(var de=null,ue=0;ue<R.length;ue++){var He=R[ue];de=L(He,de,x)}for(var Xe=null,Ht=null,Tt=j,fn=0,Et=0,sn=null;Tt!==null&&Et<R.length;Et++){Tt.index>Et?(sn=Tt,Tt=null):sn=Tt.sibling;var Gn=h(x,Tt,R[Et],Y);if(Gn===null){Tt===null&&(Tt=sn);break}e&&Tt&&Gn.alternate===null&&t(x,Tt),fn=i(Gn,fn,Et),Ht===null?Xe=Gn:Ht.sibling=Gn,Ht=Gn,Tt=sn}if(Et===R.length){if(n(x,Tt),Nn()){var Pn=Et;Pi(x,Pn)}return Xe}if(Tt===null){for(;Et<R.length;Et++){var xa=y(x,R[Et],Y);xa!==null&&(fn=i(xa,fn,Et),Ht===null?Xe=xa:Ht.sibling=xa,Ht=xa)}if(Nn()){var na=Et;Pi(x,na)}return Xe}for(var aa=a(x,Tt);Et<R.length;Et++){var Xn=_(aa,x,Et,R[Et],Y);Xn!==null&&(e&&Xn.alternate!==null&&aa.delete(Xn.key===null?Et:Xn.key),fn=i(Xn,fn,Et),Ht===null?Xe=Xn:Ht.sibling=Xn,Ht=Xn)}if(e&&aa.forEach(function(nl){return t(x,nl)}),Nn()){var zr=Et;Pi(x,zr)}return Xe}function te(x,j,R,Y){var de=qe(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 ue=de.call(R);if(ue)for(var He=null,Xe=ue.next();!Xe.done;Xe=ue.next()){var Ht=Xe.value;He=L(Ht,He,x)}}var Tt=de.call(R);if(Tt==null)throw new Error("An iterable object provided no iterator.");for(var fn=null,Et=null,sn=j,Gn=0,Pn=0,xa=null,na=Tt.next();sn!==null&&!na.done;Pn++,na=Tt.next()){sn.index>Pn?(xa=sn,sn=null):xa=sn.sibling;var aa=h(x,sn,na.value,Y);if(aa===null){sn===null&&(sn=xa);break}e&&sn&&aa.alternate===null&&t(x,sn),Gn=i(aa,Gn,Pn),Et===null?fn=aa:Et.sibling=aa,Et=aa,sn=xa}if(na.done){if(n(x,sn),Nn()){var Xn=Pn;Pi(x,Xn)}return fn}if(sn===null){for(;!na.done;Pn++,na=Tt.next()){var zr=y(x,na.value,Y);zr!==null&&(Gn=i(zr,Gn,Pn),Et===null?fn=zr:Et.sibling=zr,Et=zr)}if(Nn()){var nl=Pn;Pi(x,nl)}return fn}for(var $u=a(x,sn);!na.done;Pn++,na=Tt.next()){var pr=_($u,x,Pn,na.value,Y);pr!==null&&(e&&pr.alternate!==null&&$u.delete(pr.key===null?Pn:pr.key),Gn=i(pr,Gn,Pn),Et===null?fn=pr:Et.sibling=pr,Et=pr)}if(e&&$u.forEach(function(p_){return t(x,p_)}),Nn()){var v_=Pn;Pi(x,v_)}return fn}function Me(x,j,R,Y){if(j!==null&&j.tag===Fe){n(x,j.sibling);var de=r(j,R);return de.return=x,de}n(x,j);var ue=nm(R,x.mode,Y);return ue.return=x,ue}function xe(x,j,R,Y){for(var de=R.key,ue=j;ue!==null;){if(ue.key===de){var He=R.type;if(He===C){if(ue.tag===$t){n(x,ue.sibling);var Xe=r(ue,R.props.children);return Xe.return=x,Xe._debugSource=R._source,Xe._debugOwner=R._owner,Xe}}else if(ue.elementType===He||aS(ue,R)||typeof He=="object"&&He!==null&&He.$$typeof===re&&Ky(He)===ue.type){n(x,ue.sibling);var Ht=r(ue,R.props);return Ht.ref=fu(x,ue,R),Ht.return=x,Ht._debugSource=R._source,Ht._debugOwner=R._owner,Ht}n(x,ue);break}else t(x,ue);ue=ue.sibling}if(R.type===C){var Tt=pi(R.props.children,x.mode,Y,R.key);return Tt.return=x,Tt}else{var fn=tm(R,x.mode,Y);return fn.ref=fu(x,j,R),fn.return=x,fn}}function yt(x,j,R,Y){for(var de=R.key,ue=j;ue!==null;){if(ue.key===de)if(ue.tag===U&&ue.stateNode.containerInfo===R.containerInfo&&ue.stateNode.implementation===R.implementation){n(x,ue.sibling);var He=r(ue,R.children||[]);return He.return=x,He}else{n(x,ue);break}else t(x,ue);ue=ue.sibling}var Xe=am(R,x.mode,Y);return Xe.return=x,Xe}function ut(x,j,R,Y){var de=typeof R=="object"&&R!==null&&R.type===C&&R.key===null;if(de&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case H:return o(xe(x,j,R,Y));case w:return o(yt(x,j,R,Y));case re:var ue=R._payload,He=R._init;return ut(x,j,He(ue),Y)}if(lt(R))return N(x,j,R,Y);if(qe(R))return te(x,j,R,Y);Xs(x,R)}return typeof R=="string"&&R!==""||typeof R=="number"?o(Me(x,j,""+R,Y)):(typeof R=="function"&&Qs(x),n(x,j))}return ut}var Ho=Zy(!0),Jy=Zy(!1);function $1(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var n=t.child,a=eo(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=eo(n,n.pendingProps),a.return=t;a.sibling=null}}function Y1(e,t){for(var n=e.child;n!==null;)OD(n,t),n=n.sibling}var uv=ei(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){Wn(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;In(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(Co(a.childLanes,t)?r!==null&&!Co(r.childLanes,t)&&(r.childLanes=it(r.childLanes,t)):(a.childLanes=it(a.childLanes,t),r!==null&&(r.childLanes=it(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 I1(e,t,n){W1(e,t,n)}function W1(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===ae){var l=Ml(n),u=Or(Xt,l);u.tag=tc;var c=a.updateQueue;if(c!==null){var v=c.shared,y=v.pending;y===null?u.next=u:(u.next=y.next,y.next=u),v.pending=u}}a.lanes=it(a.lanes,n);var h=a.alternate;h!==null&&(h.lanes=it(h.lanes,n)),dv(a.return,n,e),i.lanes=it(i.lanes,n);break}o=o.next}}else if(a.tag===Qe)r=a.type===e.type?null:a.child;else if(a.tag===le){var _=a.return;if(_===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");_.lanes=it(_.lanes,n);var L=_.alternate;L!==null&&(L.lanes=it(L.lanes,n)),dv(_,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 N=r.sibling;if(N!==null){N.return=r.return,r=N;break}r=r.return}a=r}}function Fo(e,t){Ks=e,Vo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(ga(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:$,firstContext:n}}else Vo=Vo.next=n}return t}var Wi=null;function vv(e){Wi===null?Wi=[e]:Wi.push(e)}function q1(){if(Wi!==null){for(var e=0;e<Wi.length;e++){var t=Wi[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}}Wi=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 G1(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 X1(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 sa(e,t){return ec(e,t)}var Q1=ec;function ec(e,t){e.lanes=it(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=it(n.lanes,t)),n===null&&(e.flags&(_n|_i))!==je&&Jb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=it(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=it(n.childLanes,t):(r.flags&(_n|_i))!==je&&Jb(e),a=r,r=r.return;if(a.tag===q){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:$},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 Or(e,t){var n={eventTime:e,lane:t,tag:rg,payload:null,callback:null,next:null};return n}function ri(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),Gw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Q1(e,n)}else return X1(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=it(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 c={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=c:(o.next=c,o=c),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 K1(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&un){Ln(!0);try{o.call(i,a,r)}finally{Ln(!1)}}tg()}return l}return o}case pv:e.flags=e.flags&-65537|Mt;case rg:{var u=n.payload,c;if(typeof u=="function"){eg(),c=u.call(i,a,r);{if(e.mode&un){Ln(!0);try{u.call(i,a,r)}finally{Ln(!1)}}tg()}}else c=u;return c==null?a:ze({},a,c)}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,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var v=e.alternate;if(v!==null){var y=v.updateQueue,h=y.lastBaseUpdate;h!==o&&(h===null?y.firstBaseUpdate=c:h.next=c,y.lastBaseUpdate=u)}}if(i!==null){var _=r.baseState,L=$,N=null,te=null,Me=null,xe=i;do{var yt=xe.lane,ut=xe.eventTime;if(Co(a,yt)){if(Me!==null){var j={eventTime:ut,lane:On,tag:xe.tag,payload:xe.payload,callback:xe.callback,next:null};Me=Me.next=j}_=K1(e,r,xe,_,t,n);var R=xe.callback;if(R!==null&&xe.lane!==On){e.flags|=eh;var Y=r.effects;Y===null?r.effects=[xe]:Y.push(xe)}}else{var x={eventTime:ut,lane:yt,tag:xe.tag,payload:xe.payload,callback:xe.callback,next:null};Me===null?(te=Me=x,N=_):Me=Me.next=x,L=it(L,yt)}if(xe=xe.next,xe===null){if(l=r.shared.pending,l===null)break;var de=l,ue=de.next;de.next=null,xe=ue,r.lastBaseUpdate=de,r.shared.pending=null}}while(!0);Me===null&&(N=_),r.baseState=N,r.firstBaseUpdate=te,r.lastBaseUpdate=Me;var He=r.shared.interleaved;if(He!==null){var Xe=He;do L=it(L,Xe.lane),Xe=Xe.next;while(Xe!==He)}else i===null&&(r.shared.lanes=$);Hu(L),e.lanes=L,e.memoizedState=_}ac=null}function Z1(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,Z1(o,n))}}var du={},ii=ei(du),vu=ei(du),lc=ei(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){Wn(lc,t,e),Wn(vu,e,e),Wn(ii,du,e);var n=mx(t);In(ii,e),Wn(ii,n,e)}function Po(e){In(ii,e),In(vu,e),In(lc,e)}function bv(){var e=uc(ii.current);return e}function cg(e){uc(lc.current);var t=uc(ii.current),n=hx(t,e.type);t!==n&&(Wn(vu,e,e),Wn(ii,n,e))}function Sv(e){vu.current===e&&(In(ii,e),In(vu,e))}var J1=0,fg=1,dg=1,pu=2,Ia=ei(J1);function Tv(e,t){return(e&t)!==0}function Bo(e){return e&fg}function Ev(e,t){return e&fg|t}function eR(e,t){return e|t}function oi(e,t){Wn(Ia,t,e)}function $o(e){In(Ia,e)}function tR(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===_e){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||My(a)||Fd(a))return t}}else if(t.tag===Pe&&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 ca=0,yn=1,lr=2,gn=4,jn=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function nR(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var fe=pe.ReactCurrentDispatcher,mu=pe.ReactCurrentBatchConfig,Rv,Yo;Rv=new Set;var qi=$,zt=null,bn=null,Sn=null,cc=!1,hu=!1,yu=0,aR=0,rR=25,z=null,ka=null,li=-1,wv=!1;function Lt(){{var e=z;ka===null?ka=[e]:ka.push(e)}}function J(){{var e=z;ka!==null&&(li++,ka[li]!==e&&iR(e))}}function Io(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 iR(e){{var t=Ze(zt);if(!Rv.has(t)&&(Rv.add(t),ka!==null)){for(var n="",a=30,r=0;r<=li;r++){for(var i=ka[r],o=r===li?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 qn(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2. You might be breaking the Rules of Hooks
|
|
3. You might have more than one copy of React in the same app
|
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function 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(!Ta(e[n],t[n]))return!1;return!0}function Wo(e,t,n,a,r,i){qi=i,zt=t,ka=e!==null?e._debugHookTypes:null,li=-1,wv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=$,e!==null&&e.memoizedState!==null?fe.current=Ng:ka!==null?fe.current=Ag:fe.current=kg;var o=n(a,r);if(hu){var l=0;do{if(hu=!1,yu=0,l>=rR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,wv=!1,bn=null,Sn=null,t.updateQueue=null,li=-1,fe.current=jg,o=n(a,r)}while(hu)}fe.current=Cc,t._debugHookTypes=ka;var u=bn!==null&&bn.next!==null;if(qi=$,zt=null,bn=null,Sn=null,z=null,ka=null,li=-1,e!==null&&(e.flags&Er)!==(t.flags&Er)&&(e.mode&mt)!==Le&&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 qo(){var e=yu!==0;return yu=0,e}function vg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&ar)!==Le?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}qi=$,zt=null,bn=null,Sn=null,ka=null,li=-1,z=null,Dg=!1,hu=!1,yu=0}function ur(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?zt.memoizedState=Sn=e:Sn=Sn.next=e,Sn}function Aa(){var e;if(bn===null){var t=zt.alternate;t!==null?e=t.memoizedState:e=null}else e=bn.next;var n;if(Sn===null?n=zt.memoizedState:n=Sn.next,n!==null)Sn=n,n=Sn.next,bn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");bn=e;var a={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null};Sn===null?zt.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}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=ur(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:$,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=sR.bind(null,zt,i);return[a.memoizedState,o]}function Lv(e,t,n){var a=Aa(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=bn,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,c=l.next;o.next=c,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,y=i.baseState,h=null,_=null,L=null,N=v;do{var te=N.lane;if(Co(qi,te)){if(L!==null){var xe={lane:On,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};L=L.next=xe}if(N.hasEagerState)y=N.eagerState;else{var yt=N.action;y=e(y,yt)}}else{var Me={lane:te,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};L===null?(_=L=Me,h=y):L=L.next=Me,zt.lanes=it(zt.lanes,te),Hu(te)}N=N.next}while(N!==null&&N!==v);L===null?h=y:L.next=_,Ta(y,a.memoizedState)||wu(),a.memoizedState=y,a.baseState=h,a.baseQueue=L,r.lastRenderedState=y}var ut=r.interleaved;if(ut!==null){var x=ut;do{var j=x.lane;zt.lanes=it(zt.lanes,j),Hu(j),x=x.next}while(x!==ut)}else o===null&&(r.lanes=$);var R=r.dispatch;return[a.memoizedState,R]}function Ov(e,t,n){var a=Aa(),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,c=u;do{var v=c.action;l=e(l,v),c=c.next}while(c!==u);Ta(l,a.memoizedState)||wu(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function y_(e,t,n){}function g_(e,t,n){}function kv(e,t,n){var a=zt,r=ur(),i,o=Nn();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(),Yo||i!==n()&&(d("The result of getServerSnapshot should be cached to avoid an infinite loop"),Yo=!0)}else{if(i=t(),!Yo){var l=t();Ta(i,l)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Yo=!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,qi)||hg(a,t,i)}r.memoizedState=i;var c={value:i,getSnapshot:t};return r.queue=c,mc(gg.bind(null,a,c,e),[e]),a.flags|=Ir,gu(yn|jn,yg.bind(null,a,c,i,t),void 0,null),i}function fc(e,t,n){var a=zt,r=Aa(),i=t();if(!Yo){var o=t();Ta(i,o)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Yo=!0)}var l=r.memoizedState,u=!Ta(l,i);u&&(r.memoizedState=i,wu());var c=r.queue;if(Su(gg.bind(null,a,c,e),[e]),c.getSnapshot!==t||u||Sn!==null&&Sn.memoizedState.tag&yn){a.flags|=Ir,gu(yn|jn,yg.bind(null,a,c,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,qi)||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!Ta(n,a)}catch{return!0}}function Sg(e){var t=sa(e,$e);t!==null&&xn(t,e,$e,Xt)}function dc(e){var t=ur();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:$,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=cR.bind(null,zt,n);return[t.memoizedState,a]}function Av(e){return Lv(_v)}function Nv(e){return Ov(_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=ur();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=Aa();return t.memoizedState}function bu(e,t,n,a){var r=ur(),i=a===void 0?null:a;zt.flags|=e,r.memoizedState=gu(yn|t,n,void 0,i)}function pc(e,t,n,a){var r=Aa(),i=a===void 0?null:a,o=void 0;if(bn!==null){var l=bn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=gu(t,n,o,i);return}}}zt.flags|=e,r.memoizedState=gu(yn|t,n,o,i)}function mc(e,t){return(zt.mode&ar)!==Le?bu(kf|Ir|Of,jn,e,t):bu(Ir|Of,jn,e,t)}function Su(e,t){return pc(Ir,jn,e,t)}function Uv(e,t){return bu(Rt,lr,e,t)}function hc(e,t){return pc(Rt,lr,e,t)}function zv(e,t){var n=Rt;return n|=Li,(zt.mode&ar)!==Le&&(n|=Wr),bu(n,gn,e,t)}function yc(e,t){return pc(Rt,gn,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=Rt;return r|=Li,(zt.mode&ar)!==Le&&(r|=Wr),bu(r,gn,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(Rt,gn,Tg.bind(null,t,e),a)}function oR(e,t){}var bc=oR;function Vv(e,t){var n=ur(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=Aa(),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 Fv(e,t){var n=ur(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=Aa(),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=ur();return t.memoizedState=e,e}function Eg(e){var t=Aa(),n=bn,a=n.memoizedState;return xg(t,a,e)}function Cg(e){var t=Aa();if(bn===null)return t.memoizedState=e,e;var n=bn.memoizedState;return xg(t,n,e)}function xg(e,t,n){var a=!IT(qi);if(a){if(!Ta(n,t)){var r=Sh();zt.lanes=it(zt.lanes,r),Hu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,wu()),e.memoizedState=n,n}function lR(e,t,n){var a=Pa();kn(eE(a,xr)),e(!0);var r=mu.transition;mu.transition={};var i=mu.transition;mu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(kn(a),mu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&Oe("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=lR.bind(null,n),r=ur();return r.memoizedState=a,[t,a]}function Rg(){var e=Av(),t=e[0],n=Aa(),a=n.memoizedState;return[t,a]}function wg(){var e=Nv(),t=e[0],n=Aa(),a=n.memoizedState;return[t,a]}var Dg=!1;function uR(){return Dg}function $v(){var e=ur(),t=Bc(),n=t.identifierPrefix,a;if(Nn()){var r=R1();a=":"+n+"R"+r;var i=yu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=aR++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=Aa(),t=e.memoizedState;return t}function sR(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=di(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=ta();xn(i,e,a,o),Lg(i,t,a)}}Og(e,a)}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=di(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===$&&(i===null||i.lanes===$)){var o=t.lastRenderedReducer;if(o!==null){var l;l=fe.current,fe.current=Wa;try{var u=t.lastRenderedState,c=o(u,n);if(r.hasEagerState=!0,r.eagerState=c,Ta(c,u)){G1(e,t,r,a);return}}catch{}finally{fe.current=l}}}var v=ag(e,t,r,a);if(v!==null){var y=ta();xn(v,e,a,y),Lg(v,t,a)}}Og(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=it(a,n);t.lanes=r,ud(e,r)}}function Og(e,t,n){zf(e,t)}var Cc={readContext:mn,useCallback:qn,useContext:qn,useEffect:qn,useImperativeHandle:qn,useInsertionEffect:qn,useLayoutEffect:qn,useMemo:qn,useReducer:qn,useRef:qn,useState:qn,useDebugValue:qn,useDeferredValue:qn,useTransition:qn,useMutableSource:qn,useSyncExternalStore:qn,useId:qn,unstable_isNewReconciler:Ie},kg=null,Ag=null,Ng=null,jg=null,sr=null,Wa=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")};kg={readContext:function(e){return mn(e)},useCallback:function(e,t){return z="useCallback",Lt(),Io(t),Vv(e,t)},useContext:function(e){return z="useContext",Lt(),mn(e)},useEffect:function(e,t){return z="useEffect",Lt(),Io(t),mc(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Lt(),Io(n),Hv(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Lt(),Io(t),Uv(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Lt(),Io(t),zv(e,t)},useMemo:function(e,t){z="useMemo",Lt(),Io(t);var n=fe.current;fe.current=sr;try{return Fv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",Lt();var a=fe.current;fe.current=sr;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=sr;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(),kv(e,t,n)},useId:function(){return z="useId",Lt(),$v()},unstable_isNewReconciler:Ie},Ag={readContext:function(e){return mn(e)},useCallback:function(e,t){return z="useCallback",J(),Vv(e,t)},useContext:function(e){return z="useContext",J(),mn(e)},useEffect:function(e,t){return z="useEffect",J(),mc(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",J(),Hv(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",J(),Uv(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",J(),zv(e,t)},useMemo:function(e,t){z="useMemo",J();var n=fe.current;fe.current=sr;try{return Fv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",J();var a=fe.current;fe.current=sr;try{return Mv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",J(),jv(e)},useState:function(e){z="useState",J();var t=fe.current;fe.current=sr;try{return dc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",J(),void 0},useDeferredValue:function(e){return z="useDeferredValue",J(),Pv(e)},useTransition:function(){return z="useTransition",J(),Bv()},useMutableSource:function(e,t,n){return z="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",J(),kv(e,t,n)},useId:function(){return z="useId",J(),$v()},unstable_isNewReconciler:Ie},Ng={readContext:function(e){return mn(e)},useCallback:function(e,t){return z="useCallback",J(),Sc(e,t)},useContext:function(e){return z="useContext",J(),mn(e)},useEffect:function(e,t){return z="useEffect",J(),Su(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",J(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",J(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",J(),yc(e,t)},useMemo:function(e,t){z="useMemo",J();var n=fe.current;fe.current=Wa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",J();var a=fe.current;fe.current=Wa;try{return Lv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",J(),vc()},useState:function(e){z="useState",J();var t=fe.current;fe.current=Wa;try{return Av(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",J(),bc()},useDeferredValue:function(e){return z="useDeferredValue",J(),Eg(e)},useTransition:function(){return z="useTransition",J(),Rg()},useMutableSource:function(e,t,n){return z="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",J(),fc(e,t)},useId:function(){return z="useId",J(),Ec()},unstable_isNewReconciler:Ie},jg={readContext:function(e){return mn(e)},useCallback:function(e,t){return z="useCallback",J(),Sc(e,t)},useContext:function(e){return z="useContext",J(),mn(e)},useEffect:function(e,t){return z="useEffect",J(),Su(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",J(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",J(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",J(),yc(e,t)},useMemo:function(e,t){z="useMemo",J();var n=fe.current;fe.current=xc;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",J();var a=fe.current;fe.current=xc;try{return Ov(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",J(),vc()},useState:function(e){z="useState",J();var t=fe.current;fe.current=xc;try{return Nv(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",J(),bc()},useDeferredValue:function(e){return z="useDeferredValue",J(),Cg(e)},useTransition:function(){return z="useTransition",J(),wg()},useMutableSource:function(e,t,n){return z="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",J(),fc(e,t)},useId:function(){return z="useId",J(),Ec()},unstable_isNewReconciler:Ie},sr={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return z="useCallback",Ye(),Lt(),Vv(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=sr;try{return Fv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",Ye(),Lt();var a=fe.current;fe.current=sr;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=sr;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(),kv(e,t,n)},useId:function(){return z="useId",Ye(),Lt(),$v()},unstable_isNewReconciler:Ie},Wa={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return z="useCallback",Ye(),J(),Sc(e,t)},useContext:function(e){return z="useContext",Ye(),J(),mn(e)},useEffect:function(e,t){return z="useEffect",Ye(),J(),Su(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Ye(),J(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Ye(),J(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Ye(),J(),yc(e,t)},useMemo:function(e,t){z="useMemo",Ye(),J();var n=fe.current;fe.current=Wa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",Ye(),J();var a=fe.current;fe.current=Wa;try{return Lv(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",Ye(),J(),vc()},useState:function(e){z="useState",Ye(),J();var t=fe.current;fe.current=Wa;try{return Av(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Ye(),J(),bc()},useDeferredValue:function(e){return z="useDeferredValue",Ye(),J(),Eg(e)},useTransition:function(){return z="useTransition",Ye(),J(),Rg()},useMutableSource:function(e,t,n){return z="useMutableSource",Ye(),J(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Ye(),J(),fc(e,t)},useId:function(){return z="useId",Ye(),J(),Ec()},unstable_isNewReconciler:Ie},xc={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return z="useCallback",Ye(),J(),Sc(e,t)},useContext:function(e){return z="useContext",Ye(),J(),mn(e)},useEffect:function(e,t){return z="useEffect",Ye(),J(),Su(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Ye(),J(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Ye(),J(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Ye(),J(),yc(e,t)},useMemo:function(e,t){z="useMemo",Ye(),J();var n=fe.current;fe.current=Wa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){z="useReducer",Ye(),J();var a=fe.current;fe.current=Wa;try{return Ov(e,t,n)}finally{fe.current=a}},useRef:function(e){return z="useRef",Ye(),J(),vc()},useState:function(e){z="useState",Ye(),J();var t=fe.current;fe.current=Wa;try{return Nv(e)}finally{fe.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Ye(),J(),bc()},useDeferredValue:function(e){return z="useDeferredValue",Ye(),J(),Cg(e)},useTransition:function(){return z="useTransition",Ye(),J(),wg()},useMutableSource:function(e,t,n){return z="useMutableSource",Ye(),J(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Ye(),J(),fc(e,t)},useId:function(){return z="useId",Ye(),J(),Ec()},unstable_isNewReconciler:Ie}}var ui=D.unstable_now,Ug=0,Rc=-1,Tu=-1,wc=-1,Iv=!1,Dc=!1;function zg(){return Iv}function fR(){Dc=!0}function dR(){Iv=!1,Dc=!1}function vR(){Iv=Dc,Dc=!1}function Hg(){return Ug}function Vg(){Ug=ui()}function Wv(e){Tu=ui(),e.actualStartTime<0&&(e.actualStartTime=ui())}function Fg(e){Tu=-1}function _c(e,t){if(Tu>=0){var n=ui()-Tu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Tu=-1}}function cr(e){if(Rc>=0){var t=ui()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case q:var a=n.stateNode;a.effectDuration+=t;return;case gt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(wc>=0){var t=ui()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case q:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case gt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function fr(){Rc=ui()}function Gv(){wc=ui()}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=ze({},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=xt(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&un){Ln(!0);try{i=n(a,r)}finally{Ln(!1)}}Pg(t,i)}var o=i==null?r:ze({},r,i);if(e.memoizedState=o,e.lanes===$){var l=e.updateQueue;l.baseState=o}}var op={isMounted:rT,enqueueSetState:function(e,t,n){var a=po(e),r=ta(),i=di(a),o=Or(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=ri(a,o,i);l!==null&&(xn(l,a,i,r),rc(l,a,i)),zf(a,i)},enqueueReplaceState:function(e,t,n){var a=po(e),r=ta(),i=di(a),o=Or(r,i);o.tag=ig,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=ri(a,o,i);l!==null&&(xn(l,a,i,r),rc(l,a,i)),zf(a,i)},enqueueForceUpdate:function(e,t){var n=po(e),a=ta(),r=di(n),i=Or(a,r);i.tag=tc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=ri(n,i,r);o!==null&&(xn(o,n,r,a),rc(o,n,r)),jT(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&un){Ln(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{Ln(!1)}}u===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",xt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Yl(n,a)||!Yl(r,i):!0}function pR(e,t,n){var a=e.stateNode;{var r=xt(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&un)===Le&&(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&un)===Le&&(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.",xt(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.",xt(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,eT(t,e),t._reactInternalInstance=Qv}function Ig(e,t,n){var a=!1,r=Ea,i=Ea,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===f&&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===b?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",xt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=mn(o);else{r=Ao(e,t,!0);var c=t.contextTypes;a=c!=null,i=a?No(e,r):Ea}var v=new t(n,i);if(e.mode&un){Ln(!0);try{v=new t(n,i)}finally{Ln(!1)}}var y=e.memoizedState=v.state!==null&&v.state!==void 0?v.state:null;Yg(e,v);{if(typeof t.getDerivedStateFromProps=="function"&&y===null){var h=xt(t)||"Component";Zv.has(h)||(Zv.add(h),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.",h,v.state===null?"null":"undefined",h))}if(typeof t.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var _=null,L=null,N=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?_="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(_="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?N="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(N="UNSAFE_componentWillUpdate"),_!==null||L!==null||N!==null){var te=xt(t)||"Component",Me=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(te)||(ep.add(te),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`,te,Me,_!==null?`
|
|
`+_:"",L!==null?`
|
|
`+L:"",N!==null?`
|
|
`+N:""))}}}return a&&Ny(e,r,i),v}function mR(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.",Ze(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=Ze(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){pR(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=Ao(e,t,!0);r.context=No(e,o)}{if(r.state===n){var l=xt(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&un&&Ya.recordLegacyContextWarning(e,r),Ya.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")&&(mR(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var c=Rt;c|=Li,(e.mode&ar)!==Le&&(c|=Wr),e.flags|=c}}function hR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=Ea;if(typeof l=="object"&&l!==null)u=mn(l);else{var c=Ao(e,t,!0);u=No(e,c)}var v=t.getDerivedStateFromProps,y=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function";!y&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Wg(e,r,n,u),lg();var h=e.memoizedState,_=r.state=h;if(ic(e,n,r,a),_=e.memoizedState,i===n&&h===_&&!Fs()&&!oc()){if(typeof r.componentDidMount=="function"){var L=Rt;L|=Li,(e.mode&ar)!==Le&&(L|=Wr),e.flags|=L}return!1}typeof v=="function"&&(ip(e,t,v,n),_=e.memoizedState);var N=oc()||$g(e,t,i,n,h,_,u);if(N){if(!y&&(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 te=Rt;te|=Li,(e.mode&ar)!==Le&&(te|=Wr),e.flags|=te}}else{if(typeof r.componentDidMount=="function"){var Me=Rt;Me|=Li,(e.mode&ar)!==Le&&(Me|=Wr),e.flags|=Me}e.memoizedProps=n,e.memoizedState=_}return r.props=n,r.state=_,r.context=u,N}function yR(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,c=i.context,v=n.contextType,y=Ea;if(typeof v=="object"&&v!==null)y=mn(v);else{var h=Ao(t,n,!0);y=No(t,h)}var _=n.getDerivedStateFromProps,L=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function";!L&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||c!==y)&&Wg(t,i,a,y),lg();var N=t.memoizedState,te=i.state=N;if(ic(t,a,i,r),te=t.memoizedState,o===u&&N===te&&!Fs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=Rt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=ho),!1;typeof _=="function"&&(ip(t,n,_,a),te=t.memoizedState);var Me=oc()||$g(t,n,l,a,N,te,y)||We;return Me?(!L&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,te,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,te,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=Rt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=ho)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=Rt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=ho),t.memoizedProps=a,t.memoizedState=te),i.props=a,i.state=te,i.context=y,Me}function Gi(e,t){return{value:e,source:t,stack:Si(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gR(e,t){return!0}function sp(e,t){try{var n=gR(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===ae)return;console.error(a)}var l=r?Ze(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",c;if(e.tag===q)c=`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=Ze(e)||"Anonymous";c="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var y=u+`
|
|
`+o+`
|
|
|
|
`+(""+c);console.error(y)}catch(h){setTimeout(function(){throw h})}}var bR=typeof WeakMap=="function"?WeakMap:Map;function qg(e,t,n){var a=Or(Xt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){fD(r),sp(e,t)},a}function cp(e,t,n){var a=Or(Xt,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"&&sD(this);var u=t.value,c=t.stack;this.componentDidCatch(u,{componentStack:c!==null?c:""}),typeof r!="function"&&(ga(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.",Ze(e)||"Unknown"))}),a}function Gg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new bR,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=dD.bind(null,e,t,n);Fa&&Vu(e,n),t.then(i,i)}}function SR(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 TR(e,t){var n=e.tag;if((e.mode&mt)===Le&&(n===ge||n===De||n===Ee)){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===_e&&tR(t))return t;t=t.return}while(t!==null);return null}function Qg(e,t,n,a,r){if((e.mode&mt)===Le){if(e===t)e.flags|=Va;else{if(e.flags|=Mt,n.flags|=Mf,n.flags&=-52805,n.tag===ae){var i=n.alternate;if(i===null)n.tag=Re;else{var o=Or(Xt,$e);o.tag=tc,ri(n,o,$e)}}n.lanes=it(n.lanes,$e)}return e}return e.flags|=Va,e.lanes=r,e}function ER(e,t,n,a,r){if(n.flags|=rs,Fa&&Vu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;TR(n),Nn()&&n.mode&mt&&Py();var o=Xg(t);if(o!==null){o.flags&=-257,Qg(o,t,n,e,r),o.mode&mt&&Gg(e,i,r),SR(o,e,i);return}else{if(!YT(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(Nn()&&n.mode&mt){Py();var u=Xg(t);if(u!==null){(u.flags&Va)===je&&(u.flags|=wi),Qg(u,t,n,e,r),nv(Gi(a,n));return}}a=Gi(a,n),tD(a);var c=t;do{switch(c.tag){case q:{var v=a;c.flags|=Va;var y=Ml(r);c.lanes=it(c.lanes,y);var h=qg(c,v,y);yv(c,h);return}case ae:var _=a,L=c.type,N=c.stateNode;if((c.flags&Mt)===je&&(typeof L.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&!Xb(N))){c.flags|=Va;var te=Ml(r);c.lanes=it(c.lanes,te);var Me=cp(c,_,te);yv(c,Me);return}break}c=c.return}while(c!==null)}function CR(){return null}var Cu=pe.ReactCurrentOwner,Ga=!1,fp,xu,dp,vp,pp,Xi,mp,Lc,Ru;fp={},xu={},dp={},vp={},pp={},Xi=!1,mp={},Lc={},Ru={};function Jn(e,t,n,a){e===null?t.child=Jy(t,null,n,a):t.child=Ho(t,e.child,n,a)}function xR(e,t,n,a){t.child=Ho(t,e.child,null,a),t.child=Ho(t,null,n,a)}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ba(i,a,"prop",xt(n))}var o=n.render,l=t.ref,u,c;Fo(t,r),Cl(t);{if(Cu.current=t,Da(!0),u=Wo(e,t,o,a,l,r),c=qo(),t.mode&un){Ln(!0);try{u=Wo(e,t,o,a,l,r),c=qo()}finally{Ln(!1)}}Da(!1)}return bo(),e!==null&&!Ga?(vg(e,t,r),kr(e,t,r)):(Nn()&&c&&Qd(t),t.flags|=mo,Jn(e,t,u,r),t.child)}function Zg(e,t,n,a,r){if(e===null){var i=n.type;if(MD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=tl(i),t.tag=Ee,t.type=o,gp(t,i),Jg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Ba(l,a,"prop",xt(i)),n.defaultProps!==void 0){var u=xt(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 c=em(n.type,null,a,t,t.mode,r);return c.ref=t.ref,c.return=t,t.child=c,c}{var v=n.type,y=v.propTypes;y&&Ba(y,a,"prop",xt(v))}var h=e.child,_=xp(e,r);if(!_){var L=h.memoizedProps,N=n.compare;if(N=N!==null?N:Yl,N(L,a)&&e.ref===t.ref)return kr(e,t,r)}t.flags|=mo;var te=eo(h,a);return te.ref=t.ref,te.return=t,t.child=te,te}function Jg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===re){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var c=i&&i.propTypes;c&&Ba(c,a,"prop",xt(i))}}if(e!==null){var v=e.memoizedProps;if(Yl(v,a)&&e.ref===t.ref&&t.type===e.type)if(Ga=!1,t.pendingProps=a=v,xp(e,r))(e.flags&Mf)!==je&&(Ga=!0);else return t.lanes=e.lanes,kr(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"||Je)if((t.mode&mt)===Le){var o={baseLanes:$,cachePool:null,transitions:null};t.memoizedState=o,$c(t,n)}else if(ga(n,_a)){var y={baseLanes:$,cachePool:null,transitions:null};t.memoizedState=y;var h=i!==null?i.baseLanes:n;$c(t,h)}else{var l=null,u;if(i!==null){var c=i.baseLanes;u=it(c,n)}else u=n;t.lanes=t.childLanes=_a;var v={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=v,t.updateQueue=null,$c(t,u),null}else{var _;i!==null?(_=it(i.baseLanes,n),t.memoizedState=null):_=n,$c(t,_)}return Jn(e,t,r,n),t.child}function RR(e,t,n){var a=t.pendingProps;return Jn(e,t,a,n),t.child}function wR(e,t,n){var a=t.pendingProps.children;return Jn(e,t,a,n),t.child}function DR(e,t,n){{t.flags|=Rt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return Jn(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|=Di,t.flags|=Lf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ba(i,a,"prop",xt(n))}var o;{var l=Ao(t,n,!0);o=No(t,l)}var u,c;Fo(t,r),Cl(t);{if(Cu.current=t,Da(!0),u=Wo(e,t,n,a,o,r),c=qo(),t.mode&un){Ln(!0);try{u=Wo(e,t,n,a,o,r),c=qo()}finally{Ln(!1)}}Da(!1)}return bo(),e!==null&&!Ga?(vg(e,t,r),kr(e,t,r)):(Nn()&&c&&Qd(t),t.flags|=mo,Jn(e,t,u,r),t.child)}function nb(e,t,n,a,r){{switch(YD(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|=Va;var c=new Error("Simulated error coming from DevTools"),v=Ml(r);t.lanes=it(t.lanes,v);var y=cp(t,Gi(c,t),v);yv(t,y);break}}if(t.type!==t.elementType){var h=n.propTypes;h&&Ba(h,a,"prop",xt(n))}}var _;or(n)?(_=!0,Bs(t)):_=!1,Fo(t,r);var L=t.stateNode,N;L===null?(kc(e,t),Ig(t,n,a),lp(t,n,a,r),N=!0):e===null?N=hR(t,n,a,r):N=yR(e,t,n,a,r);var te=yp(e,t,n,N,_,r);{var Me=t.stateNode;N&&Me.props!==a&&(Xi||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ze(t)||"a component"),Xi=!0)}return te}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),kr(e,t,i);var l=t.stateNode;Cu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Fg();else{Cl(t);{if(Da(!0),u=l.render(),t.mode&un){Ln(!0);try{l.render()}finally{Ln(!1)}}Da(!1)}bo()}return t.flags|=mo,e!==null&&o?xR(e,t,u,i):Jn(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 _R(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},c=t.updateQueue;if(c.baseState=u,t.memoizedState=u,t.flags&wi){var v=Gi(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 y=Gi(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,y)}else{O1(t);var h=Jy(t,null,l,n);t.child=h;for(var _=h;_;)_.flags=_.flags&-3|_i,_=_.sibling}}else{if(zo(),l===i)return kr(e,t,n);Jn(e,t,l,n)}return t.child}function rb(e,t,n,a,r){return zo(),nv(r),t.flags|=wi,Jn(e,t,n,a),t.child}function MR(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),Jn(e,t,o,n),t.child}function LR(e,t){return e===null&&tv(t),null}function OR(e,t,n,a){kc(e,t);var r=t.pendingProps,i=n,o=i._payload,l=i._init,u=l(o);t.type=u;var c=t.tag=LD(u),v=qa(u,r),y;switch(c){case ge:return gp(t,u),t.type=u=tl(u),y=hp(null,t,u,v,a),y;case ae:return t.type=u=Gp(u),y=nb(null,t,u,v,a),y;case De:return t.type=u=Xp(u),y=Kg(null,t,u,v,a),y;case oe:{if(t.type!==t.elementType){var h=u.propTypes;h&&Ba(h,v,"prop",xt(u))}return y=Zg(null,t,u,qa(u.type,v),a),y}}var _="";throw u!==null&&typeof u=="object"&&u.$$typeof===re&&(_=" 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."+_))}function kR(e,t,n,a,r){kc(e,t),t.tag=ae;var i;return or(n)?(i=!0,Bs(t)):i=!1,Fo(t,r),Ig(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function AR(e,t,n,a){kc(e,t);var r=t.pendingProps,i;{var o=Ao(t,n,!1);i=No(t,o)}Fo(t,a);var l,u;Cl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var c=xt(n)||"Unknown";fp[c]||(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.",c,c),fp[c]=!0)}t.mode&un&&Ya.recordLegacyContextWarning(t,null),Da(!0),Cu.current=t,l=Wo(null,t,n,r,i,a),u=qo(),Da(!1)}if(bo(),t.flags|=mo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var v=xt(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 y=xt(n)||"Unknown";xu[y]||(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.",y,y,y),xu[y]=!0)}t.tag=ae,t.memoizedState=null,t.updateQueue=null;var h=!1;return or(n)?(h=!0,Bs(t)):h=!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,h,a)}else{if(t.tag=ge,t.mode&un){Ln(!0);try{l=Wo(null,t,n,r,i,a),u=qo()}finally{Ln(!1)}}return Nn()&&u&&Qd(t),Jn(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=$r();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=xt(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=xt(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=xt(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:On};function Sp(e){return{baseLanes:e,cachePool:CR(),transitions:null}}function NR(e,t){var n=null;return{baseLanes:it(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function jR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,pu)}function UR(e,t){return fs(e.childLanes,t)}function ib(e,t,n){var a=t.pendingProps;ID(t)&&(t.flags|=Mt);var r=Ia.current,i=!1,o=(t.flags&Mt)!==je;if(o||jR(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=eR(r,dg)),r=Bo(r),oi(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return PR(t,u)}var c=a.children,v=a.fallback;if(i){var y=zR(t,c,v,n),h=t.child;return h.memoizedState=Sp(n),t.memoizedState=bp,y}else return Tp(t,c)}else{var _=e.memoizedState;if(_!==null){var L=_.dehydrated;if(L!==null)return BR(e,t,o,a,L,_,n)}if(i){var N=a.fallback,te=a.children,Me=VR(e,t,te,N,n),xe=t.child,yt=e.child.memoizedState;return xe.memoizedState=yt===null?Sp(n):NR(yt,n),xe.childLanes=UR(e,n),t.memoizedState=bp,Me}else{var ut=a.children,x=HR(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 zR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&mt)===Le&&i!==null?(l=i,l.childLanes=$,l.pendingProps=o,e.mode&Ut&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=pi(n,r,a,null)):(l=Ep(o,r),u=pi(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,$,null)}function ob(e,t){return eo(e,t)}function HR(e,t,n,a){var r=e.child,i=r.sibling,o=ob(r,{mode:"visible",children:n});if((t.mode&mt)===Le&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=Ri):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},c;if((i&mt)===Le&&t.child!==o){var v=t.child;c=v,c.childLanes=$,c.pendingProps=u,t.mode&Ut&&(c.actualDuration=0,c.actualStartTime=-1,c.selfBaseDuration=o.selfBaseDuration,c.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else c=ob(o,u),c.subtreeFlags=o.subtreeFlags&Er;var y;return l!==null?y=eo(l,a):(y=pi(a,i,r,null),y.flags|=_n),y.return=t,c.return=t,c.sibling=y,t.child=c,y}function Oc(e,t,n,a){a!==null&&nv(a),Ho(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=_n,t.memoizedState=null,o}function FR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=pi(a,i,r,null);return u.flags|=_n,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&mt)!==Le&&Ho(t,e.child,null,r),u}function PR(e,t,n){return(e.mode&mt)===Le?(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):Fd(t)?e.lanes=Ai:e.lanes=_a,null}function BR(e,t,n,a,r,i,o){if(n)if(t.flags&wi){t.flags&=-257;var x=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Oc(e,t,o,x)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Mt,null;var j=a.children,R=a.fallback,Y=FR(e,t,j,R,o),de=t.child;return de.memoizedState=Sp(o),t.memoizedState=bp,Y}else{if(M1(),(t.mode&mt)===Le)return Oc(e,t,o,null);if(Fd(r)){var l,u,c;{var v=Wx(r);l=v.digest,u=v.message,c=v.stack}var y;u?y=new Error(u):y=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var h=up(y,l,c);return Oc(e,t,o,h)}var _=ga(o,e.childLanes);if(Ga||_){var L=Bc();if(L!==null){var N=ZT(L,o);if(N!==On&&N!==i.retryLane){i.retryLane=N;var te=Xt;sa(e,N),xn(L,e,N,te)}}$p();var Me=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 Oc(e,t,o,Me)}else if(My(r)){t.flags|=Mt,t.child=e.child;var xe=vD.bind(null,e);return qx(r,xe),null}else{k1(t,r,i.treeContext);var yt=a.children,ut=Tp(t,yt);return ut.flags|=_i,ut}}}function lb(e,t,n){e.lanes=it(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=it(a.lanes,t)),dv(e.return,t,n)}function $R(e,t,n){for(var a=t;a!==null;){if(a.tag===_e){var r=a.memoizedState;r!==null&&lb(a,n,e)}else if(a.tag===Pe)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 YR(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 IR(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 WR(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 qe(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 qR(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=qe(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;IR(r),WR(i,r),qR(o,r),Jn(e,t,o,n);var l=Ia.current,u=Tv(l,pu);if(u)l=Ev(l,pu),t.flags|=Mt;else{var c=e!==null&&(e.flags&Mt)!==je;c&&$R(t,t.child,n),l=Bo(l)}if(oi(t,l),(t.mode&mt)===Le)t.memoizedState=null;else switch(r){case"forwards":{var v=YR(t.child),y;v===null?(y=t.child,t.child=null):(y=v.sibling,v.sibling=null),Cp(t,!1,y,v,i);break}case"backwards":{var h=null,_=t.child;for(t.child=null;_!==null;){var L=_.alternate;if(L!==null&&sc(L)===null){t.child=_;break}var N=_.sibling;_.sibling=h,h=_,_=N}Cp(t,!0,h,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function GR(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=Ho(t,null,a,n):Jn(e,t,a,n),t.child}var cb=!1;function XR(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&&Ba(u,i,"prop","Context.Provider")}if(ng(t,r,l),o!==null){var c=o.value;if(Ta(c,l)){if(o.children===i.children&&!Fs())return kr(e,t,n)}else I1(t,r,n)}var v=i.children;return Jn(e,t,v,n),t.child}var fb=!1;function QR(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."),Fo(t,n);var o=mn(a);Cl(t);var l;return Cu.current=t,Da(!0),l=i(o),Da(!1),bo(),t.flags|=mo,Jn(e,t,l,n),t.child}function wu(){Ga=!0}function kc(e,t){(t.mode&mt)===Le&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=_n)}function kr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Fg(),Hu(t.lanes),ga(n,t.childLanes)?($1(e,t),t.child):null}function KR(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|=Ri):i.push(e),n.flags|=_n,n}}function xp(e,t){var n=e.lanes;return!!ga(n,t)}function ZR(e,t,n){switch(t.tag){case q:ab(t),t.stateNode,zo();break;case ee:cg(t);break;case ae:{var a=t.type;or(a)&&Bs(t);break}case U:gv(t,t.stateNode.containerInfo);break;case Qe:{var r=t.memoizedProps.value,i=t.type._context;ng(t,i,r);break}case gt:{var o=ga(n,t.childLanes);o&&(t.flags|=Rt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case _e:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return oi(t,Bo(Ia.current)),t.flags|=Mt,null;var c=t.child,v=c.childLanes;if(ga(n,v))return ib(e,t,n);oi(t,Bo(Ia.current));var y=kr(e,t,n);return y!==null?y.sibling:null}else oi(t,Bo(Ia.current));break}case Pe:{var h=(e.flags&Mt)!==je,_=ga(n,t.childLanes);if(h){if(_)return sb(e,t,n);t.flags|=Mt}var L=t.memoizedState;if(L!==null&&(L.rendering=null,L.tail=null,L.lastEffect=null),oi(t,Ia.current),_)break;return null}case Ue:case nt:return t.lanes=$,eb(e,t,n)}return kr(e,t,n)}function db(e,t,n){if(t._debugNeedsRemount&&e!==null)return KR(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||Fs()||t.type!==e.type)Ga=!0;else{var i=xp(e,n);if(!i&&(t.flags&Mt)===je)return Ga=!1,ZR(e,t,n);(e.flags&Mf)!==je?Ga=!0:Ga=!1}}else if(Ga=!1,Nn()&&C1(t)){var o=t.index,l=x1();Fy(t,l,o)}switch(t.lanes=$,t.tag){case ct:return AR(e,t,t.type,n);case Ot:{var u=t.elementType;return OR(e,t,u,n)}case ge:{var c=t.type,v=t.pendingProps,y=t.elementType===c?v:qa(c,v);return hp(e,t,c,y,n)}case ae:{var h=t.type,_=t.pendingProps,L=t.elementType===h?_:qa(h,_);return nb(e,t,h,L,n)}case q:return _R(e,t,n);case ee:return MR(e,t,n);case Fe:return LR(e,t);case _e:return ib(e,t,n);case U:return GR(e,t,n);case De:{var N=t.type,te=t.pendingProps,Me=t.elementType===N?te:qa(N,te);return Kg(e,t,N,Me,n)}case $t:return RR(e,t,n);case wt:return wR(e,t,n);case gt:return DR(e,t,n);case Qe:return XR(e,t,n);case Dt:return QR(e,t,n);case oe:{var xe=t.type,yt=t.pendingProps,ut=qa(xe,yt);if(t.type!==t.elementType){var x=xe.propTypes;x&&Ba(x,ut,"prop",xt(xe))}return ut=qa(xe.type,ut),Zg(e,t,xe,ut,n)}case Ee:return Jg(e,t,t.type,t.pendingProps,n);case Re:{var j=t.type,R=t.pendingProps,Y=t.elementType===j?R:qa(j,R);return kR(e,t,j,Y,n)}case Pe:return sb(e,t,n);case K:break;case Ue: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 Go(e){e.flags|=Rt}function vb(e){e.flags|=Di,e.flags|=Lf}var pb,Rp,mb,hb;pb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===ee||r.tag===Fe)Sx(e,r.stateNode);else if(r.tag!==U){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=Ex(o,n,i,a,r,l);t.updateQueue=u,u&&Go(t)}},hb=function(e,t,n,a){n!==a&&Go(t)};function Du(e,t){if(!Nn())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 Un(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=$,a=je;if(t){if((e.mode&Ut)!==Le){for(var u=e.selfBaseDuration,c=e.child;c!==null;)n=it(n,it(c.lanes,c.childLanes)),a|=c.subtreeFlags&Er,a|=c.flags&Er,u+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=u}else for(var v=e.child;v!==null;)n=it(n,it(v.lanes,v.childLanes)),a|=v.subtreeFlags&Er,a|=v.flags&Er,v.return=e,v=v.sibling;e.subtreeFlags|=a}else{if((e.mode&Ut)!==Le){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=it(n,it(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=it(n,it(l.lanes,l.childLanes)),a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;e.subtreeFlags|=a}return e.childLanes=n,t}function JR(e,t,n){if(z1()&&(t.mode&mt)!==Le&&(t.flags&Mt)===je)return qy(t),zo(),t.flags|=wi|rs|Va,!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(j1(t),Un(t),(t.mode&Ut)!==Le){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(zo(),(t.flags&Mt)===je&&(t.memoizedState=null),t.flags|=Rt,Un(t),(t.mode&Ut)!==Le){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 ct:case Ot:case Ee:case ge:case De:case $t:case wt:case gt:case Dt:case oe:return Un(t),null;case ae:{var r=t.type;return or(r)&&Ps(t),Un(t),null}case q:{var i=t.stateNode;if(Po(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)Go(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&wi)!==je)&&(t.flags|=ho,Gy())}}return Rp(e,t),Un(t),null}case ee:{Sv(t);var u=sg(),c=t.type;if(e!==null&&t.stateNode!=null)mb(e,t,c,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 Un(t),null}var v=bv(),y=qs(t);if(y)A1(t,u,v)&&Go(t);else{var h=bx(c,a,u,v,t);pb(h,t,!1,!1),t.stateNode=h,Tx(h,c,a,u)&&Go(t)}t.ref!==null&&vb(t)}return Un(t),null}case Fe:{var _=a;if(e&&t.stateNode!=null){var L=e.memoizedProps;hb(e,t,L,_)}else{if(typeof _!="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 N=sg(),te=bv(),Me=qs(t);Me?N1(t)&&Go(t):t.stateNode=Cx(_,N,te,t)}return Un(t),null}case _e:{$o(t);var xe=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var yt=JR(e,t,xe);if(!yt)return t.flags&Va?t:null}if((t.flags&Mt)!==je)return t.lanes=n,(t.mode&Ut)!==Le&&Xv(t),t;var ut=xe!==null,x=e!==null&&e.memoizedState!==null;if(ut!==x&&ut){var j=t.child;if(j.flags|=Mi,(t.mode&mt)!==Le){var R=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);R||Tv(Ia.current,dg)?eD():$p()}}var Y=t.updateQueue;if(Y!==null&&(t.flags|=Rt),Un(t),(t.mode&Ut)!==Le&&ut){var de=t.child;de!==null&&(t.treeBaseDuration-=de.treeBaseDuration)}return null}case U:return Po(t),Rp(e,t),e===null&&h1(t.stateNode.containerInfo),Un(t),null;case Qe:var ue=t.type._context;return fv(ue,t),Un(t),null;case Re:{var He=t.type;return or(He)&&Ps(t),Un(t),null}case Pe:{$o(t);var Xe=t.memoizedState;if(Xe===null)return Un(t),null;var Ht=(t.flags&Mt)!==je,Tt=Xe.rendering;if(Tt===null)if(Ht)Du(Xe,!1);else{var fn=nD()&&(e===null||(e.flags&Mt)===je);if(!fn)for(var Et=t.child;Et!==null;){var sn=sc(Et);if(sn!==null){Ht=!0,t.flags|=Mt,Du(Xe,!1);var Gn=sn.updateQueue;return Gn!==null&&(t.updateQueue=Gn,t.flags|=Rt),t.subtreeFlags=je,Y1(t,n),oi(t,Ev(Ia.current,pu)),t.child}Et=Et.sibling}Xe.tail!==null&&Mn()>Hb()&&(t.flags|=Mt,Ht=!0,Du(Xe,!1),t.lanes=hh)}else{if(!Ht){var Pn=sc(Tt);if(Pn!==null){t.flags|=Mt,Ht=!0;var xa=Pn.updateQueue;if(xa!==null&&(t.updateQueue=xa,t.flags|=Rt),Du(Xe,!0),Xe.tail===null&&Xe.tailMode==="hidden"&&!Tt.alternate&&!Nn())return Un(t),null}else Mn()*2-Xe.renderingStartTime>Hb()&&n!==_a&&(t.flags|=Mt,Ht=!0,Du(Xe,!1),t.lanes=hh)}if(Xe.isBackwards)Tt.sibling=t.child,t.child=Tt;else{var na=Xe.last;na!==null?na.sibling=Tt:t.child=Tt,Xe.last=Tt}}if(Xe.tail!==null){var aa=Xe.tail;Xe.rendering=aa,Xe.tail=aa.sibling,Xe.renderingStartTime=Mn(),aa.sibling=null;var Xn=Ia.current;return Ht?Xn=Ev(Xn,pu):Xn=Bo(Xn),oi(t,Xn),aa}return Un(t),null}case K:break;case Ue:case nt:{Bp(t);var zr=t.memoizedState,nl=zr!==null;if(e!==null){var $u=e.memoizedState,pr=$u!==null;pr!==nl&&(t.flags|=Mi)}return!nl||(t.mode&mt)===Le?Un(t):ga(vr,_a)&&(Un(t),t.subtreeFlags&(_n|Rt)&&(t.flags|=Mi)),null}case ce: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 ew(e,t,n){switch(Kd(t),t.tag){case ae:{var a=t.type;or(a)&&Ps(t);var r=t.flags;return r&Va?(t.flags=r&-65537|Mt,(t.mode&Ut)!==Le&&Xv(t),t):null}case q:{t.stateNode,Po(t),qd(t),xv();var i=t.flags;return(i&Va)!==je&&(i&Mt)===je?(t.flags=i&-65537|Mt,t):null}case ee:return Sv(t),null;case _e:{$o(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.");zo()}var l=t.flags;return l&Va?(t.flags=l&-65537|Mt,(t.mode&Ut)!==Le&&Xv(t),t):null}case Pe:return $o(t),null;case U:return Po(t),null;case Qe:var u=t.type._context;return fv(u,t),null;case Ue:case nt:return Bp(t),null;case ce:return null;default:return null}}function gb(e,t,n){switch(Kd(t),t.tag){case ae:{var a=t.type.childContextTypes;a!=null&&Ps(t);break}case q:{t.stateNode,Po(t),qd(t),xv();break}case ee:{Sv(t);break}case U:Po(t);break;case _e:$o(t);break;case Pe:$o(t);break;case Qe:var r=t.type._context;fv(r,t);break;case Ue:case nt:Bp(t);break}}var bb=null;bb=new Set;var Ac=!1,zn=!1,tw=typeof WeakSet=="function"?WeakSet:Set,he=null,Xo=null,Qo=null;function nw(e){wf(null,function(){throw e}),Df()}var aw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Ut)try{fr(),t.componentWillUnmount()}finally{cr(e)}else t.componentWillUnmount()};function Sb(e,t){try{si(gn,e)}catch(n){It(e,t,n)}}function wp(e,t,n){try{aw(e,n)}catch(a){It(e,t,a)}}function rw(e,t,n){try{n.componentDidMount()}catch(a){It(e,t,a)}}function Tb(e,t){try{Cb(e)}catch(n){It(e,t,n)}}function Ko(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Ae&&dn&&e.mode&Ut)try{fr(),a=n(null)}finally{cr(e)}else a=n(null)}catch(r){It(e,t,r)}typeof a=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ze(e))}else n.current=null}function Nc(e,t,n){try{n()}catch(a){It(e,t,a)}}var Eb=!1;function iw(e,t){yx(e.containerInfo),he=t,ow();var n=Eb;return Eb=!1,n}function ow(){for(;he!==null;){var e=he,t=e.child;(e.subtreeFlags&Af)!==je&&t!==null?(t.return=e,he=t):lw()}}function lw(){for(;he!==null;){var e=he;tn(e);try{uw(e)}catch(n){It(e,e.return,n)}Dn();var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function uw(e){var t=e.alternate,n=e.flags;if((n&ho)!==je){switch(tn(e),e.tag){case ge:case De:case Ee:break;case ae:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!Xi&&(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.",Ze(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.",Ze(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.",Ze(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case q:{{var u=e.stateNode;Bx(u.containerInfo)}break}case ee:case Fe:case U:case Re: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.")}Dn()}}function Xa(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&jn)!==ca?CT(t):(e&gn)!==ca&&fh(t),(e&lr)!==ca&&Fu(!0),Nc(t,n,l),(e&lr)!==ca&&Fu(!1),(e&jn)!==ca?xT():(e&gn)!==ca&&dh())}o=o.next}while(o!==i)}}function si(e,t){var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next,i=r;do{if((i.tag&e)===e){(e&jn)!==ca?TT(t):(e&gn)!==ca&&RT(t);var o=i.create;(e&lr)!==ca&&Fu(!0),i.destroy=o(),(e&lr)!==ca&&Fu(!1),(e&jn)!==ca?ET():(e&gn)!==ca&&wT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&gn)!==je?u="useLayoutEffect":(i.tag&lr)!==je?u="useInsertionEffect":u="useEffect";var c=void 0;l===null?c=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?c=`
|
|
|
|
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`:c=" You returned: "+l,d("%s must not return anything besides a function, which is used for clean-up.%s",u,c)}}}i=i.next}while(i!==r)}}function sw(e,t){if((t.flags&Rt)!==je)switch(t.tag){case gt:{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 q:var c=u.stateNode;c.passiveEffectDuration+=n;break e;case gt:var v=u.stateNode;v.passiveEffectDuration+=n;break e}u=u.return}break}}}function cw(e,t,n,a){if((n.flags&El)!==je)switch(n.tag){case ge:case De:case Ee:{if(!zn)if(n.mode&Ut)try{fr(),si(gn|yn,n)}finally{cr(n)}else si(gn|yn,n);break}case ae:{var r=n.stateNode;if(n.flags&Rt&&!zn)if(t===null)if(n.type===n.elementType&&!Xi&&(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.",Ze(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.",Ze(n)||"instance")),n.mode&Ut)try{fr(),r.componentDidMount()}finally{cr(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&&!Xi&&(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.",Ze(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.",Ze(n)||"instance")),n.mode&Ut)try{fr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{cr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Xi&&(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.",Ze(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.",Ze(n)||"instance")),ug(n,l,r));break}case q:{var u=n.updateQueue;if(u!==null){var c=null;if(n.child!==null)switch(n.child.tag){case ee:c=n.child.stateNode;break;case ae:c=n.child.stateNode;break}ug(n,u,c)}break}case ee:{var v=n.stateNode;if(t===null&&n.flags&Rt){var y=n.type,h=n.memoizedProps;_x(v,y,h)}break}case Fe:break;case U:break;case gt:{{var _=n.memoizedProps,L=_.onCommit,N=_.onRender,te=n.stateNode.effectDuration,Me=Hg(),xe=t===null?"mount":"update";zg()&&(xe="nested-update"),typeof N=="function"&&N(n.memoizedProps.id,xe,n.actualDuration,n.treeBaseDuration,n.actualStartTime,Me);{typeof L=="function"&&L(n.memoizedProps.id,xe,te,Me),lD(n);var yt=n.return;e:for(;yt!==null;){switch(yt.tag){case q:var ut=yt.stateNode;ut.effectDuration+=te;break e;case gt:var x=yt.stateNode;x.effectDuration+=te;break e}yt=yt.return}}}break}case _e:{gw(e,n);break}case Pe:case Re:case K:case Ue:case nt: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.")}zn||n.flags&Di&&Cb(n)}function fw(e){switch(e.tag){case ge:case De:case Ee:{if(e.mode&Ut)try{fr(),Sb(e,e.return)}finally{cr(e)}else Sb(e,e.return);break}case ae:{var t=e.stateNode;typeof t.componentDidMount=="function"&&rw(e,e.return,t),Tb(e,e.return);break}case ee:{Tb(e,e.return);break}}}function dw(e,t){for(var n=null,a=e;;){if(a.tag===ee){if(n===null){n=a;try{var r=a.stateNode;t?Hx(r):Fx(a.stateNode,a.memoizedProps)}catch(o){It(e,e.return,o)}}}else if(a.tag===Fe){if(n===null)try{var i=a.stateNode;t?Vx(i):Px(i,a.memoizedProps)}catch(o){It(e,e.return,o)}}else if(!((a.tag===Ue||a.tag===nt)&&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 ee:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&Ut)try{fr(),r=t(a)}finally{cr(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.",Ze(e))}else t.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ze(e)),t.current=a}}function vw(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===ee){var n=e.stateNode;n!==null&&b1(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 pw(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===ee||e.tag===q||e.tag===U}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!==ee&&t.tag!==Fe&&t.tag!==le;){if(t.flags&_n||t.child===null||t.tag===U)continue e;t.child.return=t,t=t.child}if(!(t.flags&_n))return t.stateNode}}function mw(e){var t=pw(e);switch(t.tag){case ee:{var n=t.stateNode;t.flags&as&&(_y(n),t.flags&=-33);var a=wb(e);_p(e,a,n);break}case q:case U:{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===ee||a===Fe;if(r){var i=e.stateNode;t?Nx(n,i,t):kx(n,i)}else if(a!==U){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===ee||a===Fe;if(r){var i=e.stateNode;t?Ax(n,i,t):Ox(n,i)}else if(a!==U){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 Hn=null,Qa=!1;function hw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case ee:{Hn=a.stateNode,Qa=!1;break e}case q:{Hn=a.stateNode.containerInfo,Qa=!0;break e}case U:{Hn=a.stateNode.containerInfo,Qa=!0;break e}}a=a.return}if(Hn===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),Hn=null,Qa=!1}vw(n)}function ci(e,t,n){for(var a=n.child;a!==null;)Db(e,t,a),a=a.sibling}function Db(e,t,n){switch(yT(n),n.tag){case ee:zn||Ko(n,t);case Fe:{{var a=Hn,r=Qa;Hn=null,ci(e,t,n),Hn=a,Qa=r,Hn!==null&&(Qa?Ux(Hn,n.stateNode):jx(Hn,n.stateNode))}return}case le:{Hn!==null&&(Qa?zx(Hn,n.stateNode):Vd(Hn,n.stateNode));return}case U:{{var i=Hn,o=Qa;Hn=n.stateNode.containerInfo,Qa=!0,ci(e,t,n),Hn=i,Qa=o}return}case ge:case De:case oe:case Ee:{if(!zn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var c=u.next,v=c;do{var y=v,h=y.destroy,_=y.tag;h!==void 0&&((_&lr)!==ca?Nc(n,t,h):(_&gn)!==ca&&(fh(n),n.mode&Ut?(fr(),Nc(n,t,h),cr(n)):Nc(n,t,h),dh())),v=v.next}while(v!==c)}}}ci(e,t,n);return}case ae:{if(!zn){Ko(n,t);var L=n.stateNode;typeof L.componentWillUnmount=="function"&&wp(n,t,L)}ci(e,t,n);return}case K:{ci(e,t,n);return}case Ue:{if(n.mode&mt){var N=zn;zn=N||n.memoizedState!==null,ci(e,t,n),zn=N}else ci(e,t,n);break}default:{ci(e,t,n);return}}}function yw(e){e.memoizedState}function gw(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&&n1(i)}}}}function _b(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tw),t.forEach(function(a){var r=pD.bind(null,e,a);if(!n.has(a)){if(n.add(a),Fa)if(Xo!==null&&Qo!==null)Vu(Qo,Xo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function bw(e,t,n){Xo=n,Qo=e,tn(t),Mb(t,e),tn(t),Xo=null,Qo=null}function Ka(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{hw(e,t,i)}catch(u){It(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 ge:case De:case oe:case Ee:{if(Ka(t,e),dr(e),r&Rt){try{Xa(lr|yn,e,e.return),si(lr|yn,e)}catch(He){It(e,e.return,He)}if(e.mode&Ut){try{fr(),Xa(gn|yn,e,e.return)}catch(He){It(e,e.return,He)}cr(e)}else try{Xa(gn|yn,e,e.return)}catch(He){It(e,e.return,He)}}return}case ae:{Ka(t,e),dr(e),r&Di&&a!==null&&Ko(a,a.return);return}case ee:{Ka(t,e),dr(e),r&Di&&a!==null&&Ko(a,a.return);{if(e.flags&as){var i=e.stateNode;try{_y(i)}catch(He){It(e,e.return,He)}}if(r&Rt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,c=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{Mx(o,v,c,u,l,e)}catch(He){It(e,e.return,He)}}}}return}case Fe:{if(Ka(t,e),dr(e),r&Rt){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 y=e.stateNode,h=e.memoizedProps,_=a!==null?a.memoizedProps:h;try{Lx(y,_,h)}catch(He){It(e,e.return,He)}}return}case q:{if(Ka(t,e),dr(e),r&Rt&&a!==null){var L=a.memoizedState;if(L.isDehydrated)try{t1(t.containerInfo)}catch(He){It(e,e.return,He)}}return}case U:{Ka(t,e),dr(e);return}case _e:{Ka(t,e),dr(e);var N=e.child;if(N.flags&Mi){var te=N.stateNode,Me=N.memoizedState,xe=Me!==null;if(te.isHidden=xe,xe){var yt=N.alternate!==null&&N.alternate.memoizedState!==null;yt||Jw()}}if(r&Rt){try{yw(e)}catch(He){It(e,e.return,He)}_b(e)}return}case Ue:{var ut=a!==null&&a.memoizedState!==null;if(e.mode&mt){var x=zn;zn=x||ut,Ka(t,e),zn=x}else Ka(t,e);if(dr(e),r&Mi){var j=e.stateNode,R=e.memoizedState,Y=R!==null,de=e;if(j.isHidden=Y,Y&&!ut&&(de.mode&mt)!==Le){he=de;for(var ue=de.child;ue!==null;)he=ue,Tw(ue),ue=ue.sibling}dw(de,Y)}return}case Pe:{Ka(t,e),dr(e),r&Rt&&_b(e);return}case K:return;default:{Ka(t,e),dr(e);return}}}function dr(e){var t=e.flags;if(t&_n){try{mw(e)}catch(n){It(e,e.return,n)}e.flags&=-3}t&_i&&(e.flags&=-4097)}function Sw(e,t,n){Xo=n,Qo=t,he=e,Lb(e,t,n),Xo=null,Qo=null}function Lb(e,t,n){for(var a=(e.mode&mt)!==Le;he!==null;){var r=he,i=r.child;if(r.tag===Ue&&a){var o=r.memoizedState!==null,l=o||Ac;if(l){Mp(e,t,n);continue}else{var u=r.alternate,c=u!==null&&u.memoizedState!==null,v=c||zn,y=Ac,h=zn;Ac=l,zn=v,zn&&!h&&(he=r,Ew(r));for(var _=i;_!==null;)he=_,Lb(_,t,n),_=_.sibling;he=r,Ac=y,zn=h,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{cw(t,r,a,n)}catch(o){It(a,a.return,o)}Dn()}if(a===e){he=null;return}var i=a.sibling;if(i!==null){i.return=a.return,he=i;return}he=a.return}}function Tw(e){for(;he!==null;){var t=he,n=t.child;switch(t.tag){case ge:case De:case oe:case Ee:{if(t.mode&Ut)try{fr(),Xa(gn,t,t.return)}finally{cr(t)}else Xa(gn,t,t.return);break}case ae:{Ko(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wp(t,t.return,a);break}case ee:{Ko(t,t.return);break}case Ue:{var r=t.memoizedState!==null;if(r){Ob(e);continue}break}}n!==null?(n.return=t,he=n):Ob(e)}}function Ob(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 Ew(e){for(;he!==null;){var t=he,n=t.child;if(t.tag===Ue){var a=t.memoizedState!==null;if(a){kb(e);continue}}n!==null?(n.return=t,he=n):kb(e)}}function kb(e){for(;he!==null;){var t=he;tn(t);try{fw(t)}catch(a){It(t,t.return,a)}if(Dn(),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,t,n,a){he=t,xw(t,e,n,a)}function xw(e,t,n,a){for(;he!==null;){var r=he,i=r.child;(r.subtreeFlags&yo)!==je&&i!==null?(i.return=r,he=i):Rw(e,t,n,a)}}function Rw(e,t,n,a){for(;he!==null;){var r=he;if((r.flags&Ir)!==je){tn(r);try{ww(t,r,n,a)}catch(o){It(r,r.return,o)}Dn()}if(r===e){he=null;return}var i=r.sibling;if(i!==null){i.return=r.return,he=i;return}he=r.return}}function ww(e,t,n,a){switch(t.tag){case ge:case De:case Ee:{if(t.mode&Ut){Gv();try{si(jn|yn,t)}finally{qv(t)}}else si(jn|yn,t);break}}}function Dw(e){he=e,_w()}function _w(){for(;he!==null;){var e=he,t=e.child;if((he.flags&Ri)!==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&yo)!==je&&t!==null?(t.return=e,he=t):Mw()}}function Mw(){for(;he!==null;){var e=he;(e.flags&Ir)!==je&&(tn(e),Lw(e),Dn());var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function Lw(e){switch(e.tag){case ge:case De:case Ee:{e.mode&Ut?(Gv(),Xa(jn|yn,e,e.return),qv(e)):Xa(jn|yn,e,e.return);break}}}function Ow(e,t){for(;he!==null;){var n=he;tn(n),Aw(n,t),Dn();var a=n.child;a!==null?(a.return=n,he=a):kw(e)}}function kw(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 Aw(e,t){switch(e.tag){case ge:case De:case Ee:{e.mode&Ut?(Gv(),Xa(jn,e,t),qv(e)):Xa(jn,e,t);break}}}function Nw(e){switch(e.tag){case ge:case De:case Ee:{try{si(gn|yn,e)}catch(n){It(e,e.return,n)}break}case ae:{var t=e.stateNode;try{t.componentDidMount()}catch(n){It(e,e.return,n)}break}}}function jw(e){switch(e.tag){case ge:case De:case Ee:{try{si(jn|yn,e)}catch(t){It(e,e.return,t)}break}}}function Uw(e){switch(e.tag){case ge:case De:case Ee:{try{Xa(gn|yn,e,e.return)}catch(n){It(e,e.return,n)}break}case ae:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&wp(e,e.return,t);break}}}function zw(e){switch(e.tag){case ge:case De:case Ee:try{Xa(jn|yn,e,e.return)}catch(t){It(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 Hw=[];function Vw(){Hw.forEach(function(e){return e()})}var Fw=pe.ReactCurrentActQueue;function Pw(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&&Fw.current!==null&&d("The current testing environment is not configured to support act(...)"),e}}var Bw=Math.ceil,Lp=pe.ReactCurrentDispatcher,Op=pe.ReactCurrentOwner,Vn=pe.ReactCurrentBatchConfig,Za=pe.ReactCurrentActQueue,Tn=0,Nb=1,Fn=2,Na=4,Ar=0,Mu=1,Qi=2,jc=3,Lu=4,jb=5,kp=6,ht=Tn,ea=null,rn=null,En=$,vr=$,Ap=ei($),Cn=Ar,Ou=null,Uc=$,ku=$,zc=$,Au=null,fa=null,Np=0,Ub=500,zb=1/0,$w=500,Nr=null;function Nu(){zb=Mn()+$w}function Hb(){return zb}var Hc=!1,jp=null,Zo=null,Ki=!1,fi=null,ju=$,Up=[],zp=null,Yw=50,Uu=0,Hp=null,Vp=!1,Vc=!1,Iw=50,Jo=0,Fc=null,zu=Xt,Pc=$,Vb=!1;function Bc(){return ea}function ta(){return(ht&(Fn|Na))!==Tn?Mn():(zu!==Xt||(zu=Mn()),zu)}function di(e){var t=e.mode;if((t&mt)===Le)return $e;if((ht&Fn)!==Tn&&En!==$)return Ml(En);var n=F1()!==V1;if(n){if(Vn.transition!==null){var a=Vn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return Pc===On&&(Pc=Sh()),Pc}var r=Pa();if(r!==On)return r;var i=xx();return i}function Ww(e){var t=e.mode;return(t&mt)===Le?$e:GT()}function xn(e,t,n,a){hD(),Vb&&d("useInsertionEffect must not schedule updates."),Vp&&(Vc=!0),Ll(e,n,a),(ht&Fn)!==$&&e===ea?bD(t):(Fa&&Ch(e,t,n),SD(t),e===ea&&((ht&Fn)===Tn&&(ku=it(ku,n)),Cn===Lu&&vi(e,En)),da(e,a),n===$e&&ht===Tn&&(t.mode&mt)===Le&&!Za.isBatchingLegacy&&(Nu(),Vy()))}function qw(e,t,n){var a=e.current;a.lanes=t,Ll(e,t,n),da(e,n)}function Gw(e){return(ht&Fn)!==Tn}function da(e,t){var n=e.callbackNode;BT(e,t);var a=ss(e,e===ea?En:$);if(a===$){n!==null&&tS(n),e.callbackNode=null,e.callbackPriority=On;return}var r=ji(a),i=e.callbackPriority;if(i===r&&!(Za.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===ti?(Za.isBatchingLegacy!==null&&(Za.didScheduleLegacyUpdate=!0),E1(Bb.bind(null,e))):Hy(Bb.bind(null,e)),Za.current!==null?Za.current.push(ni):wx(function(){(ht&(Fn|Na))===Tn&&ni()}),o=null;else{var l;switch(wh(a)){case ba:l=is;break;case xr:l=jf;break;case Rr:l=ki;break;case ds:l=Uf;break;default:l=ki;break}o=qp(l,Fb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Fb(e,t){if(dR(),zu=Xt,Pc=$,(ht&(Fn|Na))!==Tn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Ur();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===ea?En:$);if(r===$)return null;var i=!cs(e,r)&&!qT(e,r)&&!t,o=i?rD(e,r):Yc(e,r);if(o!==Ar){if(o===Qi){var l=rd(e);l!==$&&(r=l,o=Fp(e,l))}if(o===Mu){var u=Ou;throw Zi(e,$),vi(e,r),da(e,Mn()),u}if(o===kp)vi(e,r);else{var c=!cs(e,r),v=e.current.alternate;if(c&&!Qw(v)){if(o=Yc(e,r),o===Qi){var y=rd(e);y!==$&&(r=y,o=Fp(e,y))}if(o===Mu){var h=Ou;throw Zi(e,$),vi(e,r),da(e,Mn()),h}}e.finishedWork=v,e.finishedLanes=r,Xw(e,o,r)}}return da(e,Mn()),e.callbackNode===n?Fb.bind(null,e):null}function Fp(e,t){var n=Au;if(vs(e)){var a=Zi(e,t);a.flags|=wi,m1(e.containerInfo)}var r=Yc(e,t);if(r!==Qi){var i=fa;fa=n,i!==null&&Pb(i)}return r}function Pb(e){fa===null?fa=e:fa.push.apply(fa,e)}function Xw(e,t,n){switch(t){case Ar:case Mu:throw new Error("Root did not complete. This is a bug in React.");case Qi:{Ji(e,fa,Nr);break}case jc:{if(vi(e,n),gh(n)&&!nS()){var a=Np+Ub-Mn();if(a>10){var r=ss(e,$);if(r!==$)break;var i=e.suspendedLanes;if(!Co(i,n)){ta(),Eh(e,i);break}e.timeoutHandle=zd(Ji.bind(null,e,fa,Nr),a);break}}Ji(e,fa,Nr);break}case Lu:{if(vi(e,n),WT(n))break;if(!nS()){var o=FT(e,n),l=o,u=Mn()-l,c=mD(u)-u;if(c>10){e.timeoutHandle=zd(Ji.bind(null,e,fa,Nr),c);break}}Ji(e,fa,Nr);break}case jb:{Ji(e,fa,Nr);break}default:throw new Error("Unknown root exit status.")}}function Qw(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(!Ta(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 vi(e,t){t=fs(t,zc),t=fs(t,ku),QT(e,t)}function Bb(e){if(vR(),(ht&(Fn|Na))!==Tn)throw new Error("Should not already be working.");Ur();var t=ss(e,$);if(!ga(t,$e))return da(e,Mn()),null;var n=Yc(e,t);if(e.tag!==ti&&n===Qi){var a=rd(e);a!==$&&(t=a,n=Fp(e,a))}if(n===Mu){var r=Ou;throw Zi(e,$),vi(e,t),da(e,Mn()),r}if(n===kp)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,Ji(e,fa,Nr),da(e,Mn()),null}function Kw(e,t){t!==$&&(ud(e,it(t,$e)),da(e,Mn()),(ht&(Fn|Na))===Tn&&(Nu(),ni()))}function Pp(e,t){var n=ht;ht|=Nb;try{return e(t)}finally{ht=n,ht===Tn&&!Za.isBatchingLegacy&&(Nu(),Vy())}}function Zw(e,t,n,a,r){var i=Pa(),o=Vn.transition;try{return Vn.transition=null,kn(ba),e(t,n,a,r)}finally{kn(i),Vn.transition=o,ht===Tn&&Nu()}}function jr(e){fi!==null&&fi.tag===ti&&(ht&(Fn|Na))===Tn&&Ur();var t=ht;ht|=Nb;var n=Vn.transition,a=Pa();try{return Vn.transition=null,kn(ba),e?e():void 0}finally{kn(a),Vn.transition=n,ht=t,(ht&(Fn|Na))===Tn&&ni()}}function $b(){return(ht&(Fn|Na))!==Tn}function $c(e,t){Wn(Ap,vr,e),vr=it(vr,t)}function Bp(e){vr=Ap.current,In(Ap,e)}function Zi(e,t){e.finishedWork=null,e.finishedLanes=$;var n=e.timeoutHandle;if(n!==Hd&&(e.timeoutHandle=Hd,Rx(n)),rn!==null)for(var a=rn.return;a!==null;){var r=a.alternate;gb(r,a),a=a.return}ea=e;var i=eo(e.current,null);return rn=i,En=vr=t,Cn=Ar,Ou=null,Uc=$,ku=$,zc=$,Au=null,fa=null,q1(),Ya.discardPendingWarnings(),i}function Yb(e,t){do{var n=rn;try{if(Js(),pg(),Dn(),Op.current=null,n===null||n.return===null){Cn=Mu,Ou=t,rn=null;return}if(Ae&&n.mode&Ut&&_c(n,!0),Be)if(bo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;_T(n,a,En)}else DT(n,t,En);ER(e,n.return,n,t,En),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 Jw(){Np=Mn()}function Hu(e){Uc=it(e,Uc)}function eD(){Cn===Ar&&(Cn=jc)}function $p(){(Cn===Ar||Cn===jc||Cn===Qi)&&(Cn=Lu),ea!==null&&(id(Uc)||id(ku))&&vi(ea,En)}function tD(e){Cn!==Lu&&(Cn=Qi),Au===null?Au=[e]:Au.push(e)}function nD(){return Cn===Ar}function Yc(e,t){var n=ht;ht|=Fn;var a=Ib();if(ea!==e||En!==t){if(Fa){var r=e.memoizedUpdaters;r.size>0&&(Vu(e,En),r.clear()),xh(e,t)}Nr=Rh(),Zi(e,t)}vh(t);do try{aD();break}catch(i){Yb(e,i)}while(!0);if(Js(),ht=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(),ea=null,En=$,Cn}function aD(){for(;rn!==null;)qb(rn)}function rD(e,t){var n=ht;ht|=Fn;var a=Ib();if(ea!==e||En!==t){if(Fa){var r=e.memoizedUpdaters;r.size>0&&(Vu(e,En),r.clear()),xh(e,t)}Nr=Rh(),Nu(),Zi(e,t)}vh(t);do try{iD();break}catch(i){Yb(e,i)}while(!0);return Js(),Wb(a),ht=n,rn!==null?(AT(),Ar):(ph(),ea=null,En=$,Cn)}function iD(){for(;rn!==null&&!lT();)qb(rn)}function qb(e){var t=e.alternate;tn(e);var n;(e.mode&Ut)!==Le?(Wv(e),n=Yp(t,e,vr),_c(e,!0)):n=Yp(t,e,vr),Dn(),e.memoizedProps=e.pendingProps,n===null?Gb(e):rn=n,Op.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)===Le?r=yb(n,t,vr):(Wv(t),r=yb(n,t,vr),_c(t,!1)),Dn(),r!==null){rn=r;return}}else{var i=ew(n,t);if(i!==null){i.flags&=tT,rn=i;return}if((t.mode&Ut)!==Le){_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{Cn=kp,rn=null;return}}var u=t.sibling;if(u!==null){rn=u;return}t=a,rn=t}while(t!==null);Cn===Ar&&(Cn=jb)}function Ji(e,t,n){var a=Pa(),r=Vn.transition;try{Vn.transition=null,kn(ba),oD(e,t,n,a)}finally{Vn.transition=r,kn(a)}return null}function oD(e,t,n,a){do Ur();while(fi!==null);if(yD(),(ht&(Fn|Na))!==Tn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(ST(i),r===null)return ch(),null;if(i===$&&d("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=$,r===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=On;var o=it(r.lanes,r.childLanes);KT(e,o),e===ea&&(ea=null,rn=null,En=$),((r.subtreeFlags&yo)!==je||(r.flags&yo)!==je)&&(Ki||(Ki=!0,zp=n,qp(ki,function(){return Ur(),null})));var l=(r.subtreeFlags&(Af|Nf|El|yo))!==je,u=(r.flags&(Af|Nf|El|yo))!==je;if(l||u){var c=Vn.transition;Vn.transition=null;var v=Pa();kn(ba);var y=ht;ht|=Na,Op.current=null,iw(e,r),Vg(),bw(e,r,i),gx(e.containerInfo),e.current=r,MT(i),Sw(r,e,i),LT(),uT(),ht=y,kn(v),Vn.transition=c}else e.current=r,Vg();var h=Ki;if(Ki?(Ki=!1,fi=e,ju=i):(Jo=0,Fc=null),o=e.pendingLanes,o===$&&(Zo=null),h||Zb(e.current,!1),mT(r.stateNode,a),Fa&&e.memoizedUpdaters.clear(),Vw(),da(e,Mn()),t!==null)for(var _=e.onRecoverableError,L=0;L<t.length;L++){var N=t[L],te=N.stack,Me=N.digest;_(N.value,{componentStack:te,digest:Me})}if(Hc){Hc=!1;var xe=jp;throw jp=null,xe}return ga(ju,$e)&&e.tag!==ti&&Ur(),o=e.pendingLanes,ga(o,$e)?(fR(),e===Hp?Uu++:(Uu=0,Hp=e)):Uu=0,ni(),ch(),null}function Ur(){if(fi!==null){var e=wh(ju),t=tE(Rr,e),n=Vn.transition,a=Pa();try{return Vn.transition=null,kn(t),uD()}finally{kn(a),Vn.transition=n}}return!1}function lD(e){Up.push(e),Ki||(Ki=!0,qp(ki,function(){return Ur(),null}))}function uD(){if(fi===null)return!1;var e=zp;zp=null;var t=fi,n=ju;if(fi=null,ju=$,(ht&(Fn|Na))!==Tn)throw new Error("Cannot flush passive effects while already rendering.");Vp=!0,Vc=!1,OT(n);var a=ht;ht|=Na,Dw(t.current),Cw(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];sw(t,o)}}kT(),Zb(t.current,!0),ht=a,ni(),Vc?t===Fc?Jo++:(Jo=0,Fc=t):Jo=0,Vp=!1,Vc=!1,hT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Xb(e){return Zo!==null&&Zo.has(e)}function sD(e){Zo===null?Zo=new Set([e]):Zo.add(e)}function cD(e){Hc||(Hc=!0,jp=e)}var fD=cD;function Qb(e,t,n){var a=Gi(n,t),r=qg(e,a,$e),i=ri(e,r,$e),o=ta();i!==null&&(Ll(i,$e,o),da(i,o))}function It(e,t,n){if(nw(n),Fu(!1),e.tag===q){Qb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===q){Qb(a,e,n);return}else if(a.tag===ae){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Xb(i)){var o=Gi(n,e),l=cp(a,o,$e),u=ri(a,l,$e),c=ta();u!==null&&(Ll(u,$e,c),da(u,c));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 dD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ta();Eh(e,n),TD(e),ea===e&&Co(En,n)&&(Cn===Lu||Cn===jc&&gh(En)&&Mn()-Np<Ub?Zi(e,$):zc=it(zc,n)),da(e,r)}function Kb(e,t){t===On&&(t=Ww(e));var n=ta(),a=sa(e,t);a!==null&&(Ll(a,t,n),da(a,n))}function vD(e){var t=e.memoizedState,n=On;t!==null&&(n=t.retryLane),Kb(e,n)}function pD(e,t){var n=On,a;switch(e.tag){case _e:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case Pe: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 mD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Bw(e/1960)*1960}function hD(){if(Uu>Yw)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.");Jo>Iw&&(Jo=0,Fc=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 yD(){Ya.flushLegacyContextWarning(),Ya.flushPendingUnsafeLifecycleWarnings()}function Zb(e,t){tn(e),Ic(e,Wr,Uw),t&&Ic(e,kf,zw),Ic(e,Wr,Nw),t&&Ic(e,kf,jw),Dn()}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((ht&Fn)!==Tn||!(e.mode&mt))return;var t=e.tag;if(t!==ct&&t!==q&&t!==ae&&t!==ge&&t!==De&&t!==oe&&t!==Ee)return;var n=Ze(e)||"ReactComponent";if(Wc!==null){if(Wc.has(n))return;Wc.add(n)}else Wc=new Set([n]);var a=Qn;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):Dn()}}}var Yp;{var gD=null;Yp=function(e,t,n){var a=lS(gD,t);try{return db(e,t,n)}catch(i){if(L1()||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),Z0()){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 bD(e){if(Ti&&!uR())switch(e.tag){case ge:case De:case Ee:{var t=rn&&Ze(rn)||"Unknown",n=t;if(!Ip.has(n)){Ip.add(n);var a=Ze(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 ae:{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 Vu(e,t){if(Fa){var n=e.memoizedUpdaters;n.forEach(function(a){Ch(e,a,t)})}}var Wp={};function qp(e,t){{var n=Za.current;return n!==null?(n.push(t),Wp):sh(e,t)}}function tS(e){if(e!==Wp)return oT(e)}function nS(){return Za.current!==null}function SD(e){{if(e.mode&mt){if(!Ab())return}else if(!Pw()||ht!==Tn||e.tag!==ge&&e.tag!==De&&e.tag!==Ee)return;if(Za.current===null){var t=Qn;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`,Ze(e))}finally{t?tn(e):Dn()}}}}function TD(e){e.tag!==ti&&Ab()&&Za.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 Fu(e){Vb=e}var ja=null,el=null,ED=function(e){ja=e};function tl(e){{if(ja===null)return e;var t=ja(e);return t===void 0?e:t.current}}function Gp(e){return tl(e)}function Xp(e){{if(ja===null)return e;var t=ja(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=tl(e.render);if(e.render!==n){var a={$$typeof:S,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function aS(e,t){{if(ja===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 ae:{typeof a=="function"&&(r=!0);break}case ge:{(typeof a=="function"||i===re)&&(r=!0);break}case De:{(i===S||i===re)&&(r=!0);break}case oe:case Ee:{(i===V||i===re)&&(r=!0);break}default:return!1}if(r){var o=ja(n);if(o!==void 0&&o===ja(a))return!0}return!1}}function rS(e){{if(ja===null||typeof WeakSet!="function")return;el===null&&(el=new WeakSet),el.add(e)}}var CD=function(e,t){{if(ja===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Ur(),jr(function(){Qp(e.current,a,n)})}},xD=function(e,t){{if(e.context!==Ea)return;Ur(),jr(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 ge:case Ee:case ae:u=l;break;case De:u=l.render;break}if(ja===null)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,v=!1;if(u!==null){var y=ja(u);y!==void 0&&(n.has(y)?v=!0:t.has(y)&&(o===ae?v=!0:c=!0))}if(el!==null&&(el.has(e)||a!==null&&el.has(a))&&(v=!0),v&&(e._debugNeedsRemount=!0),v||c){var h=sa(e,$e);h!==null&&xn(h,e,$e,Xt)}r!==null&&!v&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var RD=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 ge:case Ee:case ae:l=o;break;case De:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?wD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function wD(e,t){{var n=DD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ee:t.add(a.stateNode);return;case U:t.add(a.stateNode.containerInfo);return;case q:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function DD(e,t){for(var n=e,a=!1;;){if(n.tag===ee)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 _D(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=$,this.childLanes=$,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 Ca=function(e,t,n,a){return new _D(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function MD(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function LD(e){if(typeof e=="function")return Jp(e)?ae:ge;if(e!=null){var t=e.$$typeof;if(t===S)return De;if(t===V)return oe}return ct}function eo(e,t){var n=e.alternate;n===null?(n=Ca(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&Er,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 ct:case ge:case Ee:n.type=tl(e.type);break;case ae:n.type=Gp(e.type);break;case De:n.type=Xp(e.type);break}return n}function OD(e,t){e.flags&=Er|_n;var n=e.alternate;if(n===null)e.childLanes=$,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 kD(e,t,n){var a;return e===$s?(a=mt,t===!0&&(a|=un,a|=ar)):a=Le,Fa&&(a|=Ut),Ca(q,null,null,a)}function em(e,t,n,a,r,i){var o=ct,l=e;if(typeof e=="function")Jp(e)?(o=ae,l=Gp(l)):l=tl(l);else if(typeof e=="string")o=ee;else e:switch(e){case C:return pi(n.children,r,i,t);case E:o=wt,r|=un,(r&mt)!==Le&&(r|=ar);break;case k:return AD(n,r,i,t);case O:return ND(n,r,i,t);case P:return jD(n,r,i,t);case St:return oS(n,r,i,t);case Ft:case we:case At:case Pt:case me:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b:o=Qe;break e;case f:o=Dt;break e;case S:o=De,l=Xp(l);break e;case V:o=oe;break e;case re: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 c=a?Ze(a):null;c&&(u+=`
|
|
|
|
Check the render method of \``+c+"`.")}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=Ca(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 pi(e,t,n,a){var r=Ca($t,e,a,t);return r.lanes=n,r}function AD(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=Ca(gt,e,a,t|Ut);return r.elementType=k,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function ND(e,t,n,a){var r=Ca(_e,e,a,t);return r.elementType=O,r.lanes=n,r}function jD(e,t,n,a){var r=Ca(Pe,e,a,t);return r.elementType=P,r.lanes=n,r}function oS(e,t,n,a){var r=Ca(Ue,e,a,t);r.elementType=St,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Ca(Fe,e,null,t);return a.lanes=n,a}function UD(){var e=Ca(ee,null,null,Le);return e.elementType="DELETED",e}function zD(e){var t=Ca(le,null,null,Le);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Ca(U,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=Ca(ct,null,null,Le)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function HD(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Hd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=On,this.eventTimes=ld($),this.expirationTimes=ld(Xt),this.pendingLanes=$,this.suspendedLanes=$,this.pingedLanes=$,this.expiredLanes=$,this.mutableReadLanes=$,this.finishedLanes=$,this.entangledLanes=$,this.entanglements=ld($),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 ti:this._debugRootType=n?"hydrate()":"render()";break}}function uS(e,t,n,a,r,i,o,l,u,c){var v=new HD(e,t,n,l,u),y=kD(t,i);v.current=y,y.stateNode=v;{var h={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};y.memoizedState=h}return hv(y),v}var rm="18.3.1";function VD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Ne(a),{$$typeof:w,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function sS(e){if(!e)return Ea;var t=po(e),n=T1(t);if(t.tag===ae){var a=t.type;if(or(a))return Uy(t,a,n)}return n}function FD(e,t){{var n=po(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&un){var i=Ze(n)||"Component";if(!om[i]){om[i]=!0;var o=Qn;try{tn(r),n.mode&un?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):Dn()}}}return r.stateNode}}function cS(e,t,n,a,r,i,o,l){var u=!1,c=null;return uS(e,t,u,c,n,a,r,i,o)}function fS(e,t,n,a,r,i,o,l,u,c){var v=!0,y=uS(n,a,v,e,r,i,o,l,u);y.context=sS(null);var h=y.current,_=ta(),L=di(h),N=Or(_,L);return N.callback=t??null,ri(h,N,L),qw(y,L,_),y}function Pu(e,t,n,a){pT(t,e);var r=t.current,i=ta(),o=di(r);NT(o);var l=sS(n);t.context===null?t.context=l:t.pendingContext=l,Ti&&Qn!==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.`,Ze(Qn)||"Unknown"));var u=Or(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 c=ri(r,u,o);return c!==null&&(xn(c,r,o,i),rc(c,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ee:return t.child.stateNode;default:return t.child.stateNode}}function PD(e){switch(e.tag){case q:{var t=e.stateNode;if(vs(t)){var n=$T(t);Kw(t,n)}break}case _e:{jr(function(){var r=sa(e,$e);if(r!==null){var i=ta();xn(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=XT(n.retryLane,t))}function lm(e,t){dS(e,t);var n=e.alternate;n&&dS(n,t)}function BD(e){if(e.tag===_e){var t=wl,n=sa(e,t);if(n!==null){var a=ta();xn(n,e,t,a)}lm(e,t)}}function $D(e){if(e.tag===_e){var t=di(e),n=sa(e,t);if(n!==null){var a=ta();xn(n,e,t,a)}lm(e,t)}}function vS(e){var t=iT(e);return t===null?null:t.stateNode}var pS=function(e){return null};function YD(e){return pS(e)}var mS=function(e){return!1};function ID(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():ze({},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():ze({},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){Oe("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){Oe("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():ze({},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=ze({},e.memoizedProps);var o=sa(e,$e);o!==null&&xn(o,e,$e,Xt)}},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=ze({},e.memoizedProps);var i=sa(e,$e);i!==null&&xn(i,e,$e,Xt)}},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=ze({},e.memoizedProps);var o=sa(e,$e);o!==null&&xn(o,e,$e,Xt)}},bS=function(e,t,n){e.pendingProps=LS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=sa(e,$e);a!==null&&xn(a,e,$e,Xt)},SS=function(e,t){e.pendingProps=wS(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=sa(e,$e);n!==null&&xn(n,e,$e,Xt)},TS=function(e,t,n){e.pendingProps=_S(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=sa(e,$e);a!==null&&xn(a,e,$e,Xt)},ES=function(e){var t=sa(e,$e);t!==null&&xn(t,e,$e,Xt)},CS=function(e){pS=e},xS=function(e){mS=e}}function WD(e){var t=oh(e);return t===null?null:t.stateNode}function qD(e){return null}function GD(){return Qn}function XD(e){var t=e.findFiberByHostInstance,n=pe.ReactCurrentDispatcher;return vT({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:WD,findFiberByHostInstance:t||qD,findHostInstancesForRefresh:RD,scheduleRefresh:CD,scheduleRoot:xD,setRefreshHandler:ED,getCurrentFiber:GD,reconcilerVersion:rm})}var OS=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."),jr(function(){Pu(null,e,null,null)}),Oy(t)}};function QD(e,t){if(!Xc(e))throw new Error("createRoot(...): Target container is not a DOM element.");kS(e);var n=!1,a=!1,r="",i=OS;t!=null&&(t.hydrate?Oe("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===H&&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 KD(e){e&&dE(e)}Gc.prototype.unstable_scheduleHydration=KD;function ZD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");kS(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=OS;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var c=fS(t,null,e,$s,a,i,o,l,u);if(Us(c.current,e),ql(e),r)for(var v=0;v<r.length;v++){var y=r[v];nR(c,y)}return new Gc(c)}function Xc(e){return!!(e&&(e.nodeType===la||e.nodeType===Tr||e.nodeType===mf))}function Bu(e){return!!(e&&(e.nodeType===la||e.nodeType===Tr||e.nodeType===mf||e.nodeType===pn&&e.nodeValue===" react-mount-point-unstable "))}function kS(e){e.nodeType===la&&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 JD=pe.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&&Jr(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===la&&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===Tr?e.documentElement:e.firstChild:null}function NS(){}function e_(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var h=qc(o);i.call(h)}}var o=fS(t,a,e,ti,null,!1,!1,"",NS);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return ql(l),jr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var c=a;a=function(){var h=qc(v);c.call(h)}}var v=cS(e,ti,null,!1,!1,"",NS);e._reactRootContainer=v,Us(v.current,e);var y=e.nodeType===pn?e.parentNode:e;return ql(y),jr(function(){Pu(t,v,n,a)}),v}}function t_(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),t_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=e_(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 n_(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=JD.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.",xt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===la?e:FD(e,"findDOMNode")}function a_(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 r_(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 i_(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||!J0(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var US=!1;function o_(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&&!Jr(n);a&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return jr(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,Oy(e)})}),!0}else{{var r=cm(e),i=!!(r&&Jr(r)),o=e.nodeType===la&&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}}nE(PD),rE(BD),iE($D),oE(Pa),lE(JT),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&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"),B0(ux),I0(Pp,Zw,jr);function l_(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 u_(e,t,n,a){return i_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[Jr,ko,zs,qm,Gm,Pp]};function s_(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".'),QD(e,t)}function c_(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".'),ZD(e,t,n)}function f_(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."),jr(e)}var d_=XD({findFiberByHostInstance:Vi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!d_&&on&&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")}ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,ra.createPortal=l_,ra.createRoot=s_,ra.findDOMNode=n_,ra.flushSync=f_,ra.hydrate=a_,ra.hydrateRoot=c_,ra.render=r_,ra.unmountComponentAtNode=o_,ra.unstable_batchedUpdates=Pp,ra.unstable_renderSubtreeIntoContainer=u_,ra.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ra}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(T,D){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(T,D)}finally{Em.usingClientEntryPoint=!1}}}const B=T=>{if(isNaN(T))return"00:00:00.000";const D=Math.floor(T/3600),pe=Math.floor(T%3600/60),Te=Math.floor(T%60),ve=Math.round(T%1*1e3),Oe=String(D).padStart(2,"0"),d=String(pe).padStart(2,"0"),X=String(Te).padStart(2,"0"),ge=String(ve).padStart(3,"0");return`${Oe}:${d}:${X}.${ge}`},mi=T=>B(T),YS=T=>B(T),ie={debug:(...T)=>{},error:(...T)=>console.error(...T),warn:(...T)=>console.warn(...T),info:(...T)=>console.info(...T)};var ne=Zc();const IS=({videoRef:T,currentTime:D,duration:pe,isPlaying:Te,isMuted:ve=!1,onPlayPause:Oe,onSeek:d,onToggleMute:X})=>{var ce;const ge=ne.useRef(null),[ae,ct]=ne.useState(!1),[q,U]=ne.useState(!1),[ee,Fe]=ne.useState(null),[$t,wt]=ne.useState(!1),Dt=ne.useRef(!1),[Qe,De]=ne.useState({x:0}),[gt,_e]=ne.useState(0),oe=typeof window<"u"&&((ce=window.MEDIA_DATA)==null?void 0:ce.videoUrl)||"/videos/sample-video-30s.mp4";ne.useEffect(()=>{if(ct((()=>{const W=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(W)&&!window.MSStream})()),typeof window<"u"){const W=localStorage.getItem("video_initialized")==="true";U(W)}},[]),ne.useEffect(()=>{Te&&!q&&(U(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Te,q]),ne.useEffect(()=>{const I=T.current;if(!I)return;I.setAttribute("playsinline","true"),I.setAttribute("webkit-playsinline","true"),I.setAttribute("x-webkit-airplay","allow");const W=()=>{Dt.current||(Fe(I.currentTime),typeof window<"u"&&(window.lastSeekedPosition=I.currentTime))},Ie=()=>{ae&&(U(!0),localStorage.setItem("video_initialized","true"))},We=()=>{};return I.addEventListener("timeupdate",W),I.addEventListener("play",Ie),I.addEventListener("pause",We),()=>{I.removeEventListener("timeupdate",W),I.removeEventListener("play",Ie),I.removeEventListener("pause",We)}},[T,ae,Dt]),ne.useEffect(()=>{Fe(D)},[D]);const Ee=pe>0?D/pe*100:0,Ot=I=>{I.preventDefault(),wt(!0),Dt.current=!0,Re(I);const W=We=>{Dt.current&&Re(We)},Ie=()=>{wt(!1),Dt.current=!1,document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",Ie)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",Ie)},Re=I=>{if(!ge.current)return;const W=ge.current.getBoundingClientRect(),Ie=Math.max(0,Math.min(1,(I.clientX-W.left)/W.width)),We=pe*Ie;De({x:I.clientX}),_e(We),Fe(We),typeof window<"u"&&(window.lastSeekedPosition=We),d(We)},le=I=>{if(!ge.current||!I.touches[0])return;I.preventDefault(),wt(!0),Dt.current=!0,Pe(I);const W=We=>{Dt.current&&Pe(We)},Ie=()=>{wt(!1),Dt.current=!1,document.removeEventListener("touchmove",W),document.removeEventListener("touchend",Ie),document.removeEventListener("touchcancel",Ie)};document.addEventListener("touchmove",W,{passive:!1}),document.addEventListener("touchend",Ie),document.addEventListener("touchcancel",Ie)},Pe=I=>{if(!ge.current)return;const W="touches"in I?I.touches[0]:null;if(!W)return;I.preventDefault();const Ie=ge.current.getBoundingClientRect(),We=Math.max(0,Math.min(1,(W.clientX-Ie.left)/Ie.width)),Je=pe*We;De({x:W.clientX}),_e(Je),Fe(Je),typeof window<"u"&&(window.lastSeekedPosition=Je),d(Je)},K=I=>{if(!$t&&ge.current){const W=ge.current.getBoundingClientRect(),Ie=(I.clientX-W.left)/W.width,We=pe*Ie;Fe(We),typeof window<"u"&&(window.lastSeekedPosition=We),d(We)}},Ue=()=>{T.current&&(document.fullscreenElement?document.exitFullscreen():T.current.requestFullscreen())},nt=()=>{const I=T.current;I&&(I.paused?ae&&ee!==null&&ee>0?(I.currentTime=ee,setTimeout(()=>{T.current&&T.current.play().then(()=>{var W;ie.debug("iOS: Play started successfully at position:",(W=T.current)==null?void 0:W.currentTime),Oe()}).catch(W=>{console.error("iOS: Error playing video:",W)})},50)):I.play().then(()=>{Oe()}).catch(W=>{console.error("Error playing video:",W)}):(I.pause(),Oe()))};return p.jsxs("div",{className:"video-player-container",children:[p.jsxs("video",{ref:T,preload:"auto",crossOrigin:"anonymous",onClick:nt,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:ve,children:[p.jsx("source",{src:oe,type:"video/mp4"}),p.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),ae&&!q&&!Te&&p.jsx("div",{className:"ios-first-play-indicator",children:p.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),p.jsx("div",{className:`play-pause-indicator ${Te?"pause-icon":"play-icon"}`}),p.jsxs("div",{className:"video-controls",children:[p.jsxs("div",{className:"video-time-display",children:[p.jsx("span",{className:"video-current-time",children:mi(D)}),p.jsxs("span",{className:"video-duration",children:["/ ",mi(pe)]})]}),p.jsxs("div",{ref:ge,className:`video-progress ${$t?"dragging":""}`,onClick:K,onMouseDown:Ot,onTouchStart:le,children:[p.jsx("div",{className:"video-progress-fill",style:{width:`${Ee}%`}}),p.jsx("div",{className:"video-scrubber",style:{left:`${Ee}%`}}),$t&&p.jsx("div",{className:"video-time-tooltip",style:{left:`${Qe.x}px`,transform:"translateX(-50%)"},children:B(gt)})]}),p.jsxs("div",{className:"video-controls-buttons",children:[X&&p.jsx("button",{className:"mute-button","aria-label":ve?"Unmute":"Mute",onClick:X,"data-tooltip":ve?"Unmute":"Mute",children:ve?p.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:[p.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),p.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),p.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),p.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),p.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):p.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:[p.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),p.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),p.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:Ue,"data-tooltip":"Toggle fullscreen",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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=(T,D)=>{const pe=Math.min(Math.max(T/(D||1),0),1),Te=210,ve=40+Math.floor(pe*20),Oe=85+Math.floor(pe*8);return`hsl(${Te}, ${ve}%, ${Oe}%)`},Cm=async(T,D)=>new Promise(pe=>{const Te=document.createElement("canvas");Te.width=10,Te.height=10;const ve=Te.getContext("2d");if(ve){const d=tf(D,T.duration);ve.fillStyle=d,ve.fillRect(0,0,Te.width,Te.height)}const Oe=Te.toDataURL("image/png",.5);pe(Oe)}),to=({isOpen:T,onClose:D,title:pe,children:Te,actions:ve})=>{if(ne.useEffect(()=>{const d=X=>{X.key==="Escape"&&T&&D()};return document.addEventListener("keydown",d),T&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[T,D]),!T)return null;const Oe=d=>{d.target===d.currentTarget&&D()};return p.jsx("div",{className:"modal-overlay",onClick:Oe,children:p.jsxs("div",{className:"modal-container",onClick:d=>d.stopPropagation(),children:[p.jsxs("div",{className:"modal-header",children:[p.jsx("h2",{className:"modal-title",children:pe}),p.jsx("button",{className:"modal-close-button",onClick:D,"aria-label":"Close modal",children:p.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:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),p.jsx("div",{className:"modal-content",children:Te}),ve&&p.jsx("div",{className:"modal-actions",children:ve})]})})},xm=T=>new Promise(D=>setTimeout(D,T)),nf=async(T,D)=>{try{const pe=await fetch(`/api/v1/media/${T}/trim_video`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)});if(!pe.ok)if(pe.status===400)try{return{status:400,error:(await pe.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(pe.status!==404)try{const ve=await pe.json();return{status:pe.status,error:ve.error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:pe.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=${T}`};const Te=await pe.json();return{status:200,msg:"Video Processed Successfully",url_redirect:Te.url_redirect||`./view?m=${T}`,...Te}}catch{return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${T}`}}},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",_m=T=>{let D=`${T}%`,pe="translateX(-50%)";return T<17?(D="0%",pe="none"):T>83&&(D="100%",pe="translateX(-100%)"),{left:D,transform:pe}},QS=({currentTime:T,duration:D,thumbnails:pe,trimStart:Te,trimEnd:ve,splitPoints:Oe,zoomLevel:d,clipSegments:X,onTrimStartChange:ge,onTrimEndChange:ae,onZoomChange:ct,onSeek:q,videoRef:U,onSave:ee,onSaveACopy:Fe,onSaveSegments:$t,isPreviewMode:wt,hasUnsavedChanges:Dt=!1,isIOSUninitialized:Qe=!1,isPlaying:De,setIsPlaying:gt,onPlayPause:_e})=>{const oe=ne.useRef(null),Ee=ne.useRef(null),Ot=ne.useRef(null),[Re,le]=ne.useState(null),[Pe,K]=ne.useState(!1),[Ue,nt]=ne.useState({x:0,y:0}),[ce,I]=ne.useState(0),[W,Ie]=ne.useState(!1),[We,Je]=ne.useState(30),[ft,Ke]=ne.useState(!1),[Be,Ae]=ne.useState(null),[dn,at]=ne.useState(0),[Vt,bt]=ne.useState(!1),et=ne.useRef(null),Qt=g=>{const H=g;let w=null,C=ce;const E=()=>{const k=C,b=H<0?Math.max(0,k+H):Math.min(D,k+H);C=b;const f=ft;if(q(b),I(b),at(b),oe.current){const S=oe.current.getBoundingClientRect(),O=b/D*100,P=S.left+S.width*(O/100);nt({x:P,y:S.top-10});const V={...segment,startTime:isLeft?b:segment.startTime,endTime:isLeft?segment.endTime:b};if(k>=V.startTime&&k<=V.endTime)le(segment.id),K(!1);else{le(null);const we=vt(k);Je(we),K(!0)}}f&&U.current&&(U.current.play(),Ke(!0))};return{onMouseDown:k=>{k.stopPropagation(),k.preventDefault(),C=ce,E(),w=window.setTimeout(()=>{w=window.setInterval(E,125)},250);const b=()=>{w&&(clearInterval(w),w=null),document.removeEventListener("mouseup",b),document.removeEventListener("mouseleave",b)};document.addEventListener("mouseup",b),document.addEventListener("mouseleave",b)},onClick:k=>{k.stopPropagation()}}},[on,ln]=ne.useState(!1),[F,Q]=ne.useState(!1),[Se,be]=ne.useState(!1),[Ne,rt]=ne.useState(!1),[dt,Ve]=ne.useState(!1),[st,ot]=ne.useState(!1),[an,hn]=ne.useState(""),[Nt,kt]=ne.useState(""),[Rn,ia]=ne.useState(""),[va,Z]=ne.useState("save"),Ce=D>0?T/D*100:0,tt=D>0?Te/D*100:0,_t=D>0?ve/D*100:0,Yt=async()=>{var g,H;ln(!1),rt(!0),Z("save");try{const w=X.map(b=>({startTime:B(b.startTime),endTime:B(b.endTime)})),C=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,E=typeof window<"u"&&((H=window.MEDIA_DATA)==null?void 0:H.redirectURL)||null;ie.debug("Save request:",{mediaId:C,segments:w,saveAsCopy:!1,redirectURL:E});const k=await nf(C,{segments:w,saveAsCopy:!1});if(ie.debug("Save response:",k),rt(!1),k.status===200){const b=E||k.url_redirect;ie.debug("Using redirect URL:",b),ia(b),hn("Video saved successfully!"),Ve(!0)}else if(k.status===400){const b=k.error||"An error occurred during processing";ie.debug("Save error (400):",b),kt(b),ot(!0)}else ie.debug("Save error (unknown status):",k),kt("An unexpected error occurred"),ot(!0)}catch(w){ie.error("Error processing video:",w),rt(!1);const C=w instanceof Error?w.message:"An error occurred during processing";kt(C),ot(!0)}},Kt=async()=>{var g,H;Q(!1),rt(!0),Z("copy");try{const w=X.map(b=>({startTime:B(b.startTime),endTime:B(b.endTime)})),C=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,E=typeof window<"u"&&((H=window.MEDIA_DATA)==null?void 0:H.redirectUserMediaURL)||null;ie.debug("Save as copy request:",{mediaId:C,segments:w,saveAsCopy:!0,redirectUserMediaURL:E});const k=await nf(C,{segments:w,saveAsCopy:!0});if(ie.debug("Save as copy response:",k),rt(!1),k.status===200){const b=E||k.url_redirect;ie.debug("Using redirect user media URL:",b),ia(b),hn("Video saved as a new copy!"),Ve(!0)}else if(k.status===400){const b=k.error||"An error occurred during processing";ie.debug("Save as copy error (400):",b),kt(b),ot(!0)}else ie.debug("Save as copy error (unknown status):",k),kt("An unexpected error occurred"),ot(!0)}catch(w){ie.error("Error processing video:",w),rt(!1);const C=w instanceof Error?w.message:"An error occurred during processing";kt(C),ot(!0)}},Zt=async()=>{var g,H;be(!1),rt(!0),Z("segments");try{const w=X.map(b=>({startTime:B(b.startTime),endTime:B(b.endTime),name:b.name})),C=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,E=typeof window<"u"&&((H=window.MEDIA_DATA)==null?void 0:H.redirectUserMediaURL)||null;ie.debug("Save segments request:",{mediaId:C,segments:w,saveAsCopy:!0,saveIndividualSegments:!0,redirectUserMediaURL:E});const k=await nf(C,{segments:w,saveAsCopy:!0,saveIndividualSegments:!0});if(ie.debug("Save segments response:",k),rt(!1),k.status===200){const b=E||k.url_redirect;ie.debug("Using redirect user media URL for segments:",b),ia(b),hn(`${w.length} segments saved successfully!`),Ve(!0)}else if(k.status===400){const b=k.error||"An error occurred during processing";ie.debug("Save segments error (400):",b),kt(b),ot(!0)}else ie.debug("Save segments error (unknown status):",k),kt("An unexpected error occurred"),ot(!0)}catch(w){ie.error("Error processing video segments:",w),rt(!1);const C=w instanceof Error?w.message:"An error occurred during processing";kt(C),ot(!0)}};ne.useEffect(()=>{if(et.current&&oe.current&&d>1){const g=et.current.clientWidth,H=oe.current.clientWidth,w=T/D*H,C=Math.max(0,w-g/2);et.current.scrollTo({left:C,behavior:"smooth"});const E=oe.current.getBoundingClientRect();et.current.getBoundingClientRect();const b=E.left-et.current.scrollLeft+Ce/100*E.width;(Re!==null||Pe)&&(nt({x:b,y:E.top-10}),I(T))}},[T,d,D,Re,Pe,Ce]),ne.useEffect(()=>{const g=U.current;if(!g||!Be||!ft||wt)return;ie.debug("Segment boundary check ACTIVATED for segment:",Be.id,"Start:",B(Be.startTime),"End:",B(Be.endTime));const H=()=>{const w=Be.endTime-g.currentTime;if(Math.round(w*10)%10===0&&ie.debug("Segment playback - time remaining:",B(w),"Current:",B(g.currentTime),"End:",B(Be.endTime),"ContinuePastBoundary:",Vt),g.currentTime>Be.endTime){g.pause(),g.currentTime=Be.endTime,Ke(!1),bt(!1),ie.debug("Passed segment end - setting back to exact boundary:",B(Be.endTime));return}if(Be.endTime-g.currentTime<.05)if(Vt)ie.debug("Continuing past segment boundary:",B(Be.endTime)),g.currentTime>Be.endTime&&(bt(!1),Ae(null),sessionStorage.removeItem("continuingPastSegment"));else{g.pause(),g.currentTime=Be.endTime,Ke(!1),ie.debug("Paused at segment end boundary:",B(Be.endTime));const E=[...X].sort((k,b)=>k.startTime-b.startTime).find(k=>k.startTime>Be.endTime);E&&Math.abs(E.startTime-Be.endTime)<.1&&(ie.debug("Found adjacent next segment:",E.id),le(E.id),Ae(E),at(E.startTime),I(E.startTime),g.currentTime=E.startTime)}};return g.addEventListener("timeupdate",H),()=>{g.removeEventListener("timeupdate",H)}},[Be,ft,wt,Vt,X]),ne.useEffect(()=>{if(U.current)if(U.current.paused)U.current.paused&&ft&&(at(T),I(T),Ke(!1),ie.debug("Video paused at:",B(T)));else{at(T),I(T),Re!==null&&Ke(!0);const g=X.find(C=>T>=C.startTime&&T<=C.endTime),H=T/D*100;if(oe.current){const C=oe.current.offsetWidth,E=H/100*C;nt({x:E,y:oe.current.getBoundingClientRect().top-10})}const w=sessionStorage.getItem("continuingPastSegment")==="true";if(g){const C=U.current,E=Be&&Be.id<0&&ft;if((Be==null?void 0:Be.id)!==g.id&&!E&&!w&&!Vt&&(ie.debug(`Entered a new segment during playback: ${g.id}, setting as active`),Ae(g),le(g.id),K(!1),bt(!1),sessionStorage.removeItem("continuingPastSegment")),E&&C&&g){ie.debug(`CUTAWAY BOUNDARY REACHED: Current position ${B(C.currentTime)} at segment ${g.id} - STOPPING at boundary ${B(g.startTime)}`),C.pause(),setTimeout(()=>{if(U.current){U.current.currentTime=g.startTime,q(g.startTime),at(g.startTime),I(g.startTime),bt(!1),le(g.id),K(!1);const b=()=>{U.current&&(U.current.currentTime=g.startTime,q(g.startTime),at(g.startTime),I(g.startTime),ie.debug(`Position corrected to exact segment boundary: ${B(U.current.currentTime)} (target: ${B(g.startTime)})`))};setTimeout(b,10),setTimeout(b,20),setTimeout(b,50),setTimeout(b,100),setTimeout(b,200),U.current.addEventListener("seeked",b),U.current.addEventListener("canplay",b),U.current.addEventListener("waiting",b),setTimeout(()=>{U.current&&(U.current.removeEventListener("seeked",b),U.current.removeEventListener("canplay",b),U.current.removeEventListener("waiting",b))},300)}},10),Ke(!1),Ae(null);return}Be===null&&ft===!0||w||E?(Re!==g.id||Pe)&&(ie.debug("Tooltip updated for segment during continued playback:",g.id,E?"(cutaway playback - keeping virtual segment)":""),le(g.id),K(!1),!E&&sessionStorage.getItem("lastSegmentId")!==g.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Be==null?void 0:Be.id)!==g.id||Pe)&&(ie.debug("Playback moved into segment:",g.id),le(g.id),Ae(g),K(!1),sessionStorage.setItem("lastSegmentId",g.id.toString()))}else if(Be!==null||!Pe){le(null),Ae(null);const C=vt(T);Je(C),C>=.5?K(!0):K(!1)}}},[T,ft,Be,Re,X]),ne.useEffect(()=>{const g=H=>{const w=H.target;W&&!w.closest(".zoom-dropdown-container")&&Ie(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[W]),ne.useEffect(()=>()=>{},[Re,Pe,ft]),ne.useEffect(()=>{const g=Ee.current,H=Ot.current,w=oe.current;if(!g||!H||!w)return;const C=E=>k=>{k.preventDefault();const b=w.getBoundingClientRect();let f=!0,S=E?Te:ve;const O=re=>new CustomEvent("trim-handle-event",{detail:{type:re,isStart:E}});document.dispatchEvent(O("drag-start"));const P=re=>{if(!f)return;const we=b.width,St=Math.max(0,Math.min(1,(re.clientX-b.left)/we))*D;typeof window<"u"&&(window.lastSeekedPosition=St),E?St<ve&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:St,isStart:!0,recordHistory:!1}})),S=St):St>Te&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:St,isStart:!1,recordHistory:!1}})),S=St)},V=()=>{f=!1,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",V),E?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:S,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:S,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(O("drag-end"))};document.addEventListener("mousemove",P),document.addEventListener("mouseup",V)};return g.addEventListener("mousedown",C(!0)),H.addEventListener("mousedown",C(!1)),()=>{g.removeEventListener("mousedown",C(!0)),H.removeEventListener("mousedown",C(!1))}},[D,Te,ve,ge,ae]);const wn=()=>{const g=pe.length||10;return Array.from({length:g}).map((H,w)=>{const C=D/g,E=w*C,k=E+C,b=(E+k)/2,f=tf(b,D);return p.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/g}%`,backgroundColor:f}},w)})},Wt=()=>Oe.map((g,H)=>{const w=g/D*100;return p.jsx("div",{className:"split-point",style:{left:`${w}%`}},H)}),vt=g=>{const H=Math.max(0,D-g);if(D-g<.3)return ie.debug("Very close to end of video, ensuring tooltip can show:",B(g),"video end:",B(D)),Math.max(.5,H);const w=[...X].sort((b,f)=>b.startTime-f.startTime);if(w.some(b=>{const f=Math.abs(g-b.startTime),S=Math.abs(g-b.endTime);return f<.1&&f>0||S<.1&&S>0}))return ie.debug("Near segment boundary in cutaway area:",B(g)),.5;const E=w.find(b=>b.startTime>g),k=[...w].reverse().find(b=>b.endTime<g);if(E){const b=Math.max(0,E.startTime-g);return b<.1?.5:Math.min(30,b)}else if(k){const b=Math.max(0,D-g);return g-k.endTime<.1?.5:Math.min(30,b)}else return Math.min(30,H)},Bt=g=>{if(!oe.current||!et.current||Qe)return;const H=U.current&&!U.current.paused;bt(!1);const w=oe.current.getBoundingClientRect();let C;if(d>1){const b=et.current.scrollLeft,f=oe.current.clientWidth;C=(g.clientX-w.left+b)/f}else C=(g.clientX-w.left)/w.width;const E=C*D;ie.debug("Timeline clicked at:",B(E),"distance from end:",B(D-E)),typeof window<"u"&&(window.lastSeekedPosition=E),q(E),I(E),at(E);const k=X.find(b=>{const f=E>=b.startTime&&E<=b.endTime,S=Math.abs(E-b.startTime)<.01,O=Math.abs(E-b.endTime)<.01;return f||S||O});if(k&&Ae(k),(H||wt)&&U.current&&U.current.play().then(()=>{Ke(!0)}).catch(b=>{console.error("Error resuming playback:",b),Ke(!1)}),g.target===oe.current||g.target.classList.contains("timeline-thumbnail"))if(k)le(k.id),K(!1);else{le(null);const b=vt(E);Je(b);let f;if(d>1){const V=w.left-et.current.scrollLeft,re=E/D;f=V+re*w.width}else f=g.clientX;nt({x:f,y:w.top-10}),K(!0);const S=[...X].sort((V,re)=>V.startTime-re.startTime),O=[...S].reverse().find(V=>V.endTime<E),P=S.find(V=>V.startTime>E);ie.debug("Clicked in cutaway area:",{position:B(E),availableSpace:B(b),prevSegmentEnd:O?B(O.endTime):"none",nextSegmentStart:P?B(P.startTime):"none"})}},pa=(g,H)=>w=>{if(w.preventDefault(),w.stopPropagation(),!oe.current)return;oe.current.getBoundingClientRect().width;const E=X.find(Pt=>Pt.id===g);if(!E)return;const k=E.startTime,b=E.endTime,f={...E};document.body.style.cursor="ew-resize";const S=document.createElement("div");S.style.position="fixed",S.style.top="0",S.style.left="0",S.style.width="100vw",S.style.height="100vh",S.style.zIndex="1000",S.style.cursor="ew-resize",document.body.appendChild(S);let O=!0,P=k,V=b;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:g}}));const re=Pt=>{if(!O||!oe.current)return;const Bn=oe.current.getBoundingClientRect(),qe=Math.max(0,Math.min(1,(Pt-Bn.left)/Bn.width))*D,ze=H?qe:k,oa=H?b:qe;if(T>=ze&&T<=oa)le(g),K(!1);else{le(null);const cn=vt(T);Je(cn),K(!0)}const hi=X.filter(cn=>cn.id!==g);let $n=k,ya=b;if(H){$n=Math.min(qe,b-.5);const Ct=hi.filter(wa=>wa.endTime<=k).sort((wa,er)=>er.endTime-wa.endTime)[0];Ct&&$n<Ct.endTime&&($n=Ct.endTime),Ct&&Math.abs($n-Ct.endTime)<.3&&($n=Ct.endTime),P=$n}else{ya=Math.max(qe,k+.5);const Ct=hi.filter(wa=>wa.startTime>=b).sort((wa,er)=>wa.startTime-er.startTime)[0];Ct&&ya>Ct.startTime&&(ya=Ct.startTime),Ct&&Math.abs(ya-Ct.startTime)<.3&&(ya=Ct.startTime),V=ya}const Pr=X.map(cn=>cn.id===g?{...cn,startTime:$n,endTime:ya}:cn),yi=new CustomEvent("update-segments",{detail:{segments:Pr,recordHistory:!1}});if(document.dispatchEvent(yi),Re===g&&U.current){const cn=U.current.currentTime,Ct=Pr.find(za=>za.id===g);if(Ct){const za=cn>=Ct.startTime&&cn<=Ct.endTime;ie.debug(`During drag - playhead at ${B(cn)} is ${za?"inside":"outside"} segment (${B(Ct.startTime)} - ${B(Ct.endTime)})`),!za&&ft&&(U.current.pause(),Ke(!1),Ae(null)),cn<Ct.startTime?(ie.debug(`Adjusting display time to segment start: ${B(Ct.startTime)}`),at(Ct.startTime),I(Ct.startTime)):cn>Ct.endTime&&(ie.debug(`Adjusting display time to segment end: ${B(Ct.endTime)}`),at(Ct.endTime),I(Ct.endTime))}}},we=()=>{if(!O)return;O=!1,document.removeEventListener("mousemove",me),document.removeEventListener("mouseup",St),document.removeEventListener("touchmove",Ft),document.removeEventListener("touchend",At),document.removeEventListener("touchcancel",At),document.body.style.cursor="",document.body.contains(S)&&document.body.removeChild(S);const Pt=X.map(en=>en.id===g?{...en,startTime:P,endTime:V}:en),Bn=H?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:Pt,recordHistory:!0,action:Bn}})),Re===g&&U.current){const en=U.current.currentTime,qe=Pt.find(ze=>ze.id===g);if(qe){const ze=en>=qe.startTime&&en<=qe.endTime;ie.debug(`Drag complete - playhead at ${B(en)} is ${ze?"inside":"outside"} segment (${B(qe.startTime)} - ${B(qe.endTime)})`);const oa=en>=f.startTime&&en<=f.endTime;ze?!oa&&ze?(Ae(qe),wt&&U.current.play().then(()=>{Ke(!0)}).catch(mr=>{console.error("Error starting playback:",mr)})):oa&&ze&&(qe.startTime!==f.startTime||qe.endTime!==f.endTime)&&Ae(qe):(ft&&(U.current.pause(),Ke(!1),Ae(null),bt(!1)),en<qe.startTime?(ie.debug(`Final adjustment - setting display time to segment start: ${B(qe.startTime)}`),at(qe.startTime),I(qe.startTime)):en>qe.endTime&&(ie.debug(`Final adjustment - setting display time to segment end: ${B(qe.endTime)}`),at(qe.endTime),I(qe.endTime)))}}},me=Pt=>{re(Pt.clientX)},St=()=>{we()},Ft=Pt=>{Pt.touches.length>0&&(Pt.preventDefault(),re(Pt.touches[0].clientX))},At=()=>{we()};document.addEventListener("mousemove",me,{passive:!1}),document.addEventListener("mouseup",St),document.addEventListener("touchmove",Ft,{passive:!1}),document.addEventListener("touchend",At),document.addEventListener("touchcancel",At)},ma=g=>H=>{if(H.target.classList.contains("clip-segment-handle"))return;H.preventDefault(),H.stopPropagation(),bt(!1);const w=U.current&&!U.current.paused;le(g);const C=X.find(V=>V.id===g);if(!C)return;const k=H.currentTarget.getBoundingClientRect(),b=(H.clientX-k.left)/k.width,f=C.startTime+b*(C.endTime-C.startTime),S=Math.max(C.startTime,Math.min(C.endTime,f));if(I(S),at(S),U.current){const V=U.current.currentTime,re=V>=C.startTime&&V<=C.endTime;ie.debug(`Segment click - playhead at ${B(V)} is ${re?"inside":"outside"} segment (${B(C.startTime)} - ${B(C.endTime)})`),re||(Math.abs(V-C.startTime)<Math.abs(V-C.endTime)?(ie.debug(`Playhead outside segment - adjusting to segment start: ${B(C.startTime)}`),at(C.startTime)):(ie.debug(`Playhead outside segment - adjusting to segment end: ${B(C.endTime)}`),at(C.endTime)))}q(S),(w||wt)&&U.current&&(Ae(C),bt(!1),U.current.play().then(()=>{Ke(!0)}).catch(V=>{console.error("Error resuming playback after segment click:",V)})),wt&&U.current&&(Ae(C),U.current.play().then(()=>{Ke(!0)}).catch(V=>{console.error("Error continuing preview playback:",V)}));const O=H.clientX,P=k.top-10;if(nt({x:O,y:P}),d>1&&oe.current&&et.current){oe.current.getBoundingClientRect();const V=oe.current.clientWidth,re=et.current.clientWidth,we=S/D*V,me=Math.max(0,we-re/2);et.current.scrollTo({left:me,behavior:"smooth"}),setTimeout(()=>{if(oe.current&&et.current){const St=oe.current.getBoundingClientRect(),At=S/D*V-et.current.scrollLeft+St.left;nt({x:At,y:P})}},300)}},ha=()=>X.map((g,H)=>{const w=g.startTime/D*100,C=(g.endTime-g.startTime)/D*100,E=tf((g.startTime+g.endTime)/2,D);return p.jsxs("div",{className:`clip-segment ${Re===g.id?"selected":""}`,style:{left:`${w}%`,width:`${C}%`,backgroundColor:E,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:ma(g.id),children:[p.jsxs("div",{className:"clip-segment-info",children:[p.jsxs("div",{className:"clip-segment-name",children:["Segment ",H+1]}),p.jsxs("div",{className:"clip-segment-time",children:[mi(g.startTime)," - ",mi(g.endTime)]}),p.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",mi(g.endTime-g.startTime)]})]}),p.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:k=>{k.stopPropagation(),pa(g.id,!0)(k)},onTouchStart:k=>{k.stopPropagation(),pa(g.id,!0)(k)}}),p.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:k=>{k.stopPropagation(),pa(g.id,!1)(k)},onTouchStart:k=>{k.stopPropagation(),pa(g.id,!1)(k)}})]},g.id)});ne.useEffect(()=>{const g=H=>{const{segmentId:w}=H.detail;if(X.filter(E=>E.id!==w).length===0){const E={id:Date.now(),name:"Full Video",startTime:0,endTime:D,thumbnail:""},k=new CustomEvent("update-segments",{detail:{segments:[E],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(k),le(E.id),K(!1),I(T),at(T),Ae(E),oe.current){const b=oe.current.getBoundingClientRect(),f=T/D*100,S=b.left+b.width*(f/100);nt({x:S,y:b.top-10}),ie.debug("Created full video segment:",{id:E.id,duration:B(D),currentPosition:B(T)})}}else if(Re===w){if(!X.find(b=>b.id===w))return;const k=vt(T);if(le(null),K(!0),Je(k),oe.current){const b=oe.current.getBoundingClientRect(),f=T/D*100,S=b.left+b.width*(f/100);nt({x:S,y:b.top-10}),ie.debug("Segment deleted, showing cutaway tooltip:",{position:B(T),availableSpace:B(k)})}}};return document.addEventListener("delete-segment",g),()=>{document.removeEventListener("delete-segment",g)}},[Re,X,T,D,oe]),ne.useEffect(()=>{const g=U.current;if(!g)return;const H=()=>{if(!U.current)return;const C=U.current,E=C.currentTime;bt(!1);let k=D,b=null,f=null;b=X.find(O=>{const P=E>=O.startTime&&E<=O.endTime,V=Math.abs(E-O.startTime)<.001,re=Math.abs(E-O.endTime)<.001;return P||V||re}),f=X.filter(O=>{const P=O.startTime>E,V=Math.abs(O.startTime-E)>.001;return P&&V}).sort((O,P)=>O.startTime-P.startTime)[0],b?(k=b.endTime,Ae(b)):f&&(k=f.startTime);const S=()=>{if(!C)return;const O=C.currentTime;if(k-O<=.001||O>=k){C.pause();const V=()=>{C&&(C.currentTime=k,q(k),at(k),I(k),ie.debug("Position verification:",{target:B(k),actual:B(C.currentTime),difference:Math.abs(C.currentTime-k).toFixed(3)}))};V(),setTimeout(V,10),setTimeout(V,20),setTimeout(V,50),b?(le(b.id),K(!1)):f?(le(f.id),K(!1),Ae(f)):(le(null),K(!0),Ae(null)),C.removeEventListener("timeupdate",S),gt(!1),Ke(!1),bt(!1);return}};C.addEventListener("timeupdate",S),C.play().then(()=>{gt(!0),Ke(!0),ie.debug("Playback started:",{from:B(E),to:B(k),currentSegment:b?`Segment ${b.id}`:"None",nextSegment:f?`Segment ${f.id}`:"None"})}).catch(O=>{console.error("Error playing video:",O)})},w=()=>{Ke(!1)};return g.addEventListener("play",H),g.addEventListener("pause",w),()=>{g.removeEventListener("play",H),g.removeEventListener("pause",w)}},[X,D,q]);const Ja=g=>{if(!oe.current)return;const H=oe.current.getBoundingClientRect(),C=(g.clientX-H.left)/H.width*D,E=Math.max(0,Math.min(D,C));typeof window<"u"&&(window.lastSeekedPosition=E)},[Hr,Ua]=ne.useState(!1),Ra=ne.useRef(!1),Vr=g=>{if(Qe)return;g.stopPropagation(),g.preventDefault(),Ua(!0),Ra.current=!0;const H=X.find(E=>{const k=T>=E.startTime&&T<=E.endTime,b=Math.abs(T-E.startTime)<.001,f=Math.abs(T-E.endTime)<.001;return k||b||f});if(H)le(H.id),K(!1);else{const E=vt(T);Je(E),E>=.5&&(le(null),K(!0))}const w=E=>{if(!oe.current||!et.current)return;const k=oe.current.getBoundingClientRect();let b;if(d>1){const P=et.current.scrollLeft,V=oe.current.clientWidth;b=(E.clientX-k.left+P)/V}else b=(E.clientX-k.left)/k.width;b=Math.max(0,Math.min(1,b));const f=b*D;I(f),at(f);const S=X.find(P=>f>=P.startTime&&f<=P.endTime),O=S?0:vt(f);if(S?(le(S.id),K(!1)):O>=.5?(le(null),K(!0),Je(O)):(le(null),K(!1)),(S||O>=.5)&&oe.current){const P=oe.current.getBoundingClientRect();let V=E.clientX;if(d>1&&et.current){const re=P.left-et.current.scrollLeft,we=f/D;V=re+P.width*we}nt({x:V,y:P.top-10})}typeof window<"u"&&(window.lastSeekedPosition=f),q(f)},C=()=>{Ua(!1),Ra.current=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",w),document.addEventListener("mouseup",C)},Fr=g=>{if(Qe)return;g.stopPropagation(),Ua(!0),Ra.current=!0;const H=X.find(E=>{const k=T>=E.startTime&&T<=E.endTime,b=Math.abs(T-E.startTime)<.001,f=Math.abs(T-E.endTime)<.001;return k||b||f});if(H)le(H.id),K(!1);else{const E=vt(T);Je(E),E>=.5&&(le(null),K(!0))}const w=E=>{if(!oe.current||!et.current||!E.touches[0])return;const k=oe.current.getBoundingClientRect();let b;if(d>1){const S=et.current.scrollLeft,O=oe.current.clientWidth;b=(E.touches[0].clientX-k.left+S)/O}else b=(E.touches[0].clientX-k.left)/k.width;b=Math.max(0,Math.min(1,b));const f=b*D;I(f),at(f),typeof window<"u"&&(window.lastSeekedPosition=f),q(f)},C=()=>{Ua(!1),Ra.current=!1,document.removeEventListener("touchmove",w),document.removeEventListener("touchend",C),document.removeEventListener("touchcancel",C)};document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",C),document.addEventListener("touchcancel",C)};return ne.useEffect(()=>{},[Rn,va,dt]),ne.useEffect(()=>{let g,H;if(dt&&Rn){let w=10;g=setInterval(()=>{w--;const C=document.querySelector(".countdown");C&&(C.textContent=w.toString()),w<=0&&clearInterval(g)},1e3),H=setTimeout(()=>{ee&&ee(),window.location.href=Rn},1e4)}return()=>{g&&clearInterval(g),H&&clearTimeout(H)}},[dt,Rn,ee]),p.jsxs("div",{className:"timeline-container-card",children:[p.jsxs("div",{className:"timeline-header",children:[p.jsx("div",{className:"timeline-title",children:p.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),p.jsxs("div",{className:"duration-time",children:["Total Segments: ",p.jsx("span",{children:B(X.reduce((g,H)=>g+(H.endTime-H.startTime),0))})]})]}),p.jsx("div",{ref:et,className:"timeline-scroll-container",style:{overflow:d>1?"auto":"hidden"},children:p.jsxs("div",{ref:oe,className:"timeline-container",onClick:Bt,onMouseMove:Ja,style:{width:`${d*100}%`,cursor:"pointer"},children:[p.jsxs("div",{className:"timeline-marker",style:{left:`${Ce}%`},children:[p.jsx("div",{className:"timeline-marker-head",onClick:g=>{if(g.stopPropagation(),X.find(H=>T>=H.startTime&&T<=H.endTime),Re||Pe){le(null),K(!1);return}else{const H=X.find(w=>{const C=T>=w.startTime&&T<=w.endTime,E=Math.abs(T-w.startTime)<.001,k=Math.abs(T-w.endTime)<.001;return C||E||k});if(ie.debug("Checking for segment at marker:",H?`Found segment ${H.id}`:"No segment found"),H)le(H.id);else{const w=vt(T);Je(w),w>=.5&&(le(null),K(!0))}}},children:p.jsx("span",{className:"timeline-marker-head-icon",children:Re||Pe?"-":"+"})}),p.jsx("div",{className:`timeline-marker-drag ${Hr?"dragging":""}`,onMouseDown:Vr,onTouchStart:Fr,children:p.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),X.length===0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"trim-line-marker",style:{left:`${tt}%`},children:p.jsx("div",{ref:Ee,className:"trim-handle left"})}),p.jsx("div",{className:"trim-line-marker",style:{left:`${_t}%`},children:p.jsx("div",{ref:Ot,className:"trim-handle right"})})]}),ha(),Wt(),wn(),Re!==null&&p.jsxs("div",{className:"segment-tooltip two-row-tooltip",style:{position:"absolute",..._m(Ce)},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Decrease by 50ms (hold for continuous adjustment)",...Qt(-.05),children:"-50ms"}),p.jsx("div",{className:"tooltip-time-display",children:B(dn)}),p.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Increase by 50ms (hold for continuous adjustment)",...Qt(.05),children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsx("button",{className:"tooltip-action-btn delete","data-tooltip":"Delete segment",onClick:g=>{g.stopPropagation();const H=new CustomEvent("delete-segment",{detail:{segmentId:Re}});document.dispatchEvent(H)},children:p.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:[p.jsx("path",{d:"M3 6h18"}),p.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"}),p.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),p.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),p.jsx("button",{className:"tooltip-action-btn scissors","data-tooltip":"Split segment at current position",onClick:g=>{g.stopPropagation();const H=new CustomEvent("split-segment",{detail:{segmentId:Re,time:ce}});document.dispatchEvent(H)},children:p.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:[p.jsx("circle",{cx:"6",cy:"6",r:"3"}),p.jsx("circle",{cx:"6",cy:"18",r:"3"}),p.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),p.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),p.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),p.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play segment from beginning",onClick:g=>{g.stopPropagation();const H=X.find(w=>w.id===Re);if(H&&U.current){if(bt(!0),Math.abs(U.current.currentTime-H.endTime)<.05){ie.debug(`Already at end boundary (${B(U.current.currentTime)}), nudging position back slightly`);const w=Math.max(H.startTime,H.endTime-.1);U.current.currentTime=w,q(w),I(w),ie.debug(`Position adjusted to ${B(w)}`)}else q(H.startTime),I(H.startTime);Ae(H),U.current.play().then(()=>{Ke(!0)}).catch(w=>{console.error("Error playing from beginning:",w)})}},children:p.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${De?"pause":"play"}`,"data-tooltip":De?"Pause playback":"Play from current position",onClick:g=>{g.stopPropagation(),De?U.current&&(U.current.pause(),Ke(!1),bt(!1)):_e()},children:De?p.jsx("img",{src:wm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:Rm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:"tooltip-action-btn set-in","data-tooltip":"Set start point at current position",onClick:g=>{if(g.stopPropagation(),X.find(w=>w.id===Re)){const w=X.map(E=>E.id===Re?{...E,startTime:ce<E.endTime-.5?ce:E.endTime-.5}:E),C=new CustomEvent("update-segments",{detail:{segments:w,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(C)}},children:p.jsx("img",{src:qS,alt:"Set start point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:"tooltip-action-btn set-out","data-tooltip":"Set end point at current position",onClick:g=>{if(g.stopPropagation(),X.find(w=>w.id===Re)){const w=X.map(E=>E.id===Re?{...E,endTime:ce>E.startTime+.5?ce:E.startTime+.5}:E),C=new CustomEvent("update-segments",{detail:{segments:w,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(C)}},children:p.jsx("img",{src:WS,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),Pe&&Re===null&&p.jsxs("div",{className:"empty-space-tooltip two-row-tooltip",style:{position:"absolute",..._m(Ce)},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Decrease by 50ms (hold for continuous adjustment)",...Qt(-.05),children:"-50ms"}),p.jsx("div",{className:"tooltip-time-display",children:B(ce)}),p.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Increase by 50ms (hold for continuous adjustment)",...Qt(.05),children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[We>=.5&&p.jsxs("button",{className:"tooltip-action-btn new-segment","data-tooltip":"Create new segment",onClick:async g=>{g.stopPropagation();const H=ce,w=H+We;if(We<.5){K(!1);return}const C={id:Date.now(),name:"segment",startTime:H,endTime:w,thumbnail:""},E=[...X,C],k=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(k),K(!1),setTimeout(()=>{const b=E[E.length-1];b&&(le(b.id),ie.debug("Created and selected new segment:",b.id))},100)},children:[p.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:[p.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),p.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),p.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),p.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),p.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play from beginning of cutaway",onClick:g=>{if(g.stopPropagation(),U.current){const H=ce;bt(!0);const w=[...X].sort((O,P)=>O.startTime-P.startTime),C=[...w].reverse().find(O=>O.endTime<H),E=C?C.endTime+.025:0,k=w.find(O=>O.startTime>H),b=k?k.startTime:D,f={id:-999,name:"Cutaway",startTime:E,endTime:b,thumbnail:""};q(E),I(E),Ke(!1),setTimeout(()=>{Ae(f)},0);const S=()=>{if(!U.current)return;const O=U.current.currentTime,P=[...X].sort((me,St)=>me.startTime-St.startTime),V=P.find(me=>me.startTime>O-.3),re=V&&O>=V.startTime-.25&&O<=V.startTime+.1&&!Vt;V&&O>=V.startTime-.25&&O<=V.startTime+.1&&ie.debug(`Approaching boundary at ${B(V.startTime)}, continuePastBoundary=${Vt}, willStop=${re}`);const we=P.find(me=>O>=me.startTime&&O<=me.endTime);if(we&&(Be==null?void 0:Be.id)!==we.id){ie.debug(`Entered segment ${we.id} during cutaway playback`),Ae(we),le(we.id),K(!1),U.current.removeEventListener("timeupdate",S),bt(!1),sessionStorage.removeItem("continuingPastSegment");return}if(re&&V){ie.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${B(O)} approaching segment at ${B(V.startTime)} (distance: ${Math.abs(O-V.startTime).toFixed(3)}s) - STOPPING`),U.current.pause(),setTimeout(()=>{if(U.current){U.current.currentTime=V.startTime,q(V.startTime),at(V.startTime),I(V.startTime),bt(!1),le(V.id),K(!1),Ae(V);const me=()=>{U.current&&(U.current.currentTime=V.startTime,q(V.startTime),at(V.startTime),I(V.startTime),ie.debug(`Position corrected to exact segment boundary: ${B(U.current.currentTime)} (target: ${B(V.startTime)})`))};setTimeout(me,10),setTimeout(me,20),setTimeout(me,50),setTimeout(me,100),setTimeout(me,200),U.current.addEventListener("seeked",me),U.current.addEventListener("canplay",me),U.current.addEventListener("waiting",me),setTimeout(()=>{U.current&&(U.current.removeEventListener("seeked",me),U.current.removeEventListener("canplay",me),U.current.removeEventListener("waiting",me))},300)}},10),Ke(!1),Ae(null),U.current.removeEventListener("timeupdate",S);return}};U.current.addEventListener("timeupdate",S),setTimeout(()=>{U.current&&U.current.play().then(()=>{Ke(!0),ie.debug("CUTAWAY PLAYBACK STARTED:",B(E),"to",B(b),C?`(after segment ${C.id}, offset +25ms from ${B(C.endTime)})`:"(from video start)",k?`(will stop at segment ${k.id})`:"(will play to end)")}).catch(O=>{console.error("Error playing cutaway:",O)})},50)}},children:p.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${De?"pause":"play"}`,"data-tooltip":De?"Pause playback":"Play from here until next segment",onClick:g=>{g.stopPropagation(),De?U.current&&(U.current.pause(),Ke(!1),bt(!1)):_e()},children:De?p.jsx("img",{src:wm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:Rm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:"tooltip-action-btn segment-end","data-tooltip":"Adjust end of previous segment or create segment from start",onClick:g=>{g.stopPropagation();const w=[...X].sort((C,E)=>C.startTime-E.startTime).filter(C=>C.endTime<=ce).sort((C,E)=>E.endTime-C.endTime)[0];if(w){const C=X.map(k=>k.id===w.id?{...k,endTime:ce}:k),E=new CustomEvent("update-segments",{detail:{segments:C,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(E),ie.debug("Adjusted end of previous segment to:",B(ce)),le(w.id),K(!1)}else if(X.length>0){const C=[...X].sort((b,f)=>b.startTime-f.startTime);let E=!1,k=0;for(let b=0;b<C.length-1;b++){const f=C[b].endTime,S=C[b+1].startTime;if(ce>f&&ce<S){E=!0,k=f;break}}if(E){const b={id:Date.now(),name:"segment",startTime:k,endTime:ce,thumbnail:""},f=[...X,b],S=new CustomEvent("update-segments",{detail:{segments:f,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(S),ie.debug("Created new segment in gap from",B(k),"to",B(ce)),le(b.id),K(!1)}else if(ce<C[0].startTime){const b={id:Date.now(),name:"segment",startTime:0,endTime:ce,thumbnail:""},f=[...X,b],S=new CustomEvent("update-segments",{detail:{segments:f,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(S),ie.debug("Created new segment from start to:",B(ce)),le(b.id),K(!1)}else{const b=[...X].sort((f,S)=>S.endTime-f.endTime)[0];if(b&&b.endTime<D){const f=X.map(O=>O.id===b.id?{...O,endTime:D}:O),S=new CustomEvent("update-segments",{detail:{segments:f,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(S),le(b.id),K(!1)}}}else if(ce>0){const C={id:Date.now(),name:"segment",startTime:0,endTime:ce,thumbnail:""},E=new CustomEvent("update-segments",{detail:{segments:[C],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(E),ie.debug("Created new segment from start to:",B(ce)),le(C.id),K(!1)}},children:p.jsx("img",{src:XS,alt:"Set end point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:"tooltip-action-btn segment-start","data-tooltip":"Adjust start of next segment or create segment to end",onClick:g=>{g.stopPropagation();const w=[...X].sort((C,E)=>C.startTime-E.startTime).filter(C=>C.startTime>=ce).sort((C,E)=>C.startTime-E.startTime)[0];if(w){const C=X.map(k=>k.id===w.id?{...k,startTime:ce}:k),E=new CustomEvent("update-segments",{detail:{segments:C,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(E),ie.debug("Adjusted start of next segment to:",B(ce)),le(w.id),K(!1)}else if(X.length>0){const C=[...X].sort((b,f)=>b.startTime-f.startTime);let E=!1,k=0;for(let b=0;b<C.length-1;b++){const f=C[b].endTime,S=C[b+1].startTime;if(ce>f&&ce<S){E=!0,k=S;break}}if(E){const b={id:Date.now(),name:"segment",startTime:ce,endTime:k,thumbnail:""},f=[...X,b],S=new CustomEvent("update-segments",{detail:{segments:f,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(S),ie.debug("Created new segment in gap from",B(ce),"to",B(k)),le(b.id),K(!1)}else if(ce<C[0].startTime){const b={id:Date.now(),name:"segment",startTime:ce,endTime:C[0].startTime,thumbnail:""},f=[...X,b],S=new CustomEvent("update-segments",{detail:{segments:f,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(S),ie.debug("Created new segment from",B(ce),"to first segment"),le(b.id),K(!1)}else if(ce>C[C.length-1].endTime){const b={id:Date.now(),name:"segment",startTime:ce,endTime:D,thumbnail:""},f=[...X,b],S=new CustomEvent("update-segments",{detail:{segments:f,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(S),ie.debug("Created new segment from",B(ce),"to end"),le(b.id),K(!1)}else{const b=C[0];if(b&&b.startTime>0){const f=X.map(O=>O.id===b.id?{...O,startTime:0}:O),S=new CustomEvent("update-segments",{detail:{segments:f,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(S),le(b.id),K(!1)}}}else if(ce<D){const C={id:Date.now(),name:"segment",startTime:ce,endTime:D,thumbnail:""},E=new CustomEvent("update-segments",{detail:{segments:[C],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(E),ie.debug("Created new segment from",B(ce),"to end"),le(C.id),K(!1)}},children:p.jsx("img",{src:GS,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),p.jsxs("div",{className:"timeline-controls",children:[p.jsxs("div",{className:"time-navigation",children:[p.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),p.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:g=>{if(g.key==="Enter"){const H=g.currentTarget.value;try{const w=H.split(":");let C=0,E=0,k=0,b=0;if(w.length===3){C=parseInt(w[0]),E=parseInt(w[1]);const S=w[2].split(".");k=parseInt(S[0]),S.length>1&&(b=parseInt(S[1].padEnd(3,"0").substring(0,3)))}else if(w.length===2){E=parseInt(w[0]);const S=w[1].split(".");k=parseInt(S[0]),S.length>1&&(b=parseInt(S[1].padEnd(3,"0").substring(0,3)))}const f=C*3600+E*60+k+b/1e3;if(!isNaN(f)&&f>=0&&f<=D){q(f);const S=O=>{const P=X.find(V=>{const re=O>=V.startTime&&O<=V.endTime,we=Math.abs(O-V.startTime)<.001,me=Math.abs(O-V.endTime)<.001;return re||we||me});if(oe.current&&et.current){const V=oe.current.getBoundingClientRect();let re;if(d>1)re=V.left-et.current.scrollLeft+O/D*V.width;else{const we=O/D;re=V.left+V.width*we}nt({x:re,y:V.top-10}),I(O),P?(le(P.id),K(!1)):(le(null),K(!0))}};setTimeout(()=>S(f),10)}}catch(w){console.error("Invalid time format:",w)}}}}),p.jsx("div",{className:"time-button-group",children:(()=>{const g=()=>{const H=X.find(w=>{const C=T>=w.startTime&&T<=w.endTime,E=Math.abs(T-w.startTime)<.001,k=Math.abs(T-w.endTime)<.001;return C||E||k});if(oe.current&&et.current){const w=oe.current.getBoundingClientRect();let C;if(d>1)C=w.left-et.current.scrollLeft+T/D*w.width;else{const E=T/D;C=w.left+w.width*E}if(nt({x:C,y:w.top-10}),I(T),H)le(H.id),K(!1);else{const E=vt(T);Je(E),E>=.5?(le(null),K(!0)):(le(null),K(!1))}}};return p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"time-button",onClick:()=>{q(T-.01),setTimeout(g,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),p.jsx("button",{className:"time-button",onClick:()=>{q(T-.001),setTimeout(g,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{q(T+.001),setTimeout(g,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{q(T+.01),setTimeout(g,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),p.jsxs("div",{className:"controls-right",children:[p.jsxs("div",{className:"zoom-dropdown-container",children:[p.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>Ie(!W),children:["Zoom ",d,"x",p.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:p.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),W&&p.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(g=>p.jsxs("div",{className:`zoom-option ${d===g?"selected":""}`,onClick:()=>{ct(g),Ie(!1)},children:[d===g&&p.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:p.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",g,"x"]},g))})]}),p.jsxs("div",{className:"save-buttons-row",children:[ee&&p.jsx("button",{onClick:()=>ln(!0),className:"save-button","data-tooltip":"Save changes",children:"Save"}),Fe&&p.jsx("button",{onClick:()=>Q(!0),className:"save-copy-button","data-tooltip":"Save as a new copy",children:"Save as Copy"}),$t&&p.jsx("button",{onClick:()=>be(!0),className:"save-segments-button","data-tooltip":"Save segments as separate files",children:"Save Segments"})]}),p.jsxs(to,{isOpen:on,onClose:()=>ln(!1),title:"Save Changes",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>ln(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{ee&&ee(),Yt()},children:"Confirm Save"})]}),children:[p.jsx("p",{className:"modal-message",children:"You're about to save these changes and replace the original video. This action cannot be undone."}),p.jsx("p",{className:"modal-message",children:"The original video will be replaced with this trimmed version."})]}),p.jsxs(to,{isOpen:F,onClose:()=>Q(!1),title:"Save As New Copy",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Q(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{Fe&&Fe(),Kt()},children:"Confirm Save As Copy"})]}),children:[p.jsx("p",{className:"modal-message",children:"You're about to save these changes as a new copy. Your original video will remain unchanged."}),p.jsx("p",{className:"modal-message",children:"A new copy of the video will be created with your trimmed segments."})]}),p.jsxs(to,{isOpen:Ne,onClose:()=>{},title:"Processing Video",children:[p.jsx("div",{className:"modal-spinner",children:p.jsx("div",{className:"spinner"})}),p.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),p.jsxs(to,{isOpen:Se,onClose:()=>be(!1),title:"Save Segments",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>be(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{$t&&$t(),Zt()},children:"Save Segments"})]}),children:[p.jsxs("p",{className:"modal-message",children:["You're about to save each segment as a separate video file. There are ",X.length," segments to be saved."]}),p.jsx("p",{className:"modal-message",children:"Each segment will be saved with its name as the filename."})]}),p.jsx(to,{isOpen:dt,onClose:()=>Ve(!1),title:"Video Edited Successfully",children:p.jsx("div",{className:"modal-success-content",children:p.jsxs("p",{className:"modal-message text-center redirect-message",children:["You will be redirected to your media page in ",p.jsx("span",{className:"countdown",children:"10"})," seconds. "," ",va==="segments"?"The new video(s) will soon be there.":"Changes to the video might take a few minutes to be applied."]})})}),p.jsxs(to,{isOpen:st,onClose:()=>ot(!1),title:"Video Processing Error",children:[p.jsxs("div",{className:"modal-error-content",children:[p.jsx("div",{className:"modal-error-icon",children:p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),p.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),p.jsx("p",{className:"modal-message text-center error-message",children:Nt})]}),p.jsx("div",{className:"modal-choices",children:p.jsxs("button",{onClick:()=>ot(!1),className:"modal-choice-button centered-choice",children:[p.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:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),Qe&&p.jsx("div",{className:"mobile-timeline-overlay",children:p.jsxs("div",{className:"mobile-timeline-message",children:[p.jsx("p",{children:"Please play the video first to enable timeline controls"}),p.jsx("div",{className:"mobile-play-icon"})]})})]})},KS=({onSplit:T,onReset:D,onUndo:pe,onRedo:Te,onPreview:ve,onPlay:Oe,canUndo:d,canRedo:X,isPreviewMode:ge=!1,isPlaying:ae=!1})=>{const ct=()=>{typeof window<"u"&&console.log("Play button clicked, current lastSeekedPosition:",window.lastSeekedPosition),Oe()};return p.jsx("div",{className:"editing-tools-container",children:p.jsxs("div",{className:"flex-container single-row",children:[p.jsxs("div",{className:"button-group play-buttons-group",children:[p.jsx("button",{className:"button preview-button",onClick:ve,"data-tooltip":ge?"Stop preview playback":"Play only segments (skips gaps between segments)",style:{fontSize:"0.875rem"},children:ge?p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),p.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),p.jsx("span",{className:"full-text",children:"Stop Preview"}),p.jsx("span",{className:"short-text",children:"Stop"})]}):p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),p.jsx("span",{className:"full-text",children:"Play Preview"}),p.jsx("span",{className:"short-text",children:"Preview"})]})}),!ge&&p.jsx("button",{className:"button play-button",onClick:ct,"data-tooltip":ae?"Pause video":"Play full video",style:{fontSize:"0.875rem"},children:ae?p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),p.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),p.jsx("span",{className:"full-text",children:"Pause"}),p.jsx("span",{className:"short-text",children:"Pause"})]}):p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),p.jsx("span",{className:"full-text",children:"Play"}),p.jsx("span",{className:"short-text",children:"Play"})]})}),ge&&p.jsxs("div",{className:"preview-mode-message",children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),p.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"8"})]}),"Preview Mode"]})]}),p.jsxs("div",{className:"button-group secondary",children:[p.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":"Undo last action",disabled:!d,onClick:pe,children:[p.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:[p.jsx("path",{d:"M9 14 4 9l5-5"}),p.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"})]}),p.jsx("span",{className:"button-text",children:"Undo"})]}),p.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":"Redo last undone action",disabled:!X,onClick:Te,children:[p.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:[p.jsx("path",{d:"m15 14 5-5-5-5"}),p.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),p.jsx("span",{className:"button-text",children:"Redo"})]}),p.jsx("div",{className:"divider"}),p.jsxs("button",{className:"button",onClick:D,"data-tooltip":"Reset to full video",children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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"})}),p.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},ZS=({segments:T})=>{const D=[...T].sort((ve,Oe)=>ve.startTime-Oe.startTime),pe=ve=>{const Oe=new CustomEvent("delete-segment",{detail:{segmentId:ve}});document.dispatchEvent(Oe)},Te=ve=>`segment-default-color segment-color-${ve%8+1}`;return p.jsxs("div",{className:"clip-segments-container",children:[p.jsx("h3",{className:"clip-segments-title",children:"Clip Segments"}),D.map((ve,Oe)=>p.jsxs("div",{className:`segment-item ${Te(Oe)}`,children:[p.jsxs("div",{className:"segment-content",children:[p.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${ve.thumbnail})`}}),p.jsxs("div",{className:"segment-info",children:[p.jsxs("div",{className:"segment-title",children:["Segment ",Oe+1]}),p.jsxs("div",{className:"segment-time",children:[mi(ve.startTime)," - ",mi(ve.endTime)]}),p.jsxs("div",{className:"segment-duration",children:["Duration: ",YS(ve.endTime-ve.startTime)]})]})]}),p.jsx("div",{className:"segment-actions",children:p.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>pe(ve.id),children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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)),D.length===0&&p.jsx("div",{className:"empty-message",children:"No segments created yet. Use the split button to create segments."})]})},JS=({videoRef:T,onPlay:D})=>{const[pe,Te]=ne.useState(!1);ne.useEffect(()=>{const d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);Te(d)},[]),ne.useEffect(()=>{const Oe=T.current;if(!Oe)return;const d=()=>{Te(!1)};return Oe.addEventListener("play",d),()=>{Oe.removeEventListener("play",d)}},[T]);const ve=()=>{D()};return pe?p.jsx("div",{className:"mobile-play-prompt-overlay",children:p.jsx("div",{className:"mobile-play-prompt",children:p.jsx("button",{className:"mobile-play-button",onClick:ve,children:"Click to start editing..."})})}):null},e0=()=>{const T=ne.useRef(null),[D,pe]=ne.useState(0),[Te,ve]=ne.useState(0),[Oe,d]=ne.useState(!1),[X,ge]=ne.useState(!1),[ae,ct]=ne.useState(!1),[q,U]=ne.useState(0),[ee,Fe]=ne.useState([]),[$t,wt]=ne.useState(0),[Dt,Qe]=ne.useState(0),[De,gt]=ne.useState([]),[_e,oe]=ne.useState(1),[Ee,Ot]=ne.useState([]),[Re,le]=ne.useState([]),[Pe,K]=ne.useState(-1),[Ue,nt]=ne.useState(!1);ne.useEffect(()=>{var F;if(Re.length>0){const Q=((F=Re[Pe])==null?void 0:F.action)||"";Q!=="save"&&Q!=="save_copy"&&Q!=="save_segments"&&nt(!0)}},[Re,Pe]),ne.useEffect(()=>{const F=Q=>{if(Ue){const Se="Your edits will get lost if you leave the page. Do you want to continue?";return Q.preventDefault(),Q.returnValue=Se,Se}};return window.addEventListener("beforeunload",F),()=>{window.removeEventListener("beforeunload",F)}},[Ue]),ne.useEffect(()=>{const F=T.current;if(!F)return;const Q=()=>{ve(F.duration),Qe(F.duration),(async()=>{const Ve=await Cm(F,F.duration/2),st={id:1,name:"segment",startTime:0,endTime:F.duration,thumbnail:Ve},ot={trimStart:0,trimEnd:F.duration,splitPoints:[],clipSegments:[st]};le([ot]),K(0),Ot([st]);const an=6,hn=F.duration/an,Nt=[];for(let kt=0;kt<an;kt++){const Rn=hn*kt+hn/2,ia=await Cm(F,Rn);Nt.push(ia)}Fe(Nt)})()},Se=()=>{pe(F.currentTime)},be=()=>{ae||(d(!0),ln(!0))},Ne=()=>{ae||d(!1)},rt=()=>{d(!1),F.currentTime=$t};return F.addEventListener("loadedmetadata",Q),F.addEventListener("timeupdate",Se),F.addEventListener("play",be),F.addEventListener("pause",Ne),F.addEventListener("ended",rt),()=>{F.removeEventListener("loadedmetadata",Q),F.removeEventListener("timeupdate",Se),F.removeEventListener("play",be),F.removeEventListener("pause",Ne),F.removeEventListener("ended",rt)}},[ae]);const ce=F=>{const Q=T.current;if(!Q)return;const Se=!Q.paused,be=ae;if(Q.currentTime=F,pe(F),typeof window<"u"&&(window.lastSeekedPosition=F),be){const Ne=Ee.find(rt=>F>=rt.startTime&&F<=rt.endTime);if(Ne){const dt=[...Ee].sort((Ve,st)=>Ve.startTime-st.startTime).findIndex(Ve=>Ve.id===Ne.id);dt!==-1&&U(dt)}}(Se||be)&&(be&&ct(!0),Q.play().then(()=>{d(!0)}).catch(Ne=>{console.error("Error resuming playback:",Ne),d(!1)}))},I=F=>{const Q={trimStart:$t,trimEnd:Dt,splitPoints:[...De],clipSegments:JSON.parse(JSON.stringify(Ee)),action:F||"manual_save"},Se=Re[Pe],be=()=>{if(!Se||Se.clipSegments.length!==Q.clipSegments.length)return!0;for(let dt=0;dt<Q.clipSegments.length;dt++){const Ve=Se.clipSegments[dt],st=Q.clipSegments[dt];if(!Ve||!st||Math.abs(Ve.startTime-st.startTime)>.001||Math.abs(Ve.endTime-st.endTime)>.001)return!0}return!1},Ne=!Se||Se.trimStart!==Q.trimStart||Se.trimEnd!==Q.trimEnd||Se.splitPoints.length!==Q.splitPoints.length||be(),rt=Q.action!==void 0;if(Ne||rt){const dt=Pe;le(Ve=>dt<Ve.length-1?[...Ve.slice(0,dt+1),Q]:[...Ve,Q]),K(Ve=>Ve+1)}};ne.useEffect(()=>{const F=Q=>{if(Q.detail){const{time:Se,isStart:be,recordHistory:Ne,action:rt}=Q.detail;be?wt(Se):Qe(Se),Ne&&setTimeout(()=>{I(rt||(be?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",F),()=>{document.removeEventListener("update-trim",F)}},[]),ne.useEffect(()=>{const F=be=>{if(be.detail&&be.detail.segments){const Ne=be.detail.recordHistory!==!1,rt=be.detail.action||"update_segments";Ot(be.detail.segments),Ne&&setTimeout(()=>{const dt=JSON.parse(JSON.stringify(be.detail.segments)),Ve={trimStart:$t,trimEnd:Dt,splitPoints:[...De],clipSegments:dt,action:rt},st=Pe;le(ot=>st<ot.length-1?[...ot.slice(0,st+1),Ve]:[...ot,Ve]),K(ot=>ot+1)},20)}},Q=async be=>{const Ne=be;if(Ne.detail&&typeof Ne.detail.time=="number"&&typeof Ne.detail.segmentId=="number"){const rt=Ne.detail.time,dt=Ne.detail.segmentId;ce(rt);const Ve=Ee.find(Nt=>Nt.id===dt);if(!Ve||rt<=Ve.startTime||rt>=Ve.endTime)return;const st=[...Ee],ot=st.findIndex(Nt=>Nt.id===dt);if(ot===-1)return;st.splice(ot,1);const an={id:Date.now(),name:`${Ve.name}-A`,startTime:Ve.startTime,endTime:rt,thumbnail:""},hn={id:Date.now()+1,name:`${Ve.name}-B`,startTime:rt,endTime:Ve.endTime,thumbnail:""};st.push(an,hn),st.sort((Nt,kt)=>Nt.startTime-kt.startTime),Ot(st),I("split_segment")}},Se=async be=>{const Ne=be;if(Ne.detail&&typeof Ne.detail.segmentId=="number"){const rt=Ne.detail.segmentId,dt=Ee.filter(Ve=>Ve.id!==rt);if(dt.length!==Ee.length){if(dt.length===0&&T.current){const Ve={id:Date.now(),name:"segment",startTime:0,endTime:T.current.duration,thumbnail:""};wt(0),Qe(T.current.duration),gt([]),Ot([Ve])}else Ot(dt);I("delete_segment")}}};return document.addEventListener("update-segments",F),document.addEventListener("split-segment",Q),document.addEventListener("delete-segment",Se),()=>{document.removeEventListener("update-segments",F),document.removeEventListener("split-segment",Q),document.removeEventListener("delete-segment",Se)}},[Ee,Te]),ne.useEffect(()=>{if(!ae||!T.current)return;const F=[...Ee].sort((Se,be)=>Se.startTime-be.startTime),Q=()=>{if(!ae||!T.current)return;const Se=F[q];if(!Se)return;const be=T.current.currentTime;if(be<Se.startTime){T.current.currentTime=Se.startTime;return}if(be>=Se.endTime-.05)if(q<F.length-1){const Ne=F[q+1];T.current.currentTime=Ne.startTime,U(q+1),ie.debug("Moving to next segment in preview:",Ne.name,"from",B(Se.endTime),"to",B(Ne.startTime)),T.current.play().catch(rt=>{console.error("Error continuing preview playback:",rt)})}else T.current.currentTime=F[0].startTime,U(0),T.current.play().catch(Ne=>{console.error("Error restarting preview playback:",Ne)})};return T.current.addEventListener("timeupdate",Q),()=>{T.current&&T.current.removeEventListener("timeupdate",Q)}},[ae,q,Ee]);const W=F=>{wt(F),I("adjust_trim_start")},Ie=F=>{Qe(F),I("adjust_trim_end")},We=async()=>{if(T.current&&!De.includes(D)){const F=[...De,D].sort((be,Ne)=>be-Ne);gt(F);const Q=[];let Se=0;for(let be=0;be<=F.length;be++){const Ne=be<F.length?F[be]:Te;Se<Ne&&(Q.push({id:Date.now()+be,name:`Segment ${be+1}`,startTime:Se,endTime:Ne,thumbnail:""}),Se=Ne)}Ot(Q),I("create_split_points")}},Je=async()=>{if(wt(0),Qe(Te),gt([]),!T.current)return;const F={id:Date.now(),name:"segment",startTime:0,endTime:Te,thumbnail:""};Ot([F]),I("reset_all")},ft=()=>{if(Pe>0){const F=Re[Pe-1];ie.debug(`** UNDO ** to position ${Pe-1}, action: ${F.action}, segments: ${F.clipSegments.length}`),ie.debug("Segment details after undo:",F.clipSegments.map(Q=>`ID: ${Q.id}, Time: ${B(Q.startTime)} - ${B(Q.endTime)}`)),wt(F.trimStart),Qe(F.trimEnd),gt([...F.splitPoints]),Ot(JSON.parse(JSON.stringify(F.clipSegments))),K(Pe-1)}},Ke=()=>{if(Pe<Re.length-1){const F=Re[Pe+1];ie.debug(`** REDO ** to position ${Pe+1}, action: ${F.action}, segments: ${F.clipSegments.length}`),ie.debug("Segment details after redo:",F.clipSegments.map(Q=>`ID: ${Q.id}, Time: ${B(Q.startTime)} - ${B(Q.endTime)}`)),wt(F.trimStart),Qe(F.trimEnd),gt([...F.splitPoints]),Ot(JSON.parse(JSON.stringify(F.clipSegments))),K(Pe+1)}},Be=()=>{const F=T.current;if(!F||Ee.length===0)return;if(ae){ct(!1),F.pause(),d(!1);return}Oe&&F.pause();const Se=[...Ee].sort((be,Ne)=>be.startTime-Ne.startTime);Se.length!==0&&(ct(!0),U(0),F.currentTime=Se[0].startTime,setTimeout(()=>{T.current&&T.current.play().then(()=>{d(!0)}).catch(be=>{console.error("Error starting preview:",be),ct(!1),d(!1)})},50))},Ae=F=>{oe(F)},dn=()=>{const F=T.current;F&&(F.muted=!F.muted,ge(!X))},at=()=>{[...Ee].sort((Q,Se)=>Q.startTime-Se.startTime).map(Q=>({startTime:B(Q.startTime),endTime:B(Q.endTime)})),nt(!1),I("save")},Vt=()=>{[...Ee].sort((Q,Se)=>Q.startTime-Se.startTime).map(Q=>({startTime:B(Q.startTime),endTime:B(Q.endTime)})),nt(!1),I("save_copy")},bt=()=>{[...Ee].sort((Q,Se)=>Q.startTime-Se.startTime).map(Q=>({name:Q.name,startTime:B(Q.startTime),endTime:B(Q.endTime)})),nt(!1),I("save_segments")},et=F=>{(!Qt||on)&&ce(F)},Qt=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[on,ln]=ne.useState(!1);return{videoRef:T,currentTime:D,duration:Te,isPlaying:Oe,setIsPlaying:d,isMuted:X,isPreviewMode:ae,thumbnails:ee,trimStart:$t,trimEnd:Dt,splitPoints:De,zoomLevel:_e,clipSegments:Ee,hasUnsavedChanges:Ue,historyPosition:Pe,history:Re,handleTrimStartChange:W,handleTrimEndChange:Ie,handleZoomChange:Ae,handleMobileSafeSeek:et,handleSplit:We,handleReset:Je,handleUndo:ft,handleRedo:Ke,handlePreview:Be,toggleMute:dn,handleSave:at,handleSaveACopy:Vt,handleSaveSegments:bt,isMobile:Qt,videoInitialized:on,setVideoInitialized:ln}},t0=()=>{const{videoRef:T,currentTime:D,duration:pe,isPlaying:Te,setIsPlaying:ve,isMuted:Oe,isPreviewMode:d,thumbnails:X,trimStart:ge,trimEnd:ae,splitPoints:ct,zoomLevel:q,clipSegments:U,hasUnsavedChanges:ee,historyPosition:Fe,history:$t,handleTrimStartChange:wt,handleTrimEndChange:Dt,handleZoomChange:Qe,handleMobileSafeSeek:De,handleSplit:gt,handleReset:_e,handleUndo:oe,handleRedo:Ee,handlePreview:Ot,toggleMute:Re,handleSave:le,handleSaveACopy:Pe,handleSaveSegments:K,isMobile:Ue,videoInitialized:nt,setVideoInitialized:ce}=e0(),I=()=>{if(!T.current)return;const W=T.current;if(Te){W.pause(),ve(!1);return}const Ie=Number(W.currentTime.toFixed(6));let We=pe,Je=null,ft=null;const Ke=[...U].sort((Ae,dn)=>Ae.startTime-dn.startTime);Je=Ke.find(Ae=>{const dn=Number(Ae.startTime.toFixed(6)),at=Number(Ae.endTime.toFixed(6));return Ie>dn&&Ie<at||Ie===dn}),Je||(ft=Ke.find(Ae=>Number(Ae.startTime.toFixed(6))>Ie)),Je?We=Number(Je.endTime.toFixed(6)):ft&&(We=Number(ft.startTime.toFixed(6)));const Be=()=>{if(!W)return;const Ae=Number(W.currentTime.toFixed(6));if(Number((We-Ae).toFixed(6))<=0||Ae>=We){W.pause();const at=()=>{if(!W)return;W.currentTime=We,De(We);const Vt=Number(W.currentTime.toFixed(6)),bt=Number(Math.abs(Vt-We).toFixed(6));ie.debug("Position verification:",{target:B(We),actual:B(Vt),difference:bt}),bt>0&&(W.currentTime=We,De(We))};at(),setTimeout(at,5),setTimeout(at,10),setTimeout(at,20),setTimeout(at,50),W.removeEventListener("timeupdate",Be),ve(!1),ie.debug("Stopped at position:",{target:B(We),actual:B(W.currentTime),type:Je?"segment end":ft?"next segment start":"end of video",segment:Je?{id:Je.id,start:B(Je.startTime),end:B(Je.endTime)}:null,nextSegment:ft?{id:ft.id,start:B(ft.startTime),end:B(ft.endTime)}:null});return}};W.addEventListener("timeupdate",Be),W.play().then(()=>{ve(!0),ce(!0),ie.debug("Playback started:",{from:B(Ie),to:B(We),currentSegment:Je?{id:Je.id,start:B(Je.startTime),end:B(Je.endTime)}:"None",nextSegment:ft?{id:ft.id,start:B(ft.startTime),end:B(ft.endTime)}:"None"})}).catch(Ae=>{console.error("Error playing video:",Ae)})};return p.jsxs("div",{className:"bg-background min-h-screen",children:[p.jsx(JS,{videoRef:T,onPlay:I}),p.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[p.jsx(IS,{videoRef:T,currentTime:D,duration:pe,isPlaying:Te,isMuted:Oe,onPlayPause:I,onSeek:De,onToggleMute:Re}),p.jsx(KS,{onSplit:gt,onReset:_e,onUndo:oe,onRedo:Ee,onPreview:Ot,onPlay:I,isPreviewMode:d,isPlaying:Te,canUndo:Fe>0,canRedo:Fe<$t.length-1}),p.jsx(QS,{currentTime:D,duration:pe,thumbnails:X,trimStart:ge,trimEnd:ae,splitPoints:ct,zoomLevel:q,clipSegments:U,onTrimStartChange:wt,onTrimEndChange:Dt,onZoomChange:Qe,onSeek:De,videoRef:T,onSave:le,onSaveACopy:Pe,onSaveSegments:K,isPreviewMode:d,hasUnsavedChanges:ee,isIOSUninitialized:Ue&&!nt,isPlaying:Te,setIsPlaying:ve,onPlayPause:I}),p.jsx(ZS,{segments:U})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Mm=()=>{const T=document.getElementById("video-editor-trim-root");T&&Sm(T).render(p.jsx(t0,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Mm):Mm()})();
|
|
//# sourceMappingURL=video-editor.js.map
|