mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
204 lines
397 KiB
JavaScript
204 lines
397 KiB
JavaScript
(function(){"use strict";var dm={exports:{}},Kc={exports:{}},al={exports:{}};al.exports;var vm;function U0(){return vm||(vm=1,function(k,R){/**
|
|
* @license React
|
|
* react.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var Ee="18.3.1",we=Symbol.for("react.element"),xe=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),te=Symbol.for("react.context"),gt=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Ve=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),Y=Symbol.iterator,St="@@iterator";function it(s){if(s===null||typeof s!="object")return null;var h=Y&&s[Y]||s[St];return typeof h=="function"?h:null}var _e={current:null},nt={transition:null},ye={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},j={current:null},Q={},Ot=null;function bt(s){Ot=s}Q.setExtraStackFrame=function(s){Ot=s},Q.getCurrentStack=null,Q.getStackAddendum=function(){var s="";Ot&&(s+=Ot);var h=Q.getCurrentStack;return h&&(s+=h()||""),s};var lt=!1,Rt=!1,Te=!1,q=!1,Je=!1,re={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:nt,ReactCurrentOwner:j};re.ReactDebugCurrentFrame=Q,re.ReactCurrentActQueue=ye;function me(s){{for(var h=arguments.length,D=new Array(h>1?h-1:0),O=1;O<h;O++)D[O-1]=arguments[O];I("warn",s,D)}}function W(s){{for(var h=arguments.length,D=new Array(h>1?h-1:0),O=1;O<h;O++)D[O-1]=arguments[O];I("error",s,D)}}function I(s,h,D){{var O=re.ReactDebugCurrentFrame,X=O.getStackAddendum();X!==""&&(h+="%s",D=D.concat([X]));var Oe=D.map(function(ge){return String(ge)});Oe.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,Oe)}}var ve={};function dt(s,h){{var D=s.constructor,O=D&&(D.displayName||D.name)||"ReactClass",X=O+"."+h;if(ve[X])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.",h,O),ve[X]=!0}}var kt={isMounted:function(s){return!1},enqueueForceUpdate:function(s,h,D){dt(s,"forceUpdate")},enqueueReplaceState:function(s,h,D,O){dt(s,"replaceState")},enqueueSetState:function(s,h,D,O){dt(s,"setState")}},ut=Object.assign,Kt={};Object.freeze(Kt);function Mt(s,h,D){this.props=s,this.context=h,this.refs=Kt,this.updater=D||kt}Mt.prototype.isReactComponent={},Mt.prototype.setState=function(s,h){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,h,"setState")},Mt.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var Ye={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},je=function(s,h){Object.defineProperty(Mt.prototype,s,{get:function(){me("%s(...) is deprecated in plain JavaScript React classes. %s",h[0],h[1])}})};for(var ze in Ye)Ye.hasOwnProperty(ze)&&je(ze,Ye[ze])}function dn(){}dn.prototype=Mt.prototype;function Ze(s,h,D){this.props=s,this.context=h,this.refs=Kt,this.updater=D||kt}var Yt=Ze.prototype=new dn;Yt.constructor=Ze,ut(Yt,Mt.prototype),Yt.isPureReactComponent=!0;function yt(){var s={current:null};return Object.seal(s),s}var at=Array.isArray;function en(s){return at(s)}function nn(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,D=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return D}}function an(s){try{return sn(s),!1}catch{return!0}}function sn(s){return""+s}function U(s){if(an(s))return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nn(s)),sn(s)}function ne(s,h,D){var O=s.displayName;if(O)return O;var X=h.displayName||h.name||"";return X!==""?D+"("+X+")":D}function be(s){return s.displayName||"Context"}function pe(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 se:return"Fragment";case xe:return"Portal";case G:return"Profiler";case d:return"StrictMode";case le:return"Suspense";case Me:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case te:var h=s;return be(h)+".Consumer";case de:var D=s;return be(D._context)+".Provider";case gt:return ne(s,s.render,"ForwardRef");case J:var O=s.displayName||null;return O!==null?O:pe(s.type)||"Memo";case Ve:{var X=s,Oe=X._payload,ge=X._init;try{return pe(ge(Oe))}catch{return null}}}return null}var Le=Object.prototype.hasOwnProperty,Qe={key:!0,ref:!0,__self:!0,__source:!0},ot,Fe,We;We={};function wt(s){if(Le.call(s,"ref")){var h=Object.getOwnPropertyDescriptor(s,"ref").get;if(h&&h.isReactWarning)return!1}return s.ref!==void 0}function vn(s){if(Le.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function yn(s,h){var D=function(){ot||(ot=!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)",h))};D.isReactWarning=!0,Object.defineProperty(s,"key",{get:D,configurable:!0})}function gn(s,h){var D=function(){Fe||(Fe=!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)",h))};D.isReactWarning=!0,Object.defineProperty(s,"ref",{get:D,configurable:!0})}function K(s){if(typeof s.ref=="string"&&j.current&&s.__self&&j.current.stateNode!==s.__self){var h=pe(j.current.type);We[h]||(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',h,s.ref),We[h]=!0)}}var fe=function(s,h,D,O,X,Oe,ge){var Ie={$$typeof:we,type:s,key:h,ref:D,props:ge,_owner:Oe};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function Ne(s,h,D){var O,X={},Oe=null,ge=null,Ie=null,vt=null;if(h!=null){wt(h)&&(ge=h.ref,K(h)),vn(h)&&(U(h.key),Oe=""+h.key),Ie=h.__self===void 0?null:h.__self,vt=h.__source===void 0?null:h.__source;for(O in h)Le.call(h,O)&&!Qe.hasOwnProperty(O)&&(X[O]=h[O])}var At=arguments.length-2;if(At===1)X.children=D;else if(At>1){for(var qt=Array(At),Gt=0;Gt<At;Gt++)qt[Gt]=arguments[Gt+2];Object.freeze&&Object.freeze(qt),X.children=qt}if(s&&s.defaultProps){var st=s.defaultProps;for(O in st)X[O]===void 0&&(X[O]=st[O])}if(Oe||ge){var Jt=typeof s=="function"?s.displayName||s.name||"Unknown":s;Oe&&yn(X,Jt),ge&&gn(X,Jt)}return fe(s,Oe,ge,Ie,vt,j.current,X)}function Ke(s,h){var D=fe(s.type,h,s.ref,s._self,s._source,s._owner,s.props);return D}function Nt(s,h,D){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var O,X=ut({},s.props),Oe=s.key,ge=s.ref,Ie=s._self,vt=s._source,At=s._owner;if(h!=null){wt(h)&&(ge=h.ref,At=j.current),vn(h)&&(U(h.key),Oe=""+h.key);var qt;s.type&&s.type.defaultProps&&(qt=s.type.defaultProps);for(O in h)Le.call(h,O)&&!Qe.hasOwnProperty(O)&&(h[O]===void 0&&qt!==void 0?X[O]=qt[O]:X[O]=h[O])}var Gt=arguments.length-2;if(Gt===1)X.children=D;else if(Gt>1){for(var st=Array(Gt),Jt=0;Jt<Gt;Jt++)st[Jt]=arguments[Jt+2];X.children=st}return fe(s.type,Oe,ge,Ie,vt,At,X)}function zt(s){return typeof s=="object"&&s!==null&&s.$$typeof===we}var $t=".",rn=":";function Wt(s){var h=/[=:]/g,D={"=":"=0",":":"=2"},O=s.replace(h,function(X){return D[X]});return"$"+O}var Ft=!1,Vt=/\/+/g;function tr(s){return s.replace(Vt,"$&/")}function ya(s,h){return typeof s=="object"&&s!==null&&s.key!=null?(U(s.key),Wt(""+s.key)):h.toString(36)}function bn(s,h,D,O,X){var Oe=typeof s;(Oe==="undefined"||Oe==="boolean")&&(s=null);var ge=!1;if(s===null)ge=!0;else switch(Oe){case"string":case"number":ge=!0;break;case"object":switch(s.$$typeof){case we:case xe:ge=!0}}if(ge){var Ie=s,vt=X(Ie),At=O===""?$t+ya(Ie,0):O;if(en(vt)){var qt="";At!=null&&(qt=tr(At)+"/"),bn(vt,h,qt,"",function(cf){return cf})}else vt!=null&&(zt(vt)&&(vt.key&&(!Ie||Ie.key!==vt.key)&&U(vt.key),vt=Ke(vt,D+(vt.key&&(!Ie||Ie.key!==vt.key)?tr(""+vt.key)+"/":"")+At)),h.push(vt));return 1}var Gt,st,Jt=0,pn=O===""?$t:O+rn;if(en(s))for(var xi=0;xi<s.length;xi++)Gt=s[xi],st=pn+ya(Gt,xi),Jt+=bn(Gt,h,D,st,X);else{var vl=it(s);if(typeof vl=="function"){var Tr=s;vl===Tr.entries&&(Ft||me("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ft=!0);for(var pl=vl.call(Tr),ml,sf=0;!(ml=pl.next()).done;)Gt=ml.value,st=pn+ya(Gt,sf++),Jt+=bn(Gt,h,D,st,X)}else if(Oe==="object"){var Ku=String(s);throw new Error("Objects are not valid as a React child (found: "+(Ku==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Ku)+"). If you meant to render a collection of children, use an array instead.")}}return Jt}function ua(s,h,D){if(s==null)return s;var O=[],X=0;return bn(s,O,"","",function(Oe){return h.call(D,Oe,X++)}),O}function Br(s){var h=0;return ua(s,function(){h++}),h}function za(s,h,D){ua(s,function(){h.apply(this,arguments)},D)}function yr(s){return ua(s,function(h){return h})||[]}function $r(s){if(!zt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function Pr(s){var h={$$typeof:te,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};h.Provider={$$typeof:de,_context:h};var D=!1,O=!1,X=!1;{var Oe={$$typeof:te,_context:h};Object.defineProperties(Oe,{Provider:{get:function(){return O||(O=!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?")),h.Provider},set:function(ge){h.Provider=ge}},_currentValue:{get:function(){return h._currentValue},set:function(ge){h._currentValue=ge}},_currentValue2:{get:function(){return h._currentValue2},set:function(ge){h._currentValue2=ge}},_threadCount:{get:function(){return h._threadCount},set:function(ge){h._threadCount=ge}},Consumer:{get:function(){return D||(D=!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?")),h.Consumer}},displayName:{get:function(){return h.displayName},set:function(ge){X||(me("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ge),X=!0)}}}),h.Consumer=Oe}return h._currentRenderer=null,h._currentRenderer2=null,h}var ga=-1,_n=0,kn=1,Da=2;function gr(s){if(s._status===ga){var h=s._result,D=h();if(D.then(function(Oe){if(s._status===_n||s._status===ga){var ge=s;ge._status=kn,ge._result=Oe}},function(Oe){if(s._status===_n||s._status===ga){var ge=s;ge._status=Da,ge._result=Oe}}),s._status===ga){var O=s;O._status=_n,O._result=D}}if(s._status===kn){var X=s._result;return X===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?`,X),"default"in X||W(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))`,X),X.default}else throw s._result}function y(s){var h={_status:ga,_result:s},D={$$typeof:Ve,_payload:h,_init:gr};{var O,X;Object.defineProperties(D,{defaultProps:{configurable:!0,get:function(){return O},set:function(Oe){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."),O=Oe,Object.defineProperty(D,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return X},set:function(Oe){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."),X=Oe,Object.defineProperty(D,"propTypes",{enumerable:!0})}}})}return D}function F(s){s!=null&&s.$$typeof===J?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 h={$$typeof:gt,render:s};{var D;Object.defineProperty(h,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(O){D=O,!s.name&&!s.displayName&&(s.displayName=O)}})}return h}var c;c=Symbol.for("react.module.reference");function m(s){return!!(typeof s=="string"||typeof s=="function"||s===se||s===G||Je||s===d||s===le||s===Me||q||s===Ge||lt||Rt||Te||typeof s=="object"&&s!==null&&(s.$$typeof===Ve||s.$$typeof===J||s.$$typeof===de||s.$$typeof===te||s.$$typeof===gt||s.$$typeof===c||s.getModuleId!==void 0))}function g(s,h){m(s)||W("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var D={$$typeof:J,type:s,compare:h===void 0?null:h};{var O;Object.defineProperty(D,"displayName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(X){O=X,!s.name&&!s.displayName&&(s.displayName=X)}})}return D}function E(){var s=_e.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 T(s){var h=E();if(s._context!==void 0){var D=s._context;D.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?"):D.Provider===s&&W("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return h.useContext(s)}function M(s){var h=E();return h.useState(s)}function L(s,h,D){var O=E();return O.useReducer(s,h,D)}function z(s){var h=E();return h.useRef(s)}function Ue(s,h){var D=E();return D.useEffect(s,h)}function B(s,h){var D=E();return D.useInsertionEffect(s,h)}function Ce(s,h){var D=E();return D.useLayoutEffect(s,h)}function et(s,h){var D=E();return D.useCallback(s,h)}function rt(s,h){var D=E();return D.useMemo(s,h)}function It(s,h,D){var O=E();return O.useImperativeHandle(s,h,D)}function Bt(s,h){{var D=E();return D.useDebugValue(s,h)}}function Be(){var s=E();return s.useTransition()}function on(s){var h=E();return h.useDeferredValue(s)}function Fa(){var s=E();return s.useId()}function Un(s,h,D){var O=E();return O.useSyncExternalStore(s,h,D)}var Lt=0,sa,nr,no,Yr,ba,_a,bi;function Wr(){}Wr.__reactDisabledLog=!0;function cn(){{if(Lt===0){sa=console.log,nr=console.info,no=console.warn,Yr=console.error,ba=console.group,_a=console.groupCollapsed,bi=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Wr,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Lt++}}function ft(){{if(Lt--,Lt===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ut({},s,{value:sa}),info:ut({},s,{value:nr}),warn:ut({},s,{value:no}),error:ut({},s,{value:Yr}),group:ut({},s,{value:ba}),groupCollapsed:ut({},s,{value:_a}),groupEnd:ut({},s,{value:bi})})}Lt<0&&W("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ca=re.ReactCurrentDispatcher,In;function ar(s,h,D){{if(In===void 0)try{throw Error()}catch(X){var O=X.stack.trim().match(/\n( *(at )?)/);In=O&&O[1]||""}return`
|
|
`+In+s}}var Si=!1,ao;{var il=typeof WeakMap=="function"?WeakMap:Map;ao=new il}function Yu(s,h){if(!s||Si)return"";{var D=ao.get(s);if(D!==void 0)return D}var O;Si=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Oe;Oe=ca.current,ca.current=null,cn();try{if(h){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(pn){O=pn}Reflect.construct(s,[],ge)}else{try{ge.call()}catch(pn){O=pn}s.call(ge.prototype)}}else{try{throw Error()}catch(pn){O=pn}s()}}catch(pn){if(pn&&O&&typeof pn.stack=="string"){for(var Ie=pn.stack.split(`
|
|
`),vt=O.stack.split(`
|
|
`),At=Ie.length-1,qt=vt.length-1;At>=1&&qt>=0&&Ie[At]!==vt[qt];)qt--;for(;At>=1&&qt>=0;At--,qt--)if(Ie[At]!==vt[qt]){if(At!==1||qt!==1)do if(At--,qt--,qt<0||Ie[At]!==vt[qt]){var Gt=`
|
|
`+Ie[At].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(At>=1&&qt>=0);break}}}finally{Si=!1,ca.current=Oe,ft(),Error.prepareStackTrace=X}var st=s?s.displayName||s.name:"",Jt=st?ar(st):"";return typeof s=="function"&&ao.set(s,Jt),Jt}function ol(s,h,D){return Yu(s,!1)}function af(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ti(s,h,D){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return ar(s);switch(s){case le:return ar("Suspense");case Me:return ar("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case gt:return ol(s.render);case J:return Ti(s.type,h,D);case Ve:{var O=s,X=O._payload,Oe=O._init;try{return Ti(Oe(X),h,D)}catch{}}}return""}var Wu={},ll=re.ReactDebugCurrentFrame;function Ct(s){if(s){var h=s._owner,D=Ti(s.type,s._source,h?h.type:null);ll.setExtraStackFrame(D)}else ll.setExtraStackFrame(null)}function rf(s,h,D,O,X){{var Oe=Function.call.bind(Le);for(var ge in s)if(Oe(s,ge)){var Ie=void 0;try{if(typeof s[ge]!="function"){var vt=Error((O||"React class")+": "+D+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Ie=s[ge](h,ge,O,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){Ie=At}Ie&&!(Ie instanceof Error)&&(Ct(X),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).",O||"React class",D,ge,typeof Ie),Ct(null)),Ie instanceof Error&&!(Ie.message in Wu)&&(Wu[Ie.message]=!0,Ct(X),W("Failed %s type: %s",D,Ie.message),Ct(null))}}}function br(s){if(s){var h=s._owner,D=Ti(s.type,s._source,h?h.type:null);bt(D)}else bt(null)}var Xe;Xe=!1;function ul(){if(j.current){var s=pe(j.current.type);if(s)return`
|
|
|
|
Check the render method of \``+s+"`."}return""}function Jn(s){if(s!==void 0){var h=s.fileName.replace(/^.*[\\\/]/,""),D=s.lineNumber;return`
|
|
|
|
Check your code at `+h+":"+D+"."}return""}function Ei(s){return s!=null?Jn(s.__source):""}var Ir={};function of(s){var h=ul();if(!h){var D=typeof s=="string"?s:s.displayName||s.name;D&&(h=`
|
|
|
|
Check the top-level render call using <`+D+">.")}return h}function Mn(s,h){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var D=of(h);if(!Ir[D]){Ir[D]=!0;var O="";s&&s._owner&&s._owner!==j.current&&(O=" It was passed a child from "+pe(s._owner.type)+"."),br(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.',D,O),br(null)}}}function Zt(s,h){if(typeof s=="object"){if(en(s))for(var D=0;D<s.length;D++){var O=s[D];zt(O)&&Mn(O,h)}else if(zt(s))s._store&&(s._store.validated=!0);else if(s){var X=it(s);if(typeof X=="function"&&X!==s.entries)for(var Oe=X.call(s),ge;!(ge=Oe.next()).done;)zt(ge.value)&&Mn(ge.value,h)}}}function Iu(s){{var h=s.type;if(h==null||typeof h=="string")return;var D;if(typeof h=="function")D=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===gt||h.$$typeof===J))D=h.propTypes;else return;if(D){var O=pe(h);rf(D,s.props,"prop",O,s)}else if(h.PropTypes!==void 0&&!Xe){Xe=!0;var X=pe(h);W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ka(s){{for(var h=Object.keys(s.props),D=0;D<h.length;D++){var O=h[D];if(O!=="children"&&O!=="key"){br(s),W("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",O),br(null);break}}s.ref!==null&&(br(s),W("Invalid attribute `ref` supplied to `React.Fragment`."),br(null))}}function ea(s,h,D){var O=m(s);if(!O){var X="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Oe=Ei(h);Oe?X+=Oe:X+=ul();var ge;s===null?ge="null":en(s)?ge="array":s!==void 0&&s.$$typeof===we?(ge="<"+(pe(s.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):ge=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",ge,X)}var Ie=Ne.apply(this,arguments);if(Ie==null)return Ie;if(O)for(var vt=2;vt<arguments.length;vt++)Zt(arguments[vt],s);return s===se?ka(Ie):Iu(Ie),Ie}var Va=!1;function lf(s){var h=ea.bind(null,s);return h.type=s,Va||(Va=!0,me("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(h,"type",{enumerable:!1,get:function(){return me("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),h}function sl(s,h,D){for(var O=Nt.apply(this,arguments),X=2;X<arguments.length;X++)Zt(arguments[X],O.type);return Iu(O),O}function qu(s,h){var D=nt.transition;nt.transition={};var O=nt.transition;nt.transition._updatedFibers=new Set;try{s()}finally{if(nt.transition=D,D===null&&O._updatedFibers){var X=O._updatedFibers.size;X>10&&me("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),O._updatedFibers.clear()}}}var cl=!1,ro=null;function uf(s){if(ro===null)try{var h=("require"+Math.random()).slice(0,7),D=k&&k[h];ro=D.call(k,"timers").setImmediate}catch{ro=function(X){cl===!1&&(cl=!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 Oe=new MessageChannel;Oe.port1.onmessage=X,Oe.port2.postMessage(void 0)}}return ro(s)}var qr=0,Ci=!1;function fl(s){{var h=qr;qr++,ye.current===null&&(ye.current=[]);var D=ye.isBatchingLegacy,O;try{if(ye.isBatchingLegacy=!0,O=s(),!D&&ye.didScheduleLegacyUpdate){var X=ye.current;X!==null&&(ye.didScheduleLegacyUpdate=!1,lo(X))}}catch(st){throw Sr(h),st}finally{ye.isBatchingLegacy=D}if(O!==null&&typeof O=="object"&&typeof O.then=="function"){var Oe=O,ge=!1,Ie={then:function(st,Jt){ge=!0,Oe.then(function(pn){Sr(h),qr===0?io(pn,st,Jt):st(pn)},function(pn){Sr(h),Jt(pn)})}};return!Ci&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ge||(Ci=!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 () => ...);"))}),Ie}else{var vt=O;if(Sr(h),qr===0){var At=ye.current;At!==null&&(lo(At),ye.current=null);var qt={then:function(st,Jt){ye.current===null?(ye.current=[],io(vt,st,Jt)):st(vt)}};return qt}else{var Gt={then:function(st,Jt){st(vt)}};return Gt}}}}function Sr(s){s!==qr-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. "),qr=s}function io(s,h,D){{var O=ye.current;if(O!==null)try{lo(O),uf(function(){O.length===0?(ye.current=null,h(s)):io(s,h,D)})}catch(X){D(X)}else h(s)}}var oo=!1;function lo(s){if(!oo){oo=!0;var h=0;try{for(;h<s.length;h++){var D=s[h];do D=D(!0);while(D!==null)}s.length=0}catch(O){throw s=s.slice(h+1),O}finally{oo=!1}}}var Gu=ea,Xu=sl,dl=lf,Qu={map:ua,forEach:za,count:Br,toArray:yr,only:$r};R.Children=Qu,R.Component=Mt,R.Fragment=se,R.Profiler=G,R.PureComponent=Ze,R.StrictMode=d,R.Suspense=le,R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,R.act=fl,R.cloneElement=Xu,R.createContext=Pr,R.createElement=Gu,R.createFactory=dl,R.createRef=yt,R.forwardRef=F,R.isValidElement=zt,R.lazy=y,R.memo=g,R.startTransition=qu,R.unstable_act=fl,R.useCallback=et,R.useContext=T,R.useDebugValue=Bt,R.useDeferredValue=on,R.useEffect=Ue,R.useId=Fa,R.useImperativeHandle=It,R.useInsertionEffect=B,R.useLayoutEffect=Ce,R.useMemo=rt,R.useReducer=L,R.useRef=z,R.useState=M,R.useSyncExternalStore=Un,R.useTransition=Be,R.version=Ee,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=U0()),Kc.exports}var rl={},mm;function H0(){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 k=Zc(),R=Symbol.for("react.element"),Ee=Symbol.for("react.portal"),we=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),G=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),gt=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),Me=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),Ve=Symbol.iterator,Ge="@@iterator";function Y(c){if(c===null||typeof c!="object")return null;var m=Ve&&c[Ve]||c[Ge];return typeof m=="function"?m:null}var St=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function it(c){{for(var m=arguments.length,g=new Array(m>1?m-1:0),E=1;E<m;E++)g[E-1]=arguments[E];_e("error",c,g)}}function _e(c,m,g){{var E=St.ReactDebugCurrentFrame,T=E.getStackAddendum();T!==""&&(m+="%s",g=g.concat([T]));var M=g.map(function(L){return String(L)});M.unshift("Warning: "+m),Function.prototype.apply.call(console[c],console,M)}}var nt=!1,ye=!1,j=!1,Q=!1,Ot=!1,bt;bt=Symbol.for("react.module.reference");function lt(c){return!!(typeof c=="string"||typeof c=="function"||c===we||c===se||Ot||c===xe||c===te||c===gt||Q||c===J||nt||ye||j||typeof c=="object"&&c!==null&&(c.$$typeof===Me||c.$$typeof===le||c.$$typeof===d||c.$$typeof===G||c.$$typeof===de||c.$$typeof===bt||c.getModuleId!==void 0))}function Rt(c,m,g){var E=c.displayName;if(E)return E;var T=m.displayName||m.name||"";return T!==""?g+"("+T+")":g}function Te(c){return c.displayName||"Context"}function q(c){if(c==null)return null;if(typeof c.tag=="number"&&it("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case we:return"Fragment";case Ee:return"Portal";case se:return"Profiler";case xe:return"StrictMode";case te:return"Suspense";case gt:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case G:var m=c;return Te(m)+".Consumer";case d:var g=c;return Te(g._context)+".Provider";case de:return Rt(c,c.render,"ForwardRef");case le:var E=c.displayName||null;return E!==null?E:q(c.type)||"Memo";case Me:{var T=c,M=T._payload,L=T._init;try{return q(L(M))}catch{return null}}}return null}var Je=Object.assign,re=0,me,W,I,ve,dt,kt,ut;function Kt(){}Kt.__reactDisabledLog=!0;function Mt(){{if(re===0){me=console.log,W=console.info,I=console.warn,ve=console.error,dt=console.group,kt=console.groupCollapsed,ut=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Kt,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}re++}}function Ye(){{if(re--,re===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Je({},c,{value:me}),info:Je({},c,{value:W}),warn:Je({},c,{value:I}),error:Je({},c,{value:ve}),group:Je({},c,{value:dt}),groupCollapsed:Je({},c,{value:kt}),groupEnd:Je({},c,{value:ut})})}re<0&&it("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var je=St.ReactCurrentDispatcher,ze;function dn(c,m,g){{if(ze===void 0)try{throw Error()}catch(T){var E=T.stack.trim().match(/\n( *(at )?)/);ze=E&&E[1]||""}return`
|
|
`+ze+c}}var Ze=!1,Yt;{var yt=typeof WeakMap=="function"?WeakMap:Map;Yt=new yt}function at(c,m){if(!c||Ze)return"";{var g=Yt.get(c);if(g!==void 0)return g}var E;Ze=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=je.current,je.current=null,Mt();try{if(m){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(Bt){E=Bt}Reflect.construct(c,[],L)}else{try{L.call()}catch(Bt){E=Bt}c.call(L.prototype)}}else{try{throw Error()}catch(Bt){E=Bt}c()}}catch(Bt){if(Bt&&E&&typeof Bt.stack=="string"){for(var z=Bt.stack.split(`
|
|
`),Ue=E.stack.split(`
|
|
`),B=z.length-1,Ce=Ue.length-1;B>=1&&Ce>=0&&z[B]!==Ue[Ce];)Ce--;for(;B>=1&&Ce>=0;B--,Ce--)if(z[B]!==Ue[Ce]){if(B!==1||Ce!==1)do if(B--,Ce--,Ce<0||z[B]!==Ue[Ce]){var et=`
|
|
`+z[B].replace(" at new "," at ");return c.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",c.displayName)),typeof c=="function"&&Yt.set(c,et),et}while(B>=1&&Ce>=0);break}}}finally{Ze=!1,je.current=M,Ye(),Error.prepareStackTrace=T}var rt=c?c.displayName||c.name:"",It=rt?dn(rt):"";return typeof c=="function"&&Yt.set(c,It),It}function en(c,m,g){return at(c,!1)}function nn(c){var m=c.prototype;return!!(m&&m.isReactComponent)}function an(c,m,g){if(c==null)return"";if(typeof c=="function")return at(c,nn(c));if(typeof c=="string")return dn(c);switch(c){case te:return dn("Suspense");case gt:return dn("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case de:return en(c.render);case le:return an(c.type,m,g);case Me:{var E=c,T=E._payload,M=E._init;try{return an(M(T),m,g)}catch{}}}return""}var sn=Object.prototype.hasOwnProperty,U={},ne=St.ReactDebugCurrentFrame;function be(c){if(c){var m=c._owner,g=an(c.type,c._source,m?m.type:null);ne.setExtraStackFrame(g)}else ne.setExtraStackFrame(null)}function pe(c,m,g,E,T){{var M=Function.call.bind(sn);for(var L in c)if(M(c,L)){var z=void 0;try{if(typeof c[L]!="function"){var Ue=Error((E||"React class")+": "+g+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ue.name="Invariant Violation",Ue}z=c[L](m,L,E,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){z=B}z&&!(z instanceof Error)&&(be(T),it("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",E||"React class",g,L,typeof z),be(null)),z instanceof Error&&!(z.message in U)&&(U[z.message]=!0,be(T),it("Failed %s type: %s",g,z.message),be(null))}}}var Le=Array.isArray;function Qe(c){return Le(c)}function ot(c){{var m=typeof Symbol=="function"&&Symbol.toStringTag,g=m&&c[Symbol.toStringTag]||c.constructor.name||"Object";return g}}function Fe(c){try{return We(c),!1}catch{return!0}}function We(c){return""+c}function wt(c){if(Fe(c))return it("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ot(c)),We(c)}var vn=St.ReactCurrentOwner,yn={key:!0,ref:!0,__self:!0,__source:!0},gn,K;function fe(c){if(sn.call(c,"ref")){var m=Object.getOwnPropertyDescriptor(c,"ref").get;if(m&&m.isReactWarning)return!1}return c.ref!==void 0}function Ne(c){if(sn.call(c,"key")){var m=Object.getOwnPropertyDescriptor(c,"key").get;if(m&&m.isReactWarning)return!1}return c.key!==void 0}function Ke(c,m){typeof c.ref=="string"&&vn.current}function Nt(c,m){{var g=function(){gn||(gn=!0,it("%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))};g.isReactWarning=!0,Object.defineProperty(c,"key",{get:g,configurable:!0})}}function zt(c,m){{var g=function(){K||(K=!0,it("%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))};g.isReactWarning=!0,Object.defineProperty(c,"ref",{get:g,configurable:!0})}}var $t=function(c,m,g,E,T,M,L){var z={$$typeof:R,type:c,key:m,ref:g,props:L,_owner:M};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function rn(c,m,g,E,T){{var M,L={},z=null,Ue=null;g!==void 0&&(wt(g),z=""+g),Ne(m)&&(wt(m.key),z=""+m.key),fe(m)&&(Ue=m.ref,Ke(m,T));for(M in m)sn.call(m,M)&&!yn.hasOwnProperty(M)&&(L[M]=m[M]);if(c&&c.defaultProps){var B=c.defaultProps;for(M in B)L[M]===void 0&&(L[M]=B[M])}if(z||Ue){var Ce=typeof c=="function"?c.displayName||c.name||"Unknown":c;z&&Nt(L,Ce),Ue&&zt(L,Ce)}return $t(c,z,Ue,T,E,vn.current,L)}}var Wt=St.ReactCurrentOwner,Ft=St.ReactDebugCurrentFrame;function Vt(c){if(c){var m=c._owner,g=an(c.type,c._source,m?m.type:null);Ft.setExtraStackFrame(g)}else Ft.setExtraStackFrame(null)}var tr;tr=!1;function ya(c){return typeof c=="object"&&c!==null&&c.$$typeof===R}function bn(){{if(Wt.current){var c=q(Wt.current.type);if(c)return`
|
|
|
|
Check the render method of \``+c+"`."}return""}}function ua(c){return""}var Br={};function za(c){{var m=bn();if(!m){var g=typeof c=="string"?c:c.displayName||c.name;g&&(m=`
|
|
|
|
Check the top-level render call using <`+g+">.")}return m}}function yr(c,m){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var g=za(m);if(Br[g])return;Br[g]=!0;var E="";c&&c._owner&&c._owner!==Wt.current&&(E=" It was passed a child from "+q(c._owner.type)+"."),Vt(c),it('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,E),Vt(null)}}function $r(c,m){{if(typeof c!="object")return;if(Qe(c))for(var g=0;g<c.length;g++){var E=c[g];ya(E)&&yr(E,m)}else if(ya(c))c._store&&(c._store.validated=!0);else if(c){var T=Y(c);if(typeof T=="function"&&T!==c.entries)for(var M=T.call(c),L;!(L=M.next()).done;)ya(L.value)&&yr(L.value,m)}}}function Pr(c){{var m=c.type;if(m==null||typeof m=="string")return;var g;if(typeof m=="function")g=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===de||m.$$typeof===le))g=m.propTypes;else return;if(g){var E=q(m);pe(g,c.props,"prop",E,c)}else if(m.PropTypes!==void 0&&!tr){tr=!0;var T=q(m);it("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&it("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ga(c){{for(var m=Object.keys(c.props),g=0;g<m.length;g++){var E=m[g];if(E!=="children"&&E!=="key"){Vt(c),it("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),Vt(null);break}}c.ref!==null&&(Vt(c),it("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}var _n={};function kn(c,m,g,E,T,M){{var L=lt(c);if(!L){var z="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ue=ua();Ue?z+=Ue:z+=bn();var B;c===null?B="null":Qe(c)?B="array":c!==void 0&&c.$$typeof===R?(B="<"+(q(c.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):B=typeof c,it("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,z)}var Ce=rn(c,m,g,T,M);if(Ce==null)return Ce;if(L){var et=m.children;if(et!==void 0)if(E)if(Qe(et)){for(var rt=0;rt<et.length;rt++)$r(et[rt],c);Object.freeze&&Object.freeze(et)}else it("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 $r(et,c)}if(sn.call(m,"key")){var It=q(c),Bt=Object.keys(m).filter(function(Fa){return Fa!=="key"}),Be=Bt.length>0?"{key: someKey, "+Bt.join(": ..., ")+": ...}":"{key: someKey}";if(!_n[It+Be]){var on=Bt.length>0?"{"+Bt.join(": ..., ")+": ...}":"{}";it(`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} />`,Be,It,on,It),_n[It+Be]=!0}}return c===we?ga(Ce):Pr(Ce),Ce}}function Da(c,m,g){return kn(c,m,g,!0)}function gr(c,m,g){return kn(c,m,g,!1)}var y=gr,F=Da;rl.Fragment=we,rl.jsx=y,rl.jsxs=F}(),rl}dm.exports=H0();var p=dm.exports,hm={exports:{}},Jc={exports:{}},ef={},ym;function z0(){return ym||(ym=1,function(k){/**
|
|
* @license React
|
|
* scheduler.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var R=!1,Ee=5;function we(K,fe){var Ne=K.length;K.push(fe),d(K,fe,Ne)}function xe(K){return K.length===0?null:K[0]}function se(K){if(K.length===0)return null;var fe=K[0],Ne=K.pop();return Ne!==fe&&(K[0]=Ne,G(K,Ne,0)),fe}function d(K,fe,Ne){for(var Ke=Ne;Ke>0;){var Nt=Ke-1>>>1,zt=K[Nt];if(de(zt,fe)>0)K[Nt]=fe,K[Ke]=zt,Ke=Nt;else return}}function G(K,fe,Ne){for(var Ke=Ne,Nt=K.length,zt=Nt>>>1;Ke<zt;){var $t=(Ke+1)*2-1,rn=K[$t],Wt=$t+1,Ft=K[Wt];if(de(rn,fe)<0)Wt<Nt&&de(Ft,rn)<0?(K[Ke]=Ft,K[Wt]=fe,Ke=Wt):(K[Ke]=rn,K[$t]=fe,Ke=$t);else if(Wt<Nt&&de(Ft,fe)<0)K[Ke]=Ft,K[Wt]=fe,Ke=Wt;else return}}function de(K,fe){var Ne=K.sortIndex-fe.sortIndex;return Ne!==0?Ne:K.id-fe.id}var te=1,gt=2,le=3,Me=4,J=5;function Ve(K,fe){}var Ge=typeof performance=="object"&&typeof performance.now=="function";if(Ge){var Y=performance;k.unstable_now=function(){return Y.now()}}else{var St=Date,it=St.now();k.unstable_now=function(){return St.now()-it}}var _e=1073741823,nt=-1,ye=250,j=5e3,Q=1e4,Ot=_e,bt=[],lt=[],Rt=1,Te=null,q=le,Je=!1,re=!1,me=!1,W=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,ve=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function dt(K){for(var fe=xe(lt);fe!==null;){if(fe.callback===null)se(lt);else if(fe.startTime<=K)se(lt),fe.sortIndex=fe.expirationTime,we(bt,fe);else return;fe=xe(lt)}}function kt(K){if(me=!1,dt(K),!re)if(xe(bt)!==null)re=!0,We(ut);else{var fe=xe(lt);fe!==null&&wt(kt,fe.startTime-K)}}function ut(K,fe){re=!1,me&&(me=!1,vn()),Je=!0;var Ne=q;try{var Ke;if(!R)return Kt(K,fe)}finally{Te=null,q=Ne,Je=!1}}function Kt(K,fe){var Ne=fe;for(dt(Ne),Te=xe(bt);Te!==null&&!(Te.expirationTime>Ne&&(!K||ne()));){var Ke=Te.callback;if(typeof Ke=="function"){Te.callback=null,q=Te.priorityLevel;var Nt=Te.expirationTime<=Ne,zt=Ke(Nt);Ne=k.unstable_now(),typeof zt=="function"?Te.callback=zt:Te===xe(bt)&&se(bt),dt(Ne)}else se(bt);Te=xe(bt)}if(Te!==null)return!0;var $t=xe(lt);return $t!==null&&wt(kt,$t.startTime-Ne),!1}function Mt(K,fe){switch(K){case te:case gt:case le:case Me:case J:break;default:K=le}var Ne=q;q=K;try{return fe()}finally{q=Ne}}function Ye(K){var fe;switch(q){case te:case gt:case le:fe=le;break;default:fe=q;break}var Ne=q;q=fe;try{return K()}finally{q=Ne}}function je(K){var fe=q;return function(){var Ne=q;q=fe;try{return K.apply(this,arguments)}finally{q=Ne}}}function ze(K,fe,Ne){var Ke=k.unstable_now(),Nt;if(typeof Ne=="object"&&Ne!==null){var zt=Ne.delay;typeof zt=="number"&&zt>0?Nt=Ke+zt:Nt=Ke}else Nt=Ke;var $t;switch(K){case te:$t=nt;break;case gt:$t=ye;break;case J:$t=Ot;break;case Me:$t=Q;break;case le:default:$t=j;break}var rn=Nt+$t,Wt={id:Rt++,callback:fe,priorityLevel:K,startTime:Nt,expirationTime:rn,sortIndex:-1};return Nt>Ke?(Wt.sortIndex=Nt,we(lt,Wt),xe(bt)===null&&Wt===xe(lt)&&(me?vn():me=!0,wt(kt,Nt-Ke))):(Wt.sortIndex=rn,we(bt,Wt),!re&&!Je&&(re=!0,We(ut))),Wt}function dn(){}function Ze(){!re&&!Je&&(re=!0,We(ut))}function Yt(){return xe(bt)}function yt(K){K.callback=null}function at(){return q}var en=!1,nn=null,an=-1,sn=Ee,U=-1;function ne(){var K=k.unstable_now()-U;return!(K<sn)}function be(){}function pe(K){if(K<0||K>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}K>0?sn=Math.floor(1e3/K):sn=Ee}var Le=function(){if(nn!==null){var K=k.unstable_now();U=K;var fe=!0,Ne=!0;try{Ne=nn(fe,K)}finally{Ne?Qe():(en=!1,nn=null)}}else en=!1},Qe;if(typeof ve=="function")Qe=function(){ve(Le)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,Fe=ot.port2;ot.port1.onmessage=Le,Qe=function(){Fe.postMessage(null)}}else Qe=function(){W(Le,0)};function We(K){nn=K,en||(en=!0,Qe())}function wt(K,fe){an=W(function(){K(k.unstable_now())},fe)}function vn(){I(an),an=-1}var yn=be,gn=null;k.unstable_IdlePriority=J,k.unstable_ImmediatePriority=te,k.unstable_LowPriority=Me,k.unstable_NormalPriority=le,k.unstable_Profiling=gn,k.unstable_UserBlockingPriority=gt,k.unstable_cancelCallback=yt,k.unstable_continueExecution=Ze,k.unstable_forceFrameRate=pe,k.unstable_getCurrentPriorityLevel=at,k.unstable_getFirstCallbackNode=Yt,k.unstable_next=Ye,k.unstable_pauseExecution=dn,k.unstable_requestPaint=yn,k.unstable_runWithPriority=Mt,k.unstable_scheduleCallback=ze,k.unstable_shouldYield=ne,k.unstable_wrapCallback=je,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 F0(){return gm||(gm=1,Jc.exports=z0()),Jc.exports}var la={},bm;function V0(){if(bm)return la;bm=1;/**
|
|
* @license React
|
|
* react-dom.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var k=Zc(),R=F0(),Ee=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,we=!1;function xe(e){we=e}function se(e){if(!we){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];G("warn",e,n)}}function d(e){if(!we){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];G("error",e,n)}}function G(e,t,n){{var a=Ee.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var de=0,te=1,gt=2,le=3,Me=4,J=5,Ve=6,Ge=7,Y=8,St=9,it=10,_e=11,nt=12,ye=13,j=14,Q=15,Ot=16,bt=17,lt=18,Rt=19,Te=21,q=22,Je=23,re=24,me=25,W=!0,I=!1,ve=!1,dt=!1,kt=!1,ut=!0,Kt=!0,Mt=!0,Ye=!0,je=new Set,ze={},dn={};function Ze(e,t){Yt(e,t),Yt(e+"Capture",t)}function Yt(e,t){ze[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ze[e]=t;{var n=e.toLowerCase();dn[n]=e,e==="onDoubleClick"&&(dn.ondblclick=e)}for(var a=0;a<t.length;a++)je.add(t[a])}var yt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",at=Object.prototype.hasOwnProperty;function en(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function nn(e){try{return an(e),!1}catch{return!0}}function an(e){return""+e}function sn(e,t){if(nn(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,en(e)),an(e)}function U(e){if(nn(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",en(e)),an(e)}function ne(e,t){if(nn(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,en(e)),an(e)}function be(e,t){if(nn(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,en(e)),an(e)}function pe(e){if(nn(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.",en(e)),an(e)}function Le(e){if(nn(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.",en(e)),an(e)}var Qe=0,ot=1,Fe=2,We=3,wt=4,vn=5,yn=6,gn=":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",K=gn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",fe=new RegExp("^["+gn+"]["+K+"]*$"),Ne={},Ke={};function Nt(e){return at.call(Ke,e)?!0:at.call(Ne,e)?!1:fe.test(e)?(Ke[e]=!0,!0):(Ne[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function zt(e,t,n){return t!==null?t.type===Qe:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function $t(e,t,n,a){if(n!==null&&n.type===Qe)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(a)return!1;if(n!==null)return!n.acceptsBooleans;var r=e.toLowerCase().slice(0,5);return r!=="data-"&&r!=="aria-"}default:return!1}}function rn(e,t,n,a){if(t===null||typeof t>"u"||$t(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case We:return!t;case wt:return t===!1;case vn:return isNaN(t);case yn:return isNaN(t)||t<1}return!1}function Wt(e){return Vt.hasOwnProperty(e)?Vt[e]:null}function Ft(e,t,n,a,r,i,o){this.acceptsBooleans=t===Fe||t===We||t===wt,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Vt={},tr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];tr.forEach(function(e){Vt[e]=new Ft(e,Qe,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];Vt[t]=new Ft(t,ot,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vt[e]=new Ft(e,Fe,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vt[e]=new Ft(e,Fe,!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){Vt[e]=new Ft(e,We,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Vt[e]=new Ft(e,We,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Vt[e]=new Ft(e,wt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Vt[e]=new Ft(e,yn,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Vt[e]=new Ft(e,vn,!1,e.toLowerCase(),null,!1,!1)});var ya=/[\-\:]([a-z])/g,bn=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(ya,bn);Vt[t]=new Ft(t,ot,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ya,bn);Vt[t]=new Ft(t,ot,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ya,bn);Vt[t]=new Ft(t,ot,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Vt[e]=new Ft(e,ot,!1,e.toLowerCase(),null,!1,!1)});var ua="xlinkHref";Vt[ua]=new Ft("xlinkHref",ot,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Vt[e]=new Ft(e,ot,!1,e.toLowerCase(),null,!0,!0)});var Br=/^[\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,za=!1;function yr(e){!za&&Br.test(e)&&(za=!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 $r(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{sn(n,t),a.sanitizeURL&&yr(""+n);var i=a.attributeName,o=null;if(a.type===wt){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:rn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(rn(t,n,a,!1))return e.getAttribute(i);if(a.type===We)return n;o=e.getAttribute(i)}return rn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function Pr(e,t,n,a){{if(!Nt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return sn(n,t),r===""+n?n:r}}function ga(e,t,n,a){var r=Wt(t);if(!zt(t,r,a)){if(rn(t,n,r,a)&&(n=null),a||r===null){if(Nt(t)){var i=t;n===null?e.removeAttribute(i):(sn(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===We?!1:""}else e[l]=n;return}var f=r.attributeName,v=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var S=r.type,b;S===We||S===wt&&n===!0?b="":(sn(n,f),b=""+n,r.sanitizeURL&&yr(b.toString())),v?e.setAttributeNS(v,f,b):e.setAttribute(f,b)}}}var _n=Symbol.for("react.element"),kn=Symbol.for("react.portal"),Da=Symbol.for("react.fragment"),gr=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),L=Symbol.for("react.scope"),z=Symbol.for("react.debug_trace_mode"),Ue=Symbol.for("react.offscreen"),B=Symbol.for("react.legacy_hidden"),Ce=Symbol.for("react.cache"),et=Symbol.for("react.tracing_marker"),rt=Symbol.iterator,It="@@iterator";function Bt(e){if(e===null||typeof e!="object")return null;var t=rt&&e[rt]||e[It];return typeof t=="function"?t:null}var Be=Object.assign,on=0,Fa,Un,Lt,sa,nr,no,Yr;function ba(){}ba.__reactDisabledLog=!0;function _a(){{if(on===0){Fa=console.log,Un=console.info,Lt=console.warn,sa=console.error,nr=console.group,no=console.groupCollapsed,Yr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}on++}}function bi(){{if(on--,on===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Be({},e,{value:Fa}),info:Be({},e,{value:Un}),warn:Be({},e,{value:Lt}),error:Be({},e,{value:sa}),group:Be({},e,{value:nr}),groupCollapsed:Be({},e,{value:no}),groupEnd:Be({},e,{value:Yr})})}on<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wr=Ee.ReactCurrentDispatcher,cn;function ft(e,t,n){{if(cn===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);cn=a&&a[1]||""}return`
|
|
`+cn+e}}var ca=!1,In;{var ar=typeof WeakMap=="function"?WeakMap:Map;In=new ar}function Si(e,t){if(!e||ca)return"";{var n=In.get(e);if(n!==void 0)return n}var a;ca=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Wr.current,Wr.current=null,_a();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(_){a=_}Reflect.construct(e,[],o)}else{try{o.call()}catch(_){a=_}e.call(o.prototype)}}else{try{throw Error()}catch(_){a=_}e()}}catch(_){if(_&&a&&typeof _.stack=="string"){for(var l=_.stack.split(`
|
|
`),u=a.stack.split(`
|
|
`),f=l.length-1,v=u.length-1;f>=1&&v>=0&&l[f]!==u[v];)v--;for(;f>=1&&v>=0;f--,v--)if(l[f]!==u[v]){if(f!==1||v!==1)do if(f--,v--,v<0||l[f]!==u[v]){var S=`
|
|
`+l[f].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&In.set(e,S),S}while(f>=1&&v>=0);break}}}finally{ca=!1,Wr.current=i,bi(),Error.prepareStackTrace=r}var b=e?e.displayName||e.name:"",w=b?ft(b):"";return typeof e=="function"&&In.set(e,w),w}function ao(e,t,n){return Si(e,!0)}function il(e,t,n){return Si(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ol(e,t,n){if(e==null)return"";if(typeof e=="function")return Si(e,Yu(e));if(typeof e=="string")return ft(e);switch(e){case g:return ft("Suspense");case E:return ft("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return il(e.render);case T:return ol(e.type,t,n);case M:{var a=e,r=a._payload,i=a._init;try{return ol(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case J:return ft(e.type);case Ot:return ft("Lazy");case ye:return ft("Suspense");case Rt:return ft("SuspenseList");case de:case gt:case Q:return il(e.type);case _e:return il(e.type.render);case te:return ao(e.type);default:return""}}function Ti(e){try{var t="",n=e;do t+=af(n),n=n.return;while(n);return t}catch(a){return`
|
|
Error generating stack: `+a.message+`
|
|
`+a.stack}}function Wu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function ll(e){return e.displayName||"Context"}function Ct(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 Da:return"Fragment";case kn:return"Portal";case y:return"Profiler";case gr:return"StrictMode";case g:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return ll(t)+".Consumer";case F:var n=e;return ll(n._context)+".Provider";case m:return Wu(e,e.render,"ForwardRef");case T:var a=e.displayName||null;return a!==null?a:Ct(e.type)||"Memo";case M:{var r=e,i=r._payload,o=r._init;try{return Ct(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 br(e){return e.displayName||"Context"}function Xe(e){var t=e.tag,n=e.type;switch(t){case re:return"Cache";case St:var a=n;return br(a)+".Consumer";case it:var r=n;return br(r._context)+".Provider";case lt:return"DehydratedFragment";case _e:return rf(n,n.render,"ForwardRef");case Ge:return"Fragment";case J:return n;case Me:return"Portal";case le:return"Root";case Ve:return"Text";case Ot:return Ct(n);case Y:return n===gr?"StrictMode":"Mode";case q:return"Offscreen";case nt:return"Profiler";case Te:return"Scope";case ye:return"Suspense";case Rt:return"SuspenseList";case me:return"TracingMarker";case te:case de:case bt:case gt:case j:case Q:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var ul=Ee.ReactDebugCurrentFrame,Jn=null,Ei=!1;function Ir(){{if(Jn===null)return null;var e=Jn._debugOwner;if(e!==null&&typeof e<"u")return Xe(e)}return null}function of(){return Jn===null?"":Ti(Jn)}function Mn(){ul.getCurrentStack=null,Jn=null,Ei=!1}function Zt(e){ul.getCurrentStack=e===null?null:of,Jn=e,Ei=!1}function Iu(){return Jn}function ka(e){Ei=e}function ea(e){return""+e}function Va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Le(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function sl(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 cl(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 qr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Le(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){Le(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){Le(l),a=""+l},stopTracking:function(){ro(e),delete e[t]}};return o}}function Ci(e){cl(e)||(e._valueTracker=qr(e))}function fl(e){if(!e)return!1;var t=cl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function Sr(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 dl(e,t){var n=e,a=t.checked,r=Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Qu(e,t){sl("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",Ir()||"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",Ir()||"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:Va(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&ga(n,"checked",a,!1)}function h(e,t){var n=e;{var a=Xu(t);!n._wrapperState.controlled&&a&&!Gu&&(d("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Gu=!0),n._wrapperState.controlled&&!a&&!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=Va(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ea(r)):n.value!==ea(r)&&(n.value=ea(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Oe(n,t.type,r):t.hasOwnProperty("defaultValue")&&Oe(n,t.type,Va(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function D(e,t,n){var a=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type,i=r==="submit"||r==="reset";if(i&&(t.value===void 0||t.value===null))return;var o=ea(a._wrapperState.initialValue);n||o!==a.value&&(a.value=o),a.defaultValue=o}var l=a.name;l!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,l!==""&&(a.name=l)}function O(e,t){var n=e;h(n,t),X(n,t)}function X(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;sn(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=Hs(o);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fl(o),h(o,l)}}}}function Oe(e,t,n){(t!=="number"||Sr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ea(e._wrapperState.initialValue):e.defaultValue!==ea(n)&&(e.defaultValue=ea(n)))}var ge=!1,Ie=!1,vt=!1;function At(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?k.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||Ie||(Ie=!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&&(vt||(vt=!0,d("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!ge&&(d("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ge=!0)}function qt(e,t){t.value!=null&&e.setAttribute("value",ea(Va(t.value)))}var Gt=Array.isArray;function st(e){return Gt(e)}var Jt;Jt=!1;function pn(){var e=Ir();return e?`
|
|
|
|
Check the render method of \``+e+"`.":""}var xi=["value","defaultValue"];function vl(e){{sl("select",e);for(var t=0;t<xi.length;t++){var n=xi[t];if(e[n]!=null){var a=st(e[n]);e.multiple&&!a?d("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,pn()):!e.multiple&&a&&d("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,pn())}}}}function Tr(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var f=o.hasOwnProperty("$"+r[u].value);r[u].selected!==f&&(r[u].selected=f),f&&a&&(r[u].defaultSelected=!0)}}else{for(var v=ea(Va(n)),S=null,b=0;b<r.length;b++){if(r[b].value===v){r[b].selected=!0,a&&(r[b].defaultSelected=!0);return}S===null&&!r[b].disabled&&(S=r[b])}S!==null&&(S.selected=!0)}}function pl(e,t){return Be({},t,{value:void 0})}function ml(e,t){var n=e;vl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!Jt&&(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"),Jt=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Tr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Tr(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?Tr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Tr(n,!!t.multiple,t.defaultValue,!0):Tr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&Tr(n,!!t.multiple,a,!1)}var _m=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=Be({},t,{value:void 0,defaultValue:void 0,children:ea(n._wrapperState.initialValue)});return a}function km(e,t){var n=e;sl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!_m&&(d("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ir()||"A component"),_m=!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(st(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:Va(a)}}function Mm(e,t){var n=e,a=Va(t.value),r=Va(t.defaultValue);if(a!=null){var i=ea(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ea(r))}function Lm(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function tS(e,t){Mm(e,t)}var Er="http://www.w3.org/1999/xhtml",nS="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 nS;default:return Er}}function pf(e,t){return e==null||e===Er?vf(t):e===df&&t==="foreignObject"?Er:e}var aS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Zu,Om=aS(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}),fa=1,Cr=3,mn=8,xr=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Cr){n.nodeValue=t;return}}e.textContent=t},rS={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"]},hl={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 iS(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var oS=["Webkit","ms","Moz","O"];Object.keys(hl).forEach(function(e){oS.forEach(function(t){hl[iS(t,e)]=hl[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(hl.hasOwnProperty(e)&&hl[e])?t+"px":(be(t,e),(""+t).trim())}var lS=/([A-Z])/g,uS=/^ms-/;function sS(e){return e.replace(lS,"-$1").toLowerCase().replace(uS,"-ms-")}var Nm=function(){};{var cS=/^(?:webkit|moz|o)[A-Z]/,fS=/^-ms-/,dS=/-(.)/g,Am=/;\s*$/,uo={},yf={},jm=!1,Um=!1,vS=function(e){return e.replace(dS,function(t,n){return n.toUpperCase()})},pS=function(e){uo.hasOwnProperty(e)&&uo[e]||(uo[e]=!0,d("Unsupported style property %s. Did you mean %s?",e,vS(e.replace(fS,"ms-"))))},mS=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)))},hS=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(Am,"")))},yS=function(e,t){jm||(jm=!0,d("`NaN` is an invalid value for the `%s` css style property.",e))},gS=function(e,t){Um||(Um=!0,d("`Infinity` is an invalid value for the `%s` css style property.",e))};Nm=function(e,t){e.indexOf("-")>-1?pS(e):cS.test(e)?mS(e):Am.test(t)&&hS(e,t),typeof t=="number"&&(isNaN(t)?yS(e,t):isFinite(t)||gS(e,t))}}var bS=Nm;function SS(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:sS(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Hm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||bS(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function TS(e){return e==null||typeof e=="boolean"||e===""}function zm(e){var t={};for(var n in e)for(var a=rS[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function ES(e,t){{if(!t)return;var n=zm(e),a=zm(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.",TS(e[o])?"Removing":"Updating",o,l)}}}}var CS={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},xS=Be({menuitem:!0},CS),RS="__html";function gf(e,t){if(t){if(xS[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"||!(RS in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&d("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Ri(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var es={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Fm={"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={},wS=new RegExp("^(aria)-["+K+"]*$"),DS=new RegExp("^(aria)[A-Z]["+K+"]*$");function _S(e,t){{if(at.call(so,t)&&so[t])return!0;if(DS.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Fm.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(wS.test(t)){var r=t.toLowerCase(),i=Fm.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 kS(e,t){{var n=[];for(var a in t){var r=_S(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 MS(e,t){Ri(e,t)||kS(e,t)}var Vm=!1;function LS(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Vm&&(Vm=!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 Bm=function(){};{var ta={},$m=/^on./,OS=/^on[^A-Z]/,NS=new RegExp("^(aria)-["+K+"]*$"),AS=new RegExp("^(aria)[A-Z]["+K+"]*$");Bm=function(e,t,n,a){if(at.call(ta,t)&&ta[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return d("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ta[t]=!0,!0;if(a!=null){var i=a.registrationNameDependencies,o=a.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var l=o.hasOwnProperty(r)?o[r]:null;if(l!=null)return d("Invalid event handler property `%s`. Did you mean `%s`?",t,l),ta[t]=!0,!0;if($m.test(t))return d("Unknown event handler property `%s`. It will be ignored.",t),ta[t]=!0,!0}else if($m.test(t))return OS.test(t)&&d("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ta[t]=!0,!0;if(NS.test(t)||AS.test(t))return!0;if(r==="innerhtml")return d("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ta[t]=!0,!0;if(r==="aria")return d("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ta[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return d("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),ta[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return d("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ta[t]=!0,!0;var u=Wt(t),f=u!==null&&u.type===Qe;if(es.hasOwnProperty(r)){var v=es[r];if(v!==t)return d("Invalid DOM property `%s`. Did you mean `%s`?",t,v),ta[t]=!0,!0}else if(!f&&t!==r)return d("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),ta[t]=!0,!0;return typeof n=="boolean"&&$t(t,n,u,!1)?(n?d('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):d('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),ta[t]=!0,!0):f?!0:$t(t,n,u,!1)?(ta[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===We&&(d("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),ta[t]=!0),!0)}}var jS=function(e,t,n){{var a=[];for(var r in t){var i=Bm(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 US(e,t,n){Ri(e,t)||jS(e,t,n)}var Pm=1,bf=2,yl=4,HS=Pm|bf|yl,gl=null;function zS(e){gl!==null&&d("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),gl=e}function FS(){gl===null&&d("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),gl=null}function VS(e){return e===gl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Cr?t.parentNode:t}var Tf=null,co=null,fo=null;function Ym(e){var t=ni(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=Hs(n);Tf(t.stateNode,t.type,a)}}}function BS(e){Tf=e}function Wm(e){co?fo?fo.push(e):fo=[e]:co=e}function $S(){return co!==null||fo!==null}function Im(){if(co){var e=co,t=fo;if(co=null,fo=null,Ym(e),t)for(var n=0;n<t.length;n++)Ym(t[n])}}var qm=function(e,t){return e(t)},Gm=function(){},Ef=!1;function PS(){var e=$S();e&&(Gm(),Im())}function Xm(e,t,n){if(Ef)return e(t,n);Ef=!0;try{return qm(e,t,n)}finally{Ef=!1,PS()}}function YS(e,t,n){qm=e,Gm=n}function WS(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function IS(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&&WS(t));default:return!1}}function bl(e,t){var n=e.stateNode;if(n===null)return null;var a=Hs(n);if(a===null)return null;var r=a[t];if(IS(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(yt)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{Cf=!1}function Qm(e,t,n,a,r,i,o,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(v){this.onError(v)}}var Km=Qm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");Km=function(t,n,a,r,i,o,l,u,f){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var v=document.createEvent("Event"),S=!1,b=!0,w=window.event,_=Object.getOwnPropertyDescriptor(window,"event");function N(){xf.removeEventListener(A,De,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=w)}var ae=Array.prototype.slice.call(arguments,3);function De(){S=!0,N(),n.apply(a,ae),b=!1}var Se,ht=!1,ct=!1;function C(x){if(Se=x.error,ht=!0,Se===null&&x.colno===0&&x.lineno===0&&(ct=!0),x.defaultPrevented&&Se!=null&&typeof Se=="object")try{Se._suppressLogging=!0}catch{}}var A="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",C),xf.addEventListener(A,De,!1),v.initEvent(A,!1,!1),xf.dispatchEvent(v),_&&Object.defineProperty(window,"event",_),S&&b&&(ht?ct&&(Se=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.")):Se=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(Se)),window.removeEventListener("error",C),!S)return N(),Qm.apply(this,arguments)}}var qS=Km,vo=!1,ts=null,ns=!1,Rf=null,GS={onError:function(e){vo=!0,ts=e}};function wf(e,t,n,a,r,i,o,l,u){vo=!1,ts=null,qS.apply(GS,arguments)}function XS(e,t,n,a,r,i,o,l,u){if(wf.apply(this,arguments),vo){var f=Df();ns||(ns=!0,Rf=f)}}function QS(){if(ns){var e=Rf;throw ns=!1,Rf=null,e}}function KS(){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 ZS(e){return e._reactInternals!==void 0}function JS(e,t){e._reactInternals=t}var Ae=0,mo=1,Ln=2,xt=4,wi=16,as=32,Zm=64,Dt=128,Di=256,_i=512,ho=1024,Gr=2048,ki=4096,Mi=8192,_f=16384,eT=32767,rs=32768,Ba=65536,kf=131072,Jm=1048576,Mf=2097152,Li=4194304,Lf=8388608,Xr=16777216,Of=33554432,Nf=xt|ho|0,Af=Ln|xt|wi|as|_i|ki|Mi,Tl=xt|Zm|_i|Mi,yo=Gr|wi,Rr=Li|Lf|Mf,tT=Ee.ReactCurrentOwner;function Oi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(Ln|ki))!==Ae&&(n=t.return),a=t.return;while(a)}return t.tag===le?n:null}function eh(e){if(e.tag===ye){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 th(e){return e.tag===le?e.stateNode.containerInfo:null}function nT(e){return Oi(e)===e}function aT(e){{var t=tT.current;if(t!==null&&t.tag===te){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.",Xe(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=po(e);return r?Oi(r)===r:!1}function nh(e){if(Oi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function ah(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 nh(i),e;if(u===r)return nh(i),t;u=u.sibling}throw new Error("Unable to find node on an unmounted component.")}if(a.return!==r.return)a=i,r=o;else{for(var f=!1,v=i.child;v;){if(v===a){f=!0,a=i,r=o;break}if(v===r){f=!0,r=i,a=o;break}v=v.sibling}if(!f){for(v=o.child;v;){if(v===a){f=!0,a=o,r=i;break}if(v===r){f=!0,r=o,a=i;break}v=v.sibling}if(!f)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==r)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==le)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function rh(e){var t=ah(e);return t!==null?ih(t):null}function ih(e){if(e.tag===J||e.tag===Ve)return e;for(var t=e.child;t!==null;){var n=ih(t);if(n!==null)return n;t=t.sibling}return null}function rT(e){var t=ah(e);return t!==null?oh(t):null}function oh(e){if(e.tag===J||e.tag===Ve)return e;for(var t=e.child;t!==null;){if(t.tag!==Me){var n=oh(t);if(n!==null)return n}t=t.sibling}return null}var lh=R.unstable_scheduleCallback,iT=R.unstable_cancelCallback,oT=R.unstable_shouldYield,lT=R.unstable_requestPaint,On=R.unstable_now,uT=R.unstable_getCurrentPriorityLevel,is=R.unstable_ImmediatePriority,jf=R.unstable_UserBlockingPriority,Ni=R.unstable_NormalPriority,sT=R.unstable_LowPriority,Uf=R.unstable_IdlePriority,cT=R.unstable_yieldValue,fT=R.unstable_setDisableYieldValue,go=null,qn=null,oe=null,rr=!1,$a=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function dT(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return 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{Kt&&(e=Be({},e,{getLaneLabelMap:gT,injectProfilingHooks:yT})),go=t.inject(e),qn=t}catch(n){d("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function vT(e,t){if(qn&&typeof qn.onScheduleFiberRoot=="function")try{qn.onScheduleFiberRoot(go,e,t)}catch(n){rr||(rr=!0,d("React instrumentation encountered an error: %s",n))}}function pT(e,t){if(qn&&typeof qn.onCommitFiberRoot=="function")try{var n=(e.current.flags&Dt)===Dt;if(Mt){var a;switch(t){case Ta:a=is;break;case Dr:a=jf;break;case _r:a=Ni;break;case ds:a=Uf;break;default:a=Ni;break}qn.onCommitFiberRoot(go,e,a,n)}}catch(r){rr||(rr=!0,d("React instrumentation encountered an error: %s",r))}}function mT(e){if(qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(go,e)}catch(t){rr||(rr=!0,d("React instrumentation encountered an error: %s",t))}}function hT(e){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(go,e)}catch(t){rr||(rr=!0,d("React instrumentation encountered an error: %s",t))}}function Nn(e){if(typeof cT=="function"&&(fT(e),xe(e)),qn&&typeof qn.setStrictMode=="function")try{qn.setStrictMode(go,e)}catch(t){rr||(rr=!0,d("React instrumentation encountered an error: %s",t))}}function yT(e){oe=e}function gT(){{for(var e=new Map,t=1,n=0;n<zf;n++){var a=zT(t);e.set(t,a),t*=2}return e}}function bT(e){oe!==null&&typeof oe.markCommitStarted=="function"&&oe.markCommitStarted(e)}function uh(){oe!==null&&typeof oe.markCommitStopped=="function"&&oe.markCommitStopped()}function El(e){oe!==null&&typeof oe.markComponentRenderStarted=="function"&&oe.markComponentRenderStarted(e)}function bo(){oe!==null&&typeof oe.markComponentRenderStopped=="function"&&oe.markComponentRenderStopped()}function ST(e){oe!==null&&typeof oe.markComponentPassiveEffectMountStarted=="function"&&oe.markComponentPassiveEffectMountStarted(e)}function TT(){oe!==null&&typeof oe.markComponentPassiveEffectMountStopped=="function"&&oe.markComponentPassiveEffectMountStopped()}function ET(e){oe!==null&&typeof oe.markComponentPassiveEffectUnmountStarted=="function"&&oe.markComponentPassiveEffectUnmountStarted(e)}function CT(){oe!==null&&typeof oe.markComponentPassiveEffectUnmountStopped=="function"&&oe.markComponentPassiveEffectUnmountStopped()}function xT(e){oe!==null&&typeof oe.markComponentLayoutEffectMountStarted=="function"&&oe.markComponentLayoutEffectMountStarted(e)}function RT(){oe!==null&&typeof oe.markComponentLayoutEffectMountStopped=="function"&&oe.markComponentLayoutEffectMountStopped()}function sh(e){oe!==null&&typeof oe.markComponentLayoutEffectUnmountStarted=="function"&&oe.markComponentLayoutEffectUnmountStarted(e)}function ch(){oe!==null&&typeof oe.markComponentLayoutEffectUnmountStopped=="function"&&oe.markComponentLayoutEffectUnmountStopped()}function wT(e,t,n){oe!==null&&typeof oe.markComponentErrored=="function"&&oe.markComponentErrored(e,t,n)}function DT(e,t,n){oe!==null&&typeof oe.markComponentSuspended=="function"&&oe.markComponentSuspended(e,t,n)}function _T(e){oe!==null&&typeof oe.markLayoutEffectsStarted=="function"&&oe.markLayoutEffectsStarted(e)}function kT(){oe!==null&&typeof oe.markLayoutEffectsStopped=="function"&&oe.markLayoutEffectsStopped()}function MT(e){oe!==null&&typeof oe.markPassiveEffectsStarted=="function"&&oe.markPassiveEffectsStarted(e)}function LT(){oe!==null&&typeof oe.markPassiveEffectsStopped=="function"&&oe.markPassiveEffectsStopped()}function fh(e){oe!==null&&typeof oe.markRenderStarted=="function"&&oe.markRenderStarted(e)}function OT(){oe!==null&&typeof oe.markRenderYielded=="function"&&oe.markRenderYielded()}function dh(){oe!==null&&typeof oe.markRenderStopped=="function"&&oe.markRenderStopped()}function NT(e){oe!==null&&typeof oe.markRenderScheduled=="function"&&oe.markRenderScheduled(e)}function AT(e,t){oe!==null&&typeof oe.markForceUpdateScheduled=="function"&&oe.markForceUpdateScheduled(e,t)}function Hf(e,t){oe!==null&&typeof oe.markStateUpdateScheduled=="function"&&oe.markStateUpdateScheduled(e,t)}var ke=0,pt=1,jt=2,ln=8,ir=16,vh=Math.clz32?Math.clz32:HT,jT=Math.log,UT=Math.LN2;function HT(e){var t=e>>>0;return t===0?32:31-(jT(t)/UT|0)|0}var zf=31,V=0,An=0,$e=1,So=2,wr=4,Ai=8,or=16,Cl=32,To=4194240,xl=64,Ff=128,Vf=256,Bf=512,$f=1024,Pf=2048,Yf=4096,Wf=8192,If=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,ph=Eo,Rl=134217728,mh=268435455,wl=268435456,ji=536870912,Ma=1073741824;function zT(e){{if(e&$e)return"Sync";if(e&So)return"InputContinuousHydration";if(e&wr)return"InputContinuous";if(e&Ai)return"DefaultHydration";if(e&or)return"Default";if(e&Cl)return"TransitionHydration";if(e&To)return"Transition";if(e&os)return"Retry";if(e&Rl)return"SelectiveHydration";if(e&wl)return"IdleHydration";if(e&ji)return"Idle";if(e&Ma)return"Offscreen"}}var Xt=-1,ls=xl,us=Eo;function Dl(e){switch(Ui(e)){case $e:return $e;case So:return So;case wr:return wr;case Ai:return Ai;case or:return or;case Cl:return Cl;case xl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If: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 Rl:return Rl;case wl:return wl;case ji:return ji;case Ma:return Ma;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===V)return V;var a=V,r=e.suspendedLanes,i=e.pingedLanes,o=n&mh;if(o!==V){var l=o&~r;if(l!==V)a=Dl(l);else{var u=o&i;u!==V&&(a=Dl(u))}}else{var f=n&~r;f!==V?a=Dl(f):i!==V&&(a=Dl(i))}if(a===V)return V;if(t!==V&&t!==a&&(t&r)===V){var v=Ui(a),S=Ui(t);if(v>=S||v===or&&(S&To)!==V)return t}(a&wr)!==V&&(a|=n&or);var b=e.entangledLanes;if(b!==V)for(var w=e.entanglements,_=a&b;_>0;){var N=Hi(_),ae=1<<N;a|=w[N],_&=~ae}return a}function FT(e,t){for(var n=e.eventTimes,a=Xt;t>0;){var r=Hi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function VT(e,t){switch(e){case $e:case So:case wr:return t+250;case Ai:case or:case Cl:case xl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If: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 Rl:case wl:case ji:case Ma: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=Hi(o),u=1<<l,f=i[l];f===Xt?((u&a)===V||(u&r)!==V)&&(i[l]=VT(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function $T(e){return Dl(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==V?t:t&Ma?Ma:V}function PT(e){return(e&$e)!==V}function id(e){return(e&mh)!==V}function hh(e){return(e&os)===e}function YT(e){var t=$e|wr|or;return(e&t)===V}function WT(e){return(e&To)===e}function cs(e,t){var n=So|wr|Ai|or;return(t&n)!==V}function IT(e,t){return(t&e.expiredLanes)!==V}function yh(e){return(e&To)!==V}function gh(){var e=ls;return ls<<=1,(ls&To)===V&&(ls=xl),e}function qT(){var e=us;return us<<=1,(us&os)===V&&(us=Eo),e}function Ui(e){return e&-e}function _l(e){return Ui(e)}function Hi(e){return 31-vh(e)}function od(e){return Hi(e)}function Sa(e,t){return(e&t)!==V}function Co(e,t){return(e&t)===t}function tt(e,t){return e|t}function fs(e,t){return e&~t}function bh(e,t){return e&t}function p_(e){return e}function GT(e,t){return e!==An&&e<t?e:t}function ld(e){for(var t=[],n=0;n<zf;n++)t.push(e);return t}function kl(e,t,n){e.pendingLanes|=t,t!==ji&&(e.suspendedLanes=V,e.pingedLanes=V);var a=e.eventTimes,r=od(t);a[r]=n}function XT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Hi(a),i=1<<r;n[r]=Xt,a&=~i}}function Sh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function QT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=V,e.pingedLanes=V,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=Hi(o),u=1<<l;a[l]=V,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=Hi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function KT(e,t){var n=Ui(t),a;switch(n){case wr:a=So;break;case or:a=Ai;break;case xl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If: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=Cl;break;case ji:a=wl;break;default:a=An;break}return(a&(e.suspendedLanes|t))!==An?An:a}function Th(e,t,n){if($a)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=od(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function Eh(e,t){if($a)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=od(t),i=1<<r,o=n[r];o.size>0&&(o.forEach(function(l){var u=l.alternate;(u===null||!a.has(u))&&a.add(l)}),o.clear()),t&=~i}}function Ch(e,t){return null}var Ta=$e,Dr=wr,_r=or,ds=ji,Ml=An;function Pa(){return Ml}function jn(e){Ml=e}function ZT(e,t){var n=Ml;try{return Ml=e,t()}finally{Ml=n}}function JT(e,t){return e!==0&&e<t?e:t}function eE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function xh(e){var t=Ui(e);return sd(Ta,t)?sd(Dr,t)?id(t)?_r:ds:Dr:Ta}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var Rh;function tE(e){Rh=e}function nE(e){Rh(e)}var cd;function aE(e){cd=e}var wh;function rE(e){wh=e}var Dh;function iE(e){Dh=e}var _h;function oE(e){_h=e}var fd=!1,ps=[],Qr=null,Kr=null,Zr=null,Ll=new Map,Ol=new Map,Jr=[],lE=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function uE(e){return lE.indexOf(e)>-1}function sE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function kh(e,t){switch(e){case"focusin":case"focusout":Qr=null;break;case"dragenter":case"dragleave":Kr=null;break;case"mouseover":case"mouseout":Zr=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Ll.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;Ol.delete(a);break}}}function Nl(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=sE(t,n,a,r,i);if(t!==null){var l=ni(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 cE(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 Kr=Nl(Kr,e,t,n,a,o),!0}case"mouseover":{var l=r;return Zr=Nl(Zr,e,t,n,a,l),!0}case"pointerover":{var u=r,f=u.pointerId;return Ll.set(f,Nl(Ll.get(f)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var v=r,S=v.pointerId;return Ol.set(S,Nl(Ol.get(S)||null,e,t,n,a,v)),!0}}return!1}function Mh(e){var t=Vi(e.target);if(t!==null){var n=Oi(t);if(n!==null){var a=n.tag;if(a===ye){var r=eh(n);if(r!==null){e.blockedOn=r,_h(e.priority,function(){wh(n)});return}}else if(a===le){var i=n.stateNode;if(vs(i)){e.blockedOn=th(n);return}}}}e.blockedOn=null}function fE(e){for(var t=Dh(),n={blockedOn:null,target:e,priority:t},a=0;a<Jr.length&&sd(t,Jr[a].priority);a++);Jr.splice(a,0,n),a===0&&Mh(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);zS(i),r.target.dispatchEvent(i),FS()}else{var o=ni(a);return o!==null&&cd(o),e.blockedOn=a,!1}t.shift()}return!0}function Lh(e,t,n){ms(e)&&n.delete(t)}function dE(){fd=!1,Qr!==null&&ms(Qr)&&(Qr=null),Kr!==null&&ms(Kr)&&(Kr=null),Zr!==null&&ms(Zr)&&(Zr=null),Ll.forEach(Lh),Ol.forEach(Lh)}function Al(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,R.unstable_scheduleCallback(R.unstable_NormalPriority,dE)))}function jl(e){if(ps.length>0){Al(ps[0],e);for(var t=1;t<ps.length;t++){var n=ps[t];n.blockedOn===e&&(n.blockedOn=null)}}Qr!==null&&Al(Qr,e),Kr!==null&&Al(Kr,e),Zr!==null&&Al(Zr,e);var a=function(l){return Al(l,e)};Ll.forEach(a),Ol.forEach(a);for(var r=0;r<Jr.length;r++){var i=Jr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;Jr.length>0;){var o=Jr[0];if(o.blockedOn!==null)break;Mh(o),o.blockedOn===null&&Jr.shift()}}var xo=Ee.ReactCurrentBatchConfig,dd=!0;function Oh(e){dd=!!e}function vE(){return dd}function pE(e,t,n){var a=Nh(t),r;switch(a){case Ta:r=mE;break;case Dr:r=hE;break;case _r:default:r=vd;break}return r.bind(null,t,n,e)}function mE(e,t,n,a){var r=Pa(),i=xo.transition;xo.transition=null;try{jn(Ta),vd(e,t,n,a)}finally{jn(r),xo.transition=i}}function hE(e,t,n,a){var r=Pa(),i=xo.transition;xo.transition=null;try{jn(Dr),vd(e,t,n,a)}finally{jn(r),xo.transition=i}}function vd(e,t,n,a){dd&&yE(e,t,n,a)}function yE(e,t,n,a){var r=pd(e,t,n,a);if(r===null){_d(e,t,a,hs,n),kh(e,a);return}if(cE(r,e,t,n,a)){a.stopPropagation();return}if(kh(e,a),t&yl&&uE(e)){for(;r!==null;){var i=ni(r);i!==null&&nE(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===ye){var u=eh(o);if(u!==null)return u;i=null}else if(l===le){var f=o.stateNode;if(vs(f))return th(o);i=null}else o!==i&&(i=null)}}return hs=i,null}function Nh(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 Ta;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 Dr;case"message":{var t=uT();switch(t){case is:return Ta;case jf:return Dr;case Ni:case sT:return _r;case Uf:return ds;default:return _r}}default:return _r}}function gE(e,t,n){return e.addEventListener(t,n,!1),n}function bE(e,t,n){return e.addEventListener(t,n,!0),n}function SE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function TE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var Ul=null,md=null,Hl=null;function EE(e){return Ul=e,md=jh(),!0}function CE(){Ul=null,md=null,Hl=null}function Ah(){if(Hl)return Hl;var e,t=md,n=t.length,a,r=jh(),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 jh(){return"value"in Ul?Ul.value:Ul.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 Uh(){return!1}function Ea(e){function t(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];u?this[l]=u(i):this[l]=i[l]}var f=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return f?this.isDefaultPrevented=gs:this.isDefaultPrevented=Uh,this.isPropagationStopped=Uh,this}return Be(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=Ea(Ro),zl=Be({},Ro,{view:0,detail:0}),xE=Ea(zl),yd,gd,Fl;function RE(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=Be({},zl,{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:(RE(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Hh=Ea(bs),wE=Be({},bs,{dataTransfer:0}),DE=Ea(wE),_E=Be({},zl,{relatedTarget:0}),bd=Ea(_E),kE=Be({},Ro,{animationName:0,elapsedTime:0,pseudoElement:0}),ME=Ea(kE),LE=Be({},Ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OE=Ea(LE),NE=Be({},Ro,{data:0}),zh=Ea(NE),AE=zh,jE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function HE(e){if(e.key){var t=jE[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=ys(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?UE[e.keyCode]||"Unidentified":""}var zE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=zE[e];return a?!!n[a]:!1}function Sd(e){return FE}var VE=Be({},zl,{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=Ea(VE),$E=Be({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fh=Ea($E),PE=Be({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),YE=Ea(PE),WE=Be({},Ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),IE=Ea(WE),qE=Be({},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}),GE=Ea(qE),XE=[9,13,27,32],Vh=229,Td=yt&&"CompositionEvent"in window,Vl=null;yt&&"documentMode"in document&&(Vl=document.documentMode);var QE=yt&&"TextEvent"in window&&!Vl,Bh=yt&&(!Td||Vl&&Vl>8&&Vl<=11),$h=32,Ph=String.fromCharCode($h);function KE(){Ze("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ze("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Ze("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Ze("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Yh=!1;function ZE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function JE(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function eC(e,t){return e==="keydown"&&t.keyCode===Vh}function Wh(e,t){switch(e){case"keyup":return XE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Vh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ih(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function qh(e){return e.locale==="ko"}var wo=!1;function tC(e,t,n,a,r){var i,o;if(Td?i=JE(t):wo?Wh(t,a)&&(i="onCompositionEnd"):eC(t,a)&&(i="onCompositionStart"),!i)return null;Bh&&!qh(a)&&(!wo&&i==="onCompositionStart"?wo=EE(r):i==="onCompositionEnd"&&wo&&(o=Ah()));var l=xs(n,i);if(l.length>0){var u=new zh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var f=Ih(a);f!==null&&(u.data=f)}}}function nC(e,t){switch(e){case"compositionend":return Ih(t);case"keypress":var n=t.which;return n!==$h?null:(Yh=!0,Ph);case"textInput":var a=t.data;return a===Ph&&Yh?null:a;default:return null}}function aC(e,t){if(wo){if(e==="compositionend"||!Td&&Wh(e,t)){var n=Ah();return CE(),wo=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!ZE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bh&&!qh(t)?null:t.data;default:return null}}function rC(e,t,n,a,r){var i;if(QE?i=nC(t,a):i=aC(t,a),!i)return null;var o=xs(n,"onBeforeInput");if(o.length>0){var l=new AE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function iC(e,t,n,a,r,i,o){tC(e,t,n,a,r),rC(e,t,n,a,r)}var oC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oC[e.type]:t==="textarea"}/**
|
|
* Checks if an event is supported in the current execution environment.
|
|
*
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
* `reset`, `load`, `error`, and `select`.
|
|
*
|
|
* Borrows from Modernizr.
|
|
*
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
* @return {boolean} True if the event is supported.
|
|
* @internal
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
*/function lC(e){if(!yt)return!1;var t="on"+e,n=t in document;if(!n){var a=document.createElement("div");a.setAttribute(t,"return;"),n=typeof a[t]=="function"}return n}function uC(){Ze("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Xh(e,t,n,a){Wm(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 sC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function cC(e){var t=[];Xh(t,$l,e,Sf(e)),Xm(fC,t)}function fC(e){vy(e,0)}function Ss(e){var t=Oo(e);if(fl(t))return e}function dC(e,t){if(e==="change")return t}var Qh=!1;yt&&(Qh=lC("input")&&(!document.documentMode||document.documentMode>9));function vC(e,t){Bl=e,$l=t,Bl.attachEvent("onpropertychange",Zh)}function Kh(){Bl&&(Bl.detachEvent("onpropertychange",Zh),Bl=null,$l=null)}function Zh(e){e.propertyName==="value"&&Ss($l)&&cC(e)}function pC(e,t,n){e==="focusin"?(Kh(),vC(t,n)):e==="focusout"&&Kh()}function mC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss($l)}function hC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function yC(e,t){if(e==="click")return Ss(t)}function gC(e,t){if(e==="input"||e==="change")return Ss(t)}function bC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Oe(e,"number",e.value)}function SC(e,t,n,a,r,i,o){var l=n?Oo(n):window,u,f;if(sC(l)?u=dC:Gh(l)?Qh?u=gC:(u=mC,f=pC):hC(l)&&(u=yC),u){var v=u(t,n);if(v){Xh(e,v,a,r);return}}f&&f(t,l,n),t==="focusout"&&bC(l)}function TC(){Yt("onMouseEnter",["mouseout","mouseover"]),Yt("onMouseLeave",["mouseout","mouseover"]),Yt("onPointerEnter",["pointerout","pointerover"]),Yt("onPointerLeave",["pointerout","pointerover"])}function EC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!VS(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Vi(f)||au(f)))return}if(!(!u&&!l)){var v;if(r.window===r)v=r;else{var S=r.ownerDocument;S?v=S.defaultView||S.parentWindow:v=window}var b,w;if(u){var _=a.relatedTarget||a.toElement;if(b=n,w=_?Vi(_):null,w!==null){var N=Oi(w);(w!==N||w.tag!==J&&w.tag!==Ve)&&(w=null)}}else b=null,w=n;if(b!==w){var ae=Hh,De="onMouseLeave",Se="onMouseEnter",ht="mouse";(t==="pointerout"||t==="pointerover")&&(ae=Fh,De="onPointerLeave",Se="onPointerEnter",ht="pointer");var ct=b==null?v:Oo(b),C=w==null?v:Oo(w),A=new ae(De,ht+"leave",b,a,r);A.target=ct,A.relatedTarget=C;var x=null,P=Vi(r);if(P===n){var ce=new ae(Se,ht+"enter",w,a,r);ce.target=C,ce.relatedTarget=ct,x=ce}IC(e,A,x,b,w)}}}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ca=typeof Object.is=="function"?Object.is:CC;function Pl(e,t){if(Ca(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(!at.call(t,i)||!Ca(e[i],t[i]))return!1}return!0}function Jh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ey(e,t){for(var n=Jh(e),a=0,r=0;n;){if(n.nodeType===Cr){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Jh(xC(n))}}function RC(e){var t=e.ownerDocument,n=t&&t.defaultView||window,a=n.getSelection&&n.getSelection();if(!a||a.rangeCount===0)return null;var r=a.anchorNode,i=a.anchorOffset,o=a.focusNode,l=a.focusOffset;try{r.nodeType,o.nodeType}catch{return null}return wC(e,r,i,o,l)}function wC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,v=e,S=null;e:for(;;){for(var b=null;v===t&&(n===0||v.nodeType===Cr)&&(o=i+n),v===a&&(r===0||v.nodeType===Cr)&&(l=i+r),v.nodeType===Cr&&(i+=v.nodeValue.length),(b=v.firstChild)!==null;)S=v,v=b;for(;;){if(v===e)break e;if(S===t&&++u===n&&(o=i),S===a&&++f===r&&(l=i),(b=v.nextSibling)!==null)break;v=S,S=v.parentNode}v=b}return o===-1||l===-1?null:{start:o,end:l}}function DC(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelection){var r=a.getSelection(),i=e.textContent.length,o=Math.min(t.start,i),l=t.end===void 0?o:Math.min(t.end,i);if(!r.extend&&o>l){var u=l;l=o,o=u}var f=ey(e,o),v=ey(e,l);if(f&&v){if(r.rangeCount===1&&r.anchorNode===f.node&&r.anchorOffset===f.offset&&r.focusNode===v.node&&r.focusOffset===v.offset)return;var S=n.createRange();S.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(S),r.extend(v.node,v.offset)):(S.setEnd(v.node,v.offset),r.addRange(S))}}}function ty(e){return e&&e.nodeType===Cr}function ny(e,t){return!e||!t?!1:e===t?!0:ty(e)?!1:ty(t)?ny(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function _C(e){return e&&e.ownerDocument&&ny(e.ownerDocument.documentElement,e)}function kC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ay(){for(var e=window,t=Sr();t instanceof e.HTMLIFrameElement;){if(kC(t))e=t.contentWindow;else return t;t=Sr(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 MC(){var e=ay();return{focusedElem:e,selectionRange:Ed(e)?OC(e):null}}function LC(e){var t=ay(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&_C(n)){a!==null&&Ed(n)&&NC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===fa&&r.push({element:i,left:i.scrollLeft,top:i.scrollTop});typeof n.focus=="function"&&n.focus();for(var o=0;o<r.length;o++){var l=r[o];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function OC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=RC(e),t||{start:0,end:0}}function 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)):DC(e,t)}var AC=yt&&"documentMode"in document&&document.documentMode<=11;function jC(){Ze("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Do=null,Cd=null,Yl=null,xd=!1;function UC(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===xr?e:e.ownerDocument}function ry(e,t,n){var a=HC(n);if(!(xd||Do==null||Do!==Sr(a))){var r=UC(Do);if(!Yl||!Pl(Yl,r)){Yl=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 zC(e,t,n,a,r,i,o){var l=n?Oo(n):window;switch(t){case"focusin":(Gh(l)||l.contentEditable==="true")&&(Do=l,Cd=n,Yl=null);break;case"focusout":Do=null,Cd=null,Yl=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,ry(e,a,r);break;case"selectionchange":if(AC)break;case"keydown":case"keyup":ry(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={},iy={};yt&&(iy=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 iy)return Rd[e]=t[n];return e}var oy=Es("animationend"),ly=Es("animationiteration"),uy=Es("animationstart"),sy=Es("transitionend"),cy=new Map,fy=["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 ei(e,t){cy.set(e,t),Ze(t,[e])}function FC(){for(var e=0;e<fy.length;e++){var t=fy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);ei(n,"on"+a)}ei(oy,"onAnimationEnd"),ei(ly,"onAnimationIteration"),ei(uy,"onAnimationStart"),ei("dblclick","onDoubleClick"),ei("focusin","onFocus"),ei("focusout","onBlur"),ei(sy,"onTransitionEnd")}function VC(e,t,n,a,r,i,o){var l=cy.get(t);if(l!==void 0){var u=hd,f=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=BE;break;case"focusin":f="focus",u=bd;break;case"focusout":f="blur",u=bd;break;case"beforeblur":case"afterblur":u=bd;break;case"click":if(a.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=DE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=YE;break;case oy:case ly:case uy:u=ME;break;case sy:u=IE;break;case"scroll":u=xE;break;case"wheel":u=GE;break;case"copy":case"cut":case"paste":u=OE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Fh;break}var v=(i&yl)!==0;{var S=!v&&t==="scroll",b=YC(n,l,a.type,v,S);if(b.length>0){var w=new u(l,f,null,a,r);e.push({event:w,listeners:b})}}}}FC(),TC(),uC(),jC(),KE();function BC(e,t,n,a,r,i,o){VC(e,t,n,a,r,i);var l=(i&HS)===0;l&&(EC(e,t,n,a,r),SC(e,t,n,a,r),zC(e,t,n,a,r),iC(e,t,n,a,r))}var 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 dy(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,XS(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;dy(e,u,l),a=o}else for(var f=0;f<t.length;f++){var v=t[f],S=v.instance,b=v.currentTarget,w=v.listener;if(S!==a&&e.isPropagationStopped())return;dy(e,w,b),a=S}}function vy(e,t){for(var n=(t&yl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;$C(i,o,n)}QS()}function PC(e,t,n,a,r){var i=Sf(n),o=[];BC(o,e,a,n,i,t),vy(o,t)}function Qt(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=b1(t),r=qC(e);a.has(r)||(py(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|=yl),py(n,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function Il(e){if(!e[Cs]){e[Cs]=!0,je.forEach(function(n){n!=="selectionchange"&&(wd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===xr?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function py(e,t,n,a,r){var i=pE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?SE(e,t,i,o):bE(e,t,i):o!==void 0?TE(e,t,i,o):gE(e,t,i)}function my(e,t){return e===t||e.nodeType===mn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Pm)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===le||u===Me){var f=l.stateNode.containerInfo;if(my(f,o))break;if(u===Me)for(var v=l.return;v!==null;){var S=v.tag;if(S===le||S===Me){var b=v.stateNode.containerInfo;if(my(b,o))return}v=v.return}for(;f!==null;){var w=Vi(f);if(w===null)return;var _=w.tag;if(_===J||_===Ve){l=i=w;continue e}f=f.parentNode}}l=l.return}}}Xm(function(){return PC(e,t,n,i)})}function ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function YC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],f=e,v=null;f!==null;){var S=f,b=S.stateNode,w=S.tag;if(w===J&&b!==null&&(v=b,l!==null)){var _=bl(f,l);_!=null&&u.push(ql(f,_,v))}if(r)break;f=f.return}return u}function xs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===J&&o!==null){var u=o,f=bl(r,n);f!=null&&a.unshift(ql(r,f,u));var v=bl(r,t);v!=null&&a.push(ql(r,v,u))}r=r.return}return a}function ko(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==J);return e||null}function WC(e,t){for(var n=e,a=t,r=0,i=n;i;i=ko(i))r++;for(var o=0,l=a;l;l=ko(l))o++;for(;r-o>0;)n=ko(n),r--;for(;o-r>0;)a=ko(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=ko(n),a=ko(a)}return null}function hy(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,f=u.alternate,v=u.stateNode,S=u.tag;if(f!==null&&f===a)break;if(S===J&&v!==null){var b=v;if(r){var w=bl(l,i);w!=null&&o.unshift(ql(l,w,b))}else if(!r){var _=bl(l,i);_!=null&&o.push(ql(l,_,b))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function IC(e,t,n,a,r){var i=a&&r?WC(a,r):null;a!==null&&hy(e,t,a,i,!1),r!==null&&n!==null&&hy(e,n,r,i,!0)}function qC(e,t){return e+"__bubble"}var da=!1,Gl="dangerouslySetInnerHTML",Rs="suppressContentEditableWarning",ti="suppressHydrationWarning",yy="autoFocus",zi="children",Fi="style",ws="__html",kd,Ds,Xl,gy,_s,by,Sy;kd={dialog:!0,webview:!0},Ds=function(e,t){MS(e,t),LS(e,t),US(e,t,{registrationNameDependencies:ze,possibleRegistrationNames:dn})},by=yt&&!document.documentMode,Xl=function(e,t,n){if(!da){var a=ks(n),r=ks(t);r!==a&&(da=!0,d("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},gy=function(e){if(!da){da=!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)},Sy=function(e,t){var n=e.namespaceURI===Er?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var GC=/\r\n?/g,XC=/\u0000|\uFFFD/g;function ks(e){pe(e);var t=typeof e=="string"?e:""+e;return t.replace(GC,`
|
|
`).replace(XC,"")}function Ms(e,t,n,a){var r=ks(t),i=ks(e);if(i!==r&&(a&&(da||(da=!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 Ty(e){return e.nodeType===xr?e:e.ownerDocument}function QC(){}function Ls(e){e.onclick=QC}function KC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Fi)o&&Object.freeze(o),Hm(t,o);else if(i===Gl){var l=o?o[ws]:void 0;l!=null&&Om(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===ti||i===yy||(ze.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Qt("scroll",t)):o!=null&&ga(t,i,o,r))}}function ZC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Fi?Hm(e,o):i===Gl?Om(e,o):i===zi?Ju(e,o):ga(e,i,o,a)}}function JC(e,t,n,a){var r,i=Ty(n),o,l=a;if(l===Er&&(l=vf(e)),l===Er){if(r=Ri(e,t),!r&&e!==e.toLowerCase()&&d("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var f=u.firstChild;o=u.removeChild(f)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var v=o;t.multiple?v.multiple=!0:t.size&&(v.size=t.size)}}else o=i.createElementNS(l,e);return l===Er&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!at.call(kd,e)&&(kd[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 ex(e,t){return Ty(t).createTextNode(e)}function tx(e,t,n,a){var r=Ri(t,n);Ds(t,n);var i;switch(t){case"dialog":Qt("cancel",e),Qt("close",e),i=n;break;case"iframe":case"object":case"embed":Qt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Wl.length;o++)Qt(Wl[o],e);i=n;break;case"source":Qt("error",e),i=n;break;case"img":case"image":case"link":Qt("error",e),Qt("load",e),i=n;break;case"details":Qt("toggle",e),i=n;break;case"input":Qu(e,n),i=dl(e,n),Qt("invalid",e);break;case"option":At(e,n),i=n;break;case"select":ml(e,n),i=pl(e,n),Qt("invalid",e);break;case"textarea":km(e,n),i=ff(e,n),Qt("invalid",e);break;default:i=n}switch(gf(t,i),KC(t,e,a,i,r),t){case"input":Ci(e),D(e,n,!1);break;case"textarea":Ci(e),Lm(e);break;case"option":qt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Ls(e);break}}function nx(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=dl(e,n),l=dl(e,a),i=[];break;case"select":o=pl(e,n),l=pl(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"&&Ls(e);break}gf(t,l);var u,f,v=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Fi){var S=o[u];for(f in S)S.hasOwnProperty(f)&&(v||(v={}),v[f]="")}else u===Gl||u===zi||u===Rs||u===ti||u===yy||(ze.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var b=l[u],w=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||b===w||b==null&&w==null))if(u===Fi)if(b&&Object.freeze(b),w){for(f in w)w.hasOwnProperty(f)&&(!b||!b.hasOwnProperty(f))&&(v||(v={}),v[f]="");for(f in b)b.hasOwnProperty(f)&&w[f]!==b[f]&&(v||(v={}),v[f]=b[f])}else v||(i||(i=[]),i.push(u,v)),v=b;else if(u===Gl){var _=b?b[ws]:void 0,N=w?w[ws]:void 0;_!=null&&N!==_&&(i=i||[]).push(u,_)}else u===zi?(typeof b=="string"||typeof b=="number")&&(i=i||[]).push(u,""+b):u===Rs||u===ti||(ze.hasOwnProperty(u)?(b!=null&&(typeof b!="function"&&_s(u,b),u==="onScroll"&&Qt("scroll",e)),!i&&w!==b&&(i=[])):(i=i||[]).push(u,b))}return v&&(ES(v,l[Fi]),(i=i||[]).push(Fi,v)),i}function ax(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ri(n,a),o=Ri(n,r);switch(ZC(e,t,i,o),n){case"input":h(e,r);break;case"textarea":Mm(e,r);break;case"select":Ku(e,r);break}}function rx(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function ix(e,t,n,a,r,i,o){var l,u;switch(l=Ri(t,n),Ds(t,n),t){case"dialog":Qt("cancel",e),Qt("close",e);break;case"iframe":case"object":case"embed":Qt("load",e);break;case"video":case"audio":for(var f=0;f<Wl.length;f++)Qt(Wl[f],e);break;case"source":Qt("error",e);break;case"img":case"image":case"link":Qt("error",e),Qt("load",e);break;case"details":Qt("toggle",e);break;case"input":Qu(e,n),Qt("invalid",e);break;case"option":At(e,n);break;case"select":ml(e,n),Qt("invalid",e);break;case"textarea":km(e,n),Qt("invalid",e);break}gf(t,n);{u=new Set;for(var v=e.attributes,S=0;S<v.length;S++){var b=v[S].name.toLowerCase();switch(b){case"value":break;case"checked":break;case"selected":break;default:u.add(v[S].name)}}}var w=null;for(var _ in n)if(n.hasOwnProperty(_)){var N=n[_];if(_===zi)typeof N=="string"?e.textContent!==N&&(n[ti]!==!0&&Ms(e.textContent,N,i,o),w=[zi,N]):typeof N=="number"&&e.textContent!==""+N&&(n[ti]!==!0&&Ms(e.textContent,N,i,o),w=[zi,""+N]);else if(ze.hasOwnProperty(_))N!=null&&(typeof N!="function"&&_s(_,N),_==="onScroll"&&Qt("scroll",e));else if(o&&typeof l=="boolean"){var ae=void 0,De=Wt(_);if(n[ti]!==!0){if(!(_===Rs||_===ti||_==="value"||_==="checked"||_==="selected")){if(_===Gl){var Se=e.innerHTML,ht=N?N[ws]:void 0;if(ht!=null){var ct=Sy(e,ht);ct!==Se&&Xl(_,Se,ct)}}else if(_===Fi){if(u.delete(_),by){var C=SS(N);ae=e.getAttribute("style"),C!==ae&&Xl(_,ae,C)}}else if(l)u.delete(_.toLowerCase()),ae=Pr(e,_,N),N!==ae&&Xl(_,ae,N);else if(!zt(_,De,l)&&!rn(_,N,De,l)){var A=!1;if(De!==null)u.delete(De.attributeName),ae=$r(e,_,N,De);else{var x=a;if(x===Er&&(x=vf(t)),x===Er)u.delete(_.toLowerCase());else{var P=rx(_);P!==null&&P!==_&&(A=!0,u.delete(P)),u.delete(_)}ae=Pr(e,_,N)}var ce=kt;!ce&&N!==ae&&!A&&Xl(_,ae,N)}}}}}switch(o&&u.size>0&&n[ti]!==!0&&gy(u),t){case"input":Ci(e),D(e,n,!0);break;case"textarea":Ci(e),Lm(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Ls(e);break}return w}function ox(e,t,n){var a=e.nodeValue!==t;return a}function Md(e,t){{if(da)return;da=!0,d("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Ld(e,t){{if(da)return;da=!0,d('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Od(e,t,n){{if(da)return;da=!0,d("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Nd(e,t){{if(t===""||da)return;da=!0,d('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function lx(e,t,n){switch(t){case"input":O(e,n);return;case"textarea":tS(e,n);return;case"select":cf(e,n);return}}var Ql=function(){},Kl=function(){};{var ux=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],Ey=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],sx=Ey.concat(["button"]),cx=["dd","dt","li","option","optgroup","p","rp","rt"],Cy={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Kl=function(e,t){var n=Be({},e||Cy),a={tag:t};return Ey.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),sx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ux.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=a,t==="form"&&(n.formTag=a),t==="a"&&(n.aTagInScope=a),t==="button"&&(n.buttonTagInScope=a),t==="nobr"&&(n.nobrTagInScope=a),t==="p"&&(n.pTagInButtonScope=a),t==="li"&&(n.listItemTagAutoclosing=a),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=a),n};var fx=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return cx.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},dx=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},xy={};Ql=function(e,t,n){n=n||Cy;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=fx(e,r)?null:a,o=i?null:dx(e,n),l=i||o;if(l){var u=l.tag,f=!!i+"|"+e+"|"+u;if(!xy[f]){xy[f]=!0;var v=e,S="";if(e==="#text"?/\S/.test(t)?v="Text nodes":(v="Whitespace text nodes",S=" Make sure you don't have any extra whitespace between tags on each line of your source code."):v="<"+e+">",i){var b="";u==="table"&&e==="tr"&&(b+=" 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,S,b)}else d("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",v,u)}}}}var Os="suppressHydrationWarning",Ns="$",As="/$",Zl="$?",Jl="$!",vx="style",Ad=null,jd=null;function px(e){var t,n,a=e.nodeType;switch(a){case xr:case mf:{t=a===xr?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:pf(null,"");break}default:{var i=a===mn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=pf(o,t);break}}{var l=t.toLowerCase(),u=Kl(null,l);return{namespace:n,ancestorInfo:u}}}function mx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Kl(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function m_(e){return e}function hx(e){Ad=vE(),jd=MC();var t=null;return Oh(!1),t}function yx(e){LC(jd),Oh(Ad),Ad=null,jd=null}function gx(e,t,n,a,r){var i;{var o=a;if(Ql(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=Kl(o.ancestorInfo,e);Ql(null,l,u)}i=o.namespace}var f=JC(e,t,n,i);return nu(r,f),Pd(f,t),f}function bx(e,t){e.appendChild(t)}function Sx(e,t,n,a,r){switch(tx(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Tx(e,t,n,a,r,i){{var o=i;if(typeof a.children!=typeof n.children&&(typeof a.children=="string"||typeof a.children=="number")){var l=""+a.children,u=Kl(o.ancestorInfo,t);Ql(null,l,u)}}return nx(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 Ex(e,t,n,a){{var r=n;Ql(null,e,r.ancestorInfo)}var i=ex(e,t);return nu(a,i),i}function Cx(){var e=window.event;return e===void 0?_r:Nh(e.type)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,zd=-1,Ry=typeof Promise=="function"?Promise:void 0,Rx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ry<"u"?function(e){return Ry.resolve(null).then(e).catch(wx)}:Hd;function wx(e){setTimeout(function(){throw e})}function Dx(e,t,n,a){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();return;case"img":{n.src&&(e.src=n.src);return}}}function _x(e,t,n,a,r,i){ax(e,t,n,a,r),Pd(e,r)}function wy(e){Ju(e,"")}function kx(e,t,n){e.nodeValue=n}function Mx(e,t){e.appendChild(t)}function Lx(e,t){var n;e.nodeType===mn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Ls(n)}function Ox(e,t,n){e.insertBefore(t,n)}function Nx(e,t,n){e.nodeType===mn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Ax(e,t){e.removeChild(t)}function jx(e,t){e.nodeType===mn?e.parentNode.removeChild(t):e.removeChild(t)}function Fd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===mn){var i=r.data;if(i===As)if(a===0){e.removeChild(r),jl(t);return}else a--;else(i===Ns||i===Zl||i===Jl)&&a++}n=r}while(n);jl(t)}function Ux(e,t){e.nodeType===mn?Fd(e.parentNode,t):e.nodeType===fa&&Fd(e,t),jl(e)}function Hx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function zx(e){e.nodeValue=""}function Fx(e,t){e=e;var n=t[vx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Vx(e,t){e.nodeValue=t}function Bx(e){e.nodeType===fa?e.textContent="":e.nodeType===xr&&e.documentElement&&e.removeChild(e.documentElement)}function $x(e,t,n){return e.nodeType!==fa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Px(e,t){return t===""||e.nodeType!==Cr?null:e}function Yx(e){return e.nodeType!==mn?null:e}function Dy(e){return e.data===Zl}function Vd(e){return e.data===Jl}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 Ix(e,t){e._reactRetry=t}function js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===fa||t===Cr)break;if(t===mn){var n=e.data;if(n===Ns||n===Jl||n===Zl)break;if(n===As)return null}}return e}function eu(e){return js(e.nextSibling)}function qx(e){return js(e.firstChild)}function Gx(e){return js(e.firstChild)}function Xx(e){return js(e.nextSibling)}function Qx(e,t,n,a,r,i,o){nu(i,e),Pd(e,n);var l;{var u=r;l=u.namespace}var f=(i.mode&pt)!==ke;return ix(e,t,n,l,a,f,o)}function Kx(e,t,n,a){return nu(n,e),n.mode&pt,ox(e,t)}function Zx(e,t){nu(t,e)}function Jx(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===mn){var a=t.data;if(a===As){if(n===0)return eu(t);n--}else(a===Ns||a===Jl||a===Zl)&&n++}t=t.nextSibling}return null}function _y(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===mn){var a=t.data;if(a===Ns||a===Jl||a===Zl){if(n===0)return t;n--}else a===As&&n++}t=t.previousSibling}return null}function e1(e){jl(e)}function t1(e){jl(e)}function n1(e){return e!=="head"&&e!=="body"}function a1(e,t,n,a){var r=!0;Ms(t.nodeValue,n,a,r)}function r1(e,t,n,a,r,i){if(t[Os]!==!0){var o=!0;Ms(a.nodeValue,r,i,o)}}function i1(e,t){t.nodeType===fa?Md(e,t):t.nodeType===mn||Ld(e,t)}function o1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===fa?Md(n,t):t.nodeType===mn||Ld(n,t))}}function l1(e,t,n,a,r){(r||t[Os]!==!0)&&(a.nodeType===fa?Md(n,a):a.nodeType===mn||Ld(n,a))}function u1(e,t,n){Od(e,t)}function s1(e,t){Nd(e,t)}function c1(e,t,n){{var a=e.parentNode;a!==null&&Od(a,t)}}function f1(e,t){{var n=e.parentNode;n!==null&&Nd(n,t)}}function d1(e,t,n,a,r,i){(i||t[Os]!==!0)&&Od(n,a)}function v1(e,t,n,a,r){(r||t[Os]!==!0)&&Nd(n,a)}function p1(e){d("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function m1(e){Il(e)}var Mo=Math.random().toString(36).slice(2),Lo="__reactFiber$"+Mo,Bd="__reactProps$"+Mo,tu="__reactContainer$"+Mo,$d="__reactEvents$"+Mo,h1="__reactListeners$"+Mo,y1="__reactHandles$"+Mo;function g1(e){delete e[Lo],delete e[Bd],delete e[$d],delete e[h1],delete e[y1]}function nu(e,t){t[Lo]=e}function Us(e,t){t[tu]=e}function ky(e){e[tu]=null}function au(e){return!!e[tu]}function Vi(e){var t=e[Lo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tu]||n[Lo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=_y(e);r!==null;){var i=r[Lo];if(i)return i;r=_y(r)}return t}e=n,n=e.parentNode}return null}function ni(e){var t=e[Lo]||e[tu];return t&&(t.tag===J||t.tag===Ve||t.tag===ye||t.tag===le)?t:null}function Oo(e){if(e.tag===J||e.tag===Ve)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Hs(e){return e[Bd]||null}function Pd(e,t){e[Bd]=t}function b1(e){var t=e[$d];return t===void 0&&(t=e[$d]=new Set),t}var My={},Ly=Ee.ReactDebugCurrentFrame;function zs(e){if(e){var t=e._owner,n=ol(e.type,e._source,t?t.type:null);Ly.setExtraStackFrame(n)}else Ly.setExtraStackFrame(null)}function Ya(e,t,n,a,r){{var i=Function.call.bind(at);for(var o in e)if(i(e,o)){var l=void 0;try{if(typeof e[o]!="function"){var u=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[o](t,o,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){l=f}l&&!(l instanceof Error)&&(zs(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),zs(null)),l instanceof Error&&!(l.message in My)&&(My[l.message]=!0,zs(r),d("Failed %s type: %s",n,l.message),zs(null))}}}var Yd=[],Fs;Fs=[];var kr=-1;function ai(e){return{current:e}}function Gn(e,t){if(kr<0){d("Unexpected pop.");return}t!==Fs[kr]&&d("Unexpected Fiber popped."),e.current=Yd[kr],Yd[kr]=null,Fs[kr]=null,kr--}function Xn(e,t,n){kr++,Yd[kr]=e.current,Fs[kr]=n,e.current=t}var Wd;Wd={};var xa={};Object.freeze(xa);var Mr=ai(xa),lr=ai(!1),Id=xa;function No(e,t,n){return n&&ur(t)?Id:Mr.current}function Oy(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function Ao(e,t){{var n=e.type,a=n.contextTypes;if(!a)return xa;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=Xe(e)||"Unknown";Ya(a,i,"context",l)}return r&&Oy(e,t,i),i}}function Vs(){return lr.current}function ur(e){{var t=e.childContextTypes;return t!=null}}function Bs(e){Gn(lr,e),Gn(Mr,e)}function qd(e){Gn(lr,e),Gn(Mr,e)}function Ny(e,t,n){{if(Mr.current!==xa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Xn(Mr,t,e),Xn(lr,n,e)}}function Ay(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Xe(e)||"Unknown";Wd[i]||(Wd[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((Xe(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Xe(e)||"Unknown";Ya(r,o,"child context",u)}return Be({},n,o)}}function $s(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||xa;return Id=Mr.current,Xn(Mr,n,e),Xn(lr,lr.current,e),!0}}function jy(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=Ay(e,t,Id);a.__reactInternalMemoizedMergedChildContext=r,Gn(lr,e),Gn(Mr,e),Xn(Mr,r,e),Xn(lr,n,e)}else Gn(lr,e),Xn(lr,n,e)}}function S1(e){{if(!nT(e)||e.tag!==te)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 le:return t.stateNode.context;case te:{var n=t.type;if(ur(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 ri=0,Ps=1,Lr=null,Gd=!1,Xd=!1;function Uy(e){Lr===null?Lr=[e]:Lr.push(e)}function T1(e){Gd=!0,Uy(e)}function Hy(){Gd&&ii()}function ii(){if(!Xd&&Lr!==null){Xd=!0;var e=0,t=Pa();try{var n=!0,a=Lr;for(jn(Ta);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Lr=null,Gd=!1}catch(i){throw Lr!==null&&(Lr=Lr.slice(e+1)),lh(is,ii),i}finally{jn(t),Xd=!1}}return null}var jo=[],Uo=0,Ys=null,Ws=0,La=[],Oa=0,Bi=null,Or=1,Nr="";function E1(e){return Pi(),(e.flags&Jm)!==Ae}function C1(e){return Pi(),Ws}function x1(){var e=Nr,t=Or,n=t&~R1(t);return n.toString(32)+e}function $i(e,t){Pi(),jo[Uo++]=Ws,jo[Uo++]=Ys,Ys=e,Ws=t}function zy(e,t,n){Pi(),La[Oa++]=Or,La[Oa++]=Nr,La[Oa++]=Bi,Bi=e;var a=Or,r=Nr,i=Is(a)-1,o=a&~(1<<i),l=n+1,u=Is(t)+i;if(u>30){var f=i-i%5,v=(1<<f)-1,S=(o&v).toString(32),b=o>>f,w=i-f,_=Is(t)+w,N=l<<w,ae=N|b,De=S+r;Or=1<<_|ae,Nr=De}else{var Se=l<<i,ht=Se|o,ct=r;Or=1<<u|ht,Nr=ct}}function Qd(e){Pi();var t=e.return;if(t!==null){var n=1,a=0;$i(e,n),zy(e,n,a)}}function Is(e){return 32-vh(e)}function R1(e){return 1<<Is(e)-1}function Kd(e){for(;e===Ys;)Ys=jo[--Uo],jo[Uo]=null,Ws=jo[--Uo],jo[Uo]=null;for(;e===Bi;)Bi=La[--Oa],La[Oa]=null,Nr=La[--Oa],La[Oa]=null,Or=La[--Oa],La[Oa]=null}function w1(){return Pi(),Bi!==null?{id:Or,overflow:Nr}:null}function D1(e,t){Pi(),La[Oa++]=Or,La[Oa++]=Nr,La[Oa++]=Bi,Or=t.id,Nr=t.overflow,Bi=e}function Pi(){zn()||d("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Hn=null,Na=null,Wa=!1,Yi=!1,oi=null;function _1(){Wa&&d("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Fy(){Yi=!0}function k1(){return Yi}function M1(e){var t=e.stateNode.containerInfo;return Na=Gx(t),Hn=e,Wa=!0,oi=null,Yi=!1,!0}function L1(e,t,n){return Na=Xx(t),Hn=e,Wa=!0,oi=null,Yi=!1,n!==null&&D1(e,n),!0}function Vy(e,t){switch(e.tag){case le:{i1(e.stateNode.containerInfo,t);break}case J:{var n=(e.mode&pt)!==ke;l1(e.type,e.memoizedProps,e.stateNode,t,n);break}case ye:{var a=e.memoizedState;a.dehydrated!==null&&o1(a.dehydrated,t);break}}}function By(e,t){Vy(e,t);var n=jD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=wi):a.push(n)}function Zd(e,t){{if(Yi)return;switch(e.tag){case le:{var n=e.stateNode.containerInfo;switch(t.tag){case J:var a=t.type;t.pendingProps,u1(n,a);break;case Ve:var r=t.pendingProps;s1(n,r);break}break}case J:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case J:{var u=t.type,f=t.pendingProps,v=(e.mode&pt)!==ke;d1(i,o,l,u,f,v);break}case Ve:{var S=t.pendingProps,b=(e.mode&pt)!==ke;v1(i,o,l,S,b);break}}break}case ye:{var w=e.memoizedState,_=w.dehydrated;if(_!==null)switch(t.tag){case J:var N=t.type;t.pendingProps,c1(_,N);break;case Ve:var ae=t.pendingProps;f1(_,ae);break}break}default:return}}}function $y(e,t){t.flags=t.flags&-4097|Ln,Zd(e,t)}function Py(e,t){switch(e.tag){case J:{var n=e.type;e.pendingProps;var a=$x(t,n);return a!==null?(e.stateNode=a,Hn=e,Na=qx(a),!0):!1}case Ve:{var r=e.pendingProps,i=Px(t,r);return i!==null?(e.stateNode=i,Hn=e,Na=null,!0):!1}case ye:{var o=Yx(t);if(o!==null){var l={dehydrated:o,treeContext:w1(),retryLane:Ma};e.memoizedState=l;var u=UD(o);return u.return=e,e.child=u,Hn=e,Na=null,!0}return!1}default:return!1}}function Jd(e){return(e.mode&pt)!==ke&&(e.flags&Dt)===Ae}function ev(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function tv(e){if(Wa){var t=Na;if(!t){Jd(e)&&(Zd(Hn,e),ev()),$y(Hn,e),Wa=!1,Hn=e;return}var n=t;if(!Py(e,t)){Jd(e)&&(Zd(Hn,e),ev()),t=eu(n);var a=Hn;if(!t||!Py(e,t)){$y(Hn,e),Wa=!1,Hn=e;return}By(a,n)}}}function O1(e,t,n){var a=e.stateNode,r=!Yi,i=Qx(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=Kx(t,n,e);if(a){var r=Hn;if(r!==null)switch(r.tag){case le:{var i=r.stateNode.containerInfo,o=(r.mode&pt)!==ke;a1(i,t,n,o);break}case J:{var l=r.type,u=r.memoizedProps,f=r.stateNode,v=(r.mode&pt)!==ke;r1(l,u,f,t,n,v);break}}}return a}function A1(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.");Zx(n,e)}function j1(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Jx(n)}function Yy(e){for(var t=e.return;t!==null&&t.tag!==J&&t.tag!==le&&t.tag!==ye;)t=t.return;Hn=t}function qs(e){if(e!==Hn)return!1;if(!Wa)return Yy(e),Wa=!0,!1;if(e.tag!==le&&(e.tag!==J||n1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Na;if(t)if(Jd(e))Wy(e),ev();else for(;t;)By(e,t),t=eu(t)}return Yy(e),e.tag===ye?Na=j1(e):Na=Hn?eu(e.stateNode):null,!0}function U1(){return Wa&&Na!==null}function Wy(e){for(var t=Na;t;)Vy(e,t),t=eu(t)}function Ho(){Hn=null,Na=null,Wa=!1,Yi=!1}function Iy(){oi!==null&&(Fb(oi),oi=null)}function zn(){return Wa}function nv(e){oi===null?oi=[e]:oi.push(e)}var H1=Ee.ReactCurrentBatchConfig,z1=null;function F1(){return H1.transition}var Ia={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var V1=function(e){for(var t=null,n=e;n!==null;)n.mode&ln&&(t=n),n=n.return;return t},Wi=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},ru=[],iu=[],ou=[],lu=[],uu=[],su=[],Ii=new Set;Ia.recordUnsafeLifecycleWarnings=function(e,t){Ii.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&ru.push(e),e.mode&ln&&typeof t.UNSAFE_componentWillMount=="function"&&iu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ou.push(e),e.mode&ln&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&lu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&uu.push(e),e.mode&ln&&typeof t.UNSAFE_componentWillUpdate=="function"&&su.push(e))},Ia.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;ru.length>0&&(ru.forEach(function(b){e.add(Xe(b)||"Component"),Ii.add(b.type)}),ru=[]);var t=new Set;iu.length>0&&(iu.forEach(function(b){t.add(Xe(b)||"Component"),Ii.add(b.type)}),iu=[]);var n=new Set;ou.length>0&&(ou.forEach(function(b){n.add(Xe(b)||"Component"),Ii.add(b.type)}),ou=[]);var a=new Set;lu.length>0&&(lu.forEach(function(b){a.add(Xe(b)||"Component"),Ii.add(b.type)}),lu=[]);var r=new Set;uu.length>0&&(uu.forEach(function(b){r.add(Xe(b)||"Component"),Ii.add(b.type)}),uu=[]);var i=new Set;if(su.length>0&&(su.forEach(function(b){i.add(Xe(b)||"Component"),Ii.add(b.type)}),su=[]),t.size>0){var o=Wi(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=Wi(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=Wi(i);d(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
|
|
Please update the following components: %s`,u)}if(e.size>0){var f=Wi(e);se(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
|
|
Please update the following components: %s`,f)}if(n.size>0){var v=Wi(n);se(`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 S=Wi(r);se(`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`,S)}};var Gs=new Map,qy=new Set;Ia.recordLegacyContextWarning=function(e,t){var n=V1(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(!qy.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))}},Ia.flushLegacyContextWarning=function(){Gs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Xe(i)||"Component"),qy.add(i.type)});var r=Wi(a);try{Zt(n),d(`Legacy context API has been detected within a strict-mode tree.
|
|
|
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
|
|
Please update the following components: %s
|
|
|
|
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)}finally{Mn()}}})},Ia.discardPendingWarnings=function(){ru=[],iu=[],ou=[],lu=[],uu=[],su=[],Gs=new Map}}var av,rv,iv,ov,lv,Gy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Gy=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=Xe(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 cu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&ln||ut)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==te)&&!(typeof n.type=="function"&&!B1(n.type))&&n._owner){var r=Xe(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!==te)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;ne(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var v=function(S){var b=u.refs;S===null?delete b[f]:b[f]=S};return v._stringRef=f,v}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
|
|
1. You may be adding a ref to a function component
|
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
3. You have multiple copies of React loaded
|
|
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function Xs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Qs(e){{var t=Xe(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 Xy(e){var t=e._payload,n=e._init;return n(t)}function Qy(e){function t(C,A){if(e){var x=C.deletions;x===null?(C.deletions=[A],C.flags|=wi):x.push(A)}}function n(C,A){if(!e)return null;for(var x=A;x!==null;)t(C,x),x=x.sibling;return null}function a(C,A){for(var x=new Map,P=A;P!==null;)P.key!==null?x.set(P.key,P):x.set(P.index,P),P=P.sibling;return x}function r(C,A){var x=to(C,A);return x.index=0,x.sibling=null,x}function i(C,A,x){if(C.index=x,!e)return C.flags|=Jm,A;var P=C.alternate;if(P!==null){var ce=P.index;return ce<A?(C.flags|=Ln,A):ce}else return C.flags|=Ln,A}function o(C){return e&&C.alternate===null&&(C.flags|=Ln),C}function l(C,A,x,P){if(A===null||A.tag!==Ve){var ce=nm(x,C.mode,P);return ce.return=C,ce}else{var ie=r(A,x);return ie.return=C,ie}}function u(C,A,x,P){var ce=x.type;if(ce===Da)return v(C,A,x.props.children,P,x.key);if(A!==null&&(A.elementType===ce||t0(A,x)||typeof ce=="object"&&ce!==null&&ce.$$typeof===M&&Xy(ce)===A.type)){var ie=r(A,x.props);return ie.ref=cu(C,A,x),ie.return=C,ie._debugSource=x._source,ie._debugOwner=x._owner,ie}var He=tm(x,C.mode,P);return He.ref=cu(C,A,x),He.return=C,He}function f(C,A,x,P){if(A===null||A.tag!==Me||A.stateNode.containerInfo!==x.containerInfo||A.stateNode.implementation!==x.implementation){var ce=am(x,C.mode,P);return ce.return=C,ce}else{var ie=r(A,x.children||[]);return ie.return=C,ie}}function v(C,A,x,P,ce){if(A===null||A.tag!==Ge){var ie=yi(x,C.mode,P,ce);return ie.return=C,ie}else{var He=r(A,x);return He.return=C,He}}function S(C,A,x){if(typeof A=="string"&&A!==""||typeof A=="number"){var P=nm(""+A,C.mode,x);return P.return=C,P}if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _n:{var ce=tm(A,C.mode,x);return ce.ref=cu(C,null,A),ce.return=C,ce}case kn:{var ie=am(A,C.mode,x);return ie.return=C,ie}case M:{var He=A._payload,qe=A._init;return S(C,qe(He),x)}}if(st(A)||Bt(A)){var Ht=yi(A,C.mode,x,null);return Ht.return=C,Ht}Xs(C,A)}return typeof A=="function"&&Qs(C),null}function b(C,A,x,P){var ce=A!==null?A.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return ce!==null?null:l(C,A,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case _n:return x.key===ce?u(C,A,x,P):null;case kn:return x.key===ce?f(C,A,x,P):null;case M:{var ie=x._payload,He=x._init;return b(C,A,He(ie),P)}}if(st(x)||Bt(x))return ce!==null?null:v(C,A,x,P,null);Xs(C,x)}return typeof x=="function"&&Qs(C),null}function w(C,A,x,P,ce){if(typeof P=="string"&&P!==""||typeof P=="number"){var ie=C.get(x)||null;return l(A,ie,""+P,ce)}if(typeof P=="object"&&P!==null){switch(P.$$typeof){case _n:{var He=C.get(P.key===null?x:P.key)||null;return u(A,He,P,ce)}case kn:{var qe=C.get(P.key===null?x:P.key)||null;return f(A,qe,P,ce)}case M:var Ht=P._payload,Tt=P._init;return w(C,A,x,Tt(Ht),ce)}if(st(P)||Bt(P)){var fn=C.get(x)||null;return v(A,fn,P,ce,null)}Xs(A,P)}return typeof P=="function"&&Qs(A),null}function _(C,A,x){{if(typeof C!="object"||C===null)return A;switch(C.$$typeof){case _n:case kn:Gy(C,x);var P=C.key;if(typeof P!="string")break;if(A===null){A=new Set,A.add(P);break}if(!A.has(P)){A.add(P);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.",P);break;case M:var ce=C._payload,ie=C._init;_(ie(ce),A,x);break}}return A}function N(C,A,x,P){for(var ce=null,ie=0;ie<x.length;ie++){var He=x[ie];ce=_(He,ce,C)}for(var qe=null,Ht=null,Tt=A,fn=0,Et=0,un=null;Tt!==null&&Et<x.length;Et++){Tt.index>Et?(un=Tt,Tt=null):un=Tt.sibling;var Kn=b(C,Tt,x[Et],P);if(Kn===null){Tt===null&&(Tt=un);break}e&&Tt&&Kn.alternate===null&&t(C,Tt),fn=i(Kn,fn,Et),Ht===null?qe=Kn:Ht.sibling=Kn,Ht=Kn,Tt=un}if(Et===x.length){if(n(C,Tt),zn()){var Wn=Et;$i(C,Wn)}return qe}if(Tt===null){for(;Et<x.length;Et++){var wa=S(C,x[Et],P);wa!==null&&(fn=i(wa,fn,Et),Ht===null?qe=wa:Ht.sibling=wa,Ht=wa)}if(zn()){var ia=Et;$i(C,ia)}return qe}for(var oa=a(C,Tt);Et<x.length;Et++){var Zn=w(oa,C,Et,x[Et],P);Zn!==null&&(e&&Zn.alternate!==null&&oa.delete(Zn.key===null?Et:Zn.key),fn=i(Zn,fn,Et),Ht===null?qe=Zn:Ht.sibling=Zn,Ht=Zn)}if(e&&oa.forEach(function(nl){return t(C,nl)}),zn()){var Vr=Et;$i(C,Vr)}return qe}function ae(C,A,x,P){var ce=Bt(x);if(typeof ce!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&x[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),x.entries===ce&&(av||d("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var ie=ce.call(x);if(ie)for(var He=null,qe=ie.next();!qe.done;qe=ie.next()){var Ht=qe.value;He=_(Ht,He,C)}}var Tt=ce.call(x);if(Tt==null)throw new Error("An iterable object provided no iterator.");for(var fn=null,Et=null,un=A,Kn=0,Wn=0,wa=null,ia=Tt.next();un!==null&&!ia.done;Wn++,ia=Tt.next()){un.index>Wn?(wa=un,un=null):wa=un.sibling;var oa=b(C,un,ia.value,P);if(oa===null){un===null&&(un=wa);break}e&&un&&oa.alternate===null&&t(C,un),Kn=i(oa,Kn,Wn),Et===null?fn=oa:Et.sibling=oa,Et=oa,un=wa}if(ia.done){if(n(C,un),zn()){var Zn=Wn;$i(C,Zn)}return fn}if(un===null){for(;!ia.done;Wn++,ia=Tt.next()){var Vr=S(C,ia.value,P);Vr!==null&&(Kn=i(Vr,Kn,Wn),Et===null?fn=Vr:Et.sibling=Vr,Et=Vr)}if(zn()){var nl=Wn;$i(C,nl)}return fn}for(var $u=a(C,un);!ia.done;Wn++,ia=Tt.next()){var hr=w($u,C,Wn,ia.value,P);hr!==null&&(e&&hr.alternate!==null&&$u.delete(hr.key===null?Wn:hr.key),Kn=i(hr,Kn,Wn),Et===null?fn=hr:Et.sibling=hr,Et=hr)}if(e&&$u.forEach(function(v_){return t(C,v_)}),zn()){var d_=Wn;$i(C,d_)}return fn}function De(C,A,x,P){if(A!==null&&A.tag===Ve){n(C,A.sibling);var ce=r(A,x);return ce.return=C,ce}n(C,A);var ie=nm(x,C.mode,P);return ie.return=C,ie}function Se(C,A,x,P){for(var ce=x.key,ie=A;ie!==null;){if(ie.key===ce){var He=x.type;if(He===Da){if(ie.tag===Ge){n(C,ie.sibling);var qe=r(ie,x.props.children);return qe.return=C,qe._debugSource=x._source,qe._debugOwner=x._owner,qe}}else if(ie.elementType===He||t0(ie,x)||typeof He=="object"&&He!==null&&He.$$typeof===M&&Xy(He)===ie.type){n(C,ie.sibling);var Ht=r(ie,x.props);return Ht.ref=cu(C,ie,x),Ht.return=C,Ht._debugSource=x._source,Ht._debugOwner=x._owner,Ht}n(C,ie);break}else t(C,ie);ie=ie.sibling}if(x.type===Da){var Tt=yi(x.props.children,C.mode,P,x.key);return Tt.return=C,Tt}else{var fn=tm(x,C.mode,P);return fn.ref=cu(C,A,x),fn.return=C,fn}}function ht(C,A,x,P){for(var ce=x.key,ie=A;ie!==null;){if(ie.key===ce)if(ie.tag===Me&&ie.stateNode.containerInfo===x.containerInfo&&ie.stateNode.implementation===x.implementation){n(C,ie.sibling);var He=r(ie,x.children||[]);return He.return=C,He}else{n(C,ie);break}else t(C,ie);ie=ie.sibling}var qe=am(x,C.mode,P);return qe.return=C,qe}function ct(C,A,x,P){var ce=typeof x=="object"&&x!==null&&x.type===Da&&x.key===null;if(ce&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case _n:return o(Se(C,A,x,P));case kn:return o(ht(C,A,x,P));case M:var ie=x._payload,He=x._init;return ct(C,A,He(ie),P)}if(st(x))return N(C,A,x,P);if(Bt(x))return ae(C,A,x,P);Xs(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"?o(De(C,A,""+x,P)):(typeof x=="function"&&Qs(C),n(C,A))}return ct}var zo=Qy(!0),Ky=Qy(!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=to(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=to(n,n.pendingProps),a.return=t;a.sibling=null}}function P1(e,t){for(var n=e.child;n!==null;)MD(n,t),n=n.sibling}var uv=ai(null),sv;sv={};var Ks=null,Fo=null,cv=null,Zs=!1;function Js(){Ks=null,Fo=null,cv=null,Zs=!1}function Zy(){Zs=!0}function Jy(){Zs=!1}function eg(e,t,n){Xn(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;Gn(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=tt(r.childLanes,t)):(a.childLanes=tt(a.childLanes,t),r!==null&&(r.childLanes=tt(r.childLanes,t))),a===n)break;a=a.return}a!==n&&d("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Y1(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===te){var l=_l(n),u=Ar(Xt,l);u.tag=tc;var f=a.updateQueue;if(f!==null){var v=f.shared,S=v.pending;S===null?u.next=u:(u.next=S.next,S.next=u),v.pending=u}}a.lanes=tt(a.lanes,n);var b=a.alternate;b!==null&&(b.lanes=tt(b.lanes,n)),dv(a.return,n,e),i.lanes=tt(i.lanes,n);break}o=o.next}}else if(a.tag===it)r=a.type===e.type?null:a.child;else if(a.tag===lt){var w=a.return;if(w===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");w.lanes=tt(w.lanes,n);var _=w.alternate;_!==null&&(_.lanes=tt(_.lanes,n)),dv(w,n,e),r=a.sibling}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}var N=r.sibling;if(N!==null){N.return=r.return,r=N;break}r=r.return}a=r}}function Vo(e,t){Ks=e,Fo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(Sa(n.lanes,t)&&Ru(),n.firstContext=null)}}function hn(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(Fo===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().");Fo=n,Ks.dependencies={lanes:V,firstContext:n}}else Fo=Fo.next=n}return t}var qi=null;function vv(e){qi===null?qi=[e]:qi.push(e)}function I1(){if(qi!==null){for(var e=0;e<qi.length;e++){var t=qi[e],n=t.interleaved;if(n!==null){t.interleaved=null;var a=n.next,r=t.pending;if(r!==null){var i=r.next;r.next=a,n.next=i}t.pending=n}}qi=null}}function tg(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 q1(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 G1(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 va(e,t){return ec(e,t)}var X1=ec;function ec(e,t){e.lanes=tt(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=tt(n.lanes,t)),n===null&&(e.flags&(Ln|ki))!==Ae&&Kb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=tt(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=tt(n.childLanes,t):(r.flags&(Ln|ki))!==Ae&&Kb(e),a=r,r=r.return;if(a.tag===le){var i=a.stateNode;return i}else return null}var ng=0,ag=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:V},effects:null};e.updateQueue=t}function rg(e,t){var n=t.updateQueue,a=e.updateQueue;if(n===a){var r={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects};t.updateQueue=r}}function Ar(e,t){var n={eventTime:e,lane:t,tag:ng,payload:null,callback:null,next:null};return n}function li(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),qw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,X1(e,n)}else return G1(e,r,t,n)}function rc(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(yh(n)){var i=r.lanes;i=bh(i,e.pendingLanes);var o=tt(i,n);r.lanes=o,ud(e,o)}}}function yv(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null){var r=a.updateQueue;if(n===r){var i=null,o=null,l=n.firstBaseUpdate;if(l!==null){var u=l;do{var f={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=f:(o.next=f,o=f),u=u.next}while(u!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}}var v=n.lastBaseUpdate;v===null?n.firstBaseUpdate=t:v.next=t,n.lastBaseUpdate=t}function Q1(e,t,n,a,r,i){switch(n.tag){case ag:{var o=n.payload;if(typeof o=="function"){Zy();var l=o.call(i,a,r);{if(e.mode&ln){Nn(!0);try{o.call(i,a,r)}finally{Nn(!1)}}Jy()}return l}return o}case pv:e.flags=e.flags&-65537|Dt;case ng:{var u=n.payload,f;if(typeof u=="function"){Zy(),f=u.call(i,a,r);{if(e.mode&ln){Nn(!0);try{u.call(i,a,r)}finally{Nn(!1)}}Jy()}}else f=u;return f==null?a:Be({},a,f)}case tc:return nc=!0,a}return a}function ic(e,t,n,a){var r=e.updateQueue;nc=!1,ac=r.shared;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var u=l,f=u.next;u.next=null,o===null?i=f:o.next=f,o=u;var v=e.alternate;if(v!==null){var S=v.updateQueue,b=S.lastBaseUpdate;b!==o&&(b===null?S.firstBaseUpdate=f:b.next=f,S.lastBaseUpdate=u)}}if(i!==null){var w=r.baseState,_=V,N=null,ae=null,De=null,Se=i;do{var ht=Se.lane,ct=Se.eventTime;if(Co(a,ht)){if(De!==null){var A={eventTime:ct,lane:An,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null};De=De.next=A}w=Q1(e,r,Se,w,t,n);var x=Se.callback;if(x!==null&&Se.lane!==An){e.flags|=Zm;var P=r.effects;P===null?r.effects=[Se]:P.push(Se)}}else{var C={eventTime:ct,lane:ht,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null};De===null?(ae=De=C,N=w):De=De.next=C,_=tt(_,ht)}if(Se=Se.next,Se===null){if(l=r.shared.pending,l===null)break;var ce=l,ie=ce.next;ce.next=null,Se=ie,r.lastBaseUpdate=ce,r.shared.pending=null}}while(!0);De===null&&(N=w),r.baseState=N,r.firstBaseUpdate=ae,r.lastBaseUpdate=De;var He=r.shared.interleaved;if(He!==null){var qe=He;do _=tt(_,qe.lane),qe=qe.next;while(qe!==He)}else i===null&&(r.shared.lanes=V);Hu(_),e.lanes=_,e.memoizedState=w}ac=null}function K1(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function ig(){nc=!1}function oc(){return nc}function og(e,t,n){var a=t.effects;if(t.effects=null,a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.callback;o!==null&&(i.callback=null,K1(o,n))}}var fu={},ui=ai(fu),du=ai(fu),lc=ai(fu);function uc(e){if(e===fu)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 lg(){var e=uc(lc.current);return e}function gv(e,t){Xn(lc,t,e),Xn(du,e,e),Xn(ui,fu,e);var n=px(t);Gn(ui,e),Xn(ui,n,e)}function Bo(e){Gn(ui,e),Gn(du,e),Gn(lc,e)}function bv(){var e=uc(ui.current);return e}function ug(e){uc(lc.current);var t=uc(ui.current),n=mx(t,e.type);t!==n&&(Xn(du,e,e),Xn(ui,n,e))}function Sv(e){du.current===e&&(Gn(ui,e),Gn(du,e))}var Z1=0,sg=1,cg=1,vu=2,qa=ai(Z1);function Tv(e,t){return(e&t)!==0}function $o(e){return e&sg}function Ev(e,t){return e&sg|t}function J1(e,t){return e|t}function si(e,t){Xn(qa,t,e)}function Po(e){Gn(qa,e)}function eR(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===ye){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||Dy(a)||Vd(a))return t}}else if(t.tag===Rt&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&Dt)!==Ae;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 pa=0,Sn=1,sr=2,Tn=4,Fn=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function tR(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var ue=Ee.ReactCurrentDispatcher,pu=Ee.ReactCurrentBatchConfig,Rv,Yo;Rv=new Set;var Gi=V,Ut=null,En=null,Cn=null,cc=!1,mu=!1,hu=0,nR=0,aR=25,H=null,Aa=null,ci=-1,wv=!1;function _t(){{var e=H;Aa===null?Aa=[e]:Aa.push(e)}}function ee(){{var e=H;Aa!==null&&(ci++,Aa[ci]!==e&&rR(e))}}function Wo(e){e!=null&&!st(e)&&d("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function rR(e){{var t=Xe(Ut);if(!Rv.has(t)&&(Rv.add(t),Aa!==null)){for(var n="",a=30,r=0;r<=ci;r++){for(var i=Aa[r],o=r===ci?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.",H),!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`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Ca(e[n],t[n]))return!1;return!0}function Io(e,t,n,a,r,i){Gi=i,Ut=t,Aa=e!==null?e._debugHookTypes:null,ci=-1,wv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=V,e!==null&&e.memoizedState!==null?ue.current=Og:Aa!==null?ue.current=Lg:ue.current=Mg;var o=n(a,r);if(mu){var l=0;do{if(mu=!1,hu=0,l>=aR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,wv=!1,En=null,Cn=null,t.updateQueue=null,ci=-1,ue.current=Ng,o=n(a,r)}while(mu)}ue.current=Cc,t._debugHookTypes=Aa;var u=En!==null&&En.next!==null;if(Gi=V,Ut=null,En=null,Cn=null,H=null,Aa=null,ci=-1,e!==null&&(e.flags&Rr)!==(t.flags&Rr)&&(e.mode&pt)!==ke&&d("Internal React error: Expected static flag was missing. Please notify the React team."),cc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function qo(){var e=hu!==0;return hu=0,e}function fg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&ir)!==ke?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function dg(){if(ue.current=Cc,cc){for(var e=Ut.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}Gi=V,Ut=null,En=null,Cn=null,Aa=null,ci=-1,H=null,Rg=!1,mu=!1,hu=0}function cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?Ut.memoizedState=Cn=e:Cn=Cn.next=e,Cn}function ja(){var e;if(En===null){var t=Ut.alternate;t!==null?e=t.memoizedState:e=null}else e=En.next;var n;if(Cn===null?n=Ut.memoizedState:n=Cn.next,n!==null)Cn=n,n=Cn.next,En=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");En=e;var a={memoizedState:En.memoizedState,baseState:En.baseState,baseQueue:En.baseQueue,queue:En.queue,next:null};Cn===null?Ut.memoizedState=Cn=a:Cn=Cn.next=a}return Cn}function vg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function kv(e,t,n){var a=cr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:V,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=uR.bind(null,Ut,i);return[a.memoizedState,o]}function Mv(e,t,n){var a=ja(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=En,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,f=l.next;o.next=f,l.next=u}i.baseQueue!==o&&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,S=i.baseState,b=null,w=null,_=null,N=v;do{var ae=N.lane;if(Co(Gi,ae)){if(_!==null){var Se={lane:An,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_=_.next=Se}if(N.hasEagerState)S=N.eagerState;else{var ht=N.action;S=e(S,ht)}}else{var De={lane:ae,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_===null?(w=_=De,b=S):_=_.next=De,Ut.lanes=tt(Ut.lanes,ae),Hu(ae)}N=N.next}while(N!==null&&N!==v);_===null?b=S:_.next=w,Ca(S,a.memoizedState)||Ru(),a.memoizedState=S,a.baseState=b,a.baseQueue=_,r.lastRenderedState=S}var ct=r.interleaved;if(ct!==null){var C=ct;do{var A=C.lane;Ut.lanes=tt(Ut.lanes,A),Hu(A),C=C.next}while(C!==ct)}else o===null&&(r.lanes=V);var x=r.dispatch;return[a.memoizedState,x]}function Lv(e,t,n){var a=ja(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,l=a.memoizedState;if(o!==null){r.pending=null;var u=o.next,f=u;do{var v=f.action;l=e(l,v),f=f.next}while(f!==u);Ca(l,a.memoizedState)||Ru(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function h_(e,t,n){}function y_(e,t,n){}function Ov(e,t,n){var a=Ut,r=cr(),i,o=zn();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();Ca(i,l)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Yo=!0)}var u=$c();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(u,Gi)||pg(a,t,i)}r.memoizedState=i;var f={value:i,getSnapshot:t};return r.queue=f,mc(hg.bind(null,a,f,e),[e]),a.flags|=Gr,yu(Sn|Fn,mg.bind(null,a,f,i,t),void 0,null),i}function fc(e,t,n){var a=Ut,r=ja(),i=t();if(!Yo){var o=t();Ca(i,o)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Yo=!0)}var l=r.memoizedState,u=!Ca(l,i);u&&(r.memoizedState=i,Ru());var f=r.queue;if(bu(hg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||Cn!==null&&Cn.memoizedState.tag&Sn){a.flags|=Gr,yu(Sn|Fn,mg.bind(null,a,f,i,t),void 0,null);var v=$c();if(v===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(v,Gi)||pg(a,t,i)}return i}function pg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=Ut.updateQueue;if(r===null)r=vg(),Ut.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function mg(e,t,n,a){t.value=n,t.getSnapshot=a,yg(t)&&gg(e)}function hg(e,t,n){var a=function(){yg(t)&&gg(e)};return n(a)}function yg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Ca(n,a)}catch{return!0}}function gg(e){var t=va(e,$e);t!==null&&Dn(t,e,$e,Xt)}function dc(e){var t=cr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:V,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=sR.bind(null,Ut,n);return[t.memoizedState,a]}function Nv(e){return Mv(_v)}function Av(e){return Lv(_v)}function yu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Ut.updateQueue;if(i===null)i=vg(),Ut.updateQueue=i,i.lastEffect=r.next=r;else{var o=i.lastEffect;if(o===null)i.lastEffect=r.next=r;else{var l=o.next;o.next=r,r.next=l,i.lastEffect=r}}return r}function jv(e){var t=cr();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=ja();return t.memoizedState}function gu(e,t,n,a){var r=cr(),i=a===void 0?null:a;Ut.flags|=e,r.memoizedState=yu(Sn|t,n,void 0,i)}function pc(e,t,n,a){var r=ja(),i=a===void 0?null:a,o=void 0;if(En!==null){var l=En.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=yu(t,n,o,i);return}}}Ut.flags|=e,r.memoizedState=yu(Sn|t,n,o,i)}function mc(e,t){return(Ut.mode&ir)!==ke?gu(Of|Gr|Lf,Fn,e,t):gu(Gr|Lf,Fn,e,t)}function bu(e,t){return pc(Gr,Fn,e,t)}function Uv(e,t){return gu(xt,sr,e,t)}function hc(e,t){return pc(xt,sr,e,t)}function Hv(e,t){var n=xt;return n|=Li,(Ut.mode&ir)!==ke&&(n|=Xr),gu(n,Tn,e,t)}function yc(e,t){return pc(xt,Tn,e,t)}function bg(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 zv(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=xt;return r|=Li,(Ut.mode&ir)!==ke&&(r|=Xr),gu(r,Tn,bg.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(xt,Tn,bg.bind(null,t,e),a)}function iR(e,t){}var bc=iR;function Fv(e,t){var n=cr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=ja(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}return n.memoizedState=[e,a],e}function Vv(e,t){var n=cr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=ja(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Bv(e){var t=cr();return t.memoizedState=e,e}function Sg(e){var t=ja(),n=En,a=n.memoizedState;return Eg(t,a,e)}function Tg(e){var t=ja();if(En===null)return t.memoizedState=e,e;var n=En.memoizedState;return Eg(t,n,e)}function Eg(e,t,n){var a=!YT(Gi);if(a){if(!Ca(n,t)){var r=gh();Ut.lanes=tt(Ut.lanes,r),Hu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Ru()),e.memoizedState=n,n}function oR(e,t,n){var a=Pa();jn(JT(a,Dr)),e(!0);var r=pu.transition;pu.transition={};var i=pu.transition;pu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(jn(a),pu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&se("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 $v(){var e=dc(!1),t=e[0],n=e[1],a=oR.bind(null,n),r=cr();return r.memoizedState=a,[t,a]}function Cg(){var e=Nv(),t=e[0],n=ja(),a=n.memoizedState;return[t,a]}function xg(){var e=Av(),t=e[0],n=ja(),a=n.memoizedState;return[t,a]}var Rg=!1;function lR(){return Rg}function Pv(){var e=cr(),t=$c(),n=t.identifierPrefix,a;if(zn()){var r=x1();a=":"+n+"R"+r;var i=hu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=nR++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=ja(),t=e.memoizedState;return t}function uR(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=mi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(wg(e))Dg(t,r);else{var i=tg(e,t,r,a);if(i!==null){var o=ra();Dn(i,e,a,o),_g(i,t,a)}}kg(e,a)}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=mi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(wg(e))Dg(t,r);else{var i=e.alternate;if(e.lanes===V&&(i===null||i.lanes===V)){var o=t.lastRenderedReducer;if(o!==null){var l;l=ue.current,ue.current=Ga;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,Ca(f,u)){q1(e,t,r,a);return}}catch{}finally{ue.current=l}}}var v=tg(e,t,r,a);if(v!==null){var S=ra();Dn(v,e,a,S),_g(v,t,a)}}kg(e,a)}function wg(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function Dg(e,t){mu=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _g(e,t,n){if(yh(n)){var a=t.lanes;a=bh(a,e.pendingLanes);var r=tt(a,n);t.lanes=r,ud(e,r)}}function kg(e,t,n){Hf(e,t)}var Cc={readContext:hn,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:I},Mg=null,Lg=null,Og=null,Ng=null,fr=null,Ga=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().")},Pe=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")};Mg={readContext:function(e){return hn(e)},useCallback:function(e,t){return H="useCallback",_t(),Wo(t),Fv(e,t)},useContext:function(e){return H="useContext",_t(),hn(e)},useEffect:function(e,t){return H="useEffect",_t(),Wo(t),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",_t(),Wo(n),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",_t(),Wo(t),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",_t(),Wo(t),Hv(e,t)},useMemo:function(e,t){H="useMemo",_t(),Wo(t);var n=ue.current;ue.current=fr;try{return Vv(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",_t();var a=ue.current;ue.current=fr;try{return kv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",_t(),jv(e)},useState:function(e){H="useState",_t();var t=ue.current;ue.current=fr;try{return dc(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",_t(),void 0},useDeferredValue:function(e){return H="useDeferredValue",_t(),Bv(e)},useTransition:function(){return H="useTransition",_t(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",_t(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",_t(),Ov(e,t,n)},useId:function(){return H="useId",_t(),Pv()},unstable_isNewReconciler:I},Lg={readContext:function(e){return hn(e)},useCallback:function(e,t){return H="useCallback",ee(),Fv(e,t)},useContext:function(e){return H="useContext",ee(),hn(e)},useEffect:function(e,t){return H="useEffect",ee(),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),Hv(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=ue.current;ue.current=fr;try{return Vv(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=ue.current;ue.current=fr;try{return kv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",ee(),jv(e)},useState:function(e){H="useState",ee();var t=ue.current;ue.current=fr;try{return dc(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),void 0},useDeferredValue:function(e){return H="useDeferredValue",ee(),Bv(e)},useTransition:function(){return H="useTransition",ee(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),Ov(e,t,n)},useId:function(){return H="useId",ee(),Pv()},unstable_isNewReconciler:I},Og={readContext:function(e){return hn(e)},useCallback:function(e,t){return H="useCallback",ee(),Sc(e,t)},useContext:function(e){return H="useContext",ee(),hn(e)},useEffect:function(e,t){return H="useEffect",ee(),bu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),yc(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=ue.current;ue.current=Ga;try{return Tc(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=ue.current;ue.current=Ga;try{return Mv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",ee(),vc()},useState:function(e){H="useState",ee();var t=ue.current;ue.current=Ga;try{return Nv(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),bc()},useDeferredValue:function(e){return H="useDeferredValue",ee(),Sg(e)},useTransition:function(){return H="useTransition",ee(),Cg()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),fc(e,t)},useId:function(){return H="useId",ee(),Ec()},unstable_isNewReconciler:I},Ng={readContext:function(e){return hn(e)},useCallback:function(e,t){return H="useCallback",ee(),Sc(e,t)},useContext:function(e){return H="useContext",ee(),hn(e)},useEffect:function(e,t){return H="useEffect",ee(),bu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),yc(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=ue.current;ue.current=xc;try{return Tc(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=ue.current;ue.current=xc;try{return Lv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",ee(),vc()},useState:function(e){H="useState",ee();var t=ue.current;ue.current=xc;try{return Av(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),bc()},useDeferredValue:function(e){return H="useDeferredValue",ee(),Tg(e)},useTransition:function(){return H="useTransition",ee(),xg()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),fc(e,t)},useId:function(){return H="useId",ee(),Ec()},unstable_isNewReconciler:I},fr={readContext:function(e){return Yv(),hn(e)},useCallback:function(e,t){return H="useCallback",Pe(),_t(),Fv(e,t)},useContext:function(e){return H="useContext",Pe(),_t(),hn(e)},useEffect:function(e,t){return H="useEffect",Pe(),_t(),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),_t(),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),_t(),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),_t(),Hv(e,t)},useMemo:function(e,t){H="useMemo",Pe(),_t();var n=ue.current;ue.current=fr;try{return Vv(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),_t();var a=ue.current;ue.current=fr;try{return kv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",Pe(),_t(),jv(e)},useState:function(e){H="useState",Pe(),_t();var t=ue.current;ue.current=fr;try{return dc(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),_t(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Pe(),_t(),Bv(e)},useTransition:function(){return H="useTransition",Pe(),_t(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),_t(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),_t(),Ov(e,t,n)},useId:function(){return H="useId",Pe(),_t(),Pv()},unstable_isNewReconciler:I},Ga={readContext:function(e){return Yv(),hn(e)},useCallback:function(e,t){return H="useCallback",Pe(),ee(),Sc(e,t)},useContext:function(e){return H="useContext",Pe(),ee(),hn(e)},useEffect:function(e,t){return H="useEffect",Pe(),ee(),bu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),ee(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),ee(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),ee(),yc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),ee();var n=ue.current;ue.current=Ga;try{return Tc(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),ee();var a=ue.current;ue.current=Ga;try{return Mv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",Pe(),ee(),vc()},useState:function(e){H="useState",Pe(),ee();var t=ue.current;ue.current=Ga;try{return Nv(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),ee(),bc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),ee(),Sg(e)},useTransition:function(){return H="useTransition",Pe(),ee(),Cg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),ee(),fc(e,t)},useId:function(){return H="useId",Pe(),ee(),Ec()},unstable_isNewReconciler:I},xc={readContext:function(e){return Yv(),hn(e)},useCallback:function(e,t){return H="useCallback",Pe(),ee(),Sc(e,t)},useContext:function(e){return H="useContext",Pe(),ee(),hn(e)},useEffect:function(e,t){return H="useEffect",Pe(),ee(),bu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),ee(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),ee(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),ee(),yc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),ee();var n=ue.current;ue.current=Ga;try{return Tc(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),ee();var a=ue.current;ue.current=Ga;try{return Lv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",Pe(),ee(),vc()},useState:function(e){H="useState",Pe(),ee();var t=ue.current;ue.current=Ga;try{return Av(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),ee(),bc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),ee(),Tg(e)},useTransition:function(){return H="useTransition",Pe(),ee(),xg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),ee(),fc(e,t)},useId:function(){return H="useId",Pe(),ee(),Ec()},unstable_isNewReconciler:I}}var fi=R.unstable_now,Ag=0,Rc=-1,Su=-1,wc=-1,Wv=!1,Dc=!1;function jg(){return Wv}function cR(){Dc=!0}function fR(){Wv=!1,Dc=!1}function dR(){Wv=Dc,Dc=!1}function Ug(){return Ag}function Hg(){Ag=fi()}function Iv(e){Su=fi(),e.actualStartTime<0&&(e.actualStartTime=fi())}function zg(e){Su=-1}function _c(e,t){if(Su>=0){var n=fi()-Su;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Su=-1}}function dr(e){if(Rc>=0){var t=fi()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case le:var a=n.stateNode;a.effectDuration+=t;return;case nt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(wc>=0){var t=fi()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case le:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case nt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function vr(){Rc=fi()}function Gv(){wc=fi()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Xa(e,t){if(e&&e.defaultProps){var n=Be({},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,Fg,kc,np,ap,rp,Tu;{Kv=new Set,Zv=new Set,Jv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,Tu=new Set;var Vg=new Set;kc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;Vg.has(n)||(Vg.add(n),d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Fg=function(e,t){if(t===void 0){var n=Ct(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&ln){Nn(!0);try{i=n(a,r)}finally{Nn(!1)}}Fg(t,i)}var o=i==null?r:Be({},r,i);if(e.memoizedState=o,e.lanes===V){var l=e.updateQueue;l.baseState=o}}var op={isMounted:aT,enqueueSetState:function(e,t,n){var a=po(e),r=ra(),i=mi(a),o=Ar(r,i);o.payload=t,n!=null&&(kc(n,"setState"),o.callback=n);var l=li(a,o,i);l!==null&&(Dn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueReplaceState:function(e,t,n){var a=po(e),r=ra(),i=mi(a),o=Ar(r,i);o.tag=ag,o.payload=t,n!=null&&(kc(n,"replaceState"),o.callback=n);var l=li(a,o,i);l!==null&&(Dn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueForceUpdate:function(e,t){var n=po(e),a=ra(),r=mi(n),i=Ar(a,r);i.tag=tc,t!=null&&(kc(t,"forceUpdate"),i.callback=t);var o=li(n,i,r);o!==null&&(Dn(o,n,r,a),rc(o,n,r)),AT(n,r)}};function Bg(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&ln){Nn(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{Nn(!1)}}u===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Ct(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Pl(n,a)||!Pl(r,i):!0}function vR(e,t,n){var a=e.stateNode;{var r=Ct(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&&!Tu.has(t)&&(e.mode&ln)===ke&&(Tu.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&&!Tu.has(t)&&(e.mode&ln)===ke&&(Tu.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.",Ct(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.",Ct(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"||st(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 $g(e,t){t.updater=op,e.stateNode=t,JS(t,e),t._reactInternalInstance=Qv}function Pg(e,t,n){var a=!1,r=xa,i=xa,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===c&&o._context===void 0;if(!l&&!rp.has(t)){rp.add(t);var u="";o===void 0?u=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===F?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",Ct(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=hn(o);else{r=No(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?Ao(e,r):xa}var v=new t(n,i);if(e.mode&ln){Nn(!0);try{v=new t(n,i)}finally{Nn(!1)}}var S=e.memoizedState=v.state!==null&&v.state!==void 0?v.state:null;$g(e,v);{if(typeof t.getDerivedStateFromProps=="function"&&S===null){var b=Ct(t)||"Component";Zv.has(b)||(Zv.add(b),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.",b,v.state===null?"null":"undefined",b))}if(typeof t.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var w=null,_=null,N=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?w="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(w="UNSAFE_componentWillMount"),typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof v.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof v.componentWillUpdate=="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0?N="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(N="UNSAFE_componentWillUpdate"),w!==null||_!==null||N!==null){var ae=Ct(t)||"Component",De=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(ae)||(ep.add(ae),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`,ae,De,w!==null?`
|
|
`+w:"",_!==null?`
|
|
`+_:"",N!==null?`
|
|
`+N:""))}}}return a&&Oy(e,r,i),v}function pR(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xe(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Yg(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=Xe(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){vR(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=hn(i);else{var o=No(e,t,!0);r.context=Ao(e,o)}{if(r.state===n){var l=Ct(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&ln&&Ia.recordLegacyContextWarning(e,r),Ia.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")&&(pR(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=xt;f|=Li,(e.mode&ir)!==ke&&(f|=Xr),e.flags|=f}}function mR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=xa;if(typeof l=="object"&&l!==null)u=hn(l);else{var f=No(e,t,!0);u=Ao(e,f)}var v=t.getDerivedStateFromProps,S=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function";!S&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Yg(e,r,n,u),ig();var b=e.memoizedState,w=r.state=b;if(ic(e,n,r,a),w=e.memoizedState,i===n&&b===w&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var _=xt;_|=Li,(e.mode&ir)!==ke&&(_|=Xr),e.flags|=_}return!1}typeof v=="function"&&(ip(e,t,v,n),w=e.memoizedState);var N=oc()||Bg(e,t,i,n,b,w,u);if(N){if(!S&&(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 ae=xt;ae|=Li,(e.mode&ir)!==ke&&(ae|=Xr),e.flags|=ae}}else{if(typeof r.componentDidMount=="function"){var De=xt;De|=Li,(e.mode&ir)!==ke&&(De|=Xr),e.flags|=De}e.memoizedProps=n,e.memoizedState=w}return r.props=n,r.state=w,r.context=u,N}function hR(e,t,n,a,r){var i=t.stateNode;rg(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Xa(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,v=n.contextType,S=xa;if(typeof v=="object"&&v!==null)S=hn(v);else{var b=No(t,n,!0);S=Ao(t,b)}var w=n.getDerivedStateFromProps,_=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function";!_&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==S)&&Yg(t,i,a,S),ig();var N=t.memoizedState,ae=i.state=N;if(ic(t,a,i,r),ae=t.memoizedState,o===u&&N===ae&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=xt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=ho),!1;typeof w=="function"&&(ip(t,n,w,a),ae=t.memoizedState);var De=oc()||Bg(t,n,l,a,N,ae,S)||ve;return De?(!_&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,ae,S),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,ae,S)),typeof i.componentDidUpdate=="function"&&(t.flags|=xt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=ho)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=xt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=ho),t.memoizedProps=a,t.memoizedState=ae),i.props=a,i.state=ae,i.context=S,De}function Xi(e,t){return{value:e,source:t,stack:Ti(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function yR(e,t){return!0}function sp(e,t){try{var n=yR(e,t);if(n===!1)return;var a=t.value,r=t.source,i=t.stack,o=i!==null?i:"";if(a!=null&&a._suppressLogging){if(e.tag===te)return;console.error(a)}var l=r?Xe(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",f;if(e.tag===le)f=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var v=Xe(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var S=u+`
|
|
`+o+`
|
|
|
|
`+(""+f);console.error(S)}catch(b){setTimeout(function(){throw b})}}var gR=typeof WeakMap=="function"?WeakMap:Map;function Wg(e,t,n){var a=Ar(Xt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){cD(r),sp(e,t)},a}function cp(e,t,n){var a=Ar(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(){n0(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){n0(e),sp(e,t),typeof r!="function"&&uD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(Sa(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.",Xe(e)||"Unknown"))}),a}function Ig(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new gR,r=new Set,a.set(t,r)):(r=a.get(t),r===void 0&&(r=new Set,a.set(t,r))),!r.has(n)){r.add(n);var i=fD.bind(null,e,t,n);$a&&zu(e,n),t.then(i,i)}}function bR(e,t,n,a){var r=e.updateQueue;if(r===null){var i=new Set;i.add(n),e.updateQueue=i}else r.add(n)}function SR(e,t){var n=e.tag;if((e.mode&pt)===ke&&(n===de||n===_e||n===Q)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function qg(e){var t=e;do{if(t.tag===ye&&eR(t))return t;t=t.return}while(t!==null);return null}function Gg(e,t,n,a,r){if((e.mode&pt)===ke){if(e===t)e.flags|=Ba;else{if(e.flags|=Dt,n.flags|=kf,n.flags&=-52805,n.tag===te){var i=n.alternate;if(i===null)n.tag=bt;else{var o=Ar(Xt,$e);o.tag=tc,li(n,o,$e)}}n.lanes=tt(n.lanes,$e)}return e}return e.flags|=Ba,e.lanes=r,e}function TR(e,t,n,a,r){if(n.flags|=rs,$a&&zu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;SR(n),zn()&&n.mode&pt&&Fy();var o=qg(t);if(o!==null){o.flags&=-257,Gg(o,t,n,e,r),o.mode&pt&&Ig(e,i,r),bR(o,e,i);return}else{if(!PT(r)){Ig(e,i,r),Pp();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(zn()&&n.mode&pt){Fy();var u=qg(t);if(u!==null){(u.flags&Ba)===Ae&&(u.flags|=Di),Gg(u,t,n,e,r),nv(Xi(a,n));return}}a=Xi(a,n),eD(a);var f=t;do{switch(f.tag){case le:{var v=a;f.flags|=Ba;var S=_l(r);f.lanes=tt(f.lanes,S);var b=Wg(f,v,S);yv(f,b);return}case te:var w=a,_=f.type,N=f.stateNode;if((f.flags&Dt)===Ae&&(typeof _.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&!qb(N))){f.flags|=Ba;var ae=_l(r);f.lanes=tt(f.lanes,ae);var De=cp(f,w,ae);yv(f,De);return}break}f=f.return}while(f!==null)}function ER(){return null}var Eu=Ee.ReactCurrentOwner,Qa=!1,fp,Cu,dp,vp,pp,Qi,mp,Mc,xu;fp={},Cu={},dp={},vp={},pp={},Qi=!1,mp={},Mc={},xu={};function na(e,t,n,a){e===null?t.child=Ky(t,null,n,a):t.child=zo(t,e.child,n,a)}function CR(e,t,n,a){t.child=zo(t,e.child,null,a),t.child=zo(t,null,n,a)}function Xg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ya(i,a,"prop",Ct(n))}var o=n.render,l=t.ref,u,f;Vo(t,r),El(t);{if(Eu.current=t,ka(!0),u=Io(e,t,o,a,l,r),f=qo(),t.mode&ln){Nn(!0);try{u=Io(e,t,o,a,l,r),f=qo()}finally{Nn(!1)}}ka(!1)}return bo(),e!==null&&!Qa?(fg(e,t,r),jr(e,t,r)):(zn()&&f&&Qd(t),t.flags|=mo,na(e,t,u,r),t.child)}function Qg(e,t,n,a,r){if(e===null){var i=n.type;if(_D(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=tl(i),t.tag=Q,t.type=o,gp(t,i),Kg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Ya(l,a,"prop",Ct(i)),n.defaultProps!==void 0){var u=Ct(i)||"Unknown";xu[u]||(d("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),xu[u]=!0)}}var f=em(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var v=n.type,S=v.propTypes;S&&Ya(S,a,"prop",Ct(v))}var b=e.child,w=xp(e,r);if(!w){var _=b.memoizedProps,N=n.compare;if(N=N!==null?N:Pl,N(_,a)&&e.ref===t.ref)return jr(e,t,r)}t.flags|=mo;var ae=to(b,a);return ae.ref=t.ref,ae.return=t,t.child=ae,ae}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===M){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Ya(f,a,"prop",Ct(i))}}if(e!==null){var v=e.memoizedProps;if(Pl(v,a)&&e.ref===t.ref&&t.type===e.type)if(Qa=!1,t.pendingProps=a=v,xp(e,r))(e.flags&kf)!==Ae&&(Qa=!0);else return t.lanes=e.lanes,jr(e,t,r)}return hp(e,t,n,a,r)}function Zg(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||dt)if((t.mode&pt)===ke){var o={baseLanes:V,cachePool:null,transitions:null};t.memoizedState=o,Pc(t,n)}else if(Sa(n,Ma)){var S={baseLanes:V,cachePool:null,transitions:null};t.memoizedState=S;var b=i!==null?i.baseLanes:n;Pc(t,b)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=tt(f,n)}else u=n;t.lanes=t.childLanes=Ma;var v={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=v,t.updateQueue=null,Pc(t,u),null}else{var w;i!==null?(w=tt(i.baseLanes,n),t.memoizedState=null):w=n,Pc(t,w)}return na(e,t,r,n),t.child}function xR(e,t,n){var a=t.pendingProps;return na(e,t,a,n),t.child}function RR(e,t,n){var a=t.pendingProps.children;return na(e,t,a,n),t.child}function wR(e,t,n){{t.flags|=xt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return na(e,t,i,n),t.child}function Jg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=_i,t.flags|=Mf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ya(i,a,"prop",Ct(n))}var o;{var l=No(t,n,!0);o=Ao(t,l)}var u,f;Vo(t,r),El(t);{if(Eu.current=t,ka(!0),u=Io(e,t,n,a,o,r),f=qo(),t.mode&ln){Nn(!0);try{u=Io(e,t,n,a,o,r),f=qo()}finally{Nn(!1)}}ka(!1)}return bo(),e!==null&&!Qa?(fg(e,t,r),jr(e,t,r)):(zn()&&f&&Qd(t),t.flags|=mo,na(e,t,u,r),t.child)}function eb(e,t,n,a,r){{switch(PD(t)){case!1:{var i=t.stateNode,o=t.type,l=new o(t.memoizedProps,i.context),u=l.state;i.updater.enqueueSetState(i,u,null);break}case!0:{t.flags|=Dt,t.flags|=Ba;var f=new Error("Simulated error coming from DevTools"),v=_l(r);t.lanes=tt(t.lanes,v);var S=cp(t,Xi(f,t),v);yv(t,S);break}}if(t.type!==t.elementType){var b=n.propTypes;b&&Ya(b,a,"prop",Ct(n))}}var w;ur(n)?(w=!0,$s(t)):w=!1,Vo(t,r);var _=t.stateNode,N;_===null?(Oc(e,t),Pg(t,n,a),lp(t,n,a,r),N=!0):e===null?N=mR(t,n,a,r):N=hR(e,t,n,a,r);var ae=yp(e,t,n,N,w,r);{var De=t.stateNode;N&&De.props!==a&&(Qi||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Xe(t)||"a component"),Qi=!0)}return ae}function yp(e,t,n,a,r,i){Jg(e,t);var o=(t.flags&Dt)!==Ae;if(!a&&!o)return r&&jy(t,n,!1),jr(e,t,i);var l=t.stateNode;Eu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,zg();else{El(t);{if(ka(!0),u=l.render(),t.mode&ln){Nn(!0);try{l.render()}finally{Nn(!1)}}ka(!1)}bo()}return t.flags|=mo,e!==null&&o?CR(e,t,u,i):na(e,t,u,i),t.memoizedState=l.state,r&&jy(t,n,!0),t.child}function tb(e){var t=e.stateNode;t.pendingContext?Ny(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ny(e,t.context,!1),gv(e,t.containerInfo)}function DR(e,t,n){if(tb(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;rg(e,t),ic(t,a,null,n);var o=t.memoizedState;t.stateNode;var l=o.element;if(r.isDehydrated){var u={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},f=t.updateQueue;if(f.baseState=u,t.memoizedState=u,t.flags&Di){var v=Xi(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return nb(e,t,l,n,v)}else if(l!==i){var S=Xi(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return nb(e,t,l,n,S)}else{M1(t);var b=Ky(t,null,l,n);t.child=b;for(var w=b;w;)w.flags=w.flags&-3|ki,w=w.sibling}}else{if(Ho(),l===i)return jr(e,t,n);na(e,t,l,n)}return t.child}function nb(e,t,n,a,r){return Ho(),nv(r),t.flags|=Di,na(e,t,n,a),t.child}function _R(e,t,n){ug(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),Jg(e,t),na(e,t,o,n),t.child}function kR(e,t){return e===null&&tv(t),null}function MR(e,t,n,a){Oc(e,t);var r=t.pendingProps,i=n,o=i._payload,l=i._init,u=l(o);t.type=u;var f=t.tag=kD(u),v=Xa(u,r),S;switch(f){case de:return gp(t,u),t.type=u=tl(u),S=hp(null,t,u,v,a),S;case te:return t.type=u=Gp(u),S=eb(null,t,u,v,a),S;case _e:return t.type=u=Xp(u),S=Xg(null,t,u,v,a),S;case j:{if(t.type!==t.elementType){var b=u.propTypes;b&&Ya(b,v,"prop",Ct(u))}return S=Qg(null,t,u,Xa(u.type,v),a),S}}var w="";throw u!==null&&typeof u=="object"&&u.$$typeof===M&&(w=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+u+". "+("Lazy element type must resolve to a class or function."+w))}function LR(e,t,n,a,r){Oc(e,t),t.tag=te;var i;return ur(n)?(i=!0,$s(t)):i=!1,Vo(t,r),Pg(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function OR(e,t,n,a){Oc(e,t);var r=t.pendingProps,i;{var o=No(t,n,!1);i=Ao(t,o)}Vo(t,a);var l,u;El(t);{if(n.prototype&&typeof n.prototype.render=="function"){var f=Ct(n)||"Unknown";fp[f]||(d("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",f,f),fp[f]=!0)}t.mode&ln&&Ia.recordLegacyContextWarning(t,null),ka(!0),Eu.current=t,l=Io(null,t,n,r,i,a),u=qo(),ka(!1)}if(bo(),t.flags|=mo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var v=Ct(n)||"Unknown";Cu[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),Cu[v]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var S=Ct(n)||"Unknown";Cu[S]||(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.",S,S,S),Cu[S]=!0)}t.tag=te,t.memoizedState=null,t.updateQueue=null;var b=!1;return ur(n)?(b=!0,$s(t)):b=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hv(t),$g(t,l),lp(t,n,r,a),yp(null,t,n,!0,b,a)}else{if(t.tag=de,t.mode&ln){Nn(!0);try{l=Io(null,t,n,r,i,a),u=qo()}finally{Nn(!1)}}return zn()&&u&&Qd(t),na(null,t,l,a),gp(t,n),t.child}}function gp(e,t){{if(t&&t.childContextTypes&&d("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=Ir();a&&(n+=`
|
|
|
|
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),pp[r]||(pp[r]=!0,d("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var o=Ct(t)||"Unknown";xu[o]||(d("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),xu[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=Ct(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=Ct(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:An};function Sp(e){return{baseLanes:e,cachePool:ER(),transitions:null}}function NR(e,t){var n=null;return{baseLanes:tt(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function AR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,vu)}function jR(e,t){return fs(e.childLanes,t)}function ab(e,t,n){var a=t.pendingProps;YD(t)&&(t.flags|=Dt);var r=qa.current,i=!1,o=(t.flags&Dt)!==Ae;if(o||AR(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=J1(r,cg)),r=$o(r),si(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return VR(t,u)}var f=a.children,v=a.fallback;if(i){var S=UR(t,f,v,n),b=t.child;return b.memoizedState=Sp(n),t.memoizedState=bp,S}else return Tp(t,f)}else{var w=e.memoizedState;if(w!==null){var _=w.dehydrated;if(_!==null)return BR(e,t,o,a,_,w,n)}if(i){var N=a.fallback,ae=a.children,De=zR(e,t,ae,N,n),Se=t.child,ht=e.child.memoizedState;return Se.memoizedState=ht===null?Sp(n):NR(ht,n),Se.childLanes=jR(e,n),t.memoizedState=bp,De}else{var ct=a.children,C=HR(e,t,ct,n);return t.memoizedState=null,C}}}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 UR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&pt)===ke&&i!==null?(l=i,l.childLanes=V,l.pendingProps=o,e.mode&jt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=yi(n,r,a,null)):(l=Ep(o,r),u=yi(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return r0(e,t,V,null)}function rb(e,t){return to(e,t)}function HR(e,t,n,a){var r=e.child,i=r.sibling,o=rb(r,{mode:"visible",children:n});if((t.mode&pt)===ke&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=wi):l.push(i)}return t.child=o,o}function zR(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&pt)===ke&&t.child!==o){var v=t.child;f=v,f.childLanes=V,f.pendingProps=u,t.mode&jt&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=rb(o,u),f.subtreeFlags=o.subtreeFlags&Rr;var S;return l!==null?S=to(l,a):(S=yi(a,i,r,null),S.flags|=Ln),S.return=t,f.return=t,f.sibling=S,t.child=f,S}function Lc(e,t,n,a){a!==null&&nv(a),zo(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=Ln,t.memoizedState=null,o}function FR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=yi(a,i,r,null);return u.flags|=Ln,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&pt)!==ke&&zo(t,e.child,null,r),u}function VR(e,t,n){return(e.mode&pt)===ke?(d("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=$e):Vd(t)?e.lanes=Ai:e.lanes=Ma,null}function BR(e,t,n,a,r,i,o){if(n)if(t.flags&Di){t.flags&=-257;var C=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Lc(e,t,o,C)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Dt,null;var A=a.children,x=a.fallback,P=FR(e,t,A,x,o),ce=t.child;return ce.memoizedState=Sp(o),t.memoizedState=bp,P}else{if(_1(),(t.mode&pt)===ke)return Lc(e,t,o,null);if(Vd(r)){var l,u,f;{var v=Wx(r);l=v.digest,u=v.message,f=v.stack}var S;u?S=new Error(u):S=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var b=up(S,l,f);return Lc(e,t,o,b)}var w=Sa(o,e.childLanes);if(Qa||w){var _=$c();if(_!==null){var N=KT(_,o);if(N!==An&&N!==i.retryLane){i.retryLane=N;var ae=Xt;va(e,N),Dn(_,e,N,ae)}}Pp();var De=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 Lc(e,t,o,De)}else if(Dy(r)){t.flags|=Dt,t.child=e.child;var Se=dD.bind(null,e);return Ix(r,Se),null}else{L1(t,r,i.treeContext);var ht=a.children,ct=Tp(t,ht);return ct.flags|=ki,ct}}}function ib(e,t,n){e.lanes=tt(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=tt(a.lanes,t)),dv(e.return,t,n)}function $R(e,t,n){for(var a=t;a!==null;){if(a.tag===ye){var r=a.memoizedState;r!==null&&ib(a,n,e)}else if(a.tag===Rt)ib(a,n,e);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function PR(e){for(var t=e,n=null;t!==null;){var a=t.alternate;a!==null&&sc(a)===null&&(n=t),t=t.sibling}return n}function YR(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&&!Mc[e]&&(e!=="collapsed"&&e!=="hidden"?(Mc[e]=!0,d('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Mc[e]=!0,d('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ob(e,t){{var n=st(e),a=!n&&typeof Bt(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 IR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(st(e)){for(var n=0;n<e.length;n++)if(!ob(e[n],n))return}else{var a=Bt(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(!ob(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 lb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;YR(r),WR(i,r),IR(o,r),na(e,t,o,n);var l=qa.current,u=Tv(l,vu);if(u)l=Ev(l,vu),t.flags|=Dt;else{var f=e!==null&&(e.flags&Dt)!==Ae;f&&$R(t,t.child,n),l=$o(l)}if(si(t,l),(t.mode&pt)===ke)t.memoizedState=null;else switch(r){case"forwards":{var v=PR(t.child),S;v===null?(S=t.child,t.child=null):(S=v.sibling,v.sibling=null),Cp(t,!1,S,v,i);break}case"backwards":{var b=null,w=t.child;for(t.child=null;w!==null;){var _=w.alternate;if(_!==null&&sc(_)===null){t.child=w;break}var N=w.sibling;w.sibling=b,b=w,w=N}Cp(t,!0,b,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function qR(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=zo(t,null,a,n):na(e,t,a,n),t.child}var ub=!1;function GR(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||ub||(ub=!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&&Ya(u,i,"prop","Context.Provider")}if(eg(t,r,l),o!==null){var f=o.value;if(Ca(f,l)){if(o.children===i.children&&!Vs())return jr(e,t,n)}else Y1(t,r,n)}var v=i.children;return na(e,t,v,n),t.child}var sb=!1;function XR(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(sb||(sb=!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."),Vo(t,n);var o=hn(a);El(t);var l;return Eu.current=t,ka(!0),l=i(o),ka(!1),bo(),t.flags|=mo,na(e,t,l,n),t.child}function Ru(){Qa=!0}function Oc(e,t){(t.mode&pt)===ke&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Ln)}function jr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),zg(),Hu(t.lanes),Sa(n,t.childLanes)?($1(e,t),t.child):null}function QR(e,t,n){{var a=t.return;if(a===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===a.child)a.child=n;else{var r=a.child;if(r===null)throw new Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw new Error("Expected to find the previous sibling.");r.sibling=n}var i=a.deletions;return i===null?(a.deletions=[e],a.flags|=wi):i.push(e),n.flags|=Ln,n}}function xp(e,t){var n=e.lanes;return!!Sa(n,t)}function KR(e,t,n){switch(t.tag){case le:tb(t),t.stateNode,Ho();break;case J:ug(t);break;case te:{var a=t.type;ur(a)&&$s(t);break}case Me:gv(t,t.stateNode.containerInfo);break;case it:{var r=t.memoizedProps.value,i=t.type._context;eg(t,i,r);break}case nt:{var o=Sa(n,t.childLanes);o&&(t.flags|=xt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case ye:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return si(t,$o(qa.current)),t.flags|=Dt,null;var f=t.child,v=f.childLanes;if(Sa(n,v))return ab(e,t,n);si(t,$o(qa.current));var S=jr(e,t,n);return S!==null?S.sibling:null}else si(t,$o(qa.current));break}case Rt:{var b=(e.flags&Dt)!==Ae,w=Sa(n,t.childLanes);if(b){if(w)return lb(e,t,n);t.flags|=Dt}var _=t.memoizedState;if(_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),si(t,qa.current),w)break;return null}case q:case Je:return t.lanes=V,Zg(e,t,n)}return jr(e,t,n)}function cb(e,t,n){if(t._debugNeedsRemount&&e!==null)return QR(e,t,em(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var a=e.memoizedProps,r=t.pendingProps;if(a!==r||Vs()||t.type!==e.type)Qa=!0;else{var i=xp(e,n);if(!i&&(t.flags&Dt)===Ae)return Qa=!1,KR(e,t,n);(e.flags&kf)!==Ae?Qa=!0:Qa=!1}}else if(Qa=!1,zn()&&E1(t)){var o=t.index,l=C1();zy(t,l,o)}switch(t.lanes=V,t.tag){case gt:return OR(e,t,t.type,n);case Ot:{var u=t.elementType;return MR(e,t,u,n)}case de:{var f=t.type,v=t.pendingProps,S=t.elementType===f?v:Xa(f,v);return hp(e,t,f,S,n)}case te:{var b=t.type,w=t.pendingProps,_=t.elementType===b?w:Xa(b,w);return eb(e,t,b,_,n)}case le:return DR(e,t,n);case J:return _R(e,t,n);case Ve:return kR(e,t);case ye:return ab(e,t,n);case Me:return qR(e,t,n);case _e:{var N=t.type,ae=t.pendingProps,De=t.elementType===N?ae:Xa(N,ae);return Xg(e,t,N,De,n)}case Ge:return xR(e,t,n);case Y:return RR(e,t,n);case nt:return wR(e,t,n);case it:return GR(e,t,n);case St:return XR(e,t,n);case j:{var Se=t.type,ht=t.pendingProps,ct=Xa(Se,ht);if(t.type!==t.elementType){var C=Se.propTypes;C&&Ya(C,ct,"prop",Ct(Se))}return ct=Xa(Se.type,ct),Qg(e,t,Se,ct,n)}case Q:return Kg(e,t,t.type,t.pendingProps,n);case bt:{var A=t.type,x=t.pendingProps,P=t.elementType===A?x:Xa(A,x);return LR(e,t,A,P,n)}case Rt:return lb(e,t,n);case Te:break;case q:return Zg(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|=xt}function fb(e){e.flags|=_i,e.flags|=Mf}var db,Rp,vb,pb;db=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===J||r.tag===Ve)bx(e,r.stateNode);else if(r.tag!==Me){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){},vb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=bv(),u=Tx(o,n,i,a,r,l);t.updateQueue=u,u&&Go(t)}},pb=function(e,t,n,a){n!==a&&Go(t)};function wu(e,t){if(!zn())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 Vn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=V,a=Ae;if(t){if((e.mode&jt)!==ke){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=tt(n,tt(f.lanes,f.childLanes)),a|=f.subtreeFlags&Rr,a|=f.flags&Rr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var v=e.child;v!==null;)n=tt(n,tt(v.lanes,v.childLanes)),a|=v.subtreeFlags&Rr,a|=v.flags&Rr,v.return=e,v=v.sibling;e.subtreeFlags|=a}else{if((e.mode&jt)!==ke){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=tt(n,tt(o.lanes,o.childLanes)),a|=o.subtreeFlags,a|=o.flags,r+=o.actualDuration,i+=o.treeBaseDuration,o=o.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(var l=e.child;l!==null;)n=tt(n,tt(l.lanes,l.childLanes)),a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;e.subtreeFlags|=a}return e.childLanes=n,t}function ZR(e,t,n){if(U1()&&(t.mode&pt)!==ke&&(t.flags&Dt)===Ae)return Wy(t),Ho(),t.flags|=Di|rs|Ba,!1;var a=qs(t);if(n!==null&&n.dehydrated!==null)if(e===null){if(!a)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(A1(t),Vn(t),(t.mode&jt)!==ke){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Ho(),(t.flags&Dt)===Ae&&(t.memoizedState=null),t.flags|=xt,Vn(t),(t.mode&jt)!==ke){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Iy(),!0}function mb(e,t,n){var a=t.pendingProps;switch(Kd(t),t.tag){case gt:case Ot:case Q:case de:case _e:case Ge:case Y:case nt:case St:case j:return Vn(t),null;case te:{var r=t.type;return ur(r)&&Bs(t),Vn(t),null}case le:{var i=t.stateNode;if(Bo(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)Go(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&Di)!==Ae)&&(t.flags|=ho,Iy())}}return Rp(e,t),Vn(t),null}case J:{Sv(t);var u=lg(),f=t.type;if(e!==null&&t.stateNode!=null)vb(e,t,f,a,u),e.ref!==t.ref&&fb(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 Vn(t),null}var v=bv(),S=qs(t);if(S)O1(t,u,v)&&Go(t);else{var b=gx(f,a,u,v,t);db(b,t,!1,!1),t.stateNode=b,Sx(b,f,a,u)&&Go(t)}t.ref!==null&&fb(t)}return Vn(t),null}case Ve:{var w=a;if(e&&t.stateNode!=null){var _=e.memoizedProps;pb(e,t,_,w)}else{if(typeof w!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var N=lg(),ae=bv(),De=qs(t);De?N1(t)&&Go(t):t.stateNode=Ex(w,N,ae,t)}return Vn(t),null}case ye:{Po(t);var Se=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var ht=ZR(e,t,Se);if(!ht)return t.flags&Ba?t:null}if((t.flags&Dt)!==Ae)return t.lanes=n,(t.mode&jt)!==ke&&Xv(t),t;var ct=Se!==null,C=e!==null&&e.memoizedState!==null;if(ct!==C&&ct){var A=t.child;if(A.flags|=Mi,(t.mode&pt)!==ke){var x=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);x||Tv(qa.current,cg)?Jw():Pp()}}var P=t.updateQueue;if(P!==null&&(t.flags|=xt),Vn(t),(t.mode&jt)!==ke&&ct){var ce=t.child;ce!==null&&(t.treeBaseDuration-=ce.treeBaseDuration)}return null}case Me:return Bo(t),Rp(e,t),e===null&&m1(t.stateNode.containerInfo),Vn(t),null;case it:var ie=t.type._context;return fv(ie,t),Vn(t),null;case bt:{var He=t.type;return ur(He)&&Bs(t),Vn(t),null}case Rt:{Po(t);var qe=t.memoizedState;if(qe===null)return Vn(t),null;var Ht=(t.flags&Dt)!==Ae,Tt=qe.rendering;if(Tt===null)if(Ht)wu(qe,!1);else{var fn=tD()&&(e===null||(e.flags&Dt)===Ae);if(!fn)for(var Et=t.child;Et!==null;){var un=sc(Et);if(un!==null){Ht=!0,t.flags|=Dt,wu(qe,!1);var Kn=un.updateQueue;return Kn!==null&&(t.updateQueue=Kn,t.flags|=xt),t.subtreeFlags=Ae,P1(t,n),si(t,Ev(qa.current,vu)),t.child}Et=Et.sibling}qe.tail!==null&&On()>Ub()&&(t.flags|=Dt,Ht=!0,wu(qe,!1),t.lanes=ph)}else{if(!Ht){var Wn=sc(Tt);if(Wn!==null){t.flags|=Dt,Ht=!0;var wa=Wn.updateQueue;if(wa!==null&&(t.updateQueue=wa,t.flags|=xt),wu(qe,!0),qe.tail===null&&qe.tailMode==="hidden"&&!Tt.alternate&&!zn())return Vn(t),null}else On()*2-qe.renderingStartTime>Ub()&&n!==Ma&&(t.flags|=Dt,Ht=!0,wu(qe,!1),t.lanes=ph)}if(qe.isBackwards)Tt.sibling=t.child,t.child=Tt;else{var ia=qe.last;ia!==null?ia.sibling=Tt:t.child=Tt,qe.last=Tt}}if(qe.tail!==null){var oa=qe.tail;qe.rendering=oa,qe.tail=oa.sibling,qe.renderingStartTime=On(),oa.sibling=null;var Zn=qa.current;return Ht?Zn=Ev(Zn,vu):Zn=$o(Zn),si(t,Zn),oa}return Vn(t),null}case Te:break;case q:case Je:{$p(t);var Vr=t.memoizedState,nl=Vr!==null;if(e!==null){var $u=e.memoizedState,hr=$u!==null;hr!==nl&&(t.flags|=Mi)}return!nl||(t.mode&pt)===ke?Vn(t):Sa(mr,Ma)&&(Vn(t),t.subtreeFlags&(Ln|xt)&&(t.flags|=Mi)),null}case re:return null;case me: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 JR(e,t,n){switch(Kd(t),t.tag){case te:{var a=t.type;ur(a)&&Bs(t);var r=t.flags;return r&Ba?(t.flags=r&-65537|Dt,(t.mode&jt)!==ke&&Xv(t),t):null}case le:{t.stateNode,Bo(t),qd(t),xv();var i=t.flags;return(i&Ba)!==Ae&&(i&Dt)===Ae?(t.flags=i&-65537|Dt,t):null}case J:return Sv(t),null;case ye:{Po(t);var o=t.memoizedState;if(o!==null&&o.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ho()}var l=t.flags;return l&Ba?(t.flags=l&-65537|Dt,(t.mode&jt)!==ke&&Xv(t),t):null}case Rt:return Po(t),null;case Me:return Bo(t),null;case it:var u=t.type._context;return fv(u,t),null;case q:case Je:return $p(t),null;case re:return null;default:return null}}function hb(e,t,n){switch(Kd(t),t.tag){case te:{var a=t.type.childContextTypes;a!=null&&Bs(t);break}case le:{t.stateNode,Bo(t),qd(t),xv();break}case J:{Sv(t);break}case Me:Bo(t);break;case ye:Po(t);break;case Rt:Po(t);break;case it:var r=t.type._context;fv(r,t);break;case q:case Je:$p(t);break}}var yb=null;yb=new Set;var Nc=!1,Bn=!1,ew=typeof WeakSet=="function"?WeakSet:Set,he=null,Xo=null,Qo=null;function tw(e){wf(null,function(){throw e}),Df()}var nw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&jt)try{vr(),t.componentWillUnmount()}finally{dr(e)}else t.componentWillUnmount()};function gb(e,t){try{di(Tn,e)}catch(n){Pt(e,t,n)}}function wp(e,t,n){try{nw(e,n)}catch(a){Pt(e,t,a)}}function aw(e,t,n){try{n.componentDidMount()}catch(a){Pt(e,t,a)}}function bb(e,t){try{Tb(e)}catch(n){Pt(e,t,n)}}function Ko(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Mt&&Ye&&e.mode&jt)try{vr(),a=n(null)}finally{dr(e)}else a=n(null)}catch(r){Pt(e,t,r)}typeof a=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Xe(e))}else n.current=null}function Ac(e,t,n){try{n()}catch(a){Pt(e,t,a)}}var Sb=!1;function rw(e,t){hx(e.containerInfo),he=t,iw();var n=Sb;return Sb=!1,n}function iw(){for(;he!==null;){var e=he,t=e.child;(e.subtreeFlags&Nf)!==Ae&&t!==null?(t.return=e,he=t):ow()}}function ow(){for(;he!==null;){var e=he;Zt(e);try{lw(e)}catch(n){Pt(e,e.return,n)}Mn();var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function lw(e){var t=e.alternate,n=e.flags;if((n&ho)!==Ae){switch(Zt(e),e.tag){case de:case _e:case Q:break;case te:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!Qi&&(i.props!==e.memoizedProps&&d("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(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.",Xe(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:Xa(e.type,a),r);{var l=yb;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.",Xe(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case le:{{var u=e.stateNode;Bx(u.containerInfo)}break}case J:case Ve:case Me:case bt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Mn()}}function Ka(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&Fn)!==pa?ET(t):(e&Tn)!==pa&&sh(t),(e&sr)!==pa&&Fu(!0),Ac(t,n,l),(e&sr)!==pa&&Fu(!1),(e&Fn)!==pa?CT():(e&Tn)!==pa&&ch())}o=o.next}while(o!==i)}}function di(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&Fn)!==pa?ST(t):(e&Tn)!==pa&&xT(t);var o=i.create;(e&sr)!==pa&&Fu(!0),i.destroy=o(),(e&sr)!==pa&&Fu(!1),(e&Fn)!==pa?TT():(e&Tn)!==pa&&RT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&Tn)!==Ae?u="useLayoutEffect":(i.tag&sr)!==Ae?u="useInsertionEffect":u="useEffect";var f=void 0;l===null?f=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?f=`
|
|
|
|
It looks like you wrote `+u+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
|
|
`+u+`(() => {
|
|
async function fetchData() {
|
|
// You can await here
|
|
const response = await MyAPI.getData(someId);
|
|
// ...
|
|
}
|
|
fetchData();
|
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
|
|
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:f=" You returned: "+l,d("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function uw(e,t){if((t.flags&xt)!==Ae)switch(t.tag){case nt:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Ug(),l=t.alternate===null?"mount":"update";jg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case le:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case nt:var v=u.stateNode;v.passiveEffectDuration+=n;break e}u=u.return}break}}}function sw(e,t,n,a){if((n.flags&Tl)!==Ae)switch(n.tag){case de:case _e:case Q:{if(!Bn)if(n.mode&jt)try{vr(),di(Tn|Sn,n)}finally{dr(n)}else di(Tn|Sn,n);break}case te:{var r=n.stateNode;if(n.flags&xt&&!Bn)if(t===null)if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(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.",Xe(n)||"instance")),n.mode&jt)try{vr(),r.componentDidMount()}finally{dr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Xa(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(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.",Xe(n)||"instance")),n.mode&jt)try{vr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{dr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(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.",Xe(n)||"instance")),og(n,l,r));break}case le:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case J:f=n.child.stateNode;break;case te:f=n.child.stateNode;break}og(n,u,f)}break}case J:{var v=n.stateNode;if(t===null&&n.flags&xt){var S=n.type,b=n.memoizedProps;Dx(v,S,b)}break}case Ve:break;case Me:break;case nt:{{var w=n.memoizedProps,_=w.onCommit,N=w.onRender,ae=n.stateNode.effectDuration,De=Ug(),Se=t===null?"mount":"update";jg()&&(Se="nested-update"),typeof N=="function"&&N(n.memoizedProps.id,Se,n.actualDuration,n.treeBaseDuration,n.actualStartTime,De);{typeof _=="function"&&_(n.memoizedProps.id,Se,ae,De),oD(n);var ht=n.return;e:for(;ht!==null;){switch(ht.tag){case le:var ct=ht.stateNode;ct.effectDuration+=ae;break e;case nt:var C=ht.stateNode;C.effectDuration+=ae;break e}ht=ht.return}}}break}case ye:{yw(e,n);break}case Rt:case bt:case Te:case q:case Je:case me: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.")}Bn||n.flags&_i&&Tb(n)}function cw(e){switch(e.tag){case de:case _e:case Q:{if(e.mode&jt)try{vr(),gb(e,e.return)}finally{dr(e)}else gb(e,e.return);break}case te:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aw(e,e.return,t),bb(e,e.return);break}case J:{bb(e,e.return);break}}}function fw(e,t){for(var n=null,a=e;;){if(a.tag===J){if(n===null){n=a;try{var r=a.stateNode;t?Hx(r):Fx(a.stateNode,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}}else if(a.tag===Ve){if(n===null)try{var i=a.stateNode;t?zx(i):Vx(i,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}else if(!((a.tag===q||a.tag===Je)&&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 Tb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case J:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&jt)try{vr(),r=t(a)}finally{dr(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.",Xe(e))}else t.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Xe(e)),t.current=a}}function dw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function Eb(e){var t=e.alternate;t!==null&&(e.alternate=null,Eb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===J){var n=e.stateNode;n!==null&&g1(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function vw(e){for(var t=e.return;t!==null;){if(Cb(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 Cb(e){return e.tag===J||e.tag===le||e.tag===Me}function xb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Cb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==J&&t.tag!==Ve&&t.tag!==lt;){if(t.flags&Ln||t.child===null||t.tag===Me)continue e;t.child.return=t,t=t.child}if(!(t.flags&Ln))return t.stateNode}}function pw(e){var t=vw(e);switch(t.tag){case J:{var n=t.stateNode;t.flags&as&&(wy(n),t.flags&=-33);var a=xb(e);_p(e,a,n);break}case le:case Me:{var r=t.stateNode.containerInfo,i=xb(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===J||a===Ve;if(r){var i=e.stateNode;t?Nx(n,i,t):Lx(n,i)}else if(a!==Me){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===J||a===Ve;if(r){var i=e.stateNode;t?Ox(n,i,t):Mx(n,i)}else if(a!==Me){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 $n=null,Za=!1;function mw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case J:{$n=a.stateNode,Za=!1;break e}case le:{$n=a.stateNode.containerInfo,Za=!0;break e}case Me:{$n=a.stateNode.containerInfo,Za=!0;break e}}a=a.return}if($n===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Rb(e,t,n),$n=null,Za=!1}dw(n)}function vi(e,t,n){for(var a=n.child;a!==null;)Rb(e,t,a),a=a.sibling}function Rb(e,t,n){switch(hT(n),n.tag){case J:Bn||Ko(n,t);case Ve:{{var a=$n,r=Za;$n=null,vi(e,t,n),$n=a,Za=r,$n!==null&&(Za?jx($n,n.stateNode):Ax($n,n.stateNode))}return}case lt:{$n!==null&&(Za?Ux($n,n.stateNode):Fd($n,n.stateNode));return}case Me:{{var i=$n,o=Za;$n=n.stateNode.containerInfo,Za=!0,vi(e,t,n),$n=i,Za=o}return}case de:case _e:case j:case Q:{if(!Bn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,v=f;do{var S=v,b=S.destroy,w=S.tag;b!==void 0&&((w&sr)!==pa?Ac(n,t,b):(w&Tn)!==pa&&(sh(n),n.mode&jt?(vr(),Ac(n,t,b),dr(n)):Ac(n,t,b),ch())),v=v.next}while(v!==f)}}}vi(e,t,n);return}case te:{if(!Bn){Ko(n,t);var _=n.stateNode;typeof _.componentWillUnmount=="function"&&wp(n,t,_)}vi(e,t,n);return}case Te:{vi(e,t,n);return}case q:{if(n.mode&pt){var N=Bn;Bn=N||n.memoizedState!==null,vi(e,t,n),Bn=N}else vi(e,t,n);break}default:{vi(e,t,n);return}}}function hw(e){e.memoizedState}function yw(e,t){var n=t.memoizedState;if(n===null){var a=t.alternate;if(a!==null){var r=a.memoizedState;if(r!==null){var i=r.dehydrated;i!==null&&t1(i)}}}}function wb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ew),t.forEach(function(a){var r=vD.bind(null,e,a);if(!n.has(a)){if(n.add(a),$a)if(Xo!==null&&Qo!==null)zu(Qo,Xo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function gw(e,t,n){Xo=n,Qo=e,Zt(t),Db(t,e),Zt(t),Xo=null,Qo=null}function Ja(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{mw(e,t,i)}catch(u){Pt(i,t,u)}}var o=Iu();if(t.subtreeFlags&Af)for(var l=t.child;l!==null;)Zt(l),Db(l,e),l=l.sibling;Zt(o)}function Db(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case de:case _e:case j:case Q:{if(Ja(t,e),pr(e),r&xt){try{Ka(sr|Sn,e,e.return),di(sr|Sn,e)}catch(He){Pt(e,e.return,He)}if(e.mode&jt){try{vr(),Ka(Tn|Sn,e,e.return)}catch(He){Pt(e,e.return,He)}dr(e)}else try{Ka(Tn|Sn,e,e.return)}catch(He){Pt(e,e.return,He)}}return}case te:{Ja(t,e),pr(e),r&_i&&a!==null&&Ko(a,a.return);return}case J:{Ja(t,e),pr(e),r&_i&&a!==null&&Ko(a,a.return);{if(e.flags&as){var i=e.stateNode;try{wy(i)}catch(He){Pt(e,e.return,He)}}if(r&xt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,f=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{_x(o,v,f,u,l,e)}catch(He){Pt(e,e.return,He)}}}}return}case Ve:{if(Ja(t,e),pr(e),r&xt){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 S=e.stateNode,b=e.memoizedProps,w=a!==null?a.memoizedProps:b;try{kx(S,w,b)}catch(He){Pt(e,e.return,He)}}return}case le:{if(Ja(t,e),pr(e),r&xt&&a!==null){var _=a.memoizedState;if(_.isDehydrated)try{e1(t.containerInfo)}catch(He){Pt(e,e.return,He)}}return}case Me:{Ja(t,e),pr(e);return}case ye:{Ja(t,e),pr(e);var N=e.child;if(N.flags&Mi){var ae=N.stateNode,De=N.memoizedState,Se=De!==null;if(ae.isHidden=Se,Se){var ht=N.alternate!==null&&N.alternate.memoizedState!==null;ht||Zw()}}if(r&xt){try{hw(e)}catch(He){Pt(e,e.return,He)}wb(e)}return}case q:{var ct=a!==null&&a.memoizedState!==null;if(e.mode&pt){var C=Bn;Bn=C||ct,Ja(t,e),Bn=C}else Ja(t,e);if(pr(e),r&Mi){var A=e.stateNode,x=e.memoizedState,P=x!==null,ce=e;if(A.isHidden=P,P&&!ct&&(ce.mode&pt)!==ke){he=ce;for(var ie=ce.child;ie!==null;)he=ie,Sw(ie),ie=ie.sibling}fw(ce,P)}return}case Rt:{Ja(t,e),pr(e),r&xt&&wb(e);return}case Te:return;default:{Ja(t,e),pr(e);return}}}function pr(e){var t=e.flags;if(t&Ln){try{pw(e)}catch(n){Pt(e,e.return,n)}e.flags&=-3}t&ki&&(e.flags&=-4097)}function bw(e,t,n){Xo=n,Qo=t,he=e,_b(e,t,n),Xo=null,Qo=null}function _b(e,t,n){for(var a=(e.mode&pt)!==ke;he!==null;){var r=he,i=r.child;if(r.tag===q&&a){var o=r.memoizedState!==null,l=o||Nc;if(l){kp(e,t,n);continue}else{var u=r.alternate,f=u!==null&&u.memoizedState!==null,v=f||Bn,S=Nc,b=Bn;Nc=l,Bn=v,Bn&&!b&&(he=r,Tw(r));for(var w=i;w!==null;)he=w,_b(w,t,n),w=w.sibling;he=r,Nc=S,Bn=b,kp(e,t,n);continue}}(r.subtreeFlags&Tl)!==Ae&&i!==null?(i.return=r,he=i):kp(e,t,n)}}function kp(e,t,n){for(;he!==null;){var a=he;if((a.flags&Tl)!==Ae){var r=a.alternate;Zt(a);try{sw(t,r,a,n)}catch(o){Pt(a,a.return,o)}Mn()}if(a===e){he=null;return}var i=a.sibling;if(i!==null){i.return=a.return,he=i;return}he=a.return}}function Sw(e){for(;he!==null;){var t=he,n=t.child;switch(t.tag){case de:case _e:case j:case Q:{if(t.mode&jt)try{vr(),Ka(Tn,t,t.return)}finally{dr(t)}else Ka(Tn,t,t.return);break}case te:{Ko(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wp(t,t.return,a);break}case J:{Ko(t,t.return);break}case q:{var r=t.memoizedState!==null;if(r){kb(e);continue}break}}n!==null?(n.return=t,he=n):kb(e)}}function kb(e){for(;he!==null;){var t=he;if(t===e){he=null;return}var n=t.sibling;if(n!==null){n.return=t.return,he=n;return}he=t.return}}function Tw(e){for(;he!==null;){var t=he,n=t.child;if(t.tag===q){var a=t.memoizedState!==null;if(a){Mb(e);continue}}n!==null?(n.return=t,he=n):Mb(e)}}function Mb(e){for(;he!==null;){var t=he;Zt(t);try{cw(t)}catch(a){Pt(t,t.return,a)}if(Mn(),t===e){he=null;return}var n=t.sibling;if(n!==null){n.return=t.return,he=n;return}he=t.return}}function Ew(e,t,n,a){he=t,Cw(t,e,n,a)}function Cw(e,t,n,a){for(;he!==null;){var r=he,i=r.child;(r.subtreeFlags&yo)!==Ae&&i!==null?(i.return=r,he=i):xw(e,t,n,a)}}function xw(e,t,n,a){for(;he!==null;){var r=he;if((r.flags&Gr)!==Ae){Zt(r);try{Rw(t,r,n,a)}catch(o){Pt(r,r.return,o)}Mn()}if(r===e){he=null;return}var i=r.sibling;if(i!==null){i.return=r.return,he=i;return}he=r.return}}function Rw(e,t,n,a){switch(t.tag){case de:case _e:case Q:{if(t.mode&jt){Gv();try{di(Fn|Sn,t)}finally{qv(t)}}else di(Fn|Sn,t);break}}}function ww(e){he=e,Dw()}function Dw(){for(;he!==null;){var e=he,t=e.child;if((he.flags&wi)!==Ae){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];he=r,Mw(r,e)}{var i=e.alternate;if(i!==null){var o=i.child;if(o!==null){i.child=null;do{var l=o.sibling;o.sibling=null,o=l}while(o!==null)}}}he=e}}(e.subtreeFlags&yo)!==Ae&&t!==null?(t.return=e,he=t):_w()}}function _w(){for(;he!==null;){var e=he;(e.flags&Gr)!==Ae&&(Zt(e),kw(e),Mn());var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function kw(e){switch(e.tag){case de:case _e:case Q:{e.mode&jt?(Gv(),Ka(Fn|Sn,e,e.return),qv(e)):Ka(Fn|Sn,e,e.return);break}}}function Mw(e,t){for(;he!==null;){var n=he;Zt(n),Ow(n,t),Mn();var a=n.child;a!==null?(a.return=n,he=a):Lw(e)}}function Lw(e){for(;he!==null;){var t=he,n=t.sibling,a=t.return;if(Eb(t),t===e){he=null;return}if(n!==null){n.return=a,he=n;return}he=a}}function Ow(e,t){switch(e.tag){case de:case _e:case Q:{e.mode&jt?(Gv(),Ka(Fn,e,t),qv(e)):Ka(Fn,e,t);break}}}function Nw(e){switch(e.tag){case de:case _e:case Q:{try{di(Tn|Sn,e)}catch(n){Pt(e,e.return,n)}break}case te:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Pt(e,e.return,n)}break}}}function Aw(e){switch(e.tag){case de:case _e:case Q:{try{di(Fn|Sn,e)}catch(t){Pt(e,e.return,t)}break}}}function jw(e){switch(e.tag){case de:case _e:case Q:{try{Ka(Tn|Sn,e,e.return)}catch(n){Pt(e,e.return,n)}break}case te:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&wp(e,e.return,t);break}}}function Uw(e){switch(e.tag){case de:case _e:case Q:try{Ka(Fn|Sn,e,e.return)}catch(t){Pt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Du=Symbol.for;Du("selector.component"),Du("selector.has_pseudo_class"),Du("selector.role"),Du("selector.test_id"),Du("selector.text")}var Hw=[];function zw(){Hw.forEach(function(e){return e()})}var Fw=Ee.ReactCurrentActQueue;function Vw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function Lb(){{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,Mp=Ee.ReactCurrentDispatcher,Lp=Ee.ReactCurrentOwner,Pn=Ee.ReactCurrentBatchConfig,er=Ee.ReactCurrentActQueue,xn=0,Ob=1,Yn=2,Ua=4,Ur=0,_u=1,Ki=2,jc=3,ku=4,Nb=5,Op=6,mt=xn,aa=null,tn=null,Rn=V,mr=V,Np=ai(V),wn=Ur,Mu=null,Uc=V,Lu=V,Hc=V,Ou=null,ma=null,Ap=0,Ab=500,jb=1/0,$w=500,Hr=null;function Nu(){jb=On()+$w}function Ub(){return jb}var zc=!1,jp=null,Zo=null,Zi=!1,pi=null,Au=V,Up=[],Hp=null,Pw=50,ju=0,zp=null,Fp=!1,Fc=!1,Yw=50,Jo=0,Vc=null,Uu=Xt,Bc=V,Hb=!1;function $c(){return aa}function ra(){return(mt&(Yn|Ua))!==xn?On():(Uu!==Xt||(Uu=On()),Uu)}function mi(e){var t=e.mode;if((t&pt)===ke)return $e;if((mt&Yn)!==xn&&Rn!==V)return _l(Rn);var n=F1()!==z1;if(n){if(Pn.transition!==null){var a=Pn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return Bc===An&&(Bc=gh()),Bc}var r=Pa();if(r!==An)return r;var i=Cx();return i}function Ww(e){var t=e.mode;return(t&pt)===ke?$e:qT()}function Dn(e,t,n,a){mD(),Hb&&d("useInsertionEffect must not schedule updates."),Fp&&(Fc=!0),kl(e,n,a),(mt&Yn)!==V&&e===aa?gD(t):($a&&Th(e,t,n),bD(t),e===aa&&((mt&Yn)===xn&&(Lu=tt(Lu,n)),wn===ku&&hi(e,Rn)),ha(e,a),n===$e&&mt===xn&&(t.mode&pt)===ke&&!er.isBatchingLegacy&&(Nu(),Hy()))}function Iw(e,t,n){var a=e.current;a.lanes=t,kl(e,t,n),ha(e,n)}function qw(e){return(mt&Yn)!==xn}function ha(e,t){var n=e.callbackNode;BT(e,t);var a=ss(e,e===aa?Rn:V);if(a===V){n!==null&&Jb(n),e.callbackNode=null,e.callbackPriority=An;return}var r=Ui(a),i=e.callbackPriority;if(i===r&&!(er.current!==null&&n!==Ip)){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&&Jb(n);var o;if(r===$e)e.tag===ri?(er.isBatchingLegacy!==null&&(er.didScheduleLegacyUpdate=!0),T1(Vb.bind(null,e))):Uy(Vb.bind(null,e)),er.current!==null?er.current.push(ii):Rx(function(){(mt&(Yn|Ua))===xn&&ii()}),o=null;else{var l;switch(xh(a)){case Ta:l=is;break;case Dr:l=jf;break;case _r:l=Ni;break;case ds:l=Uf;break;default:l=Ni;break}o=qp(l,zb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function zb(e,t){if(fR(),Uu=Xt,Bc=V,(mt&(Yn|Ua))!==xn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Fr();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===aa?Rn:V);if(r===V)return null;var i=!cs(e,r)&&!IT(e,r)&&!t,o=i?aD(e,r):Yc(e,r);if(o!==Ur){if(o===Ki){var l=rd(e);l!==V&&(r=l,o=Vp(e,l))}if(o===_u){var u=Mu;throw Ji(e,V),hi(e,r),ha(e,On()),u}if(o===Op)hi(e,r);else{var f=!cs(e,r),v=e.current.alternate;if(f&&!Xw(v)){if(o=Yc(e,r),o===Ki){var S=rd(e);S!==V&&(r=S,o=Vp(e,S))}if(o===_u){var b=Mu;throw Ji(e,V),hi(e,r),ha(e,On()),b}}e.finishedWork=v,e.finishedLanes=r,Gw(e,o,r)}}return ha(e,On()),e.callbackNode===n?zb.bind(null,e):null}function Vp(e,t){var n=Ou;if(vs(e)){var a=Ji(e,t);a.flags|=Di,p1(e.containerInfo)}var r=Yc(e,t);if(r!==Ki){var i=ma;ma=n,i!==null&&Fb(i)}return r}function Fb(e){ma===null?ma=e:ma.push.apply(ma,e)}function Gw(e,t,n){switch(t){case Ur:case _u:throw new Error("Root did not complete. This is a bug in React.");case Ki:{eo(e,ma,Hr);break}case jc:{if(hi(e,n),hh(n)&&!e0()){var a=Ap+Ab-On();if(a>10){var r=ss(e,V);if(r!==V)break;var i=e.suspendedLanes;if(!Co(i,n)){ra(),Sh(e,i);break}e.timeoutHandle=Hd(eo.bind(null,e,ma,Hr),a);break}}eo(e,ma,Hr);break}case ku:{if(hi(e,n),WT(n))break;if(!e0()){var o=FT(e,n),l=o,u=On()-l,f=pD(u)-u;if(f>10){e.timeoutHandle=Hd(eo.bind(null,e,ma,Hr),f);break}}eo(e,ma,Hr);break}case Nb:{eo(e,ma,Hr);break}default:throw new Error("Unknown root exit status.")}}function Xw(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(!Ca(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 hi(e,t){t=fs(t,Hc),t=fs(t,Lu),XT(e,t)}function Vb(e){if(dR(),(mt&(Yn|Ua))!==xn)throw new Error("Should not already be working.");Fr();var t=ss(e,V);if(!Sa(t,$e))return ha(e,On()),null;var n=Yc(e,t);if(e.tag!==ri&&n===Ki){var a=rd(e);a!==V&&(t=a,n=Vp(e,a))}if(n===_u){var r=Mu;throw Ji(e,V),hi(e,t),ha(e,On()),r}if(n===Op)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,eo(e,ma,Hr),ha(e,On()),null}function Qw(e,t){t!==V&&(ud(e,tt(t,$e)),ha(e,On()),(mt&(Yn|Ua))===xn&&(Nu(),ii()))}function Bp(e,t){var n=mt;mt|=Ob;try{return e(t)}finally{mt=n,mt===xn&&!er.isBatchingLegacy&&(Nu(),Hy())}}function Kw(e,t,n,a,r){var i=Pa(),o=Pn.transition;try{return Pn.transition=null,jn(Ta),e(t,n,a,r)}finally{jn(i),Pn.transition=o,mt===xn&&Nu()}}function zr(e){pi!==null&&pi.tag===ri&&(mt&(Yn|Ua))===xn&&Fr();var t=mt;mt|=Ob;var n=Pn.transition,a=Pa();try{return Pn.transition=null,jn(Ta),e?e():void 0}finally{jn(a),Pn.transition=n,mt=t,(mt&(Yn|Ua))===xn&&ii()}}function Bb(){return(mt&(Yn|Ua))!==xn}function Pc(e,t){Xn(Np,mr,e),mr=tt(mr,t)}function $p(e){mr=Np.current,Gn(Np,e)}function Ji(e,t){e.finishedWork=null,e.finishedLanes=V;var n=e.timeoutHandle;if(n!==zd&&(e.timeoutHandle=zd,xx(n)),tn!==null)for(var a=tn.return;a!==null;){var r=a.alternate;hb(r,a),a=a.return}aa=e;var i=to(e.current,null);return tn=i,Rn=mr=t,wn=Ur,Mu=null,Uc=V,Lu=V,Hc=V,Ou=null,ma=null,I1(),Ia.discardPendingWarnings(),i}function $b(e,t){do{var n=tn;try{if(Js(),dg(),Mn(),Lp.current=null,n===null||n.return===null){wn=_u,Mu=t,tn=null;return}if(Mt&&n.mode&jt&&_c(n,!0),Kt)if(bo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;DT(n,a,Rn)}else wT(n,t,Rn);TR(e,n.return,n,t,Rn),Ib(n)}catch(r){t=r,tn===n&&n!==null?(n=n.return,tn=n):n=tn;continue}return}while(!0)}function Pb(){var e=Mp.current;return Mp.current=Cc,e===null?Cc:e}function Yb(e){Mp.current=e}function Zw(){Ap=On()}function Hu(e){Uc=tt(e,Uc)}function Jw(){wn===Ur&&(wn=jc)}function Pp(){(wn===Ur||wn===jc||wn===Ki)&&(wn=ku),aa!==null&&(id(Uc)||id(Lu))&&hi(aa,Rn)}function eD(e){wn!==ku&&(wn=Ki),Ou===null?Ou=[e]:Ou.push(e)}function tD(){return wn===Ur}function Yc(e,t){var n=mt;mt|=Yn;var a=Pb();if(aa!==e||Rn!==t){if($a){var r=e.memoizedUpdaters;r.size>0&&(zu(e,Rn),r.clear()),Eh(e,t)}Hr=Ch(),Ji(e,t)}fh(t);do try{nD();break}catch(i){$b(e,i)}while(!0);if(Js(),mt=n,Yb(a),tn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return dh(),aa=null,Rn=V,wn}function nD(){for(;tn!==null;)Wb(tn)}function aD(e,t){var n=mt;mt|=Yn;var a=Pb();if(aa!==e||Rn!==t){if($a){var r=e.memoizedUpdaters;r.size>0&&(zu(e,Rn),r.clear()),Eh(e,t)}Hr=Ch(),Nu(),Ji(e,t)}fh(t);do try{rD();break}catch(i){$b(e,i)}while(!0);return Js(),Yb(a),mt=n,tn!==null?(OT(),Ur):(dh(),aa=null,Rn=V,wn)}function rD(){for(;tn!==null&&!oT();)Wb(tn)}function Wb(e){var t=e.alternate;Zt(e);var n;(e.mode&jt)!==ke?(Iv(e),n=Yp(t,e,mr),_c(e,!0)):n=Yp(t,e,mr),Mn(),e.memoizedProps=e.pendingProps,n===null?Ib(e):tn=n,Lp.current=null}function Ib(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&rs)===Ae){Zt(t);var r=void 0;if((t.mode&jt)===ke?r=mb(n,t,mr):(Iv(t),r=mb(n,t,mr),_c(t,!1)),Mn(),r!==null){tn=r;return}}else{var i=JR(n,t);if(i!==null){i.flags&=eT,tn=i;return}if((t.mode&jt)!==ke){_c(t,!1);for(var o=t.actualDuration,l=t.child;l!==null;)o+=l.actualDuration,l=l.sibling;t.actualDuration=o}if(a!==null)a.flags|=rs,a.subtreeFlags=Ae,a.deletions=null;else{wn=Op,tn=null;return}}var u=t.sibling;if(u!==null){tn=u;return}t=a,tn=t}while(t!==null);wn===Ur&&(wn=Nb)}function eo(e,t,n){var a=Pa(),r=Pn.transition;try{Pn.transition=null,jn(Ta),iD(e,t,n,a)}finally{Pn.transition=r,jn(a)}return null}function iD(e,t,n,a){do Fr();while(pi!==null);if(hD(),(mt&(Yn|Ua))!==xn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(bT(i),r===null)return uh(),null;if(i===V&&d("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=V,r===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=An;var o=tt(r.lanes,r.childLanes);QT(e,o),e===aa&&(aa=null,tn=null,Rn=V),((r.subtreeFlags&yo)!==Ae||(r.flags&yo)!==Ae)&&(Zi||(Zi=!0,Hp=n,qp(Ni,function(){return Fr(),null})));var l=(r.subtreeFlags&(Nf|Af|Tl|yo))!==Ae,u=(r.flags&(Nf|Af|Tl|yo))!==Ae;if(l||u){var f=Pn.transition;Pn.transition=null;var v=Pa();jn(Ta);var S=mt;mt|=Ua,Lp.current=null,rw(e,r),Hg(),gw(e,r,i),yx(e.containerInfo),e.current=r,_T(i),bw(r,e,i),kT(),lT(),mt=S,jn(v),Pn.transition=f}else e.current=r,Hg();var b=Zi;if(Zi?(Zi=!1,pi=e,Au=i):(Jo=0,Vc=null),o=e.pendingLanes,o===V&&(Zo=null),b||Qb(e.current,!1),pT(r.stateNode,a),$a&&e.memoizedUpdaters.clear(),zw(),ha(e,On()),t!==null)for(var w=e.onRecoverableError,_=0;_<t.length;_++){var N=t[_],ae=N.stack,De=N.digest;w(N.value,{componentStack:ae,digest:De})}if(zc){zc=!1;var Se=jp;throw jp=null,Se}return Sa(Au,$e)&&e.tag!==ri&&Fr(),o=e.pendingLanes,Sa(o,$e)?(cR(),e===zp?ju++:(ju=0,zp=e)):ju=0,ii(),uh(),null}function Fr(){if(pi!==null){var e=xh(Au),t=eE(_r,e),n=Pn.transition,a=Pa();try{return Pn.transition=null,jn(t),lD()}finally{jn(a),Pn.transition=n}}return!1}function oD(e){Up.push(e),Zi||(Zi=!0,qp(Ni,function(){return Fr(),null}))}function lD(){if(pi===null)return!1;var e=Hp;Hp=null;var t=pi,n=Au;if(pi=null,Au=V,(mt&(Yn|Ua))!==xn)throw new Error("Cannot flush passive effects while already rendering.");Fp=!0,Fc=!1,MT(n);var a=mt;mt|=Ua,ww(t.current),Ew(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];uw(t,o)}}LT(),Qb(t.current,!0),mt=a,ii(),Fc?t===Vc?Jo++:(Jo=0,Vc=t):Jo=0,Fp=!1,Fc=!1,mT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function qb(e){return Zo!==null&&Zo.has(e)}function uD(e){Zo===null?Zo=new Set([e]):Zo.add(e)}function sD(e){zc||(zc=!0,jp=e)}var cD=sD;function Gb(e,t,n){var a=Xi(n,t),r=Wg(e,a,$e),i=li(e,r,$e),o=ra();i!==null&&(kl(i,$e,o),ha(i,o))}function Pt(e,t,n){if(tw(n),Fu(!1),e.tag===le){Gb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===le){Gb(a,e,n);return}else if(a.tag===te){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!qb(i)){var o=Xi(n,e),l=cp(a,o,$e),u=li(a,l,$e),f=ra();u!==null&&(kl(u,$e,f),ha(u,f));return}}a=a.return}d(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
|
|
Error message:
|
|
|
|
%s`,n)}function fD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ra();Sh(e,n),SD(e),aa===e&&Co(Rn,n)&&(wn===ku||wn===jc&&hh(Rn)&&On()-Ap<Ab?Ji(e,V):Hc=tt(Hc,n)),ha(e,r)}function Xb(e,t){t===An&&(t=Ww(e));var n=ra(),a=va(e,t);a!==null&&(kl(a,t,n),ha(a,n))}function dD(e){var t=e.memoizedState,n=An;t!==null&&(n=t.retryLane),Xb(e,n)}function vD(e,t){var n=An,a;switch(e.tag){case ye:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case Rt: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),Xb(e,n)}function pD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Bw(e/1960)*1960}function mD(){if(ju>Pw)throw ju=0,zp=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>Yw&&(Jo=0,Vc=null,d("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function hD(){Ia.flushLegacyContextWarning(),Ia.flushPendingUnsafeLifecycleWarnings()}function Qb(e,t){Zt(e),Wc(e,Xr,jw),t&&Wc(e,Of,Uw),Wc(e,Xr,Nw),t&&Wc(e,Of,Aw),Mn()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==Ae?a=a.child:((a.flags&t)!==Ae&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Ic=null;function Kb(e){{if((mt&Yn)!==xn||!(e.mode&pt))return;var t=e.tag;if(t!==gt&&t!==le&&t!==te&&t!==de&&t!==_e&&t!==j&&t!==Q)return;var n=Xe(e)||"ReactComponent";if(Ic!==null){if(Ic.has(n))return;Ic.add(n)}else Ic=new Set([n]);var a=Jn;try{Zt(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?Zt(e):Mn()}}}var Yp;{var yD=null;Yp=function(e,t,n){var a=i0(yD,t);try{return cb(e,t,n)}catch(i){if(k1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Js(),dg(),hb(e,t),i0(t,a),t.mode&jt&&Iv(t),wf(null,cb,null,e,t,n),KS()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var Zb=!1,Wp;Wp=new Set;function gD(e){if(Ei&&!lR())switch(e.tag){case de:case _e:case Q:{var t=tn&&Xe(tn)||"Unknown",n=t;if(!Wp.has(n)){Wp.add(n);var a=Xe(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 te:{Zb||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Zb=!0);break}}}function zu(e,t){if($a){var n=e.memoizedUpdaters;n.forEach(function(a){Th(e,a,t)})}}var Ip={};function qp(e,t){{var n=er.current;return n!==null?(n.push(t),Ip):lh(e,t)}}function Jb(e){if(e!==Ip)return iT(e)}function e0(){return er.current!==null}function bD(e){{if(e.mode&pt){if(!Lb())return}else if(!Vw()||mt!==xn||e.tag!==de&&e.tag!==_e&&e.tag!==Q)return;if(er.current===null){var t=Jn;try{Zt(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`,Xe(e))}finally{t?Zt(e):Mn()}}}}function SD(e){e.tag!==ri&&Lb()&&er.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){Hb=e}var Ha=null,el=null,TD=function(e){Ha=e};function tl(e){{if(Ha===null)return e;var t=Ha(e);return t===void 0?e:t.current}}function Gp(e){return tl(e)}function Xp(e){{if(Ha===null)return e;var t=Ha(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=tl(e.render);if(e.render!==n){var a={$$typeof:m,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function t0(e,t){{if(Ha===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 te:{typeof a=="function"&&(r=!0);break}case de:{(typeof a=="function"||i===M)&&(r=!0);break}case _e:{(i===m||i===M)&&(r=!0);break}case j:case Q:{(i===T||i===M)&&(r=!0);break}default:return!1}if(r){var o=Ha(n);if(o!==void 0&&o===Ha(a))return!0}return!1}}function n0(e){{if(Ha===null||typeof WeakSet!="function")return;el===null&&(el=new WeakSet),el.add(e)}}var ED=function(e,t){{if(Ha===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Fr(),zr(function(){Qp(e.current,a,n)})}},CD=function(e,t){{if(e.context!==xa)return;Fr(),zr(function(){Vu(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 de:case Q:case te:u=l;break;case _e:u=l.render;break}if(Ha===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,v=!1;if(u!==null){var S=Ha(u);S!==void 0&&(n.has(S)?v=!0:t.has(S)&&(o===te?v=!0:f=!0))}if(el!==null&&(el.has(e)||a!==null&&el.has(a))&&(v=!0),v&&(e._debugNeedsRemount=!0),v||f){var b=va(e,$e);b!==null&&Dn(b,e,$e,Xt)}r!==null&&!v&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var xD=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 de:case Q:case te:l=o;break;case _e:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?RD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function RD(e,t){{var n=wD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case J:t.add(a.stateNode);return;case Me:t.add(a.stateNode.containerInfo);return;case le:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function wD(e,t){for(var n=e,a=!1;;){if(n.tag===J)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 a0=Object.preventExtensions({})}catch{Zp=!0}}function DD(e,t,n,a){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=a,this.flags=Ae,this.subtreeFlags=Ae,this.deletions=null,this.lanes=V,this.childLanes=V,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 Ra=function(e,t,n,a){return new DD(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _D(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Jp(e)?te:de;if(e!=null){var t=e.$$typeof;if(t===m)return _e;if(t===T)return j}return gt}function to(e,t){var n=e.alternate;n===null?(n=Ra(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=Ae,n.subtreeFlags=Ae,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Rr,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 gt:case de:case Q:n.type=tl(e.type);break;case te:n.type=Gp(e.type);break;case _e:n.type=Xp(e.type);break}return n}function MD(e,t){e.flags&=Rr|Ln;var n=e.alternate;if(n===null)e.childLanes=V,e.lanes=t,e.child=null,e.subtreeFlags=Ae,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=Ae,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var a=n.dependencies;e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function LD(e,t,n){var a;return e===Ps?(a=pt,t===!0&&(a|=ln,a|=ir)):a=ke,$a&&(a|=jt),Ra(le,null,null,a)}function em(e,t,n,a,r,i){var o=gt,l=e;if(typeof e=="function")Jp(e)?(o=te,l=Gp(l)):l=tl(l);else if(typeof e=="string")o=J;else e:switch(e){case Da:return yi(n.children,r,i,t);case gr:o=Y,r|=ln,(r&pt)!==ke&&(r|=ir);break;case y:return OD(n,r,i,t);case g:return ND(n,r,i,t);case E:return AD(n,r,i,t);case Ue:return r0(n,r,i,t);case B:case L:case Ce:case et:case z:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:o=it;break e;case c:o=St;break e;case m:o=_e,l=Xp(l);break e;case T:o=j;break e;case M:o=Ot,l=null;break e}var u="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var f=a?Xe(a):null;f&&(u+=`
|
|
|
|
Check the render method of \``+f+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var v=Ra(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 yi(e,t,n,a){var r=Ra(Ge,e,a,t);return r.lanes=n,r}function OD(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=Ra(nt,e,a,t|jt);return r.elementType=y,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function ND(e,t,n,a){var r=Ra(ye,e,a,t);return r.elementType=g,r.lanes=n,r}function AD(e,t,n,a){var r=Ra(Rt,e,a,t);return r.elementType=E,r.lanes=n,r}function r0(e,t,n,a){var r=Ra(q,e,a,t);r.elementType=Ue,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Ra(Ve,e,null,t);return a.lanes=n,a}function jD(){var e=Ra(J,null,null,ke);return e.elementType="DELETED",e}function UD(e){var t=Ra(lt,null,null,ke);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Ra(Me,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function i0(e,t){return e===null&&(e=Ra(gt,null,null,ke)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function 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=zd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=An,this.eventTimes=ld(V),this.expirationTimes=ld(Xt),this.pendingLanes=V,this.suspendedLanes=V,this.pingedLanes=V,this.expiredLanes=V,this.mutableReadLanes=V,this.finishedLanes=V,this.entangledLanes=V,this.entanglements=ld(V),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<zf;o++)i.push(new Set)}switch(t){case Ps:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case ri:this._debugRootType=n?"hydrate()":"render()";break}}function o0(e,t,n,a,r,i,o,l,u,f){var v=new HD(e,t,n,l,u),S=LD(t,i);v.current=S,S.stateNode=v;{var b={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};S.memoizedState=b}return hv(S),v}var rm="18.3.1";function zD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return U(a),{$$typeof:kn,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function l0(e){if(!e)return xa;var t=po(e),n=S1(t);if(t.tag===te){var a=t.type;if(ur(a))return Ay(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=rh(n);if(r===null)return null;if(r.mode&ln){var i=Xe(n)||"Component";if(!om[i]){om[i]=!0;var o=Jn;try{Zt(r),n.mode&ln?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?Zt(o):Mn()}}}return r.stateNode}}function u0(e,t,n,a,r,i,o,l){var u=!1,f=null;return o0(e,t,u,f,n,a,r,i,o)}function s0(e,t,n,a,r,i,o,l,u,f){var v=!0,S=o0(n,a,v,e,r,i,o,l,u);S.context=l0(null);var b=S.current,w=ra(),_=mi(b),N=Ar(w,_);return N.callback=t??null,li(b,N,_),Iw(S,_,w),S}function Vu(e,t,n,a){vT(t,e);var r=t.current,i=ra(),o=mi(r);NT(o);var l=l0(n);t.context===null?t.context=l:t.pendingContext=l,Ei&&Jn!==null&&!im&&(im=!0,d(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
|
|
Check the render method of %s.`,Xe(Jn)||"Unknown"));var u=Ar(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=li(r,u,o);return f!==null&&(Dn(f,r,o,i),rc(f,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case J:return t.child.stateNode;default:return t.child.stateNode}}function VD(e){switch(e.tag){case le:{var t=e.stateNode;if(vs(t)){var n=$T(t);Qw(t,n)}break}case ye:{zr(function(){var r=va(e,$e);if(r!==null){var i=ra();Dn(r,e,$e,i)}});var a=$e;lm(e,a);break}}}function c0(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=GT(n.retryLane,t))}function lm(e,t){c0(e,t);var n=e.alternate;n&&c0(n,t)}function BD(e){if(e.tag===ye){var t=Rl,n=va(e,t);if(n!==null){var a=ra();Dn(n,e,t,a)}lm(e,t)}}function $D(e){if(e.tag===ye){var t=mi(e),n=va(e,t);if(n!==null){var a=ra();Dn(n,e,t,a)}lm(e,t)}}function f0(e){var t=rT(e);return t===null?null:t.stateNode}var d0=function(e){return null};function PD(e){return d0(e)}var v0=function(e){return!1};function YD(e){return v0(e)}var p0=null,m0=null,h0=null,y0=null,g0=null,b0=null,S0=null,T0=null,E0=null;{var C0=function(e,t,n){var a=t[n],r=st(e)?e.slice():Be({},e);return n+1===t.length?(st(r)?r.splice(a,1):delete r[a],r):(r[a]=C0(e[a],t,n+1),r)},x0=function(e,t){return C0(e,t,0)},R0=function(e,t,n,a){var r=t[a],i=st(e)?e.slice():Be({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],st(i)?i.splice(r,1):delete i[r]}else i[r]=R0(e[r],t,n,a+1);return i},w0=function(e,t,n){if(t.length!==n.length){se("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){se("copyWithRename() expects paths to be the same except for the deepest key");return}return R0(e,t,n,0)},D0=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=st(e)?e.slice():Be({},e);return i[r]=D0(e[r],t,n+1,a),i},_0=function(e,t,n){return D0(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};p0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=_0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Be({},e.memoizedProps);var o=va(e,$e);o!==null&&Dn(o,e,$e,Xt)}},m0=function(e,t,n){var a=um(e,t);if(a!==null){var r=x0(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=Be({},e.memoizedProps);var i=va(e,$e);i!==null&&Dn(i,e,$e,Xt)}},h0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=w0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Be({},e.memoizedProps);var o=va(e,$e);o!==null&&Dn(o,e,$e,Xt)}},y0=function(e,t,n){e.pendingProps=_0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=va(e,$e);a!==null&&Dn(a,e,$e,Xt)},g0=function(e,t){e.pendingProps=x0(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=va(e,$e);n!==null&&Dn(n,e,$e,Xt)},b0=function(e,t,n){e.pendingProps=w0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=va(e,$e);a!==null&&Dn(a,e,$e,Xt)},S0=function(e){var t=va(e,$e);t!==null&&Dn(t,e,$e,Xt)},T0=function(e){d0=e},E0=function(e){v0=e}}function WD(e){var t=rh(e);return t===null?null:t.stateNode}function ID(e){return null}function qD(){return Jn}function GD(e){var t=e.findFiberByHostInstance,n=Ee.ReactCurrentDispatcher;return dT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:p0,overrideHookStateDeletePath:m0,overrideHookStateRenamePath:h0,overrideProps:y0,overridePropsDeletePath:g0,overridePropsRenamePath:b0,setErrorHandler:T0,setSuspenseHandler:E0,scheduleUpdate:S0,currentDispatcherRef:n,findHostInstanceByFiber:WD,findFiberByHostInstance:t||ID,findHostInstancesForRefresh:xD,scheduleRefresh:ED,scheduleRoot:CD,setRefreshHandler:TD,getCurrentFiber:qD,reconcilerVersion:rm})}var k0=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!==mn){var a=f0(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.")}}Vu(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;Bb()&&d("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),zr(function(){Vu(null,e,null,null)}),ky(t)}};function XD(e,t){if(!Xc(e))throw new Error("createRoot(...): Target container is not a DOM element.");M0(e);var n=!1,a=!1,r="",i=k0;t!=null&&(t.hydrate?se("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===_n&&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=u0(e,Ps,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===mn?e.parentNode:e;return Il(l),new sm(o)}function Gc(e){this._internalRoot=e}function QD(e){e&&fE(e)}Gc.prototype.unstable_scheduleHydration=QD;function KD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");M0(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=k0;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=s0(t,null,e,Ps,a,i,o,l,u);if(Us(f.current,e),Il(e),r)for(var v=0;v<r.length;v++){var S=r[v];tR(f,S)}return new Gc(f)}function Xc(e){return!!(e&&(e.nodeType===fa||e.nodeType===xr||e.nodeType===mf))}function Bu(e){return!!(e&&(e.nodeType===fa||e.nodeType===xr||e.nodeType===mf||e.nodeType===mn&&e.nodeValue===" react-mount-point-unstable "))}function M0(e){e.nodeType===fa&&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."),au(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 ZD=Ee.ReactCurrentOwner,L0;L0=function(e){if(e._reactRootContainer&&e.nodeType!==mn){var t=f0(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&&ni(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===fa&&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===xr?e.documentElement:e.firstChild:null}function O0(){}function JD(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var b=qc(o);i.call(b)}}var o=s0(t,a,e,ri,null,!1,!1,"",O0);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===mn?e.parentNode:e;return Il(l),zr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var b=qc(v);f.call(b)}}var v=u0(e,ri,null,!1,!1,"",O0);e._reactRootContainer=v,Us(v.current,e);var S=e.nodeType===mn?e.parentNode:e;return Il(S),zr(function(){Vu(t,v,n,a)}),v}}function e_(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){L0(n),e_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=JD(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Vu(t,o,e,r)}return qc(o)}var N0=!1;function t_(e){{N0||(N0=!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=ZD.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.",Ct(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===fa?e:FD(e,"findDOMNode")}function n_(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=au(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 a_(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=au(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 r_(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||!ZS(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var A0=!1;function i_(e){if(A0||(A0=!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=au(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&&!ni(n);a&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return zr(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,ky(e)})}),!0}else{{var r=cm(e),i=!!(r&&ni(r)),o=e.nodeType===fa&&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}}tE(VD),aE(BD),rE($D),iE(Pa),oE(ZT),(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"),BS(lx),YS(Bp,Kw,zr);function o_(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 zD(e,t,null,n)}function l_(e,t,n,a){return r_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[ni,Oo,Hs,Wm,Im,Bp]};function u_(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".'),XD(e,t)}function s_(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".'),KD(e,t,n)}function c_(e){return Bb()&&d("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),zr(e)}var f_=GD({findFiberByHostInstance:Vi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!f_&&yt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var j0=window.location.protocol;/^(https?|file):$/.test(j0)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(j0==="file:"?`
|
|
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}la.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,la.createPortal=o_,la.createRoot=u_,la.findDOMNode=t_,la.flushSync=c_,la.hydrate=n_,la.hydrateRoot=s_,la.render=a_,la.unmountComponentAtNode=i_,la.unstable_batchedUpdates=Bp,la.unstable_renderSubtreeIntoContainer=l_,la.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),la}hm.exports=V0();var B0=hm.exports,Sm,Tm=B0;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(k,R){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(k,R)}finally{Em.usingClientEntryPoint=!1}}}const $=k=>{if(isNaN(k))return"00:00:00.000";const R=Math.floor(k/3600),Ee=Math.floor(k%3600/60),we=Math.floor(k%60),xe=Math.round(k%1*1e3),se=String(R).padStart(2,"0"),d=String(Ee).padStart(2,"0"),G=String(we).padStart(2,"0"),de=String(xe).padStart(3,"0");return`${se}:${d}:${G}.${de}`},gi=k=>$(k),$0=k=>$(k),Re={debug:(...k)=>{},error:(...k)=>console.error(...k),warn:(...k)=>console.warn(...k),info:(...k)=>console.info(...k)};var Z=Zc();const P0=({videoRef:k,currentTime:R,duration:Ee,isPlaying:we,isMuted:xe=!1,onPlayPause:se,onSeek:d,onToggleMute:G})=>{var re;const de=Z.useRef(null),[te,gt]=Z.useState(!1),[le,Me]=Z.useState(!1),[J,Ve]=Z.useState(null),[Ge,Y]=Z.useState(!1),St=Z.useRef(!1),[it,_e]=Z.useState({x:0}),[nt,ye]=Z.useState(0),j=typeof window<"u"&&((re=window.MEDIA_DATA)==null?void 0:re.videoUrl)||"/videos/sample-video.mp4";Z.useEffect(()=>{if(gt((()=>{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";Me(W)}},[]),Z.useEffect(()=>{we&&!le&&(Me(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[we,le]),Z.useEffect(()=>{const me=k.current;if(!me)return;me.setAttribute("playsinline","true"),me.setAttribute("webkit-playsinline","true"),me.setAttribute("x-webkit-airplay","allow");const W=()=>{St.current||(Ve(me.currentTime),typeof window<"u"&&(window.lastSeekedPosition=me.currentTime))},I=()=>{te&&(Me(!0),localStorage.setItem("video_initialized","true"))},ve=()=>{};return me.addEventListener("timeupdate",W),me.addEventListener("play",I),me.addEventListener("pause",ve),()=>{me.removeEventListener("timeupdate",W),me.removeEventListener("play",I),me.removeEventListener("pause",ve)}},[k,te,St]),Z.useEffect(()=>{Ve(R)},[R]);const Q=Ee>0?R/Ee*100:0,Ot=me=>{me.preventDefault(),Y(!0),St.current=!0,bt(me);const W=ve=>{St.current&&bt(ve)},I=()=>{Y(!1),St.current=!1,document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",I)},bt=me=>{if(!de.current)return;const W=de.current.getBoundingClientRect(),I=Math.max(0,Math.min(1,(me.clientX-W.left)/W.width)),ve=Ee*I;_e({x:me.clientX}),ye(ve),Ve(ve),typeof window<"u"&&(window.lastSeekedPosition=ve),d(ve)},lt=me=>{if(!de.current||!me.touches[0])return;me.preventDefault(),Y(!0),St.current=!0,Rt(me);const W=ve=>{St.current&&Rt(ve)},I=()=>{Y(!1),St.current=!1,document.removeEventListener("touchmove",W),document.removeEventListener("touchend",I),document.removeEventListener("touchcancel",I)};document.addEventListener("touchmove",W,{passive:!1}),document.addEventListener("touchend",I),document.addEventListener("touchcancel",I)},Rt=me=>{if(!de.current)return;const W="touches"in me?me.touches[0]:null;if(!W)return;me.preventDefault();const I=de.current.getBoundingClientRect(),ve=Math.max(0,Math.min(1,(W.clientX-I.left)/I.width)),dt=Ee*ve;_e({x:W.clientX}),ye(dt),Ve(dt),typeof window<"u"&&(window.lastSeekedPosition=dt),d(dt)},Te=me=>{if(!Ge&&de.current){const W=de.current.getBoundingClientRect(),I=(me.clientX-W.left)/W.width,ve=Ee*I;Ve(ve),typeof window<"u"&&(window.lastSeekedPosition=ve),d(ve)}},q=()=>{k.current&&(document.fullscreenElement?document.exitFullscreen():k.current.requestFullscreen())},Je=()=>{const me=k.current;me&&(me.paused?te&&J!==null&&J>0?(me.currentTime=J,setTimeout(()=>{k.current&&k.current.play().then(()=>{var W;Re.debug("iOS: Play started successfully at position:",(W=k.current)==null?void 0:W.currentTime),se()}).catch(W=>{console.error("iOS: Error playing video:",W)})},50)):me.play().then(()=>{se()}).catch(W=>{console.error("Error playing video:",W)}):(me.pause(),se()))};return p.jsxs("div",{className:"video-player-container",children:[p.jsxs("video",{ref:k,preload:"auto",crossOrigin:"anonymous",onClick:Je,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:xe,children:[p.jsx("source",{src:j,type:"video/mp4"}),p.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),te&&!le&&!we&&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 ${we?"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:gi(R)}),p.jsxs("span",{className:"video-duration",children:["/ ",gi(Ee)]})]}),p.jsxs("div",{ref:de,className:`video-progress ${Ge?"dragging":""}`,onClick:Te,onMouseDown:Ot,onTouchStart:lt,children:[p.jsx("div",{className:"video-progress-fill",style:{width:`${Q}%`}}),p.jsx("div",{className:"video-scrubber",style:{left:`${Q}%`}}),Ge&&p.jsx("div",{className:"video-time-tooltip",style:{left:`${it.x}px`,transform:"translateX(-50%)"},children:$(nt)})]}),p.jsxs("div",{className:"video-controls-buttons",children:[G&&p.jsx("button",{className:"mute-button","aria-label":xe?"Unmute":"Mute",onClick:G,"data-tooltip":xe?"Unmute":"Mute",children:xe?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:q,"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=(k,R)=>{const Ee=Math.min(Math.max(k/(R||1),0),1),we=210,xe=40+Math.floor(Ee*20),se=85+Math.floor(Ee*8);return`hsl(${we}, ${xe}%, ${se}%)`},nf=async(k,R)=>new Promise(Ee=>{const we=document.createElement("canvas");we.width=10,we.height=10;const xe=we.getContext("2d");if(xe){const d=tf(R,k.duration);xe.fillStyle=d,xe.fillRect(0,0,we.width,we.height)}const se=we.toDataURL("image/png",.5);Ee(se)}),Pu=({isOpen:k,onClose:R,title:Ee,children:we,actions:xe})=>{if(Z.useEffect(()=>{const d=G=>{G.key==="Escape"&&k&&R()};return document.addEventListener("keydown",d),k&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[k,R]),!k)return null;const se=d=>{d.target===d.currentTarget&&R()};return p.jsx("div",{className:"modal-overlay",onClick:se,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:Ee}),p.jsx("button",{className:"modal-close-button",onClick:R,"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:we}),xe&&p.jsx("div",{className:"modal-actions",children:xe})]})})},Cm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e%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",xm="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",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.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",Y0="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",W0="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",I0="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",q0="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",G0={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},wm=k=>{let se,d;if(k<=25)if(k<=0)se="0%",d="none";else{const de=-50*((k-0)/25);se=`${k}%`,d=`translateX(${de}%)`}else if(k>=75)if(k>=100)se="100%",d="translateX(-100%)";else{const de=-50-50*((k-75)/25);se=`${k}%`,d=`translateX(${de}%)`}else se=`${k}%`,d="translateX(-50%)";return{left:se,transform:d}},X0=({currentTime:k,duration:R,thumbnails:Ee,trimStart:we,trimEnd:xe,splitPoints:se,zoomLevel:d,clipSegments:G,selectedSegmentId:de,onSelectedSegmentChange:te,onSegmentUpdate:gt,onChapterSave:le,onTrimStartChange:Me,onTrimEndChange:J,onZoomChange:Ve,onSeek:Ge,videoRef:Y,hasUnsavedChanges:St=!1,isIOSUninitialized:it=!1,isPlaying:_e,setIsPlaying:nt,onPlayPause:ye,isPlayingSegments:j=!1})=>{const Q=Z.useRef(null),Ot=Z.useRef(null),bt=Z.useRef(null),[lt,Rt]=Z.useState(null),Te=de!==void 0?de:lt,q=y=>{te?te(y):Rt(y)},[Je,re]=Z.useState(!1),[me,W]=Z.useState({x:0,y:0}),[I,ve]=Z.useState(0),[dt,kt]=Z.useState(!1),[ut,Kt]=Z.useState(30),[Mt,Ye]=Z.useState(!1),[je,ze]=Z.useState(null),[dn,Ze]=Z.useState(0),[Yt,yt]=Z.useState(!1),at=Z.useRef(null),[en,nn]=Z.useState(""),[an,sn]=Z.useState(!1),ne=[...G].sort((y,F)=>y.startTime-F.startTime).find(y=>y.id===Te);Z.useEffect(()=>{nn(ne&&ne.chapterTitle||"")},[Te,ne]);const be=y=>{nn(y),sn(!0),Te&>&>(Te,{chapterTitle:y})},pe=y=>{const F=y;let c=null,m=null,g=I;const E=()=>{const T=F<0?Math.max(0,g+F):Math.min(R,g+F);g=T;const M=Mt;if(Ge(T),ve(T),Ze(T),Q.current){const L=Q.current.getBoundingClientRect(),z=T/R*100,Ue=L.left+L.width*(z/100);W({x:Ue,y:L.top-10});const B=G.find(Ce=>T>=Ce.startTime&&T<=Ce.endTime);if(B)q(B.id),re(!1);else{q(null);const Ce=bn(T);Kt(Ce),re(!0)}}M&&Y.current&&(Y.current.play(),Ye(!0))};return{onMouseDown:T=>{T.stopPropagation(),T.preventDefault(),g=I,E(),c=setTimeout(()=>{m=setInterval(E,200)},750);const M=()=>{c&&(clearTimeout(c),c=null),m&&(clearInterval(m),m=null),document.removeEventListener("mouseup",M),document.removeEventListener("mouseleave",M)};document.addEventListener("mouseup",M),document.addEventListener("mouseleave",M)},onTouchStart:T=>{T.stopPropagation(),T.preventDefault(),g=I,E(),c=setTimeout(()=>{m=setInterval(E,200)},750);const M=()=>{c&&(clearTimeout(c),c=null),m&&(clearInterval(m),m=null),document.removeEventListener("touchend",M),document.removeEventListener("touchcancel",M)};document.addEventListener("touchend",M),document.addEventListener("touchcancel",M)},onClick:T=>{T.stopPropagation()}}},[Le,Qe]=Z.useState(!1),[ot,Fe]=Z.useState(!1),[We,wt]=Z.useState(!1),[vn,yn]=Z.useState(!1),[gn,K]=Z.useState(""),[fe,Ne]=Z.useState(""),[Ke,Nt]=Z.useState(""),[zt,$t]=Z.useState("chapters"),rn=R>0?k/R*100:0,Wt=R>0?we/R*100:0,Ft=R>0?xe/R*100:0,Vt=async()=>{var y;Qe(!1),Fe(!0),$t("chapters");try{const F=G.filter(c=>c.chapterTitle&&c.chapterTitle.trim()).map(c=>({name:c.chapterTitle||`Chapter ${c.id}`,from:$(c.startTime),to:$(c.endTime)}));if(F.length===0){Ne("No chapters with titles found"),yn(!0),Fe(!1);return}if(le){await le(F),Fe(!1),K("Chapters saved successfully!");const c=typeof window<"u"&&((y=window.MEDIA_DATA)==null?void 0:y.mediaId)||null;c&&Nt(`/view?m=${c}`),wt(!0)}else Ne("Chapter save function not available"),yn(!0),Fe(!1)}catch(F){Re.error("Error saving chapters:",F),Fe(!1);const c=F instanceof Error?F.message:"An error occurred while saving chapters";Ne(c),yn(!0)}};Z.useEffect(()=>{if(at.current&&Q.current&&d>1){const y=at.current.clientWidth,F=Q.current.clientWidth,c=k/R*F,m=Math.max(0,c-y/2);at.current.scrollTo({left:m,behavior:"smooth"});const g=Q.current.getBoundingClientRect();at.current.getBoundingClientRect();const T=g.left-at.current.scrollLeft+rn/100*g.width;(Te!==null||Je)&&(W({x:T,y:g.top-10}),ve(k))}},[k,d,R,Te,Je,rn]),Z.useEffect(()=>{const y=Y.current;if(!y||!je||!Mt||j)return;Re.debug("Segment boundary check ACTIVATED for segment:",je.id,"Start:",$(je.startTime),"End:",$(je.endTime));const F=()=>{const c=je.endTime-y.currentTime;if(Math.round(c*10)%10===0&&Re.debug("Segment playback - time remaining:",$(c),"Current:",$(y.currentTime),"End:",$(je.endTime),"ContinuePastBoundary:",Yt),y.currentTime>je.endTime){y.pause(),y.currentTime=je.endTime,Ye(!1),yt(!1),Re.debug("Passed segment end - setting back to exact boundary:",$(je.endTime));return}if(je.endTime-y.currentTime<.05)if(Yt)Re.debug("Continuing past segment boundary:",$(je.endTime)),y.currentTime>je.endTime&&(yt(!1),ze(null),sessionStorage.removeItem("continuingPastSegment"));else{y.pause(),y.currentTime=je.endTime,Ye(!1),Re.debug("Paused at segment end boundary:",$(je.endTime));const g=[...G].sort((E,T)=>E.startTime-T.startTime).find(E=>E.startTime>je.endTime);g&&Math.abs(g.startTime-je.endTime)<.1&&(Re.debug("Found adjacent next segment:",g.id),q(g.id),ze(g),Ze(g.startTime),ve(g.startTime),y.currentTime=g.startTime)}};return y.addEventListener("timeupdate",F),()=>{y.removeEventListener("timeupdate",F)}},[je,Mt,Yt,G]),Z.useEffect(()=>{if(Y.current)if(Y.current.paused)Y.current.paused&&Mt&&(Ze(k),ve(k),Ye(!1),Re.debug("Video paused at:",$(k)));else{Ze(k),ve(k),Te!==null&&Ye(!0);const y=G.find(m=>k>=m.startTime&&k<=m.endTime),F=k/R*100;if(Q.current){const m=Q.current.offsetWidth,g=F/100*m;W({x:g,y:Q.current.getBoundingClientRect().top-10})}const c=sessionStorage.getItem("continuingPastSegment")==="true";if(y){const m=Y.current,g=je&&je.id<0&&Mt;if((je==null?void 0:je.id)!==y.id&&!g&&!c&&!Yt&&(Re.debug(`Entered a new segment during playback: ${y.id}, setting as active`),ze(y),q(y.id),re(!1),yt(!1),sessionStorage.removeItem("continuingPastSegment")),g&&m&&y){Re.debug(`CUTAWAY BOUNDARY REACHED: Current position ${$(m.currentTime)} at segment ${y.id} - STOPPING at boundary ${$(y.startTime)}`),m.pause(),setTimeout(()=>{if(Y.current){Y.current.currentTime=y.startTime,Ge(y.startTime),Ze(y.startTime),ve(y.startTime),yt(!1),q(y.id),re(!1);const T=()=>{Y.current&&(Y.current.currentTime=y.startTime,Ge(y.startTime),Ze(y.startTime),ve(y.startTime),Re.debug(`Position corrected to exact segment boundary: ${$(Y.current.currentTime)} (target: ${$(y.startTime)})`))};setTimeout(T,10),setTimeout(T,20),setTimeout(T,50),setTimeout(T,100),setTimeout(T,200),Y.current.addEventListener("seeked",T),Y.current.addEventListener("canplay",T),Y.current.addEventListener("waiting",T),setTimeout(()=>{Y.current&&(Y.current.removeEventListener("seeked",T),Y.current.removeEventListener("canplay",T),Y.current.removeEventListener("waiting",T))},300)}},10),Ye(!1),ze(null);return}je===null&&Mt===!0||c||g?(Te!==y.id||Je)&&(Re.debug("Tooltip updated for segment during continued playback:",y.id,g?"(cutaway playback - keeping virtual segment)":""),q(y.id),re(!1),!g&&sessionStorage.getItem("lastSegmentId")!==y.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((je==null?void 0:je.id)!==y.id||Je)&&(Re.debug("Playback moved into segment:",y.id),q(y.id),ze(y),re(!1),sessionStorage.setItem("lastSegmentId",y.id.toString()))}else if(je!==null||!Je){q(null),ze(null);const m=bn(k);Kt(m),m>=.5?re(!0):re(!1)}}},[k,Mt,je,Te,G]),Z.useEffect(()=>{const y=F=>{const c=F.target;dt&&!c.closest(".zoom-dropdown-container")&&kt(!1)};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[dt]),Z.useEffect(()=>()=>{},[Te,Je,Mt]),Z.useEffect(()=>{const y=Ot.current,F=bt.current,c=Q.current;if(!y||!F||!c)return;const m=g=>E=>{E.preventDefault();const T=c.getBoundingClientRect();let M=!0,L=g?we:xe;const z=Ce=>new CustomEvent("trim-handle-event",{detail:{type:Ce,isStart:g}});document.dispatchEvent(z("drag-start"));const Ue=Ce=>{if(!M)return;const et=T.width,It=Math.max(0,Math.min(1,(Ce.clientX-T.left)/et))*R;typeof window<"u"&&(window.lastSeekedPosition=It),g?It<xe&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:It,isStart:!0,recordHistory:!1}})),L=It):It>we&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:It,isStart:!1,recordHistory:!1}})),L=It)},B=()=>{M=!1,document.removeEventListener("mousemove",Ue),document.removeEventListener("mouseup",B),g?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:L,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:L,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(z("drag-end"))};document.addEventListener("mousemove",Ue),document.addEventListener("mouseup",B)};return y.addEventListener("mousedown",m(!0)),F.addEventListener("mousedown",m(!1)),()=>{y.removeEventListener("mousedown",m(!0)),F.removeEventListener("mousedown",m(!1))}},[R,we,xe,Me,J]);const tr=()=>{const y=Ee.length||10;return Array.from({length:y}).map((F,c)=>{const m=R/y,g=c*m,E=g+m,T=(g+E)/2,M=tf(T,R);return p.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/y}%`,backgroundColor:M}},c)})},ya=()=>se.map((y,F)=>{const c=y/R*100;return p.jsx("div",{className:"split-point",style:{left:`${c}%`}},F)}),bn=y=>{const c=[...G].sort((T,M)=>T.startTime-M.startTime),m=c.find(T=>T.startTime>y),g=[...c].reverse().find(T=>T.endTime<y);let E;return m?E=m.startTime-y:E=R-y,Re.debug("Space calculation:",{position:$(y),nextSegment:m?$(m.startTime):"none",prevSegment:g?$(g.endTime):"none",availableSpace:$(Math.max(.1,E))}),Math.max(.1,E)},ua=y=>{if(!Q.current)return;const F=G.find(L=>{const z=y>=L.startTime&&y<=L.endTime,Ue=Math.abs(y-L.startTime)<.001,B=Math.abs(y-L.endTime)<.001;return z||Ue||B}),c=[...G].sort((L,z)=>L.startTime-z.startTime),m=c.find(L=>L.startTime>y),g=[...c].reverse().find(L=>L.endTime<y);if(F)q(F.id),re(!1);else{const L=bn(y);Kt(L),q(null),re(!0),Re.debug("Cutaway position:",{current:$(y),prevSegmentEnd:g?$(g.endTime):"none",nextSegmentStart:m?$(m.startTime):"none",availableSpace:$(L)})}const E=Q.current.getBoundingClientRect(),T=y/R*100;let M;d>1&&at.current?M=E.left-at.current.scrollLeft+E.width*(T/100):M=E.left+E.width*(T/100),W({x:M,y:E.top-10})},Br=y=>{if(!Q.current||!at.current||it)return;const F=Y.current&&!Y.current.paused;yt(!1);const c=Q.current.getBoundingClientRect();let m;if(d>1){const T=at.current.scrollLeft,M=Q.current.clientWidth;m=(y.clientX-c.left+T)/M}else m=(y.clientX-c.left)/c.width;const g=m*R;Re.debug("Timeline clicked at:",$(g),"distance from end:",$(R-g)),typeof window<"u"&&(window.lastSeekedPosition=g),Ge(g),ve(g),Ze(g);const E=G.find(T=>{const M=g>=T.startTime&&g<=T.endTime,L=Math.abs(g-T.startTime)<.01,z=Math.abs(g-T.endTime)<.01;return M||L||z});if(E&&ze(E),Y.current)if(j&&F){if(E){const M=[...G].sort((L,z)=>L.startTime-z.startTime).findIndex(L=>L.id===E.id);if(M!==-1){const L=new CustomEvent("update-segment-index",{detail:{segmentIndex:M}});document.dispatchEvent(L),Re.debug(`Segments playback mode: updating segment index to ${M} for timeline click in segment ${E.id}`)}}Y.current.play().then(()=>{Ye(!0)}).catch(T=>{console.error("Error resuming segments playback:",T),Ye(!1)})}else F&&!j&&Y.current.play().then(()=>{Ye(!0)}).catch(T=>{console.error("Error resuming playback:",T),Ye(!1)});if(y.target===Q.current||y.target.classList.contains("timeline-thumbnail"))if(E)q(E.id),re(!1);else{q(null);const T=bn(g);Kt(T);let M;if(d>1){const B=c.left-at.current.scrollLeft,Ce=g/R;M=B+Ce*c.width}else M=y.clientX;W({x:M,y:c.top-10}),re(!0);const L=[...G].sort((B,Ce)=>B.startTime-Ce.startTime),z=[...L].reverse().find(B=>B.endTime<g),Ue=L.find(B=>B.startTime>g);Re.debug("Clicked in cutaway area:",{position:$(g),availableSpace:$(T),prevSegmentEnd:z?$(z.endTime):"none",nextSegmentStart:Ue?$(Ue.startTime):"none"})}},za=(y,F)=>c=>{if(c.preventDefault(),c.stopPropagation(),!Q.current)return;Q.current.getBoundingClientRect().width;const g=G.find(on=>on.id===y);if(!g)return;const E=g.startTime,T=g.endTime,M={...g};document.body.style.cursor="ew-resize";const L=document.createElement("div");L.style.position="fixed",L.style.top="0",L.style.left="0",L.style.width="100vw",L.style.height="100vh",L.style.zIndex="1000",L.style.cursor="ew-resize",document.body.appendChild(L);let z=!0,Ue=E,B=T;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:y}}));const Ce=on=>{if(!z||!Q.current)return;const Fa=Q.current.getBoundingClientRect(),Lt=Math.max(0,Math.min(1,(on-Fa.left)/Fa.width))*R,sa=F?Lt:E,nr=F?T:Lt;if(k>=sa&&k<=nr)q(y),re(!1);else{q(null);const cn=bn(k);Kt(cn),re(!0)}const Yr=G.filter(cn=>cn.id!==y);let ba=E,_a=T;if(F){ba=Math.min(Lt,T-.5);const ft=Yr.filter(In=>In.endTime<=E).sort((In,ar)=>ar.endTime-In.endTime)[0];ft&&ba<ft.endTime&&(ba=ft.endTime),ft&&Math.abs(ba-ft.endTime)<.3&&(ba=ft.endTime),Ue=ba}else{_a=Math.max(Lt,E+.5);const ft=Yr.filter(In=>In.startTime>=T).sort((In,ar)=>In.startTime-ar.startTime)[0];ft&&_a>ft.startTime&&(_a=ft.startTime),ft&&Math.abs(_a-ft.startTime)<.3&&(_a=ft.startTime),B=_a}const bi=G.map(cn=>cn.id===y?{...cn,startTime:ba,endTime:_a}:cn),Wr=new CustomEvent("update-segments",{detail:{segments:bi,recordHistory:!1}});if(document.dispatchEvent(Wr),Te===y&&Y.current){const cn=Y.current.currentTime,ft=bi.find(ca=>ca.id===y);if(ft){const ca=cn>=ft.startTime&&cn<=ft.endTime;Re.debug(`During drag - playhead at ${$(cn)} is ${ca?"inside":"outside"} segment (${$(ft.startTime)} - ${$(ft.endTime)})`),!ca&&Mt&&(Y.current.pause(),Ye(!1),ze(null)),cn<ft.startTime?(Re.debug(`Adjusting display time to segment start: ${$(ft.startTime)}`),Ze(ft.startTime),ve(ft.startTime)):cn>ft.endTime&&(Re.debug(`Adjusting display time to segment end: ${$(ft.endTime)}`),Ze(ft.endTime),ve(ft.endTime))}}},et=()=>{if(!z)return;z=!1,document.removeEventListener("mousemove",rt),document.removeEventListener("mouseup",It),document.removeEventListener("touchmove",Bt),document.removeEventListener("touchend",Be),document.removeEventListener("touchcancel",Be),document.body.style.cursor="",document.body.contains(L)&&document.body.removeChild(L);const on=G.map(Un=>Un.id===y?{...Un,startTime:Ue,endTime:B}:Un),Fa=F?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:on,recordHistory:!0,action:Fa}})),Te===y&&Y.current){const Un=Y.current.currentTime,Lt=on.find(sa=>sa.id===y);if(Lt){const sa=Un>=Lt.startTime&&Un<=Lt.endTime;Re.debug(`Drag complete - playhead at ${$(Un)} is ${sa?"inside":"outside"} segment (${$(Lt.startTime)} - ${$(Lt.endTime)})`);const nr=Un>=M.startTime&&Un<=M.endTime;sa?(!nr&&sa||nr&&sa&&(Lt.startTime!==M.startTime||Lt.endTime!==M.endTime))&&ze(Lt):(Mt&&(Y.current.pause(),Ye(!1),ze(null),yt(!1)),Un<Lt.startTime?(Re.debug(`Final adjustment - setting display time to segment start: ${$(Lt.startTime)}`),Ze(Lt.startTime),ve(Lt.startTime)):Un>Lt.endTime&&(Re.debug(`Final adjustment - setting display time to segment end: ${$(Lt.endTime)}`),Ze(Lt.endTime),ve(Lt.endTime)))}}},rt=on=>{Ce(on.clientX)},It=()=>{et()},Bt=on=>{on.touches.length>0&&(on.preventDefault(),Ce(on.touches[0].clientX))},Be=()=>{et()};document.addEventListener("mousemove",rt,{passive:!1}),document.addEventListener("mouseup",It),document.addEventListener("touchmove",Bt,{passive:!1}),document.addEventListener("touchend",Be),document.addEventListener("touchcancel",Be)},yr=y=>F=>{if(F.target.classList.contains("clip-segment-handle"))return;F.preventDefault(),F.stopPropagation(),yt(!1);const c=Y.current&&!Y.current.paused;q(y);const m=G.find(B=>B.id===y);if(!m)return;const E=F.currentTarget.getBoundingClientRect(),T=(F.clientX-E.left)/E.width,M=m.startTime+T*(m.endTime-m.startTime),L=Math.max(m.startTime,Math.min(m.endTime,M));if(ve(L),Ze(L),Y.current){const B=Y.current.currentTime,Ce=B>=m.startTime&&B<=m.endTime;Re.debug(`Segment click - playhead at ${$(B)} is ${Ce?"inside":"outside"} segment (${$(m.startTime)} - ${$(m.endTime)})`),Ce||(Math.abs(B-m.startTime)<Math.abs(B-m.endTime)?(Re.debug(`Playhead outside segment - adjusting to segment start: ${$(m.startTime)}`),Ze(m.startTime)):(Re.debug(`Playhead outside segment - adjusting to segment end: ${$(m.endTime)}`),Ze(m.endTime)))}if(Ge(L),Y.current)if(j&&c){const Ce=[...G].sort((et,rt)=>et.startTime-rt.startTime).findIndex(et=>et.id===y);if(Ce!==-1){const et=new CustomEvent("update-segment-index",{detail:{segmentIndex:Ce}});document.dispatchEvent(et)}Y.current.play().then(()=>{Ye(!0)}).catch(et=>{console.error("Error continuing segments playback after segment click:",et)})}else c&&!j&&(ze(m),yt(!1),Y.current.play().then(()=>{Ye(!0)}).catch(B=>{console.error("Error resuming playback after segment click:",B)}));const z=F.clientX,Ue=E.top-10;if(W({x:z,y:Ue}),d>1&&Q.current&&at.current){Q.current.getBoundingClientRect();const B=Q.current.clientWidth,Ce=at.current.clientWidth,et=L/R*B,rt=Math.max(0,et-Ce/2);at.current.scrollTo({left:rt,behavior:"smooth"}),setTimeout(()=>{if(Q.current&&at.current){const It=Q.current.getBoundingClientRect(),Be=L/R*B-at.current.scrollLeft+It.left;W({x:Be,y:Ue})}},300)}},$r=()=>G.map((y,F)=>{const c=y.startTime/R*100,m=(y.endTime-y.startTime)/R*100,g=tf((y.startTime+y.endTime)/2,R);return p.jsxs("div",{className:`clip-segment ${Te===y.id?"selected":""}`,style:{left:`${c}%`,width:`${m}%`,backgroundColor:g,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:yr(y.id),children:[p.jsxs("div",{className:"clip-segment-info",children:[p.jsxs("div",{className:"clip-segment-name",children:["Segment ",F+1]}),p.jsxs("div",{className:"clip-segment-time",children:[gi(y.startTime)," - ",gi(y.endTime)]}),p.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",gi(y.endTime-y.startTime)]})]}),j?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:E=>{E.stopPropagation(),za(y.id,!0)(E)},onTouchStart:E=>{E.stopPropagation(),za(y.id,!0)(E)}}),p.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:E=>{E.stopPropagation(),za(y.id,!1)(E)},onTouchStart:E=>{E.stopPropagation(),za(y.id,!1)(E)}})]})]},y.id)});Z.useEffect(()=>{const y=F=>{const{segmentId:c}=F.detail;if(G.filter(g=>g.id!==c).length===0){const g={id:Date.now(),name:"Full Video",startTime:0,endTime:R,thumbnail:""},E=new CustomEvent("update-segments",{detail:{segments:[g],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(E),q(g.id),re(!1),ve(k),Ze(k),ze(g),Q.current){const T=Q.current.getBoundingClientRect(),M=k/R*100,L=T.left+T.width*(M/100);W({x:L,y:T.top-10}),Re.debug("Created full video segment:",{id:g.id,duration:$(R),currentPosition:$(k)})}}else if(Te===c){if(!G.find(T=>T.id===c))return;const E=bn(k);if(q(null),re(!0),Kt(E),Q.current){const T=Q.current.getBoundingClientRect(),M=k/R*100,L=T.left+T.width*(M/100);W({x:L,y:T.top-10}),Re.debug("Segment deleted, showing cutaway tooltip:",{position:$(k),availableSpace:$(E)})}}};return document.addEventListener("delete-segment",y),()=>{document.removeEventListener("delete-segment",y)}},[Te,G,k,R,Q]),Z.useEffect(()=>{const y=Y.current;if(!y)return;const F=()=>{if(!Y.current)return;const m=Y.current,g=m.currentTime;yt(!1);let E=R,T=null,M=null;T=G.find(z=>{const Ue=g>=z.startTime&&g<=z.endTime,B=Math.abs(g-z.startTime)<.001,Ce=Math.abs(g-z.endTime)<.001;return Ue||B||Ce}),M=G.filter(z=>{const Ue=z.startTime>g,B=Math.abs(z.startTime-g)>.001;return Ue&&B}).sort((z,Ue)=>z.startTime-Ue.startTime)[0],T?(E=T.endTime,ze(T)):M&&(E=M.startTime);const L=()=>{if(!m)return;const z=m.currentTime;if(E-z<=.001||z>=E){m.pause();const B=()=>{m&&(m.currentTime=E,Ge(E),Ze(E),ve(E),Re.debug("Position verification:",{target:$(E),actual:$(m.currentTime),difference:Math.abs(m.currentTime-E).toFixed(3)}))};B(),setTimeout(B,10),setTimeout(B,20),setTimeout(B,50),T?(q(T.id),re(!1)):M?(q(M.id),re(!1),ze(M)):(q(null),re(!0),ze(null)),m.removeEventListener("timeupdate",L),nt(!1),Ye(!1),yt(!1);return}};m.addEventListener("timeupdate",L),m.play().then(()=>{nt(!0),Ye(!0),Re.debug("Playback started:",{from:$(g),to:$(E),currentSegment:T?`Segment ${T.id}`:"None",nextSegment:M?`Segment ${M.id}`:"None"})}).catch(z=>{console.error("Error playing video:",z)})},c=()=>{Ye(!1)};return y.addEventListener("play",F),y.addEventListener("pause",c),()=>{y.removeEventListener("play",F),y.removeEventListener("pause",c)}},[G,R,Ge]);const Pr=y=>{if(!Q.current)return;const F=Q.current.getBoundingClientRect(),m=(y.clientX-F.left)/F.width*R,g=Math.max(0,Math.min(R,m));typeof window<"u"&&(window.lastSeekedPosition=g)},[ga,_n]=Z.useState(!1),kn=Z.useRef(!1),Da=y=>{if(it)return;y.stopPropagation(),y.preventDefault(),_n(!0),kn.current=!0,ua(k);const F=m=>{if(!Q.current||!at.current)return;const g=Q.current.getBoundingClientRect();let E;if(d>1){const M=at.current.scrollLeft,L=Q.current.clientWidth;E=(m.clientX-g.left+M)/L}else E=(m.clientX-g.left)/g.width;E=Math.max(0,Math.min(1,E));const T=E*R;ve(T),Ze(T),ua(T),typeof window<"u"&&(window.lastSeekedPosition=T),Ge(T)},c=()=>{_n(!1),kn.current=!1,document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",c)};document.addEventListener("mousemove",F),document.addEventListener("mouseup",c)},gr=y=>{if(it)return;y.stopPropagation(),y.preventDefault(),_n(!0),kn.current=!0,ua(k);const F=m=>{if(!Q.current||!at.current||!m.touches[0])return;const g=Q.current.getBoundingClientRect();let E;if(d>1){const M=at.current.scrollLeft,L=Q.current.clientWidth;E=(m.touches[0].clientX-g.left+M)/L}else E=(m.touches[0].clientX-g.left)/g.width;E=Math.max(0,Math.min(1,E));const T=E*R;ve(T),Ze(T),ua(T),typeof window<"u"&&(window.lastSeekedPosition=T),Ge(T)},c=()=>{_n(!1),kn.current=!1,document.removeEventListener("touchmove",F),document.removeEventListener("touchend",c),document.removeEventListener("touchcancel",c)};document.addEventListener("touchmove",F,{passive:!1}),document.addEventListener("touchend",c),document.addEventListener("touchcancel",c)};return Z.useEffect(()=>{},[Ke,zt,We]),Z.useEffect(()=>{let y,F;if(We&&Ke){let c=10;y=setInterval(()=>{c--;const m=document.querySelector(".countdown");m&&(m.textContent=c.toString()),c<=0&&clearInterval(y)},1e3),F=setTimeout(()=>{window.location.href=Ke},1e4)}return()=>{y&&clearInterval(y),F&&clearTimeout(F)}},[We,Ke]),Z.useEffect(()=>{!We&&Ke&&(window.location.href=Ke)},[Ke,zt,We]),p.jsxs("div",{className:`timeline-container-card ${j?"segments-playback-mode":""}`,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:$(G.reduce((y,F)=>y+(F.endTime-F.startTime),0))})]})]}),p.jsx("div",{ref:at,className:`timeline-scroll-container ${j?"segments-playback-mode":""}`,style:{overflow:d>1?"auto":"hidden"},children:p.jsxs("div",{ref:Q,className:"timeline-container",onClick:Br,onMouseMove:Pr,style:{width:`${d*100}%`,cursor:"pointer"},children:[p.jsxs("div",{className:"timeline-marker",style:{left:`${rn}%`},children:[p.jsx("div",{className:"timeline-marker-head",onClick:y=>{if(y.stopPropagation(),G.find(F=>k>=F.startTime&&k<=F.endTime),Te||Je){q(null),re(!1);return}else ua(k),Re.debug("Opening tooltip at:",$(k))},children:p.jsx("span",{className:"timeline-marker-head-icon",children:Te||Je?"-":"+"})}),j?null:p.jsx("div",{className:`timeline-marker-drag ${ga?"dragging":""}`,onMouseDown:Da,onTouchStart:gr,children:p.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),G.length===0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"trim-line-marker",style:{left:`${Wt}%`},children:p.jsx("div",{ref:Ot,className:"trim-handle left"})}),p.jsx("div",{className:"trim-line-marker",style:{left:`${Ft}%`},children:p.jsx("div",{ref:bt,className:"trim-handle right"})})]}),$r(),ya(),tr(),Te!==null&&p.jsxs("div",{className:`segment-tooltip two-row-tooltip ${j?"segments-playback-mode":""}`,style:{position:"absolute",...wm(rn)},onClick:y=>{j&&(y.stopPropagation(),y.preventDefault())},children:[Te&&p.jsx("div",{className:"tooltip-chapter-editor",children:p.jsx("textarea",{className:"tooltip-chapter-input",placeholder:"Chapter Title",value:en,onChange:y=>be(y.target.value),rows:2,maxLength:200,onClick:y=>y.stopPropagation(),onMouseDown:y=>y.stopPropagation(),onMouseUp:y=>y.stopPropagation()})}),p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":"Seek -50ms (click or hold)",disabled:j,...j?{}:pe(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${j?"disabled":""}`,style:{pointerEvents:j?"none":"auto",cursor:j?"not-allowed":"default",opacity:j?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:y=>{j&&(y.stopPropagation(),y.preventDefault())},children:$(dn)}),p.jsx("button",{className:`tooltip-time-btn ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":"Seek +50ms (click or hold)",disabled:j,...j?{}:pe(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsx("button",{className:`tooltip-action-btn delete ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":"Delete segment",disabled:j,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},onClick:y=>{y.stopPropagation();const F=new CustomEvent("delete-segment",{detail:{segmentId:Te}});document.dispatchEvent(F)},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 ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":"Split segment at current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:j,onClick:y=>{y.stopPropagation();const F=new CustomEvent("split-segment",{detail:{segmentId:Te,time:I}});document.dispatchEvent(F)},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 ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":"Play segment from beginning",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:j,onClick:y=>{y.stopPropagation();const F=G.find(c=>c.id===Te);if(F&&Y.current){if(yt(!0),Math.abs(Y.current.currentTime-F.endTime)<.05){Re.debug(`Already at end boundary (${$(Y.current.currentTime)}), nudging position back slightly`);const c=Math.max(F.startTime,F.endTime-.1);Y.current.currentTime=c,Ge(c),ve(c),Re.debug(`Position adjusted to ${$(c)}`)}else Ge(F.startTime),ve(F.startTime);ze(F),Y.current.play().then(()=>{Ye(!0)}).catch(c=>{console.error("Error playing from beginning:",c)})}},children:p.jsx("img",{src:Rm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${_e?"pause":"play"} ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":_e?"Pause playback":"Play from current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:j,onClick:y=>{y.stopPropagation(),_e?Y.current&&(Y.current.pause(),Ye(!1),yt(!1)):ye()},children:_e?p.jsx("img",{src:xm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:Cm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-in ${j?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":j?"Disabled during preview":"Set start point at current position",disabled:j,onClick:y=>{if(y.stopPropagation(),G.find(c=>c.id===Te)){const c=G.map(g=>g.id===Te?{...g,startTime:I<g.endTime-.5?I:g.endTime-.5}:g),m=new CustomEvent("update-segments",{detail:{segments:c,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(m)}},children:p.jsx("img",{src:W0,alt:"Set start point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-out ${j?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":j?"Disabled during preview":"Set end point at current position",disabled:j,onClick:y=>{if(y.stopPropagation(),G.find(c=>c.id===Te)){const c=G.map(g=>g.id===Te?{...g,endTime:I>g.startTime+.5?I:g.startTime+.5}:g),m=new CustomEvent("update-segments",{detail:{segments:c,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(m)}},children:p.jsx("img",{src:Y0,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),Je&&Te===null&&p.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${j?"segments-playback-mode":""}`,style:{position:"absolute",...wm(rn)},onClick:y=>{j&&(y.stopPropagation(),y.preventDefault())},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":"Seek -50ms (click or hold)",disabled:j,...j?{}:pe(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${j?"disabled":""}`,style:{pointerEvents:j?"none":"auto",cursor:j?"not-allowed":"default",opacity:j?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:y=>{j&&(y.stopPropagation(),y.preventDefault())},children:$(I)}),p.jsx("button",{className:`tooltip-time-btn ${j?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":j?"Disabled during preview":"Seek +50ms (click or hold)",disabled:j,...j?{}:pe(.05),children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsxs("button",{className:`tooltip-action-btn new-segment ${ut<.5||j?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":j?"Disabled during preview":ut<.5?"Not enough space for new segment":"Create new segment",disabled:ut<.5||j,onClick:async y=>{if(y.stopPropagation(),ut<.5)return;const F=I,c=F+ut,m={id:Date.now(),name:"segment",startTime:F,endTime:c,thumbnail:""},g=[...G,m],E=new CustomEvent("update-segments",{detail:{segments:g,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(E),re(!1),setTimeout(()=>{const T=g[g.length-1];T&&(q(T.id),Re.debug("Created and selected new segment:",T.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 ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":"Play from beginning of cutaway",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:j,onClick:y=>{if(y.stopPropagation(),Y.current){const F=I;yt(!0);const c=[...G].sort((z,Ue)=>z.startTime-Ue.startTime),m=[...c].reverse().find(z=>z.endTime<F),g=m?m.endTime+.025:0,E=c.find(z=>z.startTime>F),T=E?E.startTime:R,M={id:-999,name:"Cutaway",startTime:g,endTime:T,thumbnail:""};Ge(g),ve(g),Ye(!1),setTimeout(()=>{ze(M)},0);const L=()=>{if(!Y.current)return;const z=Y.current.currentTime,Ue=[...G].sort((rt,It)=>rt.startTime-It.startTime),B=Ue.find(rt=>rt.startTime>z-.3),Ce=B&&z>=B.startTime-.25&&z<=B.startTime+.1&&!Yt;B&&z>=B.startTime-.25&&z<=B.startTime+.1&&Re.debug(`Approaching boundary at ${$(B.startTime)}, continuePastBoundary=${Yt}, willStop=${Ce}`);const et=Ue.find(rt=>z>=rt.startTime&&z<=rt.endTime);if(et&&(je==null?void 0:je.id)!==et.id){Re.debug(`Entered segment ${et.id} during cutaway playback`),ze(et),q(et.id),re(!1),Y.current.removeEventListener("timeupdate",L),yt(!1),sessionStorage.removeItem("continuingPastSegment");return}if(Ce&&B){Re.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${$(z)} approaching segment at ${$(B.startTime)} (distance: ${Math.abs(z-B.startTime).toFixed(3)}s) - STOPPING`),Y.current.pause(),setTimeout(()=>{if(Y.current){Y.current.currentTime=B.startTime,Ge(B.startTime),Ze(B.startTime),ve(B.startTime),yt(!1),q(B.id),re(!1),ze(B);const rt=()=>{Y.current&&(Y.current.currentTime=B.startTime,Ge(B.startTime),Ze(B.startTime),ve(B.startTime),Re.debug(`Position corrected to exact segment boundary: ${$(Y.current.currentTime)} (target: ${$(B.startTime)})`))};setTimeout(rt,10),setTimeout(rt,20),setTimeout(rt,50),setTimeout(rt,100),setTimeout(rt,200),Y.current.addEventListener("seeked",rt),Y.current.addEventListener("canplay",rt),Y.current.addEventListener("waiting",rt),setTimeout(()=>{Y.current&&(Y.current.removeEventListener("seeked",rt),Y.current.removeEventListener("canplay",rt),Y.current.removeEventListener("waiting",rt))},300)}},10),Ye(!1),ze(null),Y.current.removeEventListener("timeupdate",L);return}};Y.current.addEventListener("timeupdate",L),setTimeout(()=>{Y.current&&Y.current.play().then(()=>{Ye(!0),Re.debug("CUTAWAY PLAYBACK STARTED:",$(g),"to",$(T),m?`(after segment ${m.id}, offset +25ms from ${$(m.endTime)})`:"(from video start)",E?`(will stop at segment ${E.id})`:"(will play to end)")}).catch(z=>{console.error("Error playing cutaway:",z)})},50)}},children:p.jsx("img",{src:Rm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${_e?"pause":"play"} ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":_e?"Pause playback":"Play from here until next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:j,onClick:y=>{y.stopPropagation(),_e?Y.current&&(Y.current.pause(),Ye(!1),yt(!1)):ye()},children:_e?p.jsx("img",{src:xm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:Cm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn segment-end ${j?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":j?"Disabled during preview":"Adjust end of previous segment",disabled:j,onClick:y=>{y.stopPropagation();const c=[...G].sort((m,g)=>m.startTime-g.startTime).filter(m=>m.endTime<=I).sort((m,g)=>g.endTime-m.endTime)[0];if(c){const m=G.map(E=>E.id===c.id?{...E,endTime:I}:E),g=new CustomEvent("update-segments",{detail:{segments:m,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(g),Re.debug("Adjusted end of previous segment to:",$(I)),q(c.id),re(!1)}else if(G.length>0){const m=[...G].sort((T,M)=>T.startTime-M.startTime);let g=!1,E=0;for(let T=0;T<m.length-1;T++){const M=m[T].endTime,L=m[T+1].startTime;if(I>M&&I<L){g=!0,E=M;break}}if(g){const T={id:Date.now(),name:"segment",startTime:E,endTime:I,thumbnail:""},M=[...G,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(L),Re.debug("Created new segment in gap from",$(E),"to",$(I)),q(T.id),re(!1)}else if(I<m[0].startTime){const T={id:Date.now(),name:"segment",startTime:0,endTime:I,thumbnail:""},M=[...G,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(L),Re.debug("Created new segment from start to:",$(I)),q(T.id),re(!1)}else{const T=[...G].sort((M,L)=>L.endTime-M.endTime)[0];if(T&&T.endTime<R){const M=G.map(z=>z.id===T.id?{...z,endTime:R}:z),L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(L),q(T.id),re(!1)}}}else if(I>0){const m={id:Date.now(),name:"segment",startTime:0,endTime:I,thumbnail:""},g=new CustomEvent("update-segments",{detail:{segments:[m],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(g),Re.debug("Created new segment from start to:",$(I)),q(m.id),re(!1)}},children:p.jsx("img",{src:q0,alt:"Set end point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn segment-start ${j?"disabled":""}`,"data-tooltip":j?"Disabled during preview":"Adjust start of next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:j?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:j,onClick:y=>{y.stopPropagation();const c=[...G].sort((m,g)=>m.startTime-g.startTime).filter(m=>m.startTime>=I).sort((m,g)=>m.startTime-g.startTime)[0];if(c){const m=G.map(E=>E.id===c.id?{...E,startTime:I}:E),g=new CustomEvent("update-segments",{detail:{segments:m,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(g),Re.debug("Adjusted start of next segment to:",$(I)),q(c.id),re(!1)}else if(G.length>0){const m=[...G].sort((T,M)=>T.startTime-M.startTime);let g=!1,E=0;for(let T=0;T<m.length-1;T++){const M=m[T].endTime,L=m[T+1].startTime;if(I>M&&I<L){g=!0,E=L;break}}if(g){const T={id:Date.now(),name:"segment",startTime:I,endTime:E,thumbnail:""},M=[...G,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(L),Re.debug("Created new segment in gap from",$(I),"to",$(E)),q(T.id),re(!1)}else if(I<m[0].startTime){const T={id:Date.now(),name:"segment",startTime:I,endTime:m[0].startTime,thumbnail:""},M=[...G,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(L),Re.debug("Created new segment from",$(I),"to first segment"),q(T.id),re(!1)}else if(I>m[m.length-1].endTime){const T={id:Date.now(),name:"segment",startTime:I,endTime:R,thumbnail:""},M=[...G,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(L),Re.debug("Created new segment from",$(I),"to end"),q(T.id),re(!1)}else{const T=m[0];if(T&&T.startTime>0){const M=G.map(z=>z.id===T.id?{...z,startTime:0}:z),L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(L),q(T.id),re(!1)}}}else if(I<R){const m={id:Date.now(),name:"segment",startTime:I,endTime:R,thumbnail:""},g=new CustomEvent("update-segments",{detail:{segments:[m],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(g),Re.debug("Created new segment from",$(I),"to end"),q(m.id),re(!1)}},children:p.jsx("img",{src:I0,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:y=>{if(y.key==="Enter"){const F=y.currentTarget.value;try{const c=F.split(":");let m=0,g=0,E=0,T=0;if(c.length===3){m=parseInt(c[0]),g=parseInt(c[1]);const L=c[2].split(".");E=parseInt(L[0]),L.length>1&&(T=parseInt(L[1].padEnd(3,"0").substring(0,3)))}else if(c.length===2){g=parseInt(c[0]);const L=c[1].split(".");E=parseInt(L[0]),L.length>1&&(T=parseInt(L[1].padEnd(3,"0").substring(0,3)))}const M=m*3600+g*60+E+T/1e3;if(!isNaN(M)&&M>=0&&M<=R){Ge(M);const L=z=>{const Ue=G.find(B=>{const Ce=z>=B.startTime&&z<=B.endTime,et=Math.abs(z-B.startTime)<.001,rt=Math.abs(z-B.endTime)<.001;return Ce||et||rt});if(Q.current&&at.current){const B=Q.current.getBoundingClientRect();let Ce;if(d>1)Ce=B.left-at.current.scrollLeft+z/R*B.width;else{const et=z/R;Ce=B.left+B.width*et}W({x:Ce,y:B.top-10}),ve(z),Ue?(q(Ue.id),re(!1)):(q(null),re(!0))}};setTimeout(()=>L(M),10)}}catch(c){console.error("Invalid time format:",c)}}}}),p.jsx("div",{className:"time-button-group",children:(()=>{const y=()=>{const F=G.find(c=>{const m=k>=c.startTime&&k<=c.endTime,g=Math.abs(k-c.startTime)<.001,E=Math.abs(k-c.endTime)<.001;return m||g||E});if(Q.current&&at.current){const c=Q.current.getBoundingClientRect();let m;if(d>1)m=c.left-at.current.scrollLeft+k/R*c.width;else{const g=k/R;m=c.left+c.width*g}if(W({x:m,y:c.top-10}),ve(k),F)q(F.id),re(!1);else{const g=bn(k);Kt(g),g>=.5?(q(null),re(!0)):(q(null),re(!1))}}};return p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"time-button",onClick:()=>{Ge(k-.01),setTimeout(y,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Ge(k-.001),setTimeout(y,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Ge(k+.001),setTimeout(y,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Ge(k+.01),setTimeout(y,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:()=>kt(!dt),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"})})]}),dt&&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(y=>p.jsxs("div",{className:`zoom-option ${d===y?"selected":""}`,onClick:()=>{Ve(y),kt(!1)},children:[d===y&&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 ",y,"x"]},y))})]}),p.jsx("div",{className:"save-buttons-row",children:p.jsx("button",{onClick:()=>Qe(!0),className:"save-chapters-button","data-tooltip":"Save chapters",disabled:G.filter(y=>y.chapterTitle&&y.chapterTitle.trim()).length===0,children:"Save Chapters"})}),p.jsx(Pu,{isOpen:Le,onClose:()=>Qe(!1),title:"Save Chapters",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Qe(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:Vt,children:"Save Chapters"})]}),children:p.jsxs("p",{className:"modal-message",children:["Are you sure you want to save the chapters? This will save"," ",G.filter(y=>y.chapterTitle&&y.chapterTitle.trim()).length," chapters to the database."]})}),p.jsxs(Pu,{isOpen:ot,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.jsx(Pu,{isOpen:We,onClose:()=>wt(!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"," ",p.jsx("a",{href:Ke,className:"media-page-link",style:G0,children:"media page"})," in ",p.jsx("span",{className:"countdown",children:"10"})," seconds. Your chapters have been saved successfully."]})})}),p.jsxs(Pu,{isOpen:vn,onClose:()=>yn(!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:fe})]}),p.jsx("div",{className:"modal-choices",children:p.jsxs("button",{onClick:()=>yn(!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"]})})]})]})]}),it&&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"})]})})]})},Q0=({onSplit:k,onReset:R,onUndo:Ee,onRedo:we,onPlaySegments:xe,onPlay:se,canUndo:d,canRedo:G,isPlaying:de=!1,isPlayingSegments:te=!1})=>{const[gt,le]=Z.useState(!1);Z.useEffect(()=>{const J=()=>{le(window.innerWidth<=640)};return J(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[]);const Me=()=>{typeof window<"u"&&console.log("Play button clicked, current lastSeekedPosition:",window.lastSeekedPosition),se()};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 segments-button",onClick:xe,"data-tooltip":te?"Stop segments playback":"Play segments in one continuous flow",style:{fontSize:"0.875rem"},children:te?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 Preview"})]}):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:"Play Preview"})]})}),(!te||!gt)&&p.jsx("button",{className:`button play-button ${te?"greyed-out":""}`,onClick:Me,"data-tooltip":de?"Pause video":"Play full video",style:{fontSize:"0.875rem"},disabled:te,children:de&&!te?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"})]})})]}),p.jsxs("div",{className:"button-group secondary",children:[p.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":te?"Disabled during preview":"Undo last action",disabled:!d||te,onClick:Ee,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":te?"Disabled during preview":"Redo last undone action",disabled:!G||te,onClick:we,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:R,"data-tooltip":te?"Disabled during preview":"Reset to full video",disabled:te,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"})]})]})]})})},K0=({segments:k,selectedSegmentId:R})=>{const Ee=[...k].sort((se,d)=>se.startTime-d.startTime),we=se=>{const d=new CustomEvent("delete-segment",{detail:{segmentId:se}});document.dispatchEvent(d)},xe=se=>`segment-default-color segment-color-${se%8+1}`;return Ee.find(se=>se.id===R),p.jsxs("div",{className:"clip-segments-container",children:[p.jsx("h3",{className:"clip-segments-title",children:"Chapters"}),Ee.map((se,d)=>p.jsxs("div",{className:`segment-item ${xe(d)} ${R===se.id?"selected":""}`,children:[p.jsxs("div",{className:"segment-content",children:[p.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${se.thumbnail})`}}),p.jsxs("div",{className:"segment-info",children:[p.jsx("div",{className:"segment-title",children:se.chapterTitle?p.jsx("span",{className:"chapter-title",children:se.chapterTitle}):p.jsxs("span",{className:"default-title",children:["Chapter ",d+1]})}),p.jsxs("div",{className:"segment-time",children:[gi(se.startTime)," - ",gi(se.endTime)]}),p.jsxs("div",{className:"segment-duration",children:["Duration: ",$0(se.endTime-se.startTime)]})]})]}),p.jsx("div",{className:"segment-actions",children:p.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>we(se.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"})})})})]},se.id)),Ee.length===0&&p.jsx("div",{className:"empty-message",children:"No chapters created yet. Use the split button to create chapter segments."})]})},Z0=({videoRef:k,onPlay:R})=>{const[Ee,we]=Z.useState(!1);Z.useEffect(()=>{const d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);we(d)},[]),Z.useEffect(()=>{const se=k.current;if(!se)return;const d=()=>{we(!1)};return se.addEventListener("play",d),()=>{se.removeEventListener("play",d)}},[k]);const xe=()=>{R()};return Ee?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:xe,children:"Click to start editing..."})})}):null},J0=()=>{const k=U=>{const ne=U.split(":");if(ne.length!==3)return 0;const be=parseInt(ne[0],10)||0,pe=parseInt(ne[1],10)||0,Le=parseFloat(ne[2])||0;return be*3600+pe*60+Le},R=Z.useRef(null),[Ee,we]=Z.useState(0),[xe,se]=Z.useState(0),[d,G]=Z.useState(!1),[de,te]=Z.useState(!1),[gt,le]=Z.useState([]),[Me,J]=Z.useState(0),[Ve,Ge]=Z.useState(0),[Y,St]=Z.useState([]),[it,_e]=Z.useState(1),[nt,ye]=Z.useState([]),[j,Q]=Z.useState(null),[Ot,bt]=Z.useState([]),[lt,Rt]=Z.useState(-1),[Te,q]=Z.useState(!1),[Je,re]=Z.useState(!1),[me,W]=Z.useState(0);Z.useEffect(()=>{var U;if(Ot.length>0){const ne=((U=Ot[lt])==null?void 0:U.action)||"";ne!=="save"&&ne!=="save_copy"&&ne!=="save_segments"&&q(!0)}},[Ot,lt]),Z.useEffect(()=>{const U=ne=>{if(Te){const be="Your edits will get lost if you leave the page. Do you want to continue?";return ne.preventDefault(),ne.returnValue=be,be}};return window.addEventListener("beforeunload",U),()=>{window.removeEventListener("beforeunload",U)}},[Te]),Z.useEffect(()=>{const U=R.current;if(!U)return;const ne=()=>{se(U.duration),Ge(U.duration),(async()=>{var K;let Fe=[];const We=typeof window<"u"&&((K=window.MEDIA_DATA)==null?void 0:K.chapters)||[{name:"Chapter 1",from:"00:00:00",to:"00:00:03"},{name:"Chapter 2",from:"00:00:03",to:"00:00:06"},{name:"Chapter 3",from:"00:00:09",to:"00:00:12"},{name:"Chapter 4",from:"00:00:15",to:"00:00:18"},{name:"Chapter 5",from:"00:00:21",to:"00:00:24"}];if(We.length>0)for(let fe=0;fe<We.length;fe++){const Ne=We[fe],Ke=k(Ne.from),Nt=k(Ne.to),zt=await nf(U,(Ke+Nt)/2),$t={id:fe+1,name:`segment-${fe+1}`,startTime:Ke,endTime:Nt,thumbnail:zt,chapterTitle:Ne.name};Fe.push($t)}else{const fe=await nf(U,U.duration/2);Fe=[{id:1,name:"segment",startTime:0,endTime:U.duration,thumbnail:fe}]}const wt={trimStart:0,trimEnd:U.duration,splitPoints:[],clipSegments:Fe};bt([wt]),Rt(0),ye(Fe);const vn=6,yn=U.duration/vn,gn=[];for(let fe=0;fe<vn;fe++){const Ne=yn*fe+yn/2,Ke=await nf(U,Ne);gn.push(Ke)}le(gn)})()},be=()=>{we(U.currentTime)},pe=()=>{G(!0),an(!0)},Le=()=>{G(!1)},Qe=()=>{G(!1),U.currentTime=Me};return U.addEventListener("loadedmetadata",ne),U.addEventListener("timeupdate",be),U.addEventListener("play",pe),U.addEventListener("pause",Le),U.addEventListener("ended",Qe),()=>{U.removeEventListener("loadedmetadata",ne),U.removeEventListener("timeupdate",be),U.removeEventListener("play",pe),U.removeEventListener("pause",Le),U.removeEventListener("ended",Qe)}},[]);const I=U=>{const ne=R.current;if(!ne)return;const be=!ne.paused;ne.currentTime=U,we(U),typeof window<"u"&&(window.lastSeekedPosition=U),be&&ne.play().then(()=>{G(!0)}).catch(pe=>{console.error("Error resuming playback:",pe),G(!1)})},ve=U=>{const ne={trimStart:Me,trimEnd:Ve,splitPoints:[...Y],clipSegments:JSON.parse(JSON.stringify(nt)),action:U||"manual_save"},be=Ot[lt],pe=()=>{if(!be||be.clipSegments.length!==ne.clipSegments.length)return!0;for(let ot=0;ot<ne.clipSegments.length;ot++){const Fe=be.clipSegments[ot],We=ne.clipSegments[ot];if(!Fe||!We||Math.abs(Fe.startTime-We.startTime)>.001||Math.abs(Fe.endTime-We.endTime)>.001)return!0}return!1},Le=!be||be.trimStart!==ne.trimStart||be.trimEnd!==ne.trimEnd||be.splitPoints.length!==ne.splitPoints.length||pe(),Qe=ne.action!==void 0;if(Le||Qe){const ot=lt;bt(Fe=>ot<Fe.length-1?[...Fe.slice(0,ot+1),ne]:[...Fe,ne]),Rt(Fe=>Fe+1)}};Z.useEffect(()=>{const U=ne=>{if(ne.detail){const{time:be,isStart:pe,recordHistory:Le,action:Qe}=ne.detail;pe?J(be):Ge(be),Le&&setTimeout(()=>{ve(Qe||(pe?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",U),()=>{document.removeEventListener("update-trim",U)}},[]),Z.useEffect(()=>{const U=pe=>{if(pe.detail&&pe.detail.segments){const Le=pe.detail.recordHistory!==!1,Qe=pe.detail.action||"update_segments";ye(pe.detail.segments),Le&&setTimeout(()=>{const ot=JSON.parse(JSON.stringify(pe.detail.segments)),Fe={trimStart:Me,trimEnd:Ve,splitPoints:[...Y],clipSegments:ot,action:Qe},We=lt;bt(wt=>We<wt.length-1?[...wt.slice(0,We+1),Fe]:[...wt,Fe]),Rt(wt=>wt+1)},20)}},ne=async pe=>{const Le=pe;if(Le.detail&&typeof Le.detail.time=="number"&&typeof Le.detail.segmentId=="number"){const Qe=Le.detail.time,ot=Le.detail.segmentId;I(Qe);const Fe=nt.find(gn=>gn.id===ot);if(!Fe||Qe<=Fe.startTime||Qe>=Fe.endTime)return;const We=[...nt],wt=We.findIndex(gn=>gn.id===ot);if(wt===-1)return;We.splice(wt,1);const vn={id:Date.now(),name:`${Fe.name}-A`,startTime:Fe.startTime,endTime:Qe,thumbnail:""},yn={id:Date.now()+1,name:`${Fe.name}-B`,startTime:Qe,endTime:Fe.endTime,thumbnail:""};We.push(vn,yn),We.sort((gn,K)=>gn.startTime-K.startTime),ye(We),ve("split_segment")}},be=async pe=>{const Le=pe;if(Le.detail&&typeof Le.detail.segmentId=="number"){const Qe=Le.detail.segmentId,ot=nt.filter(Fe=>Fe.id!==Qe);if(ot.length!==nt.length){if(ot.length===0&&R.current){const Fe={id:Date.now(),name:"segment",startTime:0,endTime:R.current.duration,thumbnail:""};J(0),Ge(R.current.duration),St([]),ye([Fe])}else ye(ot);ve("delete_segment")}}};return document.addEventListener("update-segments",U),document.addEventListener("split-segment",ne),document.addEventListener("delete-segment",be),()=>{document.removeEventListener("update-segments",U),document.removeEventListener("split-segment",ne),document.removeEventListener("delete-segment",be)}},[nt,xe]);const dt=U=>{J(U),ve("adjust_trim_start")},kt=U=>{Ge(U),ve("adjust_trim_end")},ut=async()=>{if(R.current&&!Y.includes(Ee)){const U=[...Y,Ee].sort((pe,Le)=>pe-Le);St(U);const ne=[];let be=0;for(let pe=0;pe<=U.length;pe++){const Le=pe<U.length?U[pe]:xe;be<Le&&(ne.push({id:Date.now()+pe,name:`Segment ${pe+1}`,startTime:be,endTime:Le,thumbnail:""}),be=Le)}ye(ne),ve("create_split_points")}},Kt=async()=>{if(J(0),Ge(xe),St([]),!R.current)return;const U={id:Date.now(),name:"segment",startTime:0,endTime:xe,thumbnail:""};ye([U]),ve("reset_all")},Mt=()=>{if(lt>0){const U=Ot[lt-1];Re.debug(`** UNDO ** to position ${lt-1}, action: ${U.action}, segments: ${U.clipSegments.length}`),Re.debug("Segment details after undo:",U.clipSegments.map(ne=>`ID: ${ne.id}, Time: ${$(ne.startTime)} - ${$(ne.endTime)}`)),J(U.trimStart),Ge(U.trimEnd),St([...U.splitPoints]),ye(JSON.parse(JSON.stringify(U.clipSegments))),Rt(lt-1)}},Ye=()=>{if(lt<Ot.length-1){const U=Ot[lt+1];Re.debug(`** REDO ** to position ${lt+1}, action: ${U.action}, segments: ${U.clipSegments.length}`),Re.debug("Segment details after redo:",U.clipSegments.map(ne=>`ID: ${ne.id}, Time: ${$(ne.startTime)} - ${$(ne.endTime)}`)),J(U.trimStart),Ge(U.trimEnd),St([...U.splitPoints]),ye(JSON.parse(JSON.stringify(U.clipSegments))),Rt(lt+1)}},je=U=>{_e(U)},ze=()=>{const U=R.current;U&&(U.muted=!U.muted,te(!de))},dn=(U,ne)=>{ye(be=>be.map(pe=>pe.id===U?{...pe,...ne}:pe)),q(!0)},Ze=async U=>{var ne;try{const be=(ne=window.MEDIA_DATA)==null?void 0:ne.mediaId;if(!be){console.error("No media ID found");return}const Le={chapters:U.map(wt=>({start:wt.from,title:wt.name}))};console.log("Saving chapters:",Le);const Qe=Yt(),ot={"Content-Type":"application/json"};Qe&&(ot["X-CSRFToken"]=Qe);const Fe=await fetch(`/api/v1/media/${be}/chapters`,{method:"POST",headers:ot,body:JSON.stringify(Le)});if(!Fe.ok)throw new Error(`Failed to save chapters: ${Fe.status}`);const We=await Fe.json();console.log("Chapters saved successfully:",We),q(!1)}catch(be){console.error("Error saving chapters:",be)}},Yt=()=>{var pe;const be=`; ${document.cookie}`.split("; csrftoken=");return be.length===2&&((pe=be.pop())==null?void 0:pe.split(";").shift())||""},yt=U=>{Q(U)},at=U=>{(!en||nn)&&I(U)},en=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[nn,an]=Z.useState(!1);return Z.useEffect(()=>{if(!Je||!R.current)return;const U=R.current,ne=[...nt].sort((pe,Le)=>pe.startTime-Le.startTime),be=()=>{const pe=ne[me];if(!pe)return;const Le=U.currentTime;if(Le<pe.startTime){U.currentTime=pe.startTime;return}if(Le>=pe.endTime-.01)if(me<ne.length-1){const Qe=ne[me+1];U.currentTime=Qe.startTime,W(me+1),U.paused&&U.play().catch(ot=>{console.error("Error continuing segment playback:",ot)})}else U.pause(),re(!1),W(0),U.removeEventListener("timeupdate",be)};return U.addEventListener("timeupdate",be),U.paused&&ne.length>0&&(U.currentTime=ne[0].startTime,U.play().catch(console.error)),()=>{U.removeEventListener("timeupdate",be)}},[Je,me,nt]),Z.useEffect(()=>{const U=ne=>{const{segmentIndex:be}=ne.detail;Je&&be!==me&&W(be)};return document.addEventListener("update-segment-index",U),()=>{document.removeEventListener("update-segment-index",U)}},[Je,me]),{videoRef:R,currentTime:Ee,duration:xe,isPlaying:d,setIsPlaying:G,isMuted:de,isPlayingSegments:Je,thumbnails:gt,trimStart:Me,trimEnd:Ve,splitPoints:Y,zoomLevel:it,clipSegments:nt,selectedSegmentId:j,hasUnsavedChanges:Te,historyPosition:lt,history:Ot,handleTrimStartChange:dt,handleTrimEndChange:kt,handleZoomChange:je,handleMobileSafeSeek:at,handleSplit:ut,handleReset:Kt,handleUndo:Mt,handleRedo:Ye,handlePlaySegments:()=>{const U=R.current;if(!(!U||nt.length===0))if(Je)U.pause(),re(!1),W(0);else{re(!0),W(0);const ne=[...nt].sort((be,pe)=>be.startTime-pe.startTime);U.currentTime=ne[0].startTime,U.play().catch(be=>{console.error("Error starting segments playback:",be),re(!1)})}},toggleMute:ze,handleSegmentUpdate:dn,handleChapterSave:Ze,handleSelectedSegmentChange:yt,isMobile:en,videoInitialized:nn,setVideoInitialized:an}},eS=()=>{const{videoRef:k,currentTime:R,duration:Ee,isPlaying:we,setIsPlaying:xe,isMuted:se,thumbnails:d,trimStart:G,trimEnd:de,splitPoints:te,zoomLevel:gt,clipSegments:le,selectedSegmentId:Me,hasUnsavedChanges:J,historyPosition:Ve,history:Ge,handleTrimStartChange:Y,handleTrimEndChange:St,handleZoomChange:it,handleMobileSafeSeek:_e,handleSplit:nt,handleReset:ye,handleUndo:j,handleRedo:Q,toggleMute:Ot,handleSegmentUpdate:bt,handleChapterSave:lt,handleSelectedSegmentChange:Rt,isMobile:Te,videoInitialized:q,setVideoInitialized:Je,isPlayingSegments:re,handlePlaySegments:me}=J0(),W=()=>{if(!k.current)return;const I=k.current;if(we){I.pause(),xe(!1);return}const ve=Number(I.currentTime.toFixed(6));let dt=Ee,kt=null,ut=null;const Kt=[...le].sort((Ye,je)=>Ye.startTime-je.startTime);kt=Kt.find(Ye=>{const je=Number(Ye.startTime.toFixed(6)),ze=Number(Ye.endTime.toFixed(6));return ve>je&&ve<ze||ve===je}),kt||(ut=Kt.find(Ye=>Number(Ye.startTime.toFixed(6))>ve)),kt?dt=Number(kt.endTime.toFixed(6)):ut&&(dt=Number(ut.startTime.toFixed(6)));const Mt=()=>{if(!I)return;const Ye=Number(I.currentTime.toFixed(6));if(Number((dt-Ye).toFixed(6))<=0||Ye>=dt){I.pause();const ze=()=>{if(!I)return;I.currentTime=dt,_e(dt);const dn=Number(I.currentTime.toFixed(6)),Ze=Number(Math.abs(dn-dt).toFixed(6));Re.debug("Position verification:",{target:$(dt),actual:$(dn),difference:Ze}),Ze>0&&(I.currentTime=dt,_e(dt))};ze(),setTimeout(ze,5),setTimeout(ze,10),setTimeout(ze,20),setTimeout(ze,50),I.removeEventListener("timeupdate",Mt),xe(!1),Re.debug("Stopped at position:",{target:$(dt),actual:$(I.currentTime),type:kt?"segment end":ut?"next segment start":"end of video",segment:kt?{id:kt.id,start:$(kt.startTime),end:$(kt.endTime)}:null,nextSegment:ut?{id:ut.id,start:$(ut.startTime),end:$(ut.endTime)}:null});return}};I.addEventListener("timeupdate",Mt),I.play().then(()=>{xe(!0),Je(!0),Re.debug("Playback started:",{from:$(ve),to:$(dt),currentSegment:kt?{id:kt.id,start:$(kt.startTime),end:$(kt.endTime)}:"None",nextSegment:ut?{id:ut.id,start:$(ut.startTime),end:$(ut.endTime)}:"None"})}).catch(Ye=>{console.error("Error playing video:",Ye)})};return p.jsxs("div",{className:"bg-background min-h-screen",children:[p.jsx(Z0,{videoRef:k,onPlay:W}),p.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[p.jsx(P0,{videoRef:k,currentTime:R,duration:Ee,isPlaying:we,isMuted:se,onPlayPause:W,onSeek:_e,onToggleMute:Ot}),p.jsx(Q0,{onSplit:nt,onReset:ye,onUndo:j,onRedo:Q,onPlaySegments:me,onPlay:W,isPlaying:we,isPlayingSegments:re,canUndo:Ve>0,canRedo:Ve<Ge.length-1}),p.jsx(X0,{currentTime:R,duration:Ee,thumbnails:d,trimStart:G,trimEnd:de,splitPoints:te,zoomLevel:gt,clipSegments:le,selectedSegmentId:Me,onSelectedSegmentChange:Rt,onSegmentUpdate:bt,onChapterSave:lt,onTrimStartChange:Y,onTrimEndChange:St,onZoomChange:it,onSeek:_e,videoRef:k,hasUnsavedChanges:J,isIOSUninitialized:Te&&!q,isPlaying:we,setIsPlaying:xe,onPlayPause:W,isPlayingSegments:re}),p.jsx(K0,{segments:le,selectedSegmentId:Me})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Dm=()=>{const k=document.getElementById("chapters-editor-root");k&&Sm(k).render(p.jsx(eS,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Dm):Dm()})();
|
|
//# sourceMappingURL=chapters-editor.js.map
|