mediacms/static/video_editor/video-editor.js
2025-05-15 10:43:26 +03:00

204 lines
385 KiB
JavaScript

(function(){"use strict";var dm={exports:{}},Kc={exports:{}},Xo={exports:{}};Xo.exports;var vm;function FS(){return vm||(vm=1,function(T,_){/**
* @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 he="18.3.1",Me=Symbol.for("react.element"),ce=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),ee=Symbol.for("react.context"),it=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),It=Symbol.for("react.offscreen"),wt=Symbol.iterator,Jt="@@iterator";function ve(s){if(s===null||typeof s!="object")return null;var m=wt&&s[wt]||s[Jt];return typeof m=="function"?m:null}var We={current:null},mt={transition:null},te={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Ee={current:null},fe={},we=null;function ft(s){we=s}fe.setExtraStackFrame=function(s){we=s},fe.getCurrentStack=null,fe.getStackAddendum=function(){var s="";we&&(s+=we);var m=fe.getCurrentStack;return m&&(s+=m()||""),s};var bt=!1,X=!1,_e=!1,Le=!1,Dt=!1,_t={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:mt,ReactCurrentOwner:Ee};_t.ReactDebugCurrentFrame=fe,_t.ReactCurrentActQueue=te;function zt(s){{for(var m=arguments.length,C=new Array(m>1?m-1:0),M=1;M<m;M++)C[M-1]=arguments[M];Je("warn",s,C)}}function oe(s){{for(var m=arguments.length,C=new Array(m>1?m-1:0),M=1;M<m;M++)C[M-1]=arguments[M];Je("error",s,C)}}function Je(s,m,C){{var M=_t.ReactDebugCurrentFrame,$=M.getStackAddendum();$!==""&&(m+="%s",C=C.concat([$]));var Ae=C.map(function(me){return String(me)});Ae.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Ae)}}var ht={};function St(s,m){{var C=s.constructor,M=C&&(C.displayName||C.name)||"ReactClass",$=M+"."+m;if(ht[$])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,M),ht[$]=!0}}var sa={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,C){St(s,"forceUpdate")},enqueueReplaceState:function(s,m,C,M){St(s,"replaceState")},enqueueSetState:function(s,m,C,M){St(s,"setState")}},ot=Object.assign,Un={};Object.freeze(Un);function Ht(s,m,C){this.props=s,this.context=m,this.refs=Un,this.updater=C||sa}Ht.prototype.isReactComponent={},Ht.prototype.setState=function(s,m){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,m,"setState")},Ht.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var At={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)."]},qn=function(s,m){Object.defineProperty(Ht.prototype,s,{get:function(){zt("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var fn in At)At.hasOwnProperty(fn)&&qn(fn,At[fn])}function yn(){}yn.prototype=Ht.prototype;function dn(s,m,C){this.props=s,this.context=m,this.refs=Un,this.updater=C||sa}var nn=dn.prototype=new yn;nn.constructor=dn,ot(nn,Ht.prototype),nn.isPureReactComponent=!0;function N(){var s={current:null};return Object.seal(s),s}var K=Array.isArray;function ne(s){return K(s)}function re(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,C=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return C}}function Se(s){try{return qe(s),!1}catch{return!0}}function qe(s){return""+s}function dt(s){if(Se(s))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",re(s)),qe(s)}function je(s,m,C){var M=s.displayName;if(M)return M;var $=m.displayName||m.name||"";return $!==""?C+"("+$+")":C}function Tt(s){return s.displayName||"Context"}function $t(s){if(s==null)return null;if(typeof s.tag=="number"&&oe("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 Be:return"Fragment";case ce:return"Portal";case J:return"Profiler";case d:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ee:var m=s;return Tt(m)+".Consumer";case ge:var C=s;return Tt(C._context)+".Provider";case it:return je(s,s.render,"ForwardRef");case ue:var M=s.displayName||null;return M!==null?M:$t(s.type)||"Memo";case Ke:{var $=s,Ae=$._payload,me=$._init;try{return $t(me(Ae))}catch{return null}}}return null}var Xt=Object.prototype.hasOwnProperty,Et={key:!0,ref:!0,__self:!0,__source:!0},Ft,vn,Zt;Zt={};function un(s){if(Xt.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function zn(s){if(Xt.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function Xa(s,m){var C=function(){Ft||(Ft=!0,oe("%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))};C.isReactWarning=!0,Object.defineProperty(s,"key",{get:C,configurable:!0})}function ka(s,m){var C=function(){vn||(vn=!0,oe("%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))};C.isReactWarning=!0,Object.defineProperty(s,"ref",{get:C,configurable:!0})}function I(s){if(typeof s.ref=="string"&&Ee.current&&s.__self&&Ee.current.stateNode!==s.__self){var m=$t(Ee.current.type);Zt[m]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',m,s.ref),Zt[m]=!0)}}var Te=function(s,m,C,M,$,Ae,me){var Ye={$$typeof:Me,type:s,key:m,ref:C,props:me,_owner:Ae};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function Qe(s,m,C){var M,$={},Ae=null,me=null,Ye=null,lt=null;if(m!=null){un(m)&&(me=m.ref,I(m)),zn(m)&&(dt(m.key),Ae=""+m.key),Ye=m.__self===void 0?null:m.__self,lt=m.__source===void 0?null:m.__source;for(M in m)Xt.call(m,M)&&!Et.hasOwnProperty(M)&&($[M]=m[M])}var Ot=arguments.length-2;if(Ot===1)$.children=C;else if(Ot>1){for(var Gt=Array(Ot),Wt=0;Wt<Ot;Wt++)Gt[Wt]=arguments[Wt+2];Object.freeze&&Object.freeze(Gt),$.children=Gt}if(s&&s.defaultProps){var nt=s.defaultProps;for(M in nt)$[M]===void 0&&($[M]=nt[M])}if(Ae||me){var tn=typeof s=="function"?s.displayName||s.name||"Unknown":s;Ae&&Xa($,tn),me&&ka($,tn)}return Te(s,Ae,me,Ye,lt,Ee.current,$)}function Ct(s,m){var C=Te(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return C}function Vt(s,m,C){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var M,$=ot({},s.props),Ae=s.key,me=s.ref,Ye=s._self,lt=s._source,Ot=s._owner;if(m!=null){un(m)&&(me=m.ref,Ot=Ee.current),zn(m)&&(dt(m.key),Ae=""+m.key);var Gt;s.type&&s.type.defaultProps&&(Gt=s.type.defaultProps);for(M in m)Xt.call(m,M)&&!Et.hasOwnProperty(M)&&(m[M]===void 0&&Gt!==void 0?$[M]=Gt[M]:$[M]=m[M])}var Wt=arguments.length-2;if(Wt===1)$.children=C;else if(Wt>1){for(var nt=Array(Wt),tn=0;tn<Wt;tn++)nt[tn]=arguments[tn+2];$.children=nt}return Te(s.type,Ae,me,Ye,lt,Ot,$)}function jt(s){return typeof s=="object"&&s!==null&&s.$$typeof===Me}var Qt=".",sn=":";function Yt(s){var m=/[=:]/g,C={"=":"=0",":":"=2"},M=s.replace(m,function($){return C[$]});return"$"+M}var Nt=!1,g=/\/+/g;function z(s){return s.replace(g,"$&/")}function w(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(dt(s.key),Yt(""+s.key)):m.toString(36)}function D(s,m,C,M,$){var Ae=typeof s;(Ae==="undefined"||Ae==="boolean")&&(s=null);var me=!1;if(s===null)me=!0;else switch(Ae){case"string":case"number":me=!0;break;case"object":switch(s.$$typeof){case Me:case ce:me=!0}}if(me){var Ye=s,lt=$(Ye),Ot=M===""?Qt+w(Ye,0):M;if(ne(lt)){var Gt="";Ot!=null&&(Gt=z(Ot)+"/"),D(lt,m,Gt,"",function(cf){return cf})}else lt!=null&&(jt(lt)&&(lt.key&&(!Ye||Ye.key!==lt.key)&&dt(lt.key),lt=Ct(lt,C+(lt.key&&(!Ye||Ye.key!==lt.key)?z(""+lt.key)+"/":"")+Ot)),m.push(lt));return 1}var Wt,nt,tn=0,pn=M===""?Qt:M+sn;if(ne(s))for(var vi=0;vi<s.length;vi++)Wt=s[vi],nt=pn+w(Wt,vi),tn+=D(Wt,m,C,nt,$);else{var fl=ve(s);if(typeof fl=="function"){var vr=s;fl===vr.entries&&(Nt||zt("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nt=!0);for(var dl=fl.call(vr),vl,sf=0;!(vl=dl.next()).done;)Wt=vl.value,nt=pn+w(Wt,sf++),tn+=D(Wt,m,C,nt,$)}else if(Ae==="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 tn}function O(s,m,C){if(s==null)return s;var M=[],$=0;return D(s,M,"","",function(Ae){return m.call(C,Ae,$++)}),M}function F(s){var m=0;return O(s,function(){m++}),m}function U(s,m,C){O(s,function(){m.apply(this,arguments)},C)}function pe(s){return O(s,function(m){return m})||[]}function Y(s){if(!jt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function ke(s){var m={$$typeof:ee,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:ge,_context:m};var C=!1,M=!1,$=!1;{var Ae={$$typeof:ee,_context:m};Object.defineProperties(Ae,{Provider:{get:function(){return M||(M=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),m.Provider},set:function(me){m.Provider=me}},_currentValue:{get:function(){return m._currentValue},set:function(me){m._currentValue=me}},_currentValue2:{get:function(){return m._currentValue2},set:function(me){m._currentValue2=me}},_threadCount:{get:function(){return m._threadCount},set:function(me){m._threadCount=me}},Consumer:{get:function(){return C||(C=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(me){$||(zt("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",me),$=!0)}}}),m.Consumer=Ae}return m._currentRenderer=null,m._currentRenderer2=null,m}var ze=-1,se=0,He=1,tt=2;function _n(s){if(s._status===ze){var m=s._result,C=m();if(C.then(function(Ae){if(s._status===se||s._status===ze){var me=s;me._status=He,me._result=Ae}},function(Ae){if(s._status===se||s._status===ze){var me=s;me._status=tt,me._result=Ae}}),s._status===ze){var M=s;M._status=se,M._result=C}}if(s._status===He){var $=s._result;return $===void 0&&oe(`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?`,$),"default"in $||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,$),$.default}else throw s._result}function gn(s){var m={_status:ze,_result:s},C={$$typeof:Ke,_payload:m,_init:_n};{var M,$;Object.defineProperties(C,{defaultProps:{configurable:!0,get:function(){return M},set:function(Ae){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),M=Ae,Object.defineProperty(C,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return $},set:function(Ae){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),$=Ae,Object.defineProperty(C,"propTypes",{enumerable:!0})}}})}return C}function Aa(s){s!=null&&s.$$typeof===ue?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?oe("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&oe("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)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:it,render:s};{var C;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return C},set:function(M){C=M,!s.name&&!s.displayName&&(s.displayName=M)}})}return m}var p;p=Symbol.for("react.module.reference");function j(s){return!!(typeof s=="string"||typeof s=="function"||s===Be||s===J||Dt||s===d||s===P||s===R||Le||s===It||bt||X||_e||typeof s=="object"&&s!==null&&(s.$$typeof===Ke||s.$$typeof===ue||s.$$typeof===ge||s.$$typeof===ee||s.$$typeof===it||s.$$typeof===p||s.getModuleId!==void 0))}function G(s,m){j(s)||oe("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var C={$$typeof:ue,type:s,compare:m===void 0?null:m};{var M;Object.defineProperty(C,"displayName",{enumerable:!1,configurable:!0,get:function(){return M},set:function($){M=$,!s.name&&!s.displayName&&(s.displayName=$)}})}return C}function W(){var s=We.current;return s===null&&oe(`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 be(s){var m=W();if(s._context!==void 0){var C=s._context;C.Consumer===s?oe("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?"):C.Provider===s&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function De(s){var m=W();return m.useState(s)}function Ve(s,m,C){var M=W();return M.useReducer(s,m,C)}function Fe(s){var m=W();return m.useRef(s)}function an(s,m){var C=W();return C.useEffect(s,m)}function Bt(s,m){var C=W();return C.useInsertionEffect(s,m)}function rt(s,m){var C=W();return C.useLayoutEffect(s,m)}function Xe(s,m){var C=W();return C.useCallback(s,m)}function On(s,m){var C=W();return C.useMemo(s,m)}function bn(s,m,C){var M=W();return M.useImperativeHandle(s,m,C)}function Ut(s,m){{var C=W();return C.useDebugValue(s,m)}}function Ze(){var s=W();return s.useTransition()}function cr(s){var m=W();return m.useDeferredValue(s)}function Wi(){var s=W();return s.useId()}function Bu(s,m,C){var M=W();return M.useSyncExternalStore(s,m,C)}var Ar=0,Ko,Jo,Zo,el,tl,Pu,$u;function qi(){}qi.__reactDisabledLog=!0;function nl(){{if(Ar===0){Ko=console.log,Jo=console.info,Zo=console.warn,el=console.error,tl=console.group,Pu=console.groupCollapsed,$u=console.groupEnd;var s={configurable:!0,enumerable:!0,value:qi,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Ar++}}function Qa(){{if(Ar--,Ar===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ot({},s,{value:Ko}),info:ot({},s,{value:Jo}),warn:ot({},s,{value:Zo}),error:ot({},s,{value:el}),group:ot({},s,{value:tl}),groupCollapsed:ot({},s,{value:Pu}),groupEnd:ot({},s,{value:$u})})}Ar<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ui=_t.ReactCurrentDispatcher,jr;function Ii(s,m,C){{if(jr===void 0)try{throw Error()}catch($){var M=$.stack.trim().match(/\n( *(at )?)/);jr=M&&M[1]||""}return`
`+jr+s}}var si=!1,Xi;{var al=typeof WeakMap=="function"?WeakMap:Map;Xi=new al}function Yu(s,m){if(!s||si)return"";{var C=Xi.get(s);if(C!==void 0)return C}var M;si=!0;var $=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ae;Ae=ui.current,ui.current=null,nl();try{if(m){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(pn){M=pn}Reflect.construct(s,[],me)}else{try{me.call()}catch(pn){M=pn}s.call(me.prototype)}}else{try{throw Error()}catch(pn){M=pn}s()}}catch(pn){if(pn&&M&&typeof pn.stack=="string"){for(var Ye=pn.stack.split(`
`),lt=M.stack.split(`
`),Ot=Ye.length-1,Gt=lt.length-1;Ot>=1&&Gt>=0&&Ye[Ot]!==lt[Gt];)Gt--;for(;Ot>=1&&Gt>=0;Ot--,Gt--)if(Ye[Ot]!==lt[Gt]){if(Ot!==1||Gt!==1)do if(Ot--,Gt--,Gt<0||Ye[Ot]!==lt[Gt]){var Wt=`
`+Ye[Ot].replace(" at new "," at ");return s.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",s.displayName)),typeof s=="function"&&Xi.set(s,Wt),Wt}while(Ot>=1&&Gt>=0);break}}}finally{si=!1,ui.current=Ae,Qa(),Error.prepareStackTrace=$}var nt=s?s.displayName||s.name:"",tn=nt?Ii(nt):"";return typeof s=="function"&&Xi.set(s,tn),tn}function rl(s,m,C){return Yu(s,!1)}function af(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function ci(s,m,C){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return Ii(s);switch(s){case P:return Ii("Suspense");case R:return Ii("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case it:return rl(s.render);case ue:return ci(s.type,m,C);case Ke:{var M=s,$=M._payload,Ae=M._init;try{return ci(Ae($),m,C)}catch{}}}return""}var Gu={},il=_t.ReactDebugCurrentFrame;function yt(s){if(s){var m=s._owner,C=ci(s.type,s._source,m?m.type:null);il.setExtraStackFrame(C)}else il.setExtraStackFrame(null)}function rf(s,m,C,M,$){{var Ae=Function.call.bind(Xt);for(var me in s)if(Ae(s,me)){var Ye=void 0;try{if(typeof s[me]!="function"){var lt=Error((M||"React class")+": "+C+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw lt.name="Invariant Violation",lt}Ye=s[me](m,me,M,C,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Ye=Ot}Ye&&!(Ye instanceof Error)&&(yt($),oe("%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).",M||"React class",C,me,typeof Ye),yt(null)),Ye instanceof Error&&!(Ye.message in Gu)&&(Gu[Ye.message]=!0,yt($),oe("Failed %s type: %s",C,Ye.message),yt(null))}}}function fr(s){if(s){var m=s._owner,C=ci(s.type,s._source,m?m.type:null);ft(C)}else ft(null)}var Ie;Ie=!1;function ol(){if(Ee.current){var s=$t(Ee.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function ea(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),C=s.lineNumber;return`
Check your code at `+m+":"+C+"."}return""}function fi(s){return s!=null?ea(s.__source):""}var Nr={};function of(s){var m=ol();if(!m){var C=typeof s=="string"?s:s.displayName||s.name;C&&(m=`
Check the top-level render call using <`+C+">.")}return m}function Mn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var C=of(m);if(!Nr[C]){Nr[C]=!0;var M="";s&&s._owner&&s._owner!==Ee.current&&(M=" It was passed a child from "+$t(s._owner.type)+"."),fr(s),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',C,M),fr(null)}}}function en(s,m){if(typeof s=="object"){if(ne(s))for(var C=0;C<s.length;C++){var M=s[C];jt(M)&&Mn(M,m)}else if(jt(s))s._store&&(s._store.validated=!0);else if(s){var $=ve(s);if(typeof $=="function"&&$!==s.entries)for(var Ae=$.call(s),me;!(me=Ae.next()).done;)jt(me.value)&&Mn(me.value,m)}}}function Wu(s){{var m=s.type;if(m==null||typeof m=="string")return;var C;if(typeof m=="function")C=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===it||m.$$typeof===ue))C=m.propTypes;else return;if(C){var M=$t(m);rf(C,s.props,"prop",M,s)}else if(m.PropTypes!==void 0&&!Ie){Ie=!0;var $=$t(m);oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ca(s){{for(var m=Object.keys(s.props),C=0;C<m.length;C++){var M=m[C];if(M!=="children"&&M!=="key"){fr(s),oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M),fr(null);break}}s.ref!==null&&(fr(s),oe("Invalid attribute `ref` supplied to `React.Fragment`."),fr(null))}}function ta(s,m,C){var M=j(s);if(!M){var $="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&($+=" 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 Ae=fi(m);Ae?$+=Ae:$+=ol();var me;s===null?me="null":ne(s)?me="array":s!==void 0&&s.$$typeof===Me?(me="<"+($t(s.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):me=typeof s,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",me,$)}var Ye=Qe.apply(this,arguments);if(Ye==null)return Ye;if(M)for(var lt=2;lt<arguments.length;lt++)en(arguments[lt],s);return s===Be?Ca(Ye):Wu(Ye),Ye}var ja=!1;function lf(s){var m=ta.bind(null,s);return m.type=s,ja||(ja=!0,zt("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return zt("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function ll(s,m,C){for(var M=Vt.apply(this,arguments),$=2;$<arguments.length;$++)en(arguments[$],M.type);return Wu(M),M}function qu(s,m){var C=mt.transition;mt.transition={};var M=mt.transition;mt.transition._updatedFibers=new Set;try{s()}finally{if(mt.transition=C,C===null&&M._updatedFibers){var $=M._updatedFibers.size;$>10&&zt("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."),M._updatedFibers.clear()}}}var ul=!1,Qi=null;function uf(s){if(Qi===null)try{var m=("require"+Math.random()).slice(0,7),C=T&&T[m];Qi=C.call(T,"timers").setImmediate}catch{Qi=function($){ul===!1&&(ul=!0,typeof MessageChannel>"u"&&oe("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 Ae=new MessageChannel;Ae.port1.onmessage=$,Ae.port2.postMessage(void 0)}}return Qi(s)}var Ur=0,di=!1;function sl(s){{var m=Ur;Ur++,te.current===null&&(te.current=[]);var C=te.isBatchingLegacy,M;try{if(te.isBatchingLegacy=!0,M=s(),!C&&te.didScheduleLegacyUpdate){var $=te.current;$!==null&&(te.didScheduleLegacyUpdate=!1,Zi($))}}catch(nt){throw dr(m),nt}finally{te.isBatchingLegacy=C}if(M!==null&&typeof M=="object"&&typeof M.then=="function"){var Ae=M,me=!1,Ye={then:function(nt,tn){me=!0,Ae.then(function(pn){dr(m),Ur===0?Ki(pn,nt,tn):nt(pn)},function(pn){dr(m),tn(pn)})}};return!di&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){me||(di=!0,oe("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 () => ...);"))}),Ye}else{var lt=M;if(dr(m),Ur===0){var Ot=te.current;Ot!==null&&(Zi(Ot),te.current=null);var Gt={then:function(nt,tn){te.current===null?(te.current=[],Ki(lt,nt,tn)):nt(lt)}};return Gt}else{var Wt={then:function(nt,tn){nt(lt)}};return Wt}}}}function dr(s){s!==Ur-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ur=s}function Ki(s,m,C){{var M=te.current;if(M!==null)try{Zi(M),uf(function(){M.length===0?(te.current=null,m(s)):Ki(s,m,C)})}catch($){C($)}else m(s)}}var Ji=!1;function Zi(s){if(!Ji){Ji=!0;var m=0;try{for(;m<s.length;m++){var C=s[m];do C=C(!0);while(C!==null)}s.length=0}catch(M){throw s=s.slice(m+1),M}finally{Ji=!1}}}var Iu=ta,Xu=ll,cl=lf,Qu={map:O,forEach:U,count:F,toArray:pe,only:Y};_.Children=Qu,_.Component=Ht,_.Fragment=Be,_.Profiler=J,_.PureComponent=dn,_.StrictMode=d,_.Suspense=P,_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_t,_.act=sl,_.cloneElement=Xu,_.createContext=ke,_.createElement=Iu,_.createFactory=cl,_.createRef=N,_.forwardRef=Aa,_.isValidElement=jt,_.lazy=gn,_.memo=G,_.startTransition=qu,_.unstable_act=sl,_.useCallback=Xe,_.useContext=be,_.useDebugValue=Ut,_.useDeferredValue=cr,_.useEffect=an,_.useId=Wi,_.useImperativeHandle=bn,_.useInsertionEffect=Bt,_.useLayoutEffect=rt,_.useMemo=On,_.useReducer=Ve,_.useRef=Fe,_.useState=De,_.useSyncExternalStore=Bu,_.useTransition=Ze,_.version=he,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(Xo,Xo.exports)),Xo.exports}var pm;function Jc(){return pm||(pm=1,Kc.exports=FS()),Kc.exports}var Qo={},mm;function VS(){if(mm)return Qo;mm=1;/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return function(){var T=Jc(),_=Symbol.for("react.element"),he=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),Be=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),J=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),Ke=Symbol.iterator,It="@@iterator";function wt(p){if(p===null||typeof p!="object")return null;var j=Ke&&p[Ke]||p[It];return typeof j=="function"?j:null}var Jt=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ve(p){{for(var j=arguments.length,G=new Array(j>1?j-1:0),W=1;W<j;W++)G[W-1]=arguments[W];We("error",p,G)}}function We(p,j,G){{var W=Jt.ReactDebugCurrentFrame,be=W.getStackAddendum();be!==""&&(j+="%s",G=G.concat([be]));var De=G.map(function(Ve){return String(Ve)});De.unshift("Warning: "+j),Function.prototype.apply.call(console[p],console,De)}}var mt=!1,te=!1,Ee=!1,fe=!1,we=!1,ft;ft=Symbol.for("react.module.reference");function bt(p){return!!(typeof p=="string"||typeof p=="function"||p===Me||p===Be||we||p===ce||p===ee||p===it||fe||p===ue||mt||te||Ee||typeof p=="object"&&p!==null&&(p.$$typeof===R||p.$$typeof===P||p.$$typeof===d||p.$$typeof===J||p.$$typeof===ge||p.$$typeof===ft||p.getModuleId!==void 0))}function X(p,j,G){var W=p.displayName;if(W)return W;var be=j.displayName||j.name||"";return be!==""?G+"("+be+")":G}function _e(p){return p.displayName||"Context"}function Le(p){if(p==null)return null;if(typeof p.tag=="number"&&ve("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case Me:return"Fragment";case he:return"Portal";case Be:return"Profiler";case ce:return"StrictMode";case ee:return"Suspense";case it:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case J:var j=p;return _e(j)+".Consumer";case d:var G=p;return _e(G._context)+".Provider";case ge:return X(p,p.render,"ForwardRef");case P:var W=p.displayName||null;return W!==null?W:Le(p.type)||"Memo";case R:{var be=p,De=be._payload,Ve=be._init;try{return Le(Ve(De))}catch{return null}}}return null}var Dt=Object.assign,_t=0,zt,oe,Je,ht,St,sa,ot;function Un(){}Un.__reactDisabledLog=!0;function Ht(){{if(_t===0){zt=console.log,oe=console.info,Je=console.warn,ht=console.error,St=console.group,sa=console.groupCollapsed,ot=console.groupEnd;var p={configurable:!0,enumerable:!0,value:Un,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}_t++}}function At(){{if(_t--,_t===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Dt({},p,{value:zt}),info:Dt({},p,{value:oe}),warn:Dt({},p,{value:Je}),error:Dt({},p,{value:ht}),group:Dt({},p,{value:St}),groupCollapsed:Dt({},p,{value:sa}),groupEnd:Dt({},p,{value:ot})})}_t<0&&ve("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qn=Jt.ReactCurrentDispatcher,fn;function yn(p,j,G){{if(fn===void 0)try{throw Error()}catch(be){var W=be.stack.trim().match(/\n( *(at )?)/);fn=W&&W[1]||""}return`
`+fn+p}}var dn=!1,nn;{var N=typeof WeakMap=="function"?WeakMap:Map;nn=new N}function K(p,j){if(!p||dn)return"";{var G=nn.get(p);if(G!==void 0)return G}var W;dn=!0;var be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var De;De=qn.current,qn.current=null,Ht();try{if(j){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[])}catch(Ut){W=Ut}Reflect.construct(p,[],Ve)}else{try{Ve.call()}catch(Ut){W=Ut}p.call(Ve.prototype)}}else{try{throw Error()}catch(Ut){W=Ut}p()}}catch(Ut){if(Ut&&W&&typeof Ut.stack=="string"){for(var Fe=Ut.stack.split(`
`),an=W.stack.split(`
`),Bt=Fe.length-1,rt=an.length-1;Bt>=1&&rt>=0&&Fe[Bt]!==an[rt];)rt--;for(;Bt>=1&&rt>=0;Bt--,rt--)if(Fe[Bt]!==an[rt]){if(Bt!==1||rt!==1)do if(Bt--,rt--,rt<0||Fe[Bt]!==an[rt]){var Xe=`
`+Fe[Bt].replace(" at new "," at ");return p.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",p.displayName)),typeof p=="function"&&nn.set(p,Xe),Xe}while(Bt>=1&&rt>=0);break}}}finally{dn=!1,qn.current=De,At(),Error.prepareStackTrace=be}var On=p?p.displayName||p.name:"",bn=On?yn(On):"";return typeof p=="function"&&nn.set(p,bn),bn}function ne(p,j,G){return K(p,!1)}function re(p){var j=p.prototype;return!!(j&&j.isReactComponent)}function Se(p,j,G){if(p==null)return"";if(typeof p=="function")return K(p,re(p));if(typeof p=="string")return yn(p);switch(p){case ee:return yn("Suspense");case it:return yn("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case ge:return ne(p.render);case P:return Se(p.type,j,G);case R:{var W=p,be=W._payload,De=W._init;try{return Se(De(be),j,G)}catch{}}}return""}var qe=Object.prototype.hasOwnProperty,dt={},je=Jt.ReactDebugCurrentFrame;function Tt(p){if(p){var j=p._owner,G=Se(p.type,p._source,j?j.type:null);je.setExtraStackFrame(G)}else je.setExtraStackFrame(null)}function $t(p,j,G,W,be){{var De=Function.call.bind(qe);for(var Ve in p)if(De(p,Ve)){var Fe=void 0;try{if(typeof p[Ve]!="function"){var an=Error((W||"React class")+": "+G+" type `"+Ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[Ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw an.name="Invariant Violation",an}Fe=p[Ve](j,Ve,W,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Bt){Fe=Bt}Fe&&!(Fe instanceof Error)&&(Tt(be),ve("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",G,Ve,typeof Fe),Tt(null)),Fe instanceof Error&&!(Fe.message in dt)&&(dt[Fe.message]=!0,Tt(be),ve("Failed %s type: %s",G,Fe.message),Tt(null))}}}var Xt=Array.isArray;function Et(p){return Xt(p)}function Ft(p){{var j=typeof Symbol=="function"&&Symbol.toStringTag,G=j&&p[Symbol.toStringTag]||p.constructor.name||"Object";return G}}function vn(p){try{return Zt(p),!1}catch{return!0}}function Zt(p){return""+p}function un(p){if(vn(p))return ve("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ft(p)),Zt(p)}var zn=Jt.ReactCurrentOwner,Xa={key:!0,ref:!0,__self:!0,__source:!0},ka,I;function Te(p){if(qe.call(p,"ref")){var j=Object.getOwnPropertyDescriptor(p,"ref").get;if(j&&j.isReactWarning)return!1}return p.ref!==void 0}function Qe(p){if(qe.call(p,"key")){var j=Object.getOwnPropertyDescriptor(p,"key").get;if(j&&j.isReactWarning)return!1}return p.key!==void 0}function Ct(p,j){typeof p.ref=="string"&&zn.current}function Vt(p,j){{var G=function(){ka||(ka=!0,ve("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};G.isReactWarning=!0,Object.defineProperty(p,"key",{get:G,configurable:!0})}}function jt(p,j){{var G=function(){I||(I=!0,ve("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};G.isReactWarning=!0,Object.defineProperty(p,"ref",{get:G,configurable:!0})}}var Qt=function(p,j,G,W,be,De,Ve){var Fe={$$typeof:_,type:p,key:j,ref:G,props:Ve,_owner:De};return Fe._store={},Object.defineProperty(Fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(Fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.freeze&&(Object.freeze(Fe.props),Object.freeze(Fe)),Fe};function sn(p,j,G,W,be){{var De,Ve={},Fe=null,an=null;G!==void 0&&(un(G),Fe=""+G),Qe(j)&&(un(j.key),Fe=""+j.key),Te(j)&&(an=j.ref,Ct(j,be));for(De in j)qe.call(j,De)&&!Xa.hasOwnProperty(De)&&(Ve[De]=j[De]);if(p&&p.defaultProps){var Bt=p.defaultProps;for(De in Bt)Ve[De]===void 0&&(Ve[De]=Bt[De])}if(Fe||an){var rt=typeof p=="function"?p.displayName||p.name||"Unknown":p;Fe&&Vt(Ve,rt),an&&jt(Ve,rt)}return Qt(p,Fe,an,be,W,zn.current,Ve)}}var Yt=Jt.ReactCurrentOwner,Nt=Jt.ReactDebugCurrentFrame;function g(p){if(p){var j=p._owner,G=Se(p.type,p._source,j?j.type:null);Nt.setExtraStackFrame(G)}else Nt.setExtraStackFrame(null)}var z;z=!1;function w(p){return typeof p=="object"&&p!==null&&p.$$typeof===_}function D(){{if(Yt.current){var p=Le(Yt.current.type);if(p)return`
Check the render method of \``+p+"`."}return""}}function O(p){return""}var F={};function U(p){{var j=D();if(!j){var G=typeof p=="string"?p:p.displayName||p.name;G&&(j=`
Check the top-level render call using <`+G+">.")}return j}}function pe(p,j){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var G=U(j);if(F[G])return;F[G]=!0;var W="";p&&p._owner&&p._owner!==Yt.current&&(W=" It was passed a child from "+Le(p._owner.type)+"."),g(p),ve('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,W),g(null)}}function Y(p,j){{if(typeof p!="object")return;if(Et(p))for(var G=0;G<p.length;G++){var W=p[G];w(W)&&pe(W,j)}else if(w(p))p._store&&(p._store.validated=!0);else if(p){var be=wt(p);if(typeof be=="function"&&be!==p.entries)for(var De=be.call(p),Ve;!(Ve=De.next()).done;)w(Ve.value)&&pe(Ve.value,j)}}}function ke(p){{var j=p.type;if(j==null||typeof j=="string")return;var G;if(typeof j=="function")G=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===ge||j.$$typeof===P))G=j.propTypes;else return;if(G){var W=Le(j);$t(G,p.props,"prop",W,p)}else if(j.PropTypes!==void 0&&!z){z=!0;var be=Le(j);ve("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",be||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&ve("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ze(p){{for(var j=Object.keys(p.props),G=0;G<j.length;G++){var W=j[G];if(W!=="children"&&W!=="key"){g(p),ve("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),g(null);break}}p.ref!==null&&(g(p),ve("Invalid attribute `ref` supplied to `React.Fragment`."),g(null))}}var se={};function He(p,j,G,W,be,De){{var Ve=bt(p);if(!Ve){var Fe="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(Fe+=" 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 an=O();an?Fe+=an:Fe+=D();var Bt;p===null?Bt="null":Et(p)?Bt="array":p!==void 0&&p.$$typeof===_?(Bt="<"+(Le(p.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Bt=typeof p,ve("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Bt,Fe)}var rt=sn(p,j,G,be,De);if(rt==null)return rt;if(Ve){var Xe=j.children;if(Xe!==void 0)if(W)if(Et(Xe)){for(var On=0;On<Xe.length;On++)Y(Xe[On],p);Object.freeze&&Object.freeze(Xe)}else ve("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Y(Xe,p)}if(qe.call(j,"key")){var bn=Le(p),Ut=Object.keys(j).filter(function(Wi){return Wi!=="key"}),Ze=Ut.length>0?"{key: someKey, "+Ut.join(": ..., ")+": ...}":"{key: someKey}";if(!se[bn+Ze]){var cr=Ut.length>0?"{"+Ut.join(": ..., ")+": ...}":"{}";ve(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,Ze,bn,cr,bn),se[bn+Ze]=!0}}return p===Me?ze(rt):ke(rt),rt}}function tt(p,j,G){return He(p,j,G,!0)}function _n(p,j,G){return He(p,j,G,!1)}var gn=_n,Aa=tt;Qo.Fragment=Me,Qo.jsx=gn,Qo.jsxs=Aa}(),Qo}dm.exports=VS();var v=dm.exports,hm={exports:{}},Zc={exports:{}},ef={},ym;function BS(){return ym||(ym=1,function(T){/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var _=!1,he=5;function Me(I,Te){var Qe=I.length;I.push(Te),d(I,Te,Qe)}function ce(I){return I.length===0?null:I[0]}function Be(I){if(I.length===0)return null;var Te=I[0],Qe=I.pop();return Qe!==Te&&(I[0]=Qe,J(I,Qe,0)),Te}function d(I,Te,Qe){for(var Ct=Qe;Ct>0;){var Vt=Ct-1>>>1,jt=I[Vt];if(ge(jt,Te)>0)I[Vt]=Te,I[Ct]=jt,Ct=Vt;else return}}function J(I,Te,Qe){for(var Ct=Qe,Vt=I.length,jt=Vt>>>1;Ct<jt;){var Qt=(Ct+1)*2-1,sn=I[Qt],Yt=Qt+1,Nt=I[Yt];if(ge(sn,Te)<0)Yt<Vt&&ge(Nt,sn)<0?(I[Ct]=Nt,I[Yt]=Te,Ct=Yt):(I[Ct]=sn,I[Qt]=Te,Ct=Qt);else if(Yt<Vt&&ge(Nt,Te)<0)I[Ct]=Nt,I[Yt]=Te,Ct=Yt;else return}}function ge(I,Te){var Qe=I.sortIndex-Te.sortIndex;return Qe!==0?Qe:I.id-Te.id}var ee=1,it=2,P=3,R=4,ue=5;function Ke(I,Te){}var It=typeof performance=="object"&&typeof performance.now=="function";if(It){var wt=performance;T.unstable_now=function(){return wt.now()}}else{var Jt=Date,ve=Jt.now();T.unstable_now=function(){return Jt.now()-ve}}var We=1073741823,mt=-1,te=250,Ee=5e3,fe=1e4,we=We,ft=[],bt=[],X=1,_e=null,Le=P,Dt=!1,_t=!1,zt=!1,oe=typeof setTimeout=="function"?setTimeout:null,Je=typeof clearTimeout=="function"?clearTimeout:null,ht=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function St(I){for(var Te=ce(bt);Te!==null;){if(Te.callback===null)Be(bt);else if(Te.startTime<=I)Be(bt),Te.sortIndex=Te.expirationTime,Me(ft,Te);else return;Te=ce(bt)}}function sa(I){if(zt=!1,St(I),!_t)if(ce(ft)!==null)_t=!0,Zt(ot);else{var Te=ce(bt);Te!==null&&un(sa,Te.startTime-I)}}function ot(I,Te){_t=!1,zt&&(zt=!1,zn()),Dt=!0;var Qe=Le;try{var Ct;if(!_)return Un(I,Te)}finally{_e=null,Le=Qe,Dt=!1}}function Un(I,Te){var Qe=Te;for(St(Qe),_e=ce(ft);_e!==null&&!(_e.expirationTime>Qe&&(!I||je()));){var Ct=_e.callback;if(typeof Ct=="function"){_e.callback=null,Le=_e.priorityLevel;var Vt=_e.expirationTime<=Qe,jt=Ct(Vt);Qe=T.unstable_now(),typeof jt=="function"?_e.callback=jt:_e===ce(ft)&&Be(ft),St(Qe)}else Be(ft);_e=ce(ft)}if(_e!==null)return!0;var Qt=ce(bt);return Qt!==null&&un(sa,Qt.startTime-Qe),!1}function Ht(I,Te){switch(I){case ee:case it:case P:case R:case ue:break;default:I=P}var Qe=Le;Le=I;try{return Te()}finally{Le=Qe}}function At(I){var Te;switch(Le){case ee:case it:case P:Te=P;break;default:Te=Le;break}var Qe=Le;Le=Te;try{return I()}finally{Le=Qe}}function qn(I){var Te=Le;return function(){var Qe=Le;Le=Te;try{return I.apply(this,arguments)}finally{Le=Qe}}}function fn(I,Te,Qe){var Ct=T.unstable_now(),Vt;if(typeof Qe=="object"&&Qe!==null){var jt=Qe.delay;typeof jt=="number"&&jt>0?Vt=Ct+jt:Vt=Ct}else Vt=Ct;var Qt;switch(I){case ee:Qt=mt;break;case it:Qt=te;break;case ue:Qt=we;break;case R:Qt=fe;break;case P:default:Qt=Ee;break}var sn=Vt+Qt,Yt={id:X++,callback:Te,priorityLevel:I,startTime:Vt,expirationTime:sn,sortIndex:-1};return Vt>Ct?(Yt.sortIndex=Vt,Me(bt,Yt),ce(ft)===null&&Yt===ce(bt)&&(zt?zn():zt=!0,un(sa,Vt-Ct))):(Yt.sortIndex=sn,Me(ft,Yt),!_t&&!Dt&&(_t=!0,Zt(ot))),Yt}function yn(){}function dn(){!_t&&!Dt&&(_t=!0,Zt(ot))}function nn(){return ce(ft)}function N(I){I.callback=null}function K(){return Le}var ne=!1,re=null,Se=-1,qe=he,dt=-1;function je(){var I=T.unstable_now()-dt;return!(I<qe)}function Tt(){}function $t(I){if(I<0||I>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}I>0?qe=Math.floor(1e3/I):qe=he}var Xt=function(){if(re!==null){var I=T.unstable_now();dt=I;var Te=!0,Qe=!0;try{Qe=re(Te,I)}finally{Qe?Et():(ne=!1,re=null)}}else ne=!1},Et;if(typeof ht=="function")Et=function(){ht(Xt)};else if(typeof MessageChannel<"u"){var Ft=new MessageChannel,vn=Ft.port2;Ft.port1.onmessage=Xt,Et=function(){vn.postMessage(null)}}else Et=function(){oe(Xt,0)};function Zt(I){re=I,ne||(ne=!0,Et())}function un(I,Te){Se=oe(function(){I(T.unstable_now())},Te)}function zn(){Je(Se),Se=-1}var Xa=Tt,ka=null;T.unstable_IdlePriority=ue,T.unstable_ImmediatePriority=ee,T.unstable_LowPriority=R,T.unstable_NormalPriority=P,T.unstable_Profiling=ka,T.unstable_UserBlockingPriority=it,T.unstable_cancelCallback=N,T.unstable_continueExecution=dn,T.unstable_forceFrameRate=$t,T.unstable_getCurrentPriorityLevel=K,T.unstable_getFirstCallbackNode=nn,T.unstable_next=At,T.unstable_pauseExecution=yn,T.unstable_requestPaint=Xa,T.unstable_runWithPriority=Ht,T.unstable_scheduleCallback=fn,T.unstable_shouldYield=je,T.unstable_wrapCallback=qn,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ef)),ef}var gm;function PS(){return gm||(gm=1,Zc.exports=BS()),Zc.exports}var ua={},bm;function $S(){if(bm)return ua;bm=1;/**
* @license React
* react-dom.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var T=Jc(),_=PS(),he=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Me=!1;function ce(e){Me=e}function Be(e){if(!Me){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];J("warn",e,n)}}function d(e){if(!Me){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];J("error",e,n)}}function J(e,t,n){{var a=he.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var ge=0,ee=1,it=2,P=3,R=4,ue=5,Ke=6,It=7,wt=8,Jt=9,ve=10,We=11,mt=12,te=13,Ee=14,fe=15,we=16,ft=17,bt=18,X=19,_e=21,Le=22,Dt=23,_t=24,zt=25,oe=!0,Je=!1,ht=!1,St=!1,sa=!1,ot=!0,Un=!0,Ht=!0,At=!0,qn=new Set,fn={},yn={};function dn(e,t){nn(e,t),nn(e+"Capture",t)}function nn(e,t){fn[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),fn[e]=t;{var n=e.toLowerCase();yn[n]=e,e==="onDoubleClick"&&(yn.ondblclick=e)}for(var a=0;a<t.length;a++)qn.add(t[a])}var N=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",K=Object.prototype.hasOwnProperty;function ne(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function re(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function qe(e,t){if(re(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,ne(e)),Se(e)}function dt(e){if(re(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ne(e)),Se(e)}function je(e,t){if(re(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,ne(e)),Se(e)}function Tt(e,t){if(re(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,ne(e)),Se(e)}function $t(e){if(re(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.",ne(e)),Se(e)}function Xt(e){if(re(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.",ne(e)),Se(e)}var Et=0,Ft=1,vn=2,Zt=3,un=4,zn=5,Xa=6,ka=":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",I=ka+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("^["+ka+"]["+I+"]*$"),Qe={},Ct={};function Vt(e){return K.call(Ct,e)?!0:K.call(Qe,e)?!1:Te.test(e)?(Ct[e]=!0,!0):(Qe[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function jt(e,t,n){return t!==null?t.type===Et:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Qt(e,t,n,a){if(n!==null&&n.type===Et)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 sn(e,t,n,a){if(t===null||typeof t>"u"||Qt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Zt:return!t;case un:return t===!1;case zn:return isNaN(t);case Xa:return isNaN(t)||t<1}return!1}function Yt(e){return g.hasOwnProperty(e)?g[e]:null}function Nt(e,t,n,a,r,i,o){this.acceptsBooleans=t===vn||t===Zt||t===un,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var g={},z=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];z.forEach(function(e){g[e]=new Nt(e,Et,!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];g[t]=new Nt(t,Ft,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new Nt(e,vn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new Nt(e,vn,!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){g[e]=new Nt(e,Zt,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new Nt(e,Zt,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new Nt(e,un,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new Nt(e,Xa,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new Nt(e,zn,!1,e.toLowerCase(),null,!1,!1)});var w=/[\-\:]([a-z])/g,D=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(w,D);g[t]=new Nt(t,Ft,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(w,D);g[t]=new Nt(t,Ft,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(w,D);g[t]=new Nt(t,Ft,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new Nt(e,Ft,!1,e.toLowerCase(),null,!1,!1)});var O="xlinkHref";g[O]=new Nt("xlinkHref",Ft,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new Nt(e,Ft,!1,e.toLowerCase(),null,!0,!0)});var F=/^[\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,U=!1;function pe(e){!U&&F.test(e)&&(U=!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 Y(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{qe(n,t),a.sanitizeURL&&pe(""+n);var i=a.attributeName,o=null;if(a.type===un){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:sn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(sn(t,n,a,!1))return e.getAttribute(i);if(a.type===Zt)return n;o=e.getAttribute(i)}return sn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function ke(e,t,n,a){{if(!Vt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return qe(n,t),r===""+n?n:r}}function ze(e,t,n,a){var r=Yt(t);if(!jt(t,r,a)){if(sn(t,n,r,a)&&(n=null),a||r===null){if(Vt(t)){var i=t;n===null?e.removeAttribute(i):(qe(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===Zt?!1:""}else e[l]=n;return}var c=r.attributeName,f=r.attributeNamespace;if(n===null)e.removeAttribute(c);else{var y=r.type,h;y===Zt||y===un&&n===!0?h="":(qe(n,c),h=""+n,r.sanitizeURL&&pe(h.toString())),f?e.setAttributeNS(f,c,h):e.setAttribute(c,h)}}}var se=Symbol.for("react.element"),He=Symbol.for("react.portal"),tt=Symbol.for("react.fragment"),_n=Symbol.for("react.strict_mode"),gn=Symbol.for("react.profiler"),Aa=Symbol.for("react.provider"),p=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),De=Symbol.for("react.lazy"),Ve=Symbol.for("react.scope"),Fe=Symbol.for("react.debug_trace_mode"),an=Symbol.for("react.offscreen"),Bt=Symbol.for("react.legacy_hidden"),rt=Symbol.for("react.cache"),Xe=Symbol.for("react.tracing_marker"),On=Symbol.iterator,bn="@@iterator";function Ut(e){if(e===null||typeof e!="object")return null;var t=On&&e[On]||e[bn];return typeof t=="function"?t:null}var Ze=Object.assign,cr=0,Wi,Bu,Ar,Ko,Jo,Zo,el;function tl(){}tl.__reactDisabledLog=!0;function Pu(){{if(cr===0){Wi=console.log,Bu=console.info,Ar=console.warn,Ko=console.error,Jo=console.group,Zo=console.groupCollapsed,el=console.groupEnd;var e={configurable:!0,enumerable:!0,value:tl,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}cr++}}function $u(){{if(cr--,cr===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ze({},e,{value:Wi}),info:Ze({},e,{value:Bu}),warn:Ze({},e,{value:Ar}),error:Ze({},e,{value:Ko}),group:Ze({},e,{value:Jo}),groupCollapsed:Ze({},e,{value:Zo}),groupEnd:Ze({},e,{value:el})})}cr<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qi=he.ReactCurrentDispatcher,nl;function Qa(e,t,n){{if(nl===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);nl=a&&a[1]||""}return`
`+nl+e}}var ui=!1,jr;{var Ii=typeof WeakMap=="function"?WeakMap:Map;jr=new Ii}function si(e,t){if(!e||ui)return"";{var n=jr.get(e);if(n!==void 0)return n}var a;ui=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=qi.current,qi.current=null,Pu();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(x){a=x}Reflect.construct(e,[],o)}else{try{o.call()}catch(x){a=x}e.call(o.prototype)}}else{try{throw Error()}catch(x){a=x}e()}}catch(x){if(x&&a&&typeof x.stack=="string"){for(var l=x.stack.split(`
`),u=a.stack.split(`
`),c=l.length-1,f=u.length-1;c>=1&&f>=0&&l[c]!==u[f];)f--;for(;c>=1&&f>=0;c--,f--)if(l[c]!==u[f]){if(c!==1||f!==1)do if(c--,f--,f<0||l[c]!==u[f]){var y=`
`+l[c].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&jr.set(e,y),y}while(c>=1&&f>=0);break}}}finally{ui=!1,qi.current=i,$u(),Error.prepareStackTrace=r}var h=e?e.displayName||e.name:"",E=h?Qa(h):"";return typeof e=="function"&&jr.set(e,E),E}function Xi(e,t,n){return si(e,!0)}function al(e,t,n){return si(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function rl(e,t,n){if(e==null)return"";if(typeof e=="function")return si(e,Yu(e));if(typeof e=="string")return Qa(e);switch(e){case G:return Qa("Suspense");case W:return Qa("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case j:return al(e.render);case be:return rl(e.type,t,n);case De:{var a=e,r=a._payload,i=a._init;try{return rl(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case ue:return Qa(e.type);case we:return Qa("Lazy");case te:return Qa("Suspense");case X:return Qa("SuspenseList");case ge:case it:case fe:return al(e.type);case We:return al(e.type.render);case ee:return Xi(e.type);default:return""}}function ci(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 Gu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function il(e){return e.displayName||"Context"}function yt(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 tt:return"Fragment";case He:return"Portal";case gn:return"Profiler";case _n:return"StrictMode";case G:return"Suspense";case W:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var t=e;return il(t)+".Consumer";case Aa:var n=e;return il(n._context)+".Provider";case j:return Gu(e,e.render,"ForwardRef");case be:var a=e.displayName||null;return a!==null?a:yt(e.type)||"Memo";case De:{var r=e,i=r._payload,o=r._init;try{return yt(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 fr(e){return e.displayName||"Context"}function Ie(e){var t=e.tag,n=e.type;switch(t){case _t:return"Cache";case Jt:var a=n;return fr(a)+".Consumer";case ve:var r=n;return fr(r._context)+".Provider";case bt:return"DehydratedFragment";case We:return rf(n,n.render,"ForwardRef");case It:return"Fragment";case ue:return n;case R:return"Portal";case P:return"Root";case Ke:return"Text";case we:return yt(n);case wt:return n===_n?"StrictMode":"Mode";case Le:return"Offscreen";case mt:return"Profiler";case _e:return"Scope";case te:return"Suspense";case X:return"SuspenseList";case zt:return"TracingMarker";case ee:case ge:case ft:case it:case Ee:case fe:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var ol=he.ReactDebugCurrentFrame,ea=null,fi=!1;function Nr(){{if(ea===null)return null;var e=ea._debugOwner;if(e!==null&&typeof e<"u")return Ie(e)}return null}function of(){return ea===null?"":ci(ea)}function Mn(){ol.getCurrentStack=null,ea=null,fi=!1}function en(e){ol.getCurrentStack=e===null?null:of,ea=e,fi=!1}function Wu(){return ea}function Ca(e){fi=e}function ta(e){return""+e}function ja(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Xt(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function ll(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 ul(e){return e._valueTracker}function Qi(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Ur(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Xt(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){Xt(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){Xt(l),a=""+l},stopTracking:function(){Qi(e),delete e[t]}};return o}}function di(e){ul(e)||(e._valueTracker=Ur(e))}function sl(e){if(!e)return!1;var t=ul(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function dr(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 Ki=!1,Ji=!1,Zi=!1,Iu=!1;function Xu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function cl(e,t){var n=e,a=t.checked,r=Ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Qu(e,t){ll("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!Ji&&(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",Nr()||"A component",t.type),Ji=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Ki&&(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",Nr()||"A component",t.type),Ki=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:ja(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&ze(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Xu(t);!n._wrapperState.controlled&&a&&!Iu&&(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"),Iu=!0),n._wrapperState.controlled&&!a&&!Zi&&(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"),Zi=!0)}s(e,t);var r=ja(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ta(r)):n.value!==ta(r)&&(n.value=ta(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Ae(n,t.type,r):t.hasOwnProperty("defaultValue")&&Ae(n,t.type,ja(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function C(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=ta(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 M(e,t){var n=e;m(n,t),$(n,t)}function $(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;qe(n,"name");for(var r=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),i=0;i<r.length;i++){var o=r[i];if(!(o===e||o.form!==e.form)){var l=zs(o);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");sl(o),m(o,l)}}}}function Ae(e,t,n){(t!=="number"||dr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ta(e._wrapperState.initialValue):e.defaultValue!==ta(n)&&(e.defaultValue=ta(n)))}var me=!1,Ye=!1,lt=!1;function Ot(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?T.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||Ye||(Ye=!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&&(lt||(lt=!0,d("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!me&&(d("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),me=!0)}function Gt(e,t){t.value!=null&&e.setAttribute("value",ta(ja(t.value)))}var Wt=Array.isArray;function nt(e){return Wt(e)}var tn;tn=!1;function pn(){var e=Nr();return e?`
Check the render method of \``+e+"`.":""}var vi=["value","defaultValue"];function fl(e){{ll("select",e);for(var t=0;t<vi.length;t++){var n=vi[t];if(e[n]!=null){var a=nt(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 vr(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var c=o.hasOwnProperty("$"+r[u].value);r[u].selected!==c&&(r[u].selected=c),c&&a&&(r[u].defaultSelected=!0)}}else{for(var f=ta(ja(n)),y=null,h=0;h<r.length;h++){if(r[h].value===f){r[h].selected=!0,a&&(r[h].defaultSelected=!0);return}y===null&&!r[h].disabled&&(y=r[h])}y!==null&&(y.selected=!0)}}function dl(e,t){return Ze({},t,{value:void 0})}function vl(e,t){var n=e;fl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!tn&&(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"),tn=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?vr(n,!!t.multiple,a,!1):t.defaultValue!=null&&vr(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?vr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?vr(n,!!t.multiple,t.defaultValue,!0):vr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&vr(n,!!t.multiple,a,!1)}var Lm=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=Ze({},t,{value:void 0,defaultValue:void 0,children:ta(n._wrapperState.initialValue)});return a}function km(e,t){var n=e;ll("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Lm&&(d("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Nr()||"A component"),Lm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){d("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(nt(r)){if(r.length>1)throw new Error("<textarea> can only have at most one child.");r=r[0]}i=r}}i==null&&(i=""),a=i}n._wrapperState={initialValue:ja(a)}}function Am(e,t){var n=e,a=ja(t.value),r=ja(t.defaultValue);if(a!=null){var i=ta(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ta(r))}function jm(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function ZS(e,t){Am(e,t)}var pr="http://www.w3.org/1999/xhtml",e0="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 e0;default:return pr}}function pf(e,t){return e==null||e===pr?vf(t):e===df&&t==="foreignObject"?pr:e}var t0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Ju,Nm=t0(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Ju=Ju||document.createElement("div"),Ju.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Ju.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ca=1,mr=3,mn=8,hr=9,mf=11,Zu=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===mr){n.nodeValue=t;return}}e.textContent=t},n0={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"]},pl={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 a0(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r0=["Webkit","ms","Moz","O"];Object.keys(pl).forEach(function(e){r0.forEach(function(t){pl[a0(t,e)]=pl[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(pl.hasOwnProperty(e)&&pl[e])?t+"px":(Tt(t,e),(""+t).trim())}var i0=/([A-Z])/g,o0=/^ms-/;function l0(e){return e.replace(i0,"-$1").toLowerCase().replace(o0,"-ms-")}var Um=function(){};{var u0=/^(?:webkit|moz|o)[A-Z]/,s0=/^-ms-/,c0=/-(.)/g,zm=/;\s*$/,eo={},yf={},Hm=!1,Fm=!1,f0=function(e){return e.replace(c0,function(t,n){return n.toUpperCase()})},d0=function(e){eo.hasOwnProperty(e)&&eo[e]||(eo[e]=!0,d("Unsupported style property %s. Did you mean %s?",e,f0(e.replace(s0,"ms-"))))},v0=function(e){eo.hasOwnProperty(e)&&eo[e]||(eo[e]=!0,d("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},p0=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(zm,"")))},m0=function(e,t){Hm||(Hm=!0,d("`NaN` is an invalid value for the `%s` css style property.",e))},h0=function(e,t){Fm||(Fm=!0,d("`Infinity` is an invalid value for the `%s` css style property.",e))};Um=function(e,t){e.indexOf("-")>-1?d0(e):u0.test(e)?v0(e):zm.test(t)&&p0(e,t),typeof t=="number"&&(isNaN(t)?m0(e,t):isFinite(t)||h0(e,t))}}var y0=Um;function g0(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:l0(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Vm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||y0(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function b0(e){return e==null||typeof e=="boolean"||e===""}function Bm(e){var t={};for(var n in e)for(var a=n0[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function S0(e,t){{if(!t)return;var n=Bm(e),a=Bm(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.",b0(e[o])?"Removing":"Updating",o,l)}}}}var T0={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},E0=Ze({menuitem:!0},T0),C0="__html";function gf(e,t){if(t){if(E0[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"||!(C0 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 pi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var es={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Pm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},to={},x0=new RegExp("^(aria)-["+I+"]*$"),R0=new RegExp("^(aria)[A-Z]["+I+"]*$");function w0(e,t){{if(K.call(to,t)&&to[t])return!0;if(R0.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Pm.hasOwnProperty(n)?n:null;if(a==null)return d("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),to[t]=!0,!0;if(t!==a)return d("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),to[t]=!0,!0}if(x0.test(t)){var r=t.toLowerCase(),i=Pm.hasOwnProperty(r)?r:null;if(i==null)return to[t]=!0,!1;if(t!==i)return d("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),to[t]=!0,!0}}return!0}function D0(e,t){{var n=[];for(var a in t){var r=w0(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 _0(e,t){pi(e,t)||D0(e,t)}var $m=!1;function O0(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!$m&&($m=!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 Ym=function(){};{var na={},Gm=/^on./,M0=/^on[^A-Z]/,L0=new RegExp("^(aria)-["+I+"]*$"),k0=new RegExp("^(aria)[A-Z]["+I+"]*$");Ym=function(e,t,n,a){if(K.call(na,t)&&na[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."),na[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),na[t]=!0,!0;if(Gm.test(t))return d("Unknown event handler property `%s`. It will be ignored.",t),na[t]=!0,!0}else if(Gm.test(t))return M0.test(t)&&d("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),na[t]=!0,!0;if(L0.test(t)||k0.test(t))return!0;if(r==="innerhtml")return d("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),na[t]=!0,!0;if(r==="aria")return d("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),na[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),na[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),na[t]=!0,!0;var u=Yt(t),c=u!==null&&u.type===Et;if(es.hasOwnProperty(r)){var f=es[r];if(f!==t)return d("Invalid DOM property `%s`. Did you mean `%s`?",t,f),na[t]=!0,!0}else if(!c&&t!==r)return d("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),na[t]=!0,!0;return typeof n=="boolean"&&Qt(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),na[t]=!0,!0):c?!0:Qt(t,n,u,!1)?(na[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===Zt&&(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),na[t]=!0),!0)}}var A0=function(e,t,n){{var a=[];for(var r in t){var i=Ym(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 j0(e,t,n){pi(e,t)||A0(e,t,n)}var Wm=1,bf=2,ml=4,N0=Wm|bf|ml,hl=null;function U0(e){hl!==null&&d("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),hl=e}function z0(){hl===null&&d("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),hl=null}function H0(e){return e===hl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===mr?t.parentNode:t}var Tf=null,no=null,ao=null;function qm(e){var t=Gr(e);if(t){if(typeof Tf!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var a=zs(n);Tf(t.stateNode,t.type,a)}}}function F0(e){Tf=e}function Im(e){no?ao?ao.push(e):ao=[e]:no=e}function V0(){return no!==null||ao!==null}function Xm(){if(no){var e=no,t=ao;if(no=null,ao=null,qm(e),t)for(var n=0;n<t.length;n++)qm(t[n])}}var Qm=function(e,t){return e(t)},Km=function(){},Ef=!1;function B0(){var e=V0();e&&(Km(),Xm())}function Jm(e,t,n){if(Ef)return e(t,n);Ef=!0;try{return Qm(e,t,n)}finally{Ef=!1,B0()}}function P0(e,t,n){Qm=e,Km=n}function $0(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Y0(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&&$0(t));default:return!1}}function yl(e,t){var n=e.stateNode;if(n===null)return null;var a=zs(n);if(a===null)return null;var r=a[t];if(Y0(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(N)try{var gl={};Object.defineProperty(gl,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",gl,gl),window.removeEventListener("test",gl,gl)}catch{Cf=!1}function Zm(e,t,n,a,r,i,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var eh=Zm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");eh=function(t,n,a,r,i,o,l,u,c){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var f=document.createEvent("Event"),y=!1,h=!0,E=window.event,x=Object.getOwnPropertyDescriptor(window,"event");function L(){xf.removeEventListener(k,Ce,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=E)}var Q=Array.prototype.slice.call(arguments,3);function Ce(){y=!0,L(),n.apply(a,Q),h=!1}var ye,ct=!1,at=!1;function b(S){if(ye=S.error,ct=!0,ye===null&&S.colno===0&&S.lineno===0&&(at=!0),S.defaultPrevented&&ye!=null&&typeof ye=="object")try{ye._suppressLogging=!0}catch{}}var k="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",b),xf.addEventListener(k,Ce,!1),f.initEvent(k,!1,!1),xf.dispatchEvent(f),x&&Object.defineProperty(window,"event",x),y&&h&&(ct?at&&(ye=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.")):ye=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(ye)),window.removeEventListener("error",b),!y)return L(),Zm.apply(this,arguments)}}var G0=eh,ro=!1,ts=null,ns=!1,Rf=null,W0={onError:function(e){ro=!0,ts=e}};function wf(e,t,n,a,r,i,o,l,u){ro=!1,ts=null,G0.apply(W0,arguments)}function q0(e,t,n,a,r,i,o,l,u){if(wf.apply(this,arguments),ro){var c=Df();ns||(ns=!0,Rf=c)}}function I0(){if(ns){var e=Rf;throw ns=!1,Rf=null,e}}function X0(){return ro}function Df(){if(ro){var e=ts;return ro=!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 io(e){return e._reactInternals}function Q0(e){return e._reactInternals!==void 0}function K0(e,t){e._reactInternals=t}var Ne=0,oo=1,Ln=2,gt=4,mi=16,as=32,th=64,xt=128,hi=256,yi=512,lo=1024,zr=2048,gi=4096,bi=8192,_f=16384,J0=32767,rs=32768,Na=65536,Of=131072,nh=1048576,Mf=2097152,Si=4194304,Lf=8388608,Hr=16777216,kf=33554432,Af=gt|lo|0,jf=Ln|gt|mi|as|yi|gi|bi,bl=gt|th|yi|bi,uo=zr|mi,yr=Si|Lf|Mf,Z0=he.ReactCurrentOwner;function Ti(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|gi))!==Ne&&(n=t.return),a=t.return;while(a)}return t.tag===P?n:null}function ah(e){if(e.tag===te){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 rh(e){return e.tag===P?e.stateNode.containerInfo:null}function eT(e){return Ti(e)===e}function tT(e){{var t=Z0.current;if(t!==null&&t.tag===ee){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.",Ie(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=io(e);return r?Ti(r)===r:!1}function ih(e){if(Ti(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function oh(e){var t=e.alternate;if(!t){var n=Ti(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 ih(i),e;if(u===r)return ih(i),t;u=u.sibling}throw new Error("Unable to find node on an unmounted component.")}if(a.return!==r.return)a=i,r=o;else{for(var c=!1,f=i.child;f;){if(f===a){c=!0,a=i,r=o;break}if(f===r){c=!0,r=i,a=o;break}f=f.sibling}if(!c){for(f=o.child;f;){if(f===a){c=!0,a=o,r=i;break}if(f===r){c=!0,r=o,a=i;break}f=f.sibling}if(!c)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==r)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==P)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function lh(e){var t=oh(e);return t!==null?uh(t):null}function uh(e){if(e.tag===ue||e.tag===Ke)return e;for(var t=e.child;t!==null;){var n=uh(t);if(n!==null)return n;t=t.sibling}return null}function nT(e){var t=oh(e);return t!==null?sh(t):null}function sh(e){if(e.tag===ue||e.tag===Ke)return e;for(var t=e.child;t!==null;){if(t.tag!==R){var n=sh(t);if(n!==null)return n}t=t.sibling}return null}var ch=_.unstable_scheduleCallback,aT=_.unstable_cancelCallback,rT=_.unstable_shouldYield,iT=_.unstable_requestPaint,kn=_.unstable_now,oT=_.unstable_getCurrentPriorityLevel,is=_.unstable_ImmediatePriority,Nf=_.unstable_UserBlockingPriority,Ei=_.unstable_NormalPriority,lT=_.unstable_LowPriority,Uf=_.unstable_IdlePriority,uT=_.unstable_yieldValue,sT=_.unstable_setDisableYieldValue,so=null,In=null,ae=null,Ka=!1,Ua=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function cT(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{Un&&(e=Ze({},e,{getLaneLabelMap:hT,injectProfilingHooks:mT})),so=t.inject(e),In=t}catch(n){d("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function fT(e,t){if(In&&typeof In.onScheduleFiberRoot=="function")try{In.onScheduleFiberRoot(so,e,t)}catch(n){Ka||(Ka=!0,d("React instrumentation encountered an error: %s",n))}}function dT(e,t){if(In&&typeof In.onCommitFiberRoot=="function")try{var n=(e.current.flags&xt)===xt;if(Ht){var a;switch(t){case ya:a=is;break;case br:a=Nf;break;case Sr:a=Ei;break;case ds:a=Uf;break;default:a=Ei;break}In.onCommitFiberRoot(so,e,a,n)}}catch(r){Ka||(Ka=!0,d("React instrumentation encountered an error: %s",r))}}function vT(e){if(In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(so,e)}catch(t){Ka||(Ka=!0,d("React instrumentation encountered an error: %s",t))}}function pT(e){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(so,e)}catch(t){Ka||(Ka=!0,d("React instrumentation encountered an error: %s",t))}}function An(e){if(typeof uT=="function"&&(sT(e),ce(e)),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(so,e)}catch(t){Ka||(Ka=!0,d("React instrumentation encountered an error: %s",t))}}function mT(e){ae=e}function hT(){{for(var e=new Map,t=1,n=0;n<Hf;n++){var a=UT(t);e.set(t,a),t*=2}return e}}function yT(e){ae!==null&&typeof ae.markCommitStarted=="function"&&ae.markCommitStarted(e)}function fh(){ae!==null&&typeof ae.markCommitStopped=="function"&&ae.markCommitStopped()}function Sl(e){ae!==null&&typeof ae.markComponentRenderStarted=="function"&&ae.markComponentRenderStarted(e)}function co(){ae!==null&&typeof ae.markComponentRenderStopped=="function"&&ae.markComponentRenderStopped()}function gT(e){ae!==null&&typeof ae.markComponentPassiveEffectMountStarted=="function"&&ae.markComponentPassiveEffectMountStarted(e)}function bT(){ae!==null&&typeof ae.markComponentPassiveEffectMountStopped=="function"&&ae.markComponentPassiveEffectMountStopped()}function ST(e){ae!==null&&typeof ae.markComponentPassiveEffectUnmountStarted=="function"&&ae.markComponentPassiveEffectUnmountStarted(e)}function TT(){ae!==null&&typeof ae.markComponentPassiveEffectUnmountStopped=="function"&&ae.markComponentPassiveEffectUnmountStopped()}function ET(e){ae!==null&&typeof ae.markComponentLayoutEffectMountStarted=="function"&&ae.markComponentLayoutEffectMountStarted(e)}function CT(){ae!==null&&typeof ae.markComponentLayoutEffectMountStopped=="function"&&ae.markComponentLayoutEffectMountStopped()}function dh(e){ae!==null&&typeof ae.markComponentLayoutEffectUnmountStarted=="function"&&ae.markComponentLayoutEffectUnmountStarted(e)}function vh(){ae!==null&&typeof ae.markComponentLayoutEffectUnmountStopped=="function"&&ae.markComponentLayoutEffectUnmountStopped()}function xT(e,t,n){ae!==null&&typeof ae.markComponentErrored=="function"&&ae.markComponentErrored(e,t,n)}function RT(e,t,n){ae!==null&&typeof ae.markComponentSuspended=="function"&&ae.markComponentSuspended(e,t,n)}function wT(e){ae!==null&&typeof ae.markLayoutEffectsStarted=="function"&&ae.markLayoutEffectsStarted(e)}function DT(){ae!==null&&typeof ae.markLayoutEffectsStopped=="function"&&ae.markLayoutEffectsStopped()}function _T(e){ae!==null&&typeof ae.markPassiveEffectsStarted=="function"&&ae.markPassiveEffectsStarted(e)}function OT(){ae!==null&&typeof ae.markPassiveEffectsStopped=="function"&&ae.markPassiveEffectsStopped()}function ph(e){ae!==null&&typeof ae.markRenderStarted=="function"&&ae.markRenderStarted(e)}function MT(){ae!==null&&typeof ae.markRenderYielded=="function"&&ae.markRenderYielded()}function mh(){ae!==null&&typeof ae.markRenderStopped=="function"&&ae.markRenderStopped()}function LT(e){ae!==null&&typeof ae.markRenderScheduled=="function"&&ae.markRenderScheduled(e)}function kT(e,t){ae!==null&&typeof ae.markForceUpdateScheduled=="function"&&ae.markForceUpdateScheduled(e,t)}function zf(e,t){ae!==null&&typeof ae.markStateUpdateScheduled=="function"&&ae.markStateUpdateScheduled(e,t)}var Oe=0,ut=1,Mt=2,on=8,Ja=16,hh=Math.clz32?Math.clz32:NT,AT=Math.log,jT=Math.LN2;function NT(e){var t=e>>>0;return t===0?32:31-(AT(t)/jT|0)|0}var Hf=31,H=0,jn=0,Pe=1,fo=2,gr=4,Ci=8,Za=16,Tl=32,vo=4194240,El=64,Ff=128,Vf=256,Bf=512,Pf=1024,$f=2048,Yf=4096,Gf=8192,Wf=16384,qf=32768,If=65536,Xf=131072,Qf=262144,Kf=524288,Jf=1048576,Zf=2097152,os=130023424,po=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,yh=po,Cl=134217728,gh=268435455,xl=268435456,xi=536870912,xa=1073741824;function UT(e){{if(e&Pe)return"Sync";if(e&fo)return"InputContinuousHydration";if(e&gr)return"InputContinuous";if(e&Ci)return"DefaultHydration";if(e&Za)return"Default";if(e&Tl)return"TransitionHydration";if(e&vo)return"Transition";if(e&os)return"Retry";if(e&Cl)return"SelectiveHydration";if(e&xl)return"IdleHydration";if(e&xi)return"Idle";if(e&xa)return"Offscreen"}}var qt=-1,ls=El,us=po;function Rl(e){switch(Ri(e)){case Pe:return Pe;case fo:return fo;case gr:return gr;case Ci:return Ci;case Za:return Za;case Tl:return Tl;case El:case Ff:case Vf:case Bf:case Pf:case $f:case Yf:case Gf:case Wf:case qf:case If:case Xf:case Qf:case Kf:case Jf:case Zf:return e&vo;case po:case ed:case td:case nd:case ad:return e&os;case Cl:return Cl;case xl:return xl;case xi:return xi;case xa:return xa;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===H)return H;var a=H,r=e.suspendedLanes,i=e.pingedLanes,o=n&gh;if(o!==H){var l=o&~r;if(l!==H)a=Rl(l);else{var u=o&i;u!==H&&(a=Rl(u))}}else{var c=n&~r;c!==H?a=Rl(c):i!==H&&(a=Rl(i))}if(a===H)return H;if(t!==H&&t!==a&&(t&r)===H){var f=Ri(a),y=Ri(t);if(f>=y||f===Za&&(y&vo)!==H)return t}(a&gr)!==H&&(a|=n&Za);var h=e.entangledLanes;if(h!==H)for(var E=e.entanglements,x=a&h;x>0;){var L=wi(x),Q=1<<L;a|=E[L],x&=~Q}return a}function zT(e,t){for(var n=e.eventTimes,a=qt;t>0;){var r=wi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function HT(e,t){switch(e){case Pe:case fo:case gr:return t+250;case Ci:case Za:case Tl:case El:case Ff:case Vf:case Bf:case Pf:case $f:case Yf:case Gf:case Wf:case qf:case If:case Xf:case Qf:case Kf:case Jf:case Zf:return t+5e3;case po:case ed:case td:case nd:case ad:return qt;case Cl:case xl:case xi:case xa:return qt;default:return d("Should have found matching lanes. This is a bug in React."),qt}}function FT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=wi(o),u=1<<l,c=i[l];c===qt?((u&a)===H||(u&r)!==H)&&(i[l]=HT(u,t)):c<=t&&(e.expiredLanes|=u),o&=~u}}function VT(e){return Rl(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==H?t:t&xa?xa:H}function BT(e){return(e&Pe)!==H}function id(e){return(e&gh)!==H}function bh(e){return(e&os)===e}function PT(e){var t=Pe|gr|Za;return(e&t)===H}function $T(e){return(e&vo)===e}function cs(e,t){var n=fo|gr|Ci|Za;return(t&n)!==H}function YT(e,t){return(t&e.expiredLanes)!==H}function Sh(e){return(e&vo)!==H}function Th(){var e=ls;return ls<<=1,(ls&vo)===H&&(ls=El),e}function GT(){var e=us;return us<<=1,(us&os)===H&&(us=po),e}function Ri(e){return e&-e}function wl(e){return Ri(e)}function wi(e){return 31-hh(e)}function od(e){return wi(e)}function ha(e,t){return(e&t)!==H}function mo(e,t){return(e&t)===t}function et(e,t){return e|t}function fs(e,t){return e&~t}function Eh(e,t){return e&t}function d_(e){return e}function WT(e,t){return e!==jn&&e<t?e:t}function ld(e){for(var t=[],n=0;n<Hf;n++)t.push(e);return t}function Dl(e,t,n){e.pendingLanes|=t,t!==xi&&(e.suspendedLanes=H,e.pingedLanes=H);var a=e.eventTimes,r=od(t);a[r]=n}function qT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=wi(a),i=1<<r;n[r]=qt,a&=~i}}function Ch(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function IT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=H,e.pingedLanes=H,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=wi(o),u=1<<l;a[l]=H,r[l]=qt,i[l]=qt,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=wi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function XT(e,t){var n=Ri(t),a;switch(n){case gr:a=fo;break;case Za:a=Ci;break;case El:case Ff:case Vf:case Bf:case Pf:case $f:case Yf:case Gf:case Wf:case qf:case If:case Xf:case Qf:case Kf:case Jf:case Zf:case po:case ed:case td:case nd:case ad:a=Tl;break;case xi:a=xl;break;default:a=jn;break}return(a&(e.suspendedLanes|t))!==jn?jn:a}function xh(e,t,n){if(Ua)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=od(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function Rh(e,t){if(Ua)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 wh(e,t){return null}var ya=Pe,br=gr,Sr=Za,ds=xi,_l=jn;function za(){return _l}function Nn(e){_l=e}function QT(e,t){var n=_l;try{return _l=e,t()}finally{_l=n}}function KT(e,t){return e!==0&&e<t?e:t}function JT(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function Dh(e){var t=Ri(e);return sd(ya,t)?sd(br,t)?id(t)?Sr:ds:br:ya}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var _h;function ZT(e){_h=e}function eE(e){_h(e)}var cd;function tE(e){cd=e}var Oh;function nE(e){Oh=e}var Mh;function aE(e){Mh=e}var Lh;function rE(e){Lh=e}var fd=!1,ps=[],Fr=null,Vr=null,Br=null,Ol=new Map,Ml=new Map,Pr=[],iE=["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 oE(e){return iE.indexOf(e)>-1}function lE(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":Fr=null;break;case"dragenter":case"dragleave":Vr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Ol.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;Ml.delete(a);break}}}function Ll(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=lE(t,n,a,r,i);if(t!==null){var l=Gr(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 uE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return Fr=Ll(Fr,e,t,n,a,i),!0}case"dragenter":{var o=r;return Vr=Ll(Vr,e,t,n,a,o),!0}case"mouseover":{var l=r;return Br=Ll(Br,e,t,n,a,l),!0}case"pointerover":{var u=r,c=u.pointerId;return Ol.set(c,Ll(Ol.get(c)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var f=r,y=f.pointerId;return Ml.set(y,Ll(Ml.get(y)||null,e,t,n,a,f)),!0}}return!1}function Ah(e){var t=Oi(e.target);if(t!==null){var n=Ti(t);if(n!==null){var a=n.tag;if(a===te){var r=ah(n);if(r!==null){e.blockedOn=r,Lh(e.priority,function(){Oh(n)});return}}else if(a===P){var i=n.stateNode;if(vs(i)){e.blockedOn=rh(n);return}}}}e.blockedOn=null}function sE(e){for(var t=Mh(),n={blockedOn:null,target:e,priority:t},a=0;a<Pr.length&&sd(t,Pr[a].priority);a++);Pr.splice(a,0,n),a===0&&Ah(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);U0(i),r.target.dispatchEvent(i),z0()}else{var o=Gr(a);return o!==null&&cd(o),e.blockedOn=a,!1}t.shift()}return!0}function jh(e,t,n){ms(e)&&n.delete(t)}function cE(){fd=!1,Fr!==null&&ms(Fr)&&(Fr=null),Vr!==null&&ms(Vr)&&(Vr=null),Br!==null&&ms(Br)&&(Br=null),Ol.forEach(jh),Ml.forEach(jh)}function kl(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,_.unstable_scheduleCallback(_.unstable_NormalPriority,cE)))}function Al(e){if(ps.length>0){kl(ps[0],e);for(var t=1;t<ps.length;t++){var n=ps[t];n.blockedOn===e&&(n.blockedOn=null)}}Fr!==null&&kl(Fr,e),Vr!==null&&kl(Vr,e),Br!==null&&kl(Br,e);var a=function(l){return kl(l,e)};Ol.forEach(a),Ml.forEach(a);for(var r=0;r<Pr.length;r++){var i=Pr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;Pr.length>0;){var o=Pr[0];if(o.blockedOn!==null)break;Ah(o),o.blockedOn===null&&Pr.shift()}}var ho=he.ReactCurrentBatchConfig,dd=!0;function Nh(e){dd=!!e}function fE(){return dd}function dE(e,t,n){var a=Uh(t),r;switch(a){case ya:r=vE;break;case br:r=pE;break;case Sr:default:r=vd;break}return r.bind(null,t,n,e)}function vE(e,t,n,a){var r=za(),i=ho.transition;ho.transition=null;try{Nn(ya),vd(e,t,n,a)}finally{Nn(r),ho.transition=i}}function pE(e,t,n,a){var r=za(),i=ho.transition;ho.transition=null;try{Nn(br),vd(e,t,n,a)}finally{Nn(r),ho.transition=i}}function vd(e,t,n,a){dd&&mE(e,t,n,a)}function mE(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(uE(r,e,t,n,a)){a.stopPropagation();return}if(kh(e,a),t&ml&&oE(e)){for(;r!==null;){var i=Gr(r);i!==null&&eE(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=Oi(r);if(i!==null){var o=Ti(i);if(o===null)i=null;else{var l=o.tag;if(l===te){var u=ah(o);if(u!==null)return u;i=null}else if(l===P){var c=o.stateNode;if(vs(c))return rh(o);i=null}else o!==i&&(i=null)}}return hs=i,null}function Uh(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 ya;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 br;case"message":{var t=oT();switch(t){case is:return ya;case Nf:return br;case Ei:case lT:return Sr;case Uf:return ds;default:return Sr}}default:return Sr}}function hE(e,t,n){return e.addEventListener(t,n,!1),n}function yE(e,t,n){return e.addEventListener(t,n,!0),n}function gE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function bE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var jl=null,md=null,Nl=null;function SE(e){return jl=e,md=Hh(),!0}function TE(){jl=null,md=null,Nl=null}function zh(){if(Nl)return Nl;var e,t=md,n=t.length,a,r=Hh(),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 Nl=r.slice(e,l),Nl}function Hh(){return"value"in jl?jl.value:jl.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 Fh(){return!1}function ga(e){function t(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];u?this[l]=u(i):this[l]=i[l]}var c=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return c?this.isDefaultPrevented=gs:this.isDefaultPrevented=Fh,this.isPropagationStopped=Fh,this}return Ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gs)},persist:function(){},isPersistent:gs}),t}var yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=ga(yo),Ul=Ze({},yo,{view:0,detail:0}),EE=ga(Ul),yd,gd,zl;function CE(e){e!==zl&&(zl&&e.type==="mousemove"?(yd=e.screenX-zl.screenX,gd=e.screenY-zl.screenY):(yd=0,gd=0),zl=e)}var bs=Ze({},Ul,{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:(CE(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Vh=ga(bs),xE=Ze({},bs,{dataTransfer:0}),RE=ga(xE),wE=Ze({},Ul,{relatedTarget:0}),bd=ga(wE),DE=Ze({},yo,{animationName:0,elapsedTime:0,pseudoElement:0}),_E=ga(DE),OE=Ze({},yo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ME=ga(OE),LE=Ze({},yo,{data:0}),Bh=ga(LE),kE=Bh,AE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jE={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 NE(e){if(e.key){var t=AE[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"?jE[e.keyCode]||"Unidentified":""}var UE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=UE[e];return a?!!n[a]:!1}function Sd(e){return zE}var HE=Ze({},Ul,{key:NE,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}}),FE=ga(HE),VE=Ze({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ph=ga(VE),BE=Ze({},Ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),PE=ga(BE),$E=Ze({},yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),YE=ga($E),GE=Ze({},bs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),WE=ga(GE),qE=[9,13,27,32],$h=229,Td=N&&"CompositionEvent"in window,Hl=null;N&&"documentMode"in document&&(Hl=document.documentMode);var IE=N&&"TextEvent"in window&&!Hl,Yh=N&&(!Td||Hl&&Hl>8&&Hl<=11),Gh=32,Wh=String.fromCharCode(Gh);function XE(){dn("onBeforeInput",["compositionend","keypress","textInput","paste"]),dn("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),dn("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),dn("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var qh=!1;function QE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function KE(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function JE(e,t){return e==="keydown"&&t.keyCode===$h}function Ih(e,t){switch(e){case"keyup":return qE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==$h;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Qh(e){return e.locale==="ko"}var go=!1;function ZE(e,t,n,a,r){var i,o;if(Td?i=KE(t):go?Ih(t,a)&&(i="onCompositionEnd"):JE(t,a)&&(i="onCompositionStart"),!i)return null;Yh&&!Qh(a)&&(!go&&i==="onCompositionStart"?go=SE(r):i==="onCompositionEnd"&&go&&(o=zh()));var l=xs(n,i);if(l.length>0){var u=new Bh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var c=Xh(a);c!==null&&(u.data=c)}}}function eC(e,t){switch(e){case"compositionend":return Xh(t);case"keypress":var n=t.which;return n!==Gh?null:(qh=!0,Wh);case"textInput":var a=t.data;return a===Wh&&qh?null:a;default:return null}}function tC(e,t){if(go){if(e==="compositionend"||!Td&&Ih(e,t)){var n=zh();return TE(),go=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!QE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yh&&!Qh(t)?null:t.data;default:return null}}function nC(e,t,n,a,r){var i;if(IE?i=eC(t,a):i=tC(t,a),!i)return null;var o=xs(n,"onBeforeInput");if(o.length>0){var l=new kE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function aC(e,t,n,a,r,i,o){ZE(e,t,n,a,r),nC(e,t,n,a,r)}var rC={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 Kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rC[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 iC(e){if(!N)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 oC(){dn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Jh(e,t,n,a){Im(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 Fl=null,Vl=null;function lC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function uC(e){var t=[];Jh(t,Vl,e,Sf(e)),Jm(sC,t)}function sC(e){hy(e,0)}function Ss(e){var t=xo(e);if(sl(t))return e}function cC(e,t){if(e==="change")return t}var Zh=!1;N&&(Zh=iC("input")&&(!document.documentMode||document.documentMode>9));function fC(e,t){Fl=e,Vl=t,Fl.attachEvent("onpropertychange",ty)}function ey(){Fl&&(Fl.detachEvent("onpropertychange",ty),Fl=null,Vl=null)}function ty(e){e.propertyName==="value"&&Ss(Vl)&&uC(e)}function dC(e,t,n){e==="focusin"?(ey(),fC(t,n)):e==="focusout"&&ey()}function vC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss(Vl)}function pC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function mC(e,t){if(e==="click")return Ss(t)}function hC(e,t){if(e==="input"||e==="change")return Ss(t)}function yC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Ae(e,"number",e.value)}function gC(e,t,n,a,r,i,o){var l=n?xo(n):window,u,c;if(lC(l)?u=cC:Kh(l)?Zh?u=hC:(u=vC,c=dC):pC(l)&&(u=mC),u){var f=u(t,n);if(f){Jh(e,f,a,r);return}}c&&c(t,l,n),t==="focusout"&&yC(l)}function bC(){nn("onMouseEnter",["mouseout","mouseover"]),nn("onMouseLeave",["mouseout","mouseover"]),nn("onPointerEnter",["pointerout","pointerover"]),nn("onPointerLeave",["pointerout","pointerover"])}function SC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!H0(a)){var c=a.relatedTarget||a.fromElement;if(c&&(Oi(c)||tu(c)))return}if(!(!u&&!l)){var f;if(r.window===r)f=r;else{var y=r.ownerDocument;y?f=y.defaultView||y.parentWindow:f=window}var h,E;if(u){var x=a.relatedTarget||a.toElement;if(h=n,E=x?Oi(x):null,E!==null){var L=Ti(E);(E!==L||E.tag!==ue&&E.tag!==Ke)&&(E=null)}}else h=null,E=n;if(h!==E){var Q=Vh,Ce="onMouseLeave",ye="onMouseEnter",ct="mouse";(t==="pointerout"||t==="pointerover")&&(Q=Ph,Ce="onPointerLeave",ye="onPointerEnter",ct="pointer");var at=h==null?f:xo(h),b=E==null?f:xo(E),k=new Q(Ce,ct+"leave",h,a,r);k.target=at,k.relatedTarget=b;var S=null,V=Oi(r);if(V===n){var le=new Q(ye,ct+"enter",E,a,r);le.target=b,le.relatedTarget=at,S=le}YC(e,k,S,h,E)}}}function TC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ba=typeof Object.is=="function"?Object.is:TC;function Bl(e,t){if(ba(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(!K.call(t,i)||!ba(e[i],t[i]))return!1}return!0}function ny(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function EC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ay(e,t){for(var n=ny(e),a=0,r=0;n;){if(n.nodeType===mr){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=ny(EC(n))}}function CC(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 xC(e,r,i,o,l)}function xC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,c=0,f=e,y=null;e:for(;;){for(var h=null;f===t&&(n===0||f.nodeType===mr)&&(o=i+n),f===a&&(r===0||f.nodeType===mr)&&(l=i+r),f.nodeType===mr&&(i+=f.nodeValue.length),(h=f.firstChild)!==null;)y=f,f=h;for(;;){if(f===e)break e;if(y===t&&++u===n&&(o=i),y===a&&++c===r&&(l=i),(h=f.nextSibling)!==null)break;f=y,y=f.parentNode}f=h}return o===-1||l===-1?null:{start:o,end:l}}function RC(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelection){var r=a.getSelection(),i=e.textContent.length,o=Math.min(t.start,i),l=t.end===void 0?o:Math.min(t.end,i);if(!r.extend&&o>l){var u=l;l=o,o=u}var c=ay(e,o),f=ay(e,l);if(c&&f){if(r.rangeCount===1&&r.anchorNode===c.node&&r.anchorOffset===c.offset&&r.focusNode===f.node&&r.focusOffset===f.offset)return;var y=n.createRange();y.setStart(c.node,c.offset),r.removeAllRanges(),o>l?(r.addRange(y),r.extend(f.node,f.offset)):(y.setEnd(f.node,f.offset),r.addRange(y))}}}function ry(e){return e&&e.nodeType===mr}function iy(e,t){return!e||!t?!1:e===t?!0:ry(e)?!1:ry(t)?iy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function wC(e){return e&&e.ownerDocument&&iy(e.ownerDocument.documentElement,e)}function DC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function oy(){for(var e=window,t=dr();t instanceof e.HTMLIFrameElement;){if(DC(t))e=t.contentWindow;else return t;t=dr(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 _C(){var e=oy();return{focusedElem:e,selectionRange:Ed(e)?MC(e):null}}function OC(e){var t=oy(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&wC(n)){a!==null&&Ed(n)&&LC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ca&&r.push({element:i,left:i.scrollLeft,top:i.scrollTop});typeof n.focus=="function"&&n.focus();for(var o=0;o<r.length;o++){var l=r[o];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function MC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=CC(e),t||{start:0,end:0}}function LC(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)):RC(e,t)}var kC=N&&"documentMode"in document&&document.documentMode<=11;function AC(){dn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var bo=null,Cd=null,Pl=null,xd=!1;function jC(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 NC(e){return e.window===e?e.document:e.nodeType===hr?e:e.ownerDocument}function ly(e,t,n){var a=NC(n);if(!(xd||bo==null||bo!==dr(a))){var r=jC(bo);if(!Pl||!Bl(Pl,r)){Pl=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=bo}}}}function UC(e,t,n,a,r,i,o){var l=n?xo(n):window;switch(t){case"focusin":(Kh(l)||l.contentEditable==="true")&&(bo=l,Cd=n,Pl=null);break;case"focusout":bo=null,Cd=null,Pl=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,ly(e,a,r);break;case"selectionchange":if(kC)break;case"keydown":case"keyup":ly(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 So={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},Rd={},uy={};N&&(uy=document.createElement("div").style,"AnimationEvent"in window||(delete So.animationend.animation,delete So.animationiteration.animation,delete So.animationstart.animation),"TransitionEvent"in window||delete So.transitionend.transition);function Es(e){if(Rd[e])return Rd[e];if(!So[e])return e;var t=So[e];for(var n in t)if(t.hasOwnProperty(n)&&n in uy)return Rd[e]=t[n];return e}var sy=Es("animationend"),cy=Es("animationiteration"),fy=Es("animationstart"),dy=Es("transitionend"),vy=new Map,py=["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 $r(e,t){vy.set(e,t),dn(t,[e])}function zC(){for(var e=0;e<py.length;e++){var t=py[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);$r(n,"on"+a)}$r(sy,"onAnimationEnd"),$r(cy,"onAnimationIteration"),$r(fy,"onAnimationStart"),$r("dblclick","onDoubleClick"),$r("focusin","onFocus"),$r("focusout","onBlur"),$r(dy,"onTransitionEnd")}function HC(e,t,n,a,r,i,o){var l=vy.get(t);if(l!==void 0){var u=hd,c=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=FE;break;case"focusin":c="focus",u=bd;break;case"focusout":c="blur",u=bd;break;case"beforeblur":case"afterblur":u=bd;break;case"click":if(a.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Vh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=RE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=PE;break;case sy:case cy:case fy:u=_E;break;case dy:u=YE;break;case"scroll":u=EE;break;case"wheel":u=WE;break;case"copy":case"cut":case"paste":u=ME;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Ph;break}var f=(i&ml)!==0;{var y=!f&&t==="scroll",h=PC(n,l,a.type,f,y);if(h.length>0){var E=new u(l,c,null,a,r);e.push({event:E,listeners:h})}}}}zC(),bC(),oC(),AC(),XE();function FC(e,t,n,a,r,i,o){HC(e,t,n,a,r,i);var l=(i&N0)===0;l&&(SC(e,t,n,a,r),gC(e,t,n,a,r),UC(e,t,n,a,r),aC(e,t,n,a,r))}var $l=["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($l));function my(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,q0(a,t,void 0,e),e.currentTarget=null}function VC(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;my(e,u,l),a=o}else for(var c=0;c<t.length;c++){var f=t[c],y=f.instance,h=f.currentTarget,E=f.listener;if(y!==a&&e.isPropagationStopped())return;my(e,E,h),a=y}}function hy(e,t){for(var n=(t&ml)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;VC(i,o,n)}I0()}function BC(e,t,n,a,r){var i=Sf(n),o=[];FC(o,e,a,n,i,t),hy(o,t)}function Kt(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=y1(t),r=GC(e);a.has(r)||(yy(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|=ml),yy(n,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function Yl(e){if(!e[Cs]){e[Cs]=!0,qn.forEach(function(n){n!=="selectionchange"&&(wd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===hr?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function yy(e,t,n,a,r){var i=dE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?gE(e,t,i,o):yE(e,t,i):o!==void 0?bE(e,t,i,o):hE(e,t,i)}function gy(e,t){return e===t||e.nodeType===mn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Wm)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===P||u===R){var c=l.stateNode.containerInfo;if(gy(c,o))break;if(u===R)for(var f=l.return;f!==null;){var y=f.tag;if(y===P||y===R){var h=f.stateNode.containerInfo;if(gy(h,o))return}f=f.return}for(;c!==null;){var E=Oi(c);if(E===null)return;var x=E.tag;if(x===ue||x===Ke){l=i=E;continue e}c=c.parentNode}}l=l.return}}}Jm(function(){return BC(e,t,n,i)})}function Gl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function PC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],c=e,f=null;c!==null;){var y=c,h=y.stateNode,E=y.tag;if(E===ue&&h!==null&&(f=h,l!==null)){var x=yl(c,l);x!=null&&u.push(Gl(c,x,f))}if(r)break;c=c.return}return u}function xs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===ue&&o!==null){var u=o,c=yl(r,n);c!=null&&a.unshift(Gl(r,c,u));var f=yl(r,t);f!=null&&a.push(Gl(r,f,u))}r=r.return}return a}function To(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==ue);return e||null}function $C(e,t){for(var n=e,a=t,r=0,i=n;i;i=To(i))r++;for(var o=0,l=a;l;l=To(l))o++;for(;r-o>0;)n=To(n),r--;for(;o-r>0;)a=To(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=To(n),a=To(a)}return null}function by(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,c=u.alternate,f=u.stateNode,y=u.tag;if(c!==null&&c===a)break;if(y===ue&&f!==null){var h=f;if(r){var E=yl(l,i);E!=null&&o.unshift(Gl(l,E,h))}else if(!r){var x=yl(l,i);x!=null&&o.push(Gl(l,x,h))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function YC(e,t,n,a,r){var i=a&&r?$C(a,r):null;a!==null&&by(e,t,a,i,!1),r!==null&&n!==null&&by(e,n,r,i,!0)}function GC(e,t){return e+"__bubble"}var fa=!1,Wl="dangerouslySetInnerHTML",Rs="suppressContentEditableWarning",Yr="suppressHydrationWarning",Sy="autoFocus",Di="children",_i="style",ws="__html",Od,Ds,ql,Ty,_s,Ey,Cy;Od={dialog:!0,webview:!0},Ds=function(e,t){_0(e,t),O0(e,t),j0(e,t,{registrationNameDependencies:fn,possibleRegistrationNames:yn})},Ey=N&&!document.documentMode,ql=function(e,t,n){if(!fa){var a=Os(n),r=Os(t);r!==a&&(fa=!0,d("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},Ty=function(e){if(!fa){fa=!0;var t=[];e.forEach(function(n){t.push(n)}),d("Extra attributes from the server: %s",t)}},_s=function(e,t){t===!1?d("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):d("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Cy=function(e,t){var n=e.namespaceURI===pr?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var WC=/\r\n?/g,qC=/\u0000|\uFFFD/g;function Os(e){$t(e);var t=typeof e=="string"?e:""+e;return t.replace(WC,`
`).replace(qC,"")}function Ms(e,t,n,a){var r=Os(t),i=Os(e);if(i!==r&&(a&&(fa||(fa=!0,d('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&oe))throw new Error("Text content does not match server-rendered HTML.")}function xy(e){return e.nodeType===hr?e:e.ownerDocument}function IC(){}function Ls(e){e.onclick=IC}function XC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===_i)o&&Object.freeze(o),Vm(t,o);else if(i===Wl){var l=o?o[ws]:void 0;l!=null&&Nm(t,l)}else if(i===Di)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Zu(t,o)}else typeof o=="number"&&Zu(t,""+o);else i===Rs||i===Yr||i===Sy||(fn.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Kt("scroll",t)):o!=null&&ze(t,i,o,r))}}function QC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===_i?Vm(e,o):i===Wl?Nm(e,o):i===Di?Zu(e,o):ze(e,i,o,a)}}function KC(e,t,n,a){var r,i=xy(n),o,l=a;if(l===pr&&(l=vf(e)),l===pr){if(r=pi(e,t),!r&&e!==e.toLowerCase()&&d("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var c=u.firstChild;o=u.removeChild(c)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var f=o;t.multiple?f.multiple=!0:t.size&&(f.size=t.size)}}else o=i.createElementNS(l,e);return l===pr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!K.call(Od,e)&&(Od[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 JC(e,t){return xy(t).createTextNode(e)}function ZC(e,t,n,a){var r=pi(t,n);Ds(t,n);var i;switch(t){case"dialog":Kt("cancel",e),Kt("close",e),i=n;break;case"iframe":case"object":case"embed":Kt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<$l.length;o++)Kt($l[o],e);i=n;break;case"source":Kt("error",e),i=n;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),i=n;break;case"details":Kt("toggle",e),i=n;break;case"input":Qu(e,n),i=cl(e,n),Kt("invalid",e);break;case"option":Ot(e,n),i=n;break;case"select":vl(e,n),i=dl(e,n),Kt("invalid",e);break;case"textarea":km(e,n),i=ff(e,n),Kt("invalid",e);break;default:i=n}switch(gf(t,i),XC(t,e,a,i,r),t){case"input":di(e),C(e,n,!1);break;case"textarea":di(e),jm(e);break;case"option":Gt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Ls(e);break}}function ex(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=cl(e,n),l=cl(e,a),i=[];break;case"select":o=dl(e,n),l=dl(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,c,f=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===_i){var y=o[u];for(c in y)y.hasOwnProperty(c)&&(f||(f={}),f[c]="")}else u===Wl||u===Di||u===Rs||u===Yr||u===Sy||(fn.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var h=l[u],E=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||h===E||h==null&&E==null))if(u===_i)if(h&&Object.freeze(h),E){for(c in E)E.hasOwnProperty(c)&&(!h||!h.hasOwnProperty(c))&&(f||(f={}),f[c]="");for(c in h)h.hasOwnProperty(c)&&E[c]!==h[c]&&(f||(f={}),f[c]=h[c])}else f||(i||(i=[]),i.push(u,f)),f=h;else if(u===Wl){var x=h?h[ws]:void 0,L=E?E[ws]:void 0;x!=null&&L!==x&&(i=i||[]).push(u,x)}else u===Di?(typeof h=="string"||typeof h=="number")&&(i=i||[]).push(u,""+h):u===Rs||u===Yr||(fn.hasOwnProperty(u)?(h!=null&&(typeof h!="function"&&_s(u,h),u==="onScroll"&&Kt("scroll",e)),!i&&E!==h&&(i=[])):(i=i||[]).push(u,h))}return f&&(S0(f,l[_i]),(i=i||[]).push(_i,f)),i}function tx(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=pi(n,a),o=pi(n,r);switch(QC(e,t,i,o),n){case"input":m(e,r);break;case"textarea":Am(e,r);break;case"select":Ku(e,r);break}}function nx(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function ax(e,t,n,a,r,i,o){var l,u;switch(l=pi(t,n),Ds(t,n),t){case"dialog":Kt("cancel",e),Kt("close",e);break;case"iframe":case"object":case"embed":Kt("load",e);break;case"video":case"audio":for(var c=0;c<$l.length;c++)Kt($l[c],e);break;case"source":Kt("error",e);break;case"img":case"image":case"link":Kt("error",e),Kt("load",e);break;case"details":Kt("toggle",e);break;case"input":Qu(e,n),Kt("invalid",e);break;case"option":Ot(e,n);break;case"select":vl(e,n),Kt("invalid",e);break;case"textarea":km(e,n),Kt("invalid",e);break}gf(t,n);{u=new Set;for(var f=e.attributes,y=0;y<f.length;y++){var h=f[y].name.toLowerCase();switch(h){case"value":break;case"checked":break;case"selected":break;default:u.add(f[y].name)}}}var E=null;for(var x in n)if(n.hasOwnProperty(x)){var L=n[x];if(x===Di)typeof L=="string"?e.textContent!==L&&(n[Yr]!==!0&&Ms(e.textContent,L,i,o),E=[Di,L]):typeof L=="number"&&e.textContent!==""+L&&(n[Yr]!==!0&&Ms(e.textContent,L,i,o),E=[Di,""+L]);else if(fn.hasOwnProperty(x))L!=null&&(typeof L!="function"&&_s(x,L),x==="onScroll"&&Kt("scroll",e));else if(o&&typeof l=="boolean"){var Q=void 0,Ce=Yt(x);if(n[Yr]!==!0){if(!(x===Rs||x===Yr||x==="value"||x==="checked"||x==="selected")){if(x===Wl){var ye=e.innerHTML,ct=L?L[ws]:void 0;if(ct!=null){var at=Cy(e,ct);at!==ye&&ql(x,ye,at)}}else if(x===_i){if(u.delete(x),Ey){var b=g0(L);Q=e.getAttribute("style"),b!==Q&&ql(x,Q,b)}}else if(l)u.delete(x.toLowerCase()),Q=ke(e,x,L),L!==Q&&ql(x,Q,L);else if(!jt(x,Ce,l)&&!sn(x,L,Ce,l)){var k=!1;if(Ce!==null)u.delete(Ce.attributeName),Q=Y(e,x,L,Ce);else{var S=a;if(S===pr&&(S=vf(t)),S===pr)u.delete(x.toLowerCase());else{var V=nx(x);V!==null&&V!==x&&(k=!0,u.delete(V)),u.delete(x)}Q=ke(e,x,L)}var le=sa;!le&&L!==Q&&!k&&ql(x,Q,L)}}}}}switch(o&&u.size>0&&n[Yr]!==!0&&Ty(u),t){case"input":di(e),C(e,n,!0);break;case"textarea":di(e),jm(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Ls(e);break}return E}function rx(e,t,n){var a=e.nodeValue!==t;return a}function Md(e,t){{if(fa)return;fa=!0,d("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Ld(e,t){{if(fa)return;fa=!0,d('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function kd(e,t,n){{if(fa)return;fa=!0,d("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||fa)return;fa=!0,d('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function ix(e,t,n){switch(t){case"input":M(e,n);return;case"textarea":ZS(e,n);return;case"select":cf(e,n);return}}var Il=function(){},Xl=function(){};{var ox=["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"],Ry=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],lx=Ry.concat(["button"]),ux=["dd","dt","li","option","optgroup","p","rp","rt"],wy={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Xl=function(e,t){var n=Ze({},e||wy),a={tag:t};return Ry.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),lx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ox.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 sx=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 ux.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},cx=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},Dy={};Il=function(e,t,n){n=n||wy;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=sx(e,r)?null:a,o=i?null:cx(e,n),l=i||o;if(l){var u=l.tag,c=!!i+"|"+e+"|"+u;if(!Dy[c]){Dy[c]=!0;var f=e,y="";if(e==="#text"?/\S/.test(t)?f="Text nodes":(f="Whitespace text nodes",y=" Make sure you don't have any extra whitespace between tags on each line of your source code."):f="<"+e+">",i){var h="";u==="table"&&e==="tr"&&(h+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),d("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",f,u,y,h)}else d("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",f,u)}}}}var ks="suppressHydrationWarning",As="$",js="/$",Ql="$?",Kl="$!",fx="style",jd=null,Nd=null;function dx(e){var t,n,a=e.nodeType;switch(a){case hr:case mf:{t=a===hr?"#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=Xl(null,l);return{namespace:n,ancestorInfo:u}}}function vx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Xl(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function v_(e){return e}function px(e){jd=fE(),Nd=_C();var t=null;return Nh(!1),t}function mx(e){OC(Nd),Nh(jd),jd=null,Nd=null}function hx(e,t,n,a,r){var i;{var o=a;if(Il(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=Xl(o.ancestorInfo,e);Il(null,l,u)}i=o.namespace}var c=KC(e,t,n,i);return eu(r,c),$d(c,t),c}function yx(e,t){e.appendChild(t)}function gx(e,t,n,a,r){switch(ZC(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function bx(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=Xl(o.ancestorInfo,t);Il(null,l,u)}}return ex(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 Sx(e,t,n,a){{var r=n;Il(null,e,r.ancestorInfo)}var i=JC(e,t);return eu(a,i),i}function Tx(){var e=window.event;return e===void 0?Sr:Uh(e.type)}var zd=typeof setTimeout=="function"?setTimeout:void 0,Ex=typeof clearTimeout=="function"?clearTimeout:void 0,Hd=-1,_y=typeof Promise=="function"?Promise:void 0,Cx=typeof queueMicrotask=="function"?queueMicrotask:typeof _y<"u"?function(e){return _y.resolve(null).then(e).catch(xx)}:zd;function xx(e){setTimeout(function(){throw e})}function Rx(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 wx(e,t,n,a,r,i){tx(e,t,n,a,r),$d(e,r)}function Oy(e){Zu(e,"")}function Dx(e,t,n){e.nodeValue=n}function _x(e,t){e.appendChild(t)}function Ox(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 Mx(e,t,n){e.insertBefore(t,n)}function Lx(e,t,n){e.nodeType===mn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function kx(e,t){e.removeChild(t)}function Ax(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===js)if(a===0){e.removeChild(r),Al(t);return}else a--;else(i===As||i===Ql||i===Kl)&&a++}n=r}while(n);Al(t)}function jx(e,t){e.nodeType===mn?Fd(e.parentNode,t):e.nodeType===ca&&Fd(e,t),Al(e)}function Nx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function Ux(e){e.nodeValue=""}function zx(e,t){e=e;var n=t[fx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Hx(e,t){e.nodeValue=t}function Fx(e){e.nodeType===ca?e.textContent="":e.nodeType===hr&&e.documentElement&&e.removeChild(e.documentElement)}function Vx(e,t,n){return e.nodeType!==ca||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Bx(e,t){return t===""||e.nodeType!==mr?null:e}function Px(e){return e.nodeType!==mn?null:e}function My(e){return e.data===Ql}function Vd(e){return e.data===Kl}function $x(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 Yx(e,t){e._reactRetry=t}function Ns(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ca||t===mr)break;if(t===mn){var n=e.data;if(n===As||n===Kl||n===Ql)break;if(n===js)return null}}return e}function Jl(e){return Ns(e.nextSibling)}function Gx(e){return Ns(e.firstChild)}function Wx(e){return Ns(e.firstChild)}function qx(e){return Ns(e.nextSibling)}function Ix(e,t,n,a,r,i,o){eu(i,e),$d(e,n);var l;{var u=r;l=u.namespace}var c=(i.mode&ut)!==Oe;return ax(e,t,n,l,a,c,o)}function Xx(e,t,n,a){return eu(n,e),n.mode&ut,rx(e,t)}function Qx(e,t){eu(t,e)}function Kx(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===mn){var a=t.data;if(a===js){if(n===0)return Jl(t);n--}else(a===As||a===Kl||a===Ql)&&n++}t=t.nextSibling}return null}function Ly(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===mn){var a=t.data;if(a===As||a===Kl||a===Ql){if(n===0)return t;n--}else a===js&&n++}t=t.previousSibling}return null}function Jx(e){Al(e)}function Zx(e){Al(e)}function e1(e){return e!=="head"&&e!=="body"}function t1(e,t,n,a){var r=!0;Ms(t.nodeValue,n,a,r)}function n1(e,t,n,a,r,i){if(t[ks]!==!0){var o=!0;Ms(a.nodeValue,r,i,o)}}function a1(e,t){t.nodeType===ca?Md(e,t):t.nodeType===mn||Ld(e,t)}function r1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ca?Md(n,t):t.nodeType===mn||Ld(n,t))}}function i1(e,t,n,a,r){(r||t[ks]!==!0)&&(a.nodeType===ca?Md(n,a):a.nodeType===mn||Ld(n,a))}function o1(e,t,n){kd(e,t)}function l1(e,t){Ad(e,t)}function u1(e,t,n){{var a=e.parentNode;a!==null&&kd(a,t)}}function s1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function c1(e,t,n,a,r,i){(i||t[ks]!==!0)&&kd(n,a)}function f1(e,t,n,a,r){(r||t[ks]!==!0)&&Ad(n,a)}function d1(e){d("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function v1(e){Yl(e)}var Eo=Math.random().toString(36).slice(2),Co="__reactFiber$"+Eo,Bd="__reactProps$"+Eo,Zl="__reactContainer$"+Eo,Pd="__reactEvents$"+Eo,p1="__reactListeners$"+Eo,m1="__reactHandles$"+Eo;function h1(e){delete e[Co],delete e[Bd],delete e[Pd],delete e[p1],delete e[m1]}function eu(e,t){t[Co]=e}function Us(e,t){t[Zl]=e}function ky(e){e[Zl]=null}function tu(e){return!!e[Zl]}function Oi(e){var t=e[Co];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zl]||n[Co],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=Ly(e);r!==null;){var i=r[Co];if(i)return i;r=Ly(r)}return t}e=n,n=e.parentNode}return null}function Gr(e){var t=e[Co]||e[Zl];return t&&(t.tag===ue||t.tag===Ke||t.tag===te||t.tag===P)?t:null}function xo(e){if(e.tag===ue||e.tag===Ke)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zs(e){return e[Bd]||null}function $d(e,t){e[Bd]=t}function y1(e){var t=e[Pd];return t===void 0&&(t=e[Pd]=new Set),t}var Ay={},jy=he.ReactDebugCurrentFrame;function Hs(e){if(e){var t=e._owner,n=rl(e.type,e._source,t?t.type:null);jy.setExtraStackFrame(n)}else jy.setExtraStackFrame(null)}function Ha(e,t,n,a,r){{var i=Function.call.bind(K);for(var o in e)if(i(e,o)){var l=void 0;try{if(typeof e[o]!="function"){var u=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[o](t,o,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){l=c}l&&!(l instanceof Error)&&(Hs(r),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,o,typeof l),Hs(null)),l instanceof Error&&!(l.message in Ay)&&(Ay[l.message]=!0,Hs(r),d("Failed %s type: %s",n,l.message),Hs(null))}}}var Yd=[],Fs;Fs=[];var Tr=-1;function Wr(e){return{current:e}}function Xn(e,t){if(Tr<0){d("Unexpected pop.");return}t!==Fs[Tr]&&d("Unexpected Fiber popped."),e.current=Yd[Tr],Yd[Tr]=null,Fs[Tr]=null,Tr--}function Qn(e,t,n){Tr++,Yd[Tr]=e.current,Fs[Tr]=n,e.current=t}var Gd;Gd={};var Sa={};Object.freeze(Sa);var Er=Wr(Sa),er=Wr(!1),Wd=Sa;function Ro(e,t,n){return n&&tr(t)?Wd:Er.current}function Ny(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function wo(e,t){{var n=e.type,a=n.contextTypes;if(!a)return Sa;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=Ie(e)||"Unknown";Ha(a,i,"context",l)}return r&&Ny(e,t,i),i}}function Vs(){return er.current}function tr(e){{var t=e.childContextTypes;return t!=null}}function Bs(e){Xn(er,e),Xn(Er,e)}function qd(e){Xn(er,e),Xn(Er,e)}function Uy(e,t,n){{if(Er.current!==Sa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Qn(Er,t,e),Qn(er,n,e)}}function zy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Ie(e)||"Unknown";Gd[i]||(Gd[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((Ie(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Ie(e)||"Unknown";Ha(r,o,"child context",u)}return Ze({},n,o)}}function Ps(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Sa;return Wd=Er.current,Qn(Er,n,e),Qn(er,er.current,e),!0}}function Hy(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=zy(e,t,Wd);a.__reactInternalMemoizedMergedChildContext=r,Xn(er,e),Xn(Er,e),Qn(Er,r,e),Qn(er,n,e)}else Xn(er,e),Qn(er,n,e)}}function g1(e){{if(!eT(e)||e.tag!==ee)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 P:return t.stateNode.context;case ee:{var n=t.type;if(tr(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 qr=0,$s=1,Cr=null,Id=!1,Xd=!1;function Fy(e){Cr===null?Cr=[e]:Cr.push(e)}function b1(e){Id=!0,Fy(e)}function Vy(){Id&&Ir()}function Ir(){if(!Xd&&Cr!==null){Xd=!0;var e=0,t=za();try{var n=!0,a=Cr;for(Nn(ya);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Cr=null,Id=!1}catch(i){throw Cr!==null&&(Cr=Cr.slice(e+1)),ch(is,Ir),i}finally{Nn(t),Xd=!1}}return null}var Do=[],_o=0,Ys=null,Gs=0,Ra=[],wa=0,Mi=null,xr=1,Rr="";function S1(e){return ki(),(e.flags&nh)!==Ne}function T1(e){return ki(),Gs}function E1(){var e=Rr,t=xr,n=t&~C1(t);return n.toString(32)+e}function Li(e,t){ki(),Do[_o++]=Gs,Do[_o++]=Ys,Ys=e,Gs=t}function By(e,t,n){ki(),Ra[wa++]=xr,Ra[wa++]=Rr,Ra[wa++]=Mi,Mi=e;var a=xr,r=Rr,i=Ws(a)-1,o=a&~(1<<i),l=n+1,u=Ws(t)+i;if(u>30){var c=i-i%5,f=(1<<c)-1,y=(o&f).toString(32),h=o>>c,E=i-c,x=Ws(t)+E,L=l<<E,Q=L|h,Ce=y+r;xr=1<<x|Q,Rr=Ce}else{var ye=l<<i,ct=ye|o,at=r;xr=1<<u|ct,Rr=at}}function Qd(e){ki();var t=e.return;if(t!==null){var n=1,a=0;Li(e,n),By(e,n,a)}}function Ws(e){return 32-hh(e)}function C1(e){return 1<<Ws(e)-1}function Kd(e){for(;e===Ys;)Ys=Do[--_o],Do[_o]=null,Gs=Do[--_o],Do[_o]=null;for(;e===Mi;)Mi=Ra[--wa],Ra[wa]=null,Rr=Ra[--wa],Ra[wa]=null,xr=Ra[--wa],Ra[wa]=null}function x1(){return ki(),Mi!==null?{id:xr,overflow:Rr}:null}function R1(e,t){ki(),Ra[wa++]=xr,Ra[wa++]=Rr,Ra[wa++]=Mi,xr=t.id,Rr=t.overflow,Mi=e}function ki(){Fn()||d("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Hn=null,Da=null,Fa=!1,Ai=!1,Xr=null;function w1(){Fa&&d("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Py(){Ai=!0}function D1(){return Ai}function _1(e){var t=e.stateNode.containerInfo;return Da=Wx(t),Hn=e,Fa=!0,Xr=null,Ai=!1,!0}function O1(e,t,n){return Da=qx(t),Hn=e,Fa=!0,Xr=null,Ai=!1,n!==null&&R1(e,n),!0}function $y(e,t){switch(e.tag){case P:{a1(e.stateNode.containerInfo,t);break}case ue:{var n=(e.mode&ut)!==Oe;i1(e.type,e.memoizedProps,e.stateNode,t,n);break}case te:{var a=e.memoizedState;a.dehydrated!==null&&r1(a.dehydrated,t);break}}}function Yy(e,t){$y(e,t);var n=AD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=mi):a.push(n)}function Jd(e,t){{if(Ai)return;switch(e.tag){case P:{var n=e.stateNode.containerInfo;switch(t.tag){case ue:var a=t.type;t.pendingProps,o1(n,a);break;case Ke:var r=t.pendingProps;l1(n,r);break}break}case ue:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case ue:{var u=t.type,c=t.pendingProps,f=(e.mode&ut)!==Oe;c1(i,o,l,u,c,f);break}case Ke:{var y=t.pendingProps,h=(e.mode&ut)!==Oe;f1(i,o,l,y,h);break}}break}case te:{var E=e.memoizedState,x=E.dehydrated;if(x!==null)switch(t.tag){case ue:var L=t.type;t.pendingProps,u1(x,L);break;case Ke:var Q=t.pendingProps;s1(x,Q);break}break}default:return}}}function Gy(e,t){t.flags=t.flags&-4097|Ln,Jd(e,t)}function Wy(e,t){switch(e.tag){case ue:{var n=e.type;e.pendingProps;var a=Vx(t,n);return a!==null?(e.stateNode=a,Hn=e,Da=Gx(a),!0):!1}case Ke:{var r=e.pendingProps,i=Bx(t,r);return i!==null?(e.stateNode=i,Hn=e,Da=null,!0):!1}case te:{var o=Px(t);if(o!==null){var l={dehydrated:o,treeContext:x1(),retryLane:xa};e.memoizedState=l;var u=jD(o);return u.return=e,e.child=u,Hn=e,Da=null,!0}return!1}default:return!1}}function Zd(e){return(e.mode&ut)!==Oe&&(e.flags&xt)===Ne}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(Fa){var t=Da;if(!t){Zd(e)&&(Jd(Hn,e),ev()),Gy(Hn,e),Fa=!1,Hn=e;return}var n=t;if(!Wy(e,t)){Zd(e)&&(Jd(Hn,e),ev()),t=Jl(n);var a=Hn;if(!t||!Wy(e,t)){Gy(Hn,e),Fa=!1,Hn=e;return}Yy(a,n)}}}function M1(e,t,n){var a=e.stateNode,r=!Ai,i=Ix(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function L1(e){var t=e.stateNode,n=e.memoizedProps,a=Xx(t,n,e);if(a){var r=Hn;if(r!==null)switch(r.tag){case P:{var i=r.stateNode.containerInfo,o=(r.mode&ut)!==Oe;t1(i,t,n,o);break}case ue:{var l=r.type,u=r.memoizedProps,c=r.stateNode,f=(r.mode&ut)!==Oe;n1(l,u,c,t,n,f);break}}}return a}function k1(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.");Qx(n,e)}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.");return Kx(n)}function qy(e){for(var t=e.return;t!==null&&t.tag!==ue&&t.tag!==P&&t.tag!==te;)t=t.return;Hn=t}function qs(e){if(e!==Hn)return!1;if(!Fa)return qy(e),Fa=!0,!1;if(e.tag!==P&&(e.tag!==ue||e1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Da;if(t)if(Zd(e))Iy(e),ev();else for(;t;)Yy(e,t),t=Jl(t)}return qy(e),e.tag===te?Da=A1(e):Da=Hn?Jl(e.stateNode):null,!0}function j1(){return Fa&&Da!==null}function Iy(e){for(var t=Da;t;)$y(e,t),t=Jl(t)}function Oo(){Hn=null,Da=null,Fa=!1,Ai=!1}function Xy(){Xr!==null&&(Pb(Xr),Xr=null)}function Fn(){return Fa}function nv(e){Xr===null?Xr=[e]:Xr.push(e)}var N1=he.ReactCurrentBatchConfig,U1=null;function z1(){return N1.transition}var Va={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var H1=function(e){for(var t=null,n=e;n!==null;)n.mode&on&&(t=n),n=n.return;return t},ji=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},nu=[],au=[],ru=[],iu=[],ou=[],lu=[],Ni=new Set;Va.recordUnsafeLifecycleWarnings=function(e,t){Ni.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&nu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillMount=="function"&&au.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ru.push(e),e.mode&on&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&iu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&ou.push(e),e.mode&on&&typeof t.UNSAFE_componentWillUpdate=="function"&&lu.push(e))},Va.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;nu.length>0&&(nu.forEach(function(h){e.add(Ie(h)||"Component"),Ni.add(h.type)}),nu=[]);var t=new Set;au.length>0&&(au.forEach(function(h){t.add(Ie(h)||"Component"),Ni.add(h.type)}),au=[]);var n=new Set;ru.length>0&&(ru.forEach(function(h){n.add(Ie(h)||"Component"),Ni.add(h.type)}),ru=[]);var a=new Set;iu.length>0&&(iu.forEach(function(h){a.add(Ie(h)||"Component"),Ni.add(h.type)}),iu=[]);var r=new Set;ou.length>0&&(ou.forEach(function(h){r.add(Ie(h)||"Component"),Ni.add(h.type)}),ou=[]);var i=new Set;if(lu.length>0&&(lu.forEach(function(h){i.add(Ie(h)||"Component"),Ni.add(h.type)}),lu=[]),t.size>0){var o=ji(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=ji(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=ji(i);d(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,u)}if(e.size>0){var c=ji(e);Be(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,c)}if(n.size>0){var f=ji(n);Be(`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`,f)}if(r.size>0){var y=ji(r);Be(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,y)}};var Is=new Map,Qy=new Set;Va.recordLegacyContextWarning=function(e,t){var n=H1(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=Is.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Is.set(n,a)),a.push(e))}},Va.flushLegacyContextWarning=function(){Is.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Ie(i)||"Component"),Qy.add(i.type)});var r=ji(a);try{en(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()}}})},Va.discardPendingWarnings=function(){nu=[],au=[],ru=[],iu=[],ou=[],lu=[],Is=new Map}}var av,rv,iv,ov,lv,Ky=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Ky=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=Ie(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 F1(e){return e.prototype&&e.prototype.isReactComponent}function uu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&on||ot)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==ee)&&!(typeof n.type=="function"&&!F1(n.type))&&n._owner){var r=Ie(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!==ee)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;je(a,"ref");var c=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c)return t.ref;var f=function(y){var h=u.refs;y===null?delete h[c]:h[c]=y};return f._stringRef=c,f}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=Ie(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 Jy(e){var t=e._payload,n=e._init;return n(t)}function Zy(e){function t(b,k){if(e){var S=b.deletions;S===null?(b.deletions=[k],b.flags|=mi):S.push(k)}}function n(b,k){if(!e)return null;for(var S=k;S!==null;)t(b,S),S=S.sibling;return null}function a(b,k){for(var S=new Map,V=k;V!==null;)V.key!==null?S.set(V.key,V):S.set(V.index,V),V=V.sibling;return S}function r(b,k){var S=Yi(b,k);return S.index=0,S.sibling=null,S}function i(b,k,S){if(b.index=S,!e)return b.flags|=nh,k;var V=b.alternate;if(V!==null){var le=V.index;return le<k?(b.flags|=Ln,k):le}else return b.flags|=Ln,k}function o(b){return e&&b.alternate===null&&(b.flags|=Ln),b}function l(b,k,S,V){if(k===null||k.tag!==Ke){var le=nm(S,b.mode,V);return le.return=b,le}else{var Z=r(k,S);return Z.return=b,Z}}function u(b,k,S,V){var le=S.type;if(le===tt)return f(b,k,S.props.children,V,S.key);if(k!==null&&(k.elementType===le||rS(k,S)||typeof le=="object"&&le!==null&&le.$$typeof===De&&Jy(le)===k.type)){var Z=r(k,S.props);return Z.ref=uu(b,k,S),Z.return=b,Z._debugSource=S._source,Z._debugOwner=S._owner,Z}var Ue=tm(S,b.mode,V);return Ue.ref=uu(b,k,S),Ue.return=b,Ue}function c(b,k,S,V){if(k===null||k.tag!==R||k.stateNode.containerInfo!==S.containerInfo||k.stateNode.implementation!==S.implementation){var le=am(S,b.mode,V);return le.return=b,le}else{var Z=r(k,S.children||[]);return Z.return=b,Z}}function f(b,k,S,V,le){if(k===null||k.tag!==It){var Z=oi(S,b.mode,V,le);return Z.return=b,Z}else{var Ue=r(k,S);return Ue.return=b,Ue}}function y(b,k,S){if(typeof k=="string"&&k!==""||typeof k=="number"){var V=nm(""+k,b.mode,S);return V.return=b,V}if(typeof k=="object"&&k!==null){switch(k.$$typeof){case se:{var le=tm(k,b.mode,S);return le.ref=uu(b,null,k),le.return=b,le}case He:{var Z=am(k,b.mode,S);return Z.return=b,Z}case De:{var Ue=k._payload,Ge=k._init;return y(b,Ge(Ue),S)}}if(nt(k)||Ut(k)){var kt=oi(k,b.mode,S,null);return kt.return=b,kt}Xs(b,k)}return typeof k=="function"&&Qs(b),null}function h(b,k,S,V){var le=k!==null?k.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return le!==null?null:l(b,k,""+S,V);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case se:return S.key===le?u(b,k,S,V):null;case He:return S.key===le?c(b,k,S,V):null;case De:{var Z=S._payload,Ue=S._init;return h(b,k,Ue(Z),V)}}if(nt(S)||Ut(S))return le!==null?null:f(b,k,S,V,null);Xs(b,S)}return typeof S=="function"&&Qs(b),null}function E(b,k,S,V,le){if(typeof V=="string"&&V!==""||typeof V=="number"){var Z=b.get(S)||null;return l(k,Z,""+V,le)}if(typeof V=="object"&&V!==null){switch(V.$$typeof){case se:{var Ue=b.get(V.key===null?S:V.key)||null;return u(k,Ue,V,le)}case He:{var Ge=b.get(V.key===null?S:V.key)||null;return c(k,Ge,V,le)}case De:var kt=V._payload,vt=V._init;return E(b,k,S,vt(kt),le)}if(nt(V)||Ut(V)){var cn=b.get(S)||null;return f(k,cn,V,le,null)}Xs(k,V)}return typeof V=="function"&&Qs(k),null}function x(b,k,S){{if(typeof b!="object"||b===null)return k;switch(b.$$typeof){case se:case He:Ky(b,S);var V=b.key;if(typeof V!="string")break;if(k===null){k=new Set,k.add(V);break}if(!k.has(V)){k.add(V);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.",V);break;case De:var le=b._payload,Z=b._init;x(Z(le),k,S);break}}return k}function L(b,k,S,V){for(var le=null,Z=0;Z<S.length;Z++){var Ue=S[Z];le=x(Ue,le,b)}for(var Ge=null,kt=null,vt=k,cn=0,pt=0,ln=null;vt!==null&&pt<S.length;pt++){vt.index>pt?(ln=vt,vt=null):ln=vt.sibling;var Jn=h(b,vt,S[pt],V);if(Jn===null){vt===null&&(vt=ln);break}e&&vt&&Jn.alternate===null&&t(b,vt),cn=i(Jn,cn,pt),kt===null?Ge=Jn:kt.sibling=Jn,kt=Jn,vt=ln}if(pt===S.length){if(n(b,vt),Fn()){var Wn=pt;Li(b,Wn)}return Ge}if(vt===null){for(;pt<S.length;pt++){var Ea=y(b,S[pt],V);Ea!==null&&(cn=i(Ea,cn,pt),kt===null?Ge=Ea:kt.sibling=Ea,kt=Ea)}if(Fn()){var oa=pt;Li(b,oa)}return Ge}for(var la=a(b,vt);pt<S.length;pt++){var Zn=E(la,b,pt,S[pt],V);Zn!==null&&(e&&Zn.alternate!==null&&la.delete(Zn.key===null?pt:Zn.key),cn=i(Zn,cn,pt),kt===null?Ge=Zn:kt.sibling=Zn,kt=Zn)}if(e&&la.forEach(function(Io){return t(b,Io)}),Fn()){var kr=pt;Li(b,kr)}return Ge}function Q(b,k,S,V){var le=Ut(S);if(typeof le!="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"&&S[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),S.entries===le&&(av||d("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var Z=le.call(S);if(Z)for(var Ue=null,Ge=Z.next();!Ge.done;Ge=Z.next()){var kt=Ge.value;Ue=x(kt,Ue,b)}}var vt=le.call(S);if(vt==null)throw new Error("An iterable object provided no iterator.");for(var cn=null,pt=null,ln=k,Jn=0,Wn=0,Ea=null,oa=vt.next();ln!==null&&!oa.done;Wn++,oa=vt.next()){ln.index>Wn?(Ea=ln,ln=null):Ea=ln.sibling;var la=h(b,ln,oa.value,V);if(la===null){ln===null&&(ln=Ea);break}e&&ln&&la.alternate===null&&t(b,ln),Jn=i(la,Jn,Wn),pt===null?cn=la:pt.sibling=la,pt=la,ln=Ea}if(oa.done){if(n(b,ln),Fn()){var Zn=Wn;Li(b,Zn)}return cn}if(ln===null){for(;!oa.done;Wn++,oa=vt.next()){var kr=y(b,oa.value,V);kr!==null&&(Jn=i(kr,Jn,Wn),pt===null?cn=kr:pt.sibling=kr,pt=kr)}if(Fn()){var Io=Wn;Li(b,Io)}return cn}for(var Vu=a(b,ln);!oa.done;Wn++,oa=vt.next()){var sr=E(Vu,b,Wn,oa.value,V);sr!==null&&(e&&sr.alternate!==null&&Vu.delete(sr.key===null?Wn:sr.key),Jn=i(sr,Jn,Wn),pt===null?cn=sr:pt.sibling=sr,pt=sr)}if(e&&Vu.forEach(function(f_){return t(b,f_)}),Fn()){var c_=Wn;Li(b,c_)}return cn}function Ce(b,k,S,V){if(k!==null&&k.tag===Ke){n(b,k.sibling);var le=r(k,S);return le.return=b,le}n(b,k);var Z=nm(S,b.mode,V);return Z.return=b,Z}function ye(b,k,S,V){for(var le=S.key,Z=k;Z!==null;){if(Z.key===le){var Ue=S.type;if(Ue===tt){if(Z.tag===It){n(b,Z.sibling);var Ge=r(Z,S.props.children);return Ge.return=b,Ge._debugSource=S._source,Ge._debugOwner=S._owner,Ge}}else if(Z.elementType===Ue||rS(Z,S)||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===De&&Jy(Ue)===Z.type){n(b,Z.sibling);var kt=r(Z,S.props);return kt.ref=uu(b,Z,S),kt.return=b,kt._debugSource=S._source,kt._debugOwner=S._owner,kt}n(b,Z);break}else t(b,Z);Z=Z.sibling}if(S.type===tt){var vt=oi(S.props.children,b.mode,V,S.key);return vt.return=b,vt}else{var cn=tm(S,b.mode,V);return cn.ref=uu(b,k,S),cn.return=b,cn}}function ct(b,k,S,V){for(var le=S.key,Z=k;Z!==null;){if(Z.key===le)if(Z.tag===R&&Z.stateNode.containerInfo===S.containerInfo&&Z.stateNode.implementation===S.implementation){n(b,Z.sibling);var Ue=r(Z,S.children||[]);return Ue.return=b,Ue}else{n(b,Z);break}else t(b,Z);Z=Z.sibling}var Ge=am(S,b.mode,V);return Ge.return=b,Ge}function at(b,k,S,V){var le=typeof S=="object"&&S!==null&&S.type===tt&&S.key===null;if(le&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case se:return o(ye(b,k,S,V));case He:return o(ct(b,k,S,V));case De:var Z=S._payload,Ue=S._init;return at(b,k,Ue(Z),V)}if(nt(S))return L(b,k,S,V);if(Ut(S))return Q(b,k,S,V);Xs(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?o(Ce(b,k,""+S,V)):(typeof S=="function"&&Qs(b),n(b,k))}return at}var Mo=Zy(!0),eg=Zy(!1);function V1(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=Yi(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=Yi(n,n.pendingProps),a.return=t;a.sibling=null}}function B1(e,t){for(var n=e.child;n!==null;)_D(n,t),n=n.sibling}var uv=Wr(null),sv;sv={};var Ks=null,Lo=null,cv=null,Js=!1;function Zs(){Ks=null,Lo=null,cv=null,Js=!1}function tg(){Js=!0}function ng(){Js=!1}function ag(e,t,n){Qn(uv,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sv&&d("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sv}function fv(e,t){var n=uv.current;Xn(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(mo(a.childLanes,t)?r!==null&&!mo(r.childLanes,t)&&(r.childLanes=et(r.childLanes,t)):(a.childLanes=et(a.childLanes,t),r!==null&&(r.childLanes=et(r.childLanes,t))),a===n)break;a=a.return}a!==n&&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 P1(e,t,n){$1(e,t,n)}function $1(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===ee){var l=wl(n),u=wr(qt,l);u.tag=tc;var c=a.updateQueue;if(c!==null){var f=c.shared,y=f.pending;y===null?u.next=u:(u.next=y.next,y.next=u),f.pending=u}}a.lanes=et(a.lanes,n);var h=a.alternate;h!==null&&(h.lanes=et(h.lanes,n)),dv(a.return,n,e),i.lanes=et(i.lanes,n);break}o=o.next}}else if(a.tag===ve)r=a.type===e.type?null:a.child;else if(a.tag===bt){var E=a.return;if(E===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");E.lanes=et(E.lanes,n);var x=E.alternate;x!==null&&(x.lanes=et(x.lanes,n)),dv(E,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 L=r.sibling;if(L!==null){L.return=r.return,r=L;break}r=r.return}a=r}}function ko(e,t){Ks=e,Lo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(ha(n.lanes,t)&&Cu(),n.firstContext=null)}}function hn(e){Js&&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(Lo===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().");Lo=n,Ks.dependencies={lanes:H,firstContext:n}}else Lo=Lo.next=n}return t}var Ui=null;function vv(e){Ui===null?Ui=[e]:Ui.push(e)}function Y1(){if(Ui!==null){for(var e=0;e<Ui.length;e++){var t=Ui[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}}Ui=null}}function rg(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function G1(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function W1(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function da(e,t){return ec(e,t)}var q1=ec;function ec(e,t){e.lanes=et(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=et(n.lanes,t)),n===null&&(e.flags&(Ln|gi))!==Ne&&eS(e);for(var a=e,r=e.return;r!==null;)r.childLanes=et(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=et(n.childLanes,t):(r.flags&(Ln|gi))!==Ne&&eS(e),a=r,r=r.return;if(a.tag===P){var i=a.stateNode;return i}else return null}var ig=0,og=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:H},effects:null};e.updateQueue=t}function lg(e,t){var n=t.updateQueue,a=e.updateQueue;if(n===a){var r={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects};t.updateQueue=r}}function wr(e,t){var n={eventTime:e,lane:t,tag:ig,payload:null,callback:null,next:null};return n}function Qr(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(ac===r&&!mv&&(d("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),mv=!0),Gw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,q1(e,n)}else return W1(e,r,t,n)}function rc(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(Sh(n)){var i=r.lanes;i=Eh(i,e.pendingLanes);var o=et(i,n);r.lanes=o,ud(e,o)}}}function yv(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null){var r=a.updateQueue;if(n===r){var i=null,o=null,l=n.firstBaseUpdate;if(l!==null){var u=l;do{var c={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=c:(o.next=c,o=c),u=u.next}while(u!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}}var f=n.lastBaseUpdate;f===null?n.firstBaseUpdate=t:f.next=t,n.lastBaseUpdate=t}function I1(e,t,n,a,r,i){switch(n.tag){case og:{var o=n.payload;if(typeof o=="function"){tg();var l=o.call(i,a,r);{if(e.mode&on){An(!0);try{o.call(i,a,r)}finally{An(!1)}}ng()}return l}return o}case pv:e.flags=e.flags&-65537|xt;case ig:{var u=n.payload,c;if(typeof u=="function"){tg(),c=u.call(i,a,r);{if(e.mode&on){An(!0);try{u.call(i,a,r)}finally{An(!1)}}ng()}}else c=u;return c==null?a:Ze({},a,c)}case tc:return nc=!0,a}return a}function ic(e,t,n,a){var r=e.updateQueue;nc=!1,ac=r.shared;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var u=l,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var f=e.alternate;if(f!==null){var y=f.updateQueue,h=y.lastBaseUpdate;h!==o&&(h===null?y.firstBaseUpdate=c:h.next=c,y.lastBaseUpdate=u)}}if(i!==null){var E=r.baseState,x=H,L=null,Q=null,Ce=null,ye=i;do{var ct=ye.lane,at=ye.eventTime;if(mo(a,ct)){if(Ce!==null){var k={eventTime:at,lane:jn,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null};Ce=Ce.next=k}E=I1(e,r,ye,E,t,n);var S=ye.callback;if(S!==null&&ye.lane!==jn){e.flags|=th;var V=r.effects;V===null?r.effects=[ye]:V.push(ye)}}else{var b={eventTime:at,lane:ct,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null};Ce===null?(Q=Ce=b,L=E):Ce=Ce.next=b,x=et(x,ct)}if(ye=ye.next,ye===null){if(l=r.shared.pending,l===null)break;var le=l,Z=le.next;le.next=null,ye=Z,r.lastBaseUpdate=le,r.shared.pending=null}}while(!0);Ce===null&&(L=E),r.baseState=L,r.firstBaseUpdate=Q,r.lastBaseUpdate=Ce;var Ue=r.shared.interleaved;if(Ue!==null){var Ge=Ue;do x=et(x,Ge.lane),Ge=Ge.next;while(Ge!==Ue)}else i===null&&(r.shared.lanes=H);Nu(x),e.lanes=x,e.memoizedState=E}ac=null}function X1(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function ug(){nc=!1}function oc(){return nc}function sg(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,X1(o,n))}}var su={},Kr=Wr(su),cu=Wr(su),lc=Wr(su);function uc(e){if(e===su)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 cg(){var e=uc(lc.current);return e}function gv(e,t){Qn(lc,t,e),Qn(cu,e,e),Qn(Kr,su,e);var n=dx(t);Xn(Kr,e),Qn(Kr,n,e)}function Ao(e){Xn(Kr,e),Xn(cu,e),Xn(lc,e)}function bv(){var e=uc(Kr.current);return e}function fg(e){uc(lc.current);var t=uc(Kr.current),n=vx(t,e.type);t!==n&&(Qn(cu,e,e),Qn(Kr,n,e))}function Sv(e){cu.current===e&&(Xn(Kr,e),Xn(cu,e))}var Q1=0,dg=1,vg=1,fu=2,Ba=Wr(Q1);function Tv(e,t){return(e&t)!==0}function jo(e){return e&dg}function Ev(e,t){return e&dg|t}function K1(e,t){return e|t}function Jr(e,t){Qn(Ba,t,e)}function No(e){Xn(Ba,e)}function J1(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===te){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||My(a)||Vd(a))return t}}else if(t.tag===X&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&xt)!==Ne;if(r)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var va=0,Sn=1,nr=2,Tn=4,Vn=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function Z1(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var ie=he.ReactCurrentDispatcher,du=he.ReactCurrentBatchConfig,Rv,Uo;Rv=new Set;var zi=H,Lt=null,En=null,Cn=null,cc=!1,vu=!1,pu=0,eR=0,tR=25,A=null,_a=null,Zr=-1,wv=!1;function Rt(){{var e=A;_a===null?_a=[e]:_a.push(e)}}function q(){{var e=A;_a!==null&&(Zr++,_a[Zr]!==e&&nR(e))}}function zo(e){e!=null&&!nt(e)&&d("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",A,typeof e)}function nR(e){{var t=Ie(Lt);if(!Rv.has(t)&&(Rv.add(t),_a!==null)){for(var n="",a=30,r=0;r<=Zr;r++){for(var i=_a[r],o=r===Zr?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 Kn(){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.",A),!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`,A,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!ba(e[n],t[n]))return!1;return!0}function Ho(e,t,n,a,r,i){zi=i,Lt=t,_a=e!==null?e._debugHookTypes:null,Zr=-1,wv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=H,e!==null&&e.memoizedState!==null?ie.current=Ng:_a!==null?ie.current=jg:ie.current=Ag;var o=n(a,r);if(vu){var l=0;do{if(vu=!1,pu=0,l>=tR)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,Zr=-1,ie.current=Ug,o=n(a,r)}while(vu)}ie.current=Cc,t._debugHookTypes=_a;var u=En!==null&&En.next!==null;if(zi=H,Lt=null,En=null,Cn=null,A=null,_a=null,Zr=-1,e!==null&&(e.flags&yr)!==(t.flags&yr)&&(e.mode&ut)!==Oe&&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 Fo(){var e=pu!==0;return pu=0,e}function pg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&Ja)!==Oe?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function mg(){if(ie.current=Cc,cc){for(var e=Lt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}zi=H,Lt=null,En=null,Cn=null,_a=null,Zr=-1,A=null,_g=!1,vu=!1,pu=0}function ar(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?Lt.memoizedState=Cn=e:Cn=Cn.next=e,Cn}function Oa(){var e;if(En===null){var t=Lt.alternate;t!==null?e=t.memoizedState:e=null}else e=En.next;var n;if(Cn===null?n=Lt.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?Lt.memoizedState=Cn=a:Cn=Cn.next=a}return Cn}function hg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function Ov(e,t,n){var a=ar(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:H,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=oR.bind(null,Lt,i);return[a.memoizedState,o]}function Mv(e,t,n){var a=Oa(),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,c=l.next;o.next=c,l.next=u}i.baseQueue!==o&&d("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var f=o.next,y=i.baseState,h=null,E=null,x=null,L=f;do{var Q=L.lane;if(mo(zi,Q)){if(x!==null){var ye={lane:jn,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};x=x.next=ye}if(L.hasEagerState)y=L.eagerState;else{var ct=L.action;y=e(y,ct)}}else{var Ce={lane:Q,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};x===null?(E=x=Ce,h=y):x=x.next=Ce,Lt.lanes=et(Lt.lanes,Q),Nu(Q)}L=L.next}while(L!==null&&L!==f);x===null?h=y:x.next=E,ba(y,a.memoizedState)||Cu(),a.memoizedState=y,a.baseState=h,a.baseQueue=x,r.lastRenderedState=y}var at=r.interleaved;if(at!==null){var b=at;do{var k=b.lane;Lt.lanes=et(Lt.lanes,k),Nu(k),b=b.next}while(b!==at)}else o===null&&(r.lanes=H);var S=r.dispatch;return[a.memoizedState,S]}function Lv(e,t,n){var a=Oa(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,l=a.memoizedState;if(o!==null){r.pending=null;var u=o.next,c=u;do{var f=c.action;l=e(l,f),c=c.next}while(c!==u);ba(l,a.memoizedState)||Cu(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function p_(e,t,n){}function m_(e,t,n){}function kv(e,t,n){var a=Lt,r=ar(),i,o=Fn();if(o){if(n===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");i=n(),Uo||i!==n()&&(d("The result of getServerSnapshot should be cached to avoid an infinite loop"),Uo=!0)}else{if(i=t(),!Uo){var l=t();ba(i,l)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Uo=!0)}var u=Pc();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(u,zi)||yg(a,t,i)}r.memoizedState=i;var c={value:i,getSnapshot:t};return r.queue=c,mc(bg.bind(null,a,c,e),[e]),a.flags|=zr,mu(Sn|Vn,gg.bind(null,a,c,i,t),void 0,null),i}function fc(e,t,n){var a=Lt,r=Oa(),i=t();if(!Uo){var o=t();ba(i,o)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Uo=!0)}var l=r.memoizedState,u=!ba(l,i);u&&(r.memoizedState=i,Cu());var c=r.queue;if(yu(bg.bind(null,a,c,e),[e]),c.getSnapshot!==t||u||Cn!==null&&Cn.memoizedState.tag&Sn){a.flags|=zr,mu(Sn|Vn,gg.bind(null,a,c,i,t),void 0,null);var f=Pc();if(f===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(f,zi)||yg(a,t,i)}return i}function yg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=Lt.updateQueue;if(r===null)r=hg(),Lt.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function gg(e,t,n,a){t.value=n,t.getSnapshot=a,Sg(t)&&Tg(e)}function bg(e,t,n){var a=function(){Sg(t)&&Tg(e)};return n(a)}function Sg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!ba(n,a)}catch{return!0}}function Tg(e){var t=da(e,Pe);t!==null&&Dn(t,e,Pe,qt)}function dc(e){var t=ar();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:H,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=lR.bind(null,Lt,n);return[t.memoizedState,a]}function Av(e){return Mv(_v)}function jv(e){return Lv(_v)}function mu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Lt.updateQueue;if(i===null)i=hg(),Lt.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 Nv(e){var t=ar();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=Oa();return t.memoizedState}function hu(e,t,n,a){var r=ar(),i=a===void 0?null:a;Lt.flags|=e,r.memoizedState=mu(Sn|t,n,void 0,i)}function pc(e,t,n,a){var r=Oa(),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=mu(t,n,o,i);return}}}Lt.flags|=e,r.memoizedState=mu(Sn|t,n,o,i)}function mc(e,t){return(Lt.mode&Ja)!==Oe?hu(kf|zr|Lf,Vn,e,t):hu(zr|Lf,Vn,e,t)}function yu(e,t){return pc(zr,Vn,e,t)}function Uv(e,t){return hu(gt,nr,e,t)}function hc(e,t){return pc(gt,nr,e,t)}function zv(e,t){var n=gt;return n|=Si,(Lt.mode&Ja)!==Oe&&(n|=Hr),hu(n,Tn,e,t)}function yc(e,t){return pc(gt,Tn,e,t)}function Eg(e,t){if(typeof t=="function"){var n=t,a=e();return n(a),function(){n(null)}}else if(t!=null){var r=t;r.hasOwnProperty("current")||d("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}");var i=e();return r.current=i,function(){r.current=null}}}function Hv(e,t,n){typeof t!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null,r=gt;return r|=Si,(Lt.mode&Ja)!==Oe&&(r|=Hr),hu(r,Tn,Eg.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(gt,Tn,Eg.bind(null,t,e),a)}function aR(e,t){}var bc=aR;function Fv(e,t){var n=ar(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=Oa(),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=ar(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=Oa(),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=ar();return t.memoizedState=e,e}function Cg(e){var t=Oa(),n=En,a=n.memoizedState;return Rg(t,a,e)}function xg(e){var t=Oa();if(En===null)return t.memoizedState=e,e;var n=En.memoizedState;return Rg(t,n,e)}function Rg(e,t,n){var a=!PT(zi);if(a){if(!ba(n,t)){var r=Th();Lt.lanes=et(Lt.lanes,r),Nu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Cu()),e.memoizedState=n,n}function rR(e,t,n){var a=za();Nn(KT(a,br)),e(!0);var r=du.transition;du.transition={};var i=du.transition;du.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Nn(a),du.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&Be("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 Pv(){var e=dc(!1),t=e[0],n=e[1],a=rR.bind(null,n),r=ar();return r.memoizedState=a,[t,a]}function wg(){var e=Av(),t=e[0],n=Oa(),a=n.memoizedState;return[t,a]}function Dg(){var e=jv(),t=e[0],n=Oa(),a=n.memoizedState;return[t,a]}var _g=!1;function iR(){return _g}function $v(){var e=ar(),t=Pc(),n=t.identifierPrefix,a;if(Fn()){var r=E1();a=":"+n+"R"+r;var i=pu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=eR++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=Oa(),t=e.memoizedState;return t}function oR(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=ri(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(Og(e))Mg(t,r);else{var i=rg(e,t,r,a);if(i!==null){var o=ia();Dn(i,e,a,o),Lg(i,t,a)}}kg(e,a)}function lR(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=ri(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(Og(e))Mg(t,r);else{var i=e.alternate;if(e.lanes===H&&(i===null||i.lanes===H)){var o=t.lastRenderedReducer;if(o!==null){var l;l=ie.current,ie.current=Pa;try{var u=t.lastRenderedState,c=o(u,n);if(r.hasEagerState=!0,r.eagerState=c,ba(c,u)){G1(e,t,r,a);return}}catch{}finally{ie.current=l}}}var f=rg(e,t,r,a);if(f!==null){var y=ia();Dn(f,e,a,y),Lg(f,t,a)}}kg(e,a)}function Og(e){var t=e.alternate;return e===Lt||t!==null&&t===Lt}function Mg(e,t){vu=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lg(e,t,n){if(Sh(n)){var a=t.lanes;a=Eh(a,e.pendingLanes);var r=et(a,n);t.lanes=r,ud(e,r)}}function kg(e,t,n){zf(e,t)}var Cc={readContext:hn,useCallback:Kn,useContext:Kn,useEffect:Kn,useImperativeHandle:Kn,useInsertionEffect:Kn,useLayoutEffect:Kn,useMemo:Kn,useReducer:Kn,useRef:Kn,useState:Kn,useDebugValue:Kn,useDeferredValue:Kn,useTransition:Kn,useMutableSource:Kn,useSyncExternalStore:Kn,useId:Kn,unstable_isNewReconciler:Je},Ag=null,jg=null,Ng=null,Ug=null,rr=null,Pa=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().")},$e=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")};Ag={readContext:function(e){return hn(e)},useCallback:function(e,t){return A="useCallback",Rt(),zo(t),Fv(e,t)},useContext:function(e){return A="useContext",Rt(),hn(e)},useEffect:function(e,t){return A="useEffect",Rt(),zo(t),mc(e,t)},useImperativeHandle:function(e,t,n){return A="useImperativeHandle",Rt(),zo(n),Hv(e,t,n)},useInsertionEffect:function(e,t){return A="useInsertionEffect",Rt(),zo(t),Uv(e,t)},useLayoutEffect:function(e,t){return A="useLayoutEffect",Rt(),zo(t),zv(e,t)},useMemo:function(e,t){A="useMemo",Rt(),zo(t);var n=ie.current;ie.current=rr;try{return Vv(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){A="useReducer",Rt();var a=ie.current;ie.current=rr;try{return Ov(e,t,n)}finally{ie.current=a}},useRef:function(e){return A="useRef",Rt(),Nv(e)},useState:function(e){A="useState",Rt();var t=ie.current;ie.current=rr;try{return dc(e)}finally{ie.current=t}},useDebugValue:function(e,t){return A="useDebugValue",Rt(),void 0},useDeferredValue:function(e){return A="useDeferredValue",Rt(),Bv(e)},useTransition:function(){return A="useTransition",Rt(),Pv()},useMutableSource:function(e,t,n){return A="useMutableSource",Rt(),void 0},useSyncExternalStore:function(e,t,n){return A="useSyncExternalStore",Rt(),kv(e,t,n)},useId:function(){return A="useId",Rt(),$v()},unstable_isNewReconciler:Je},jg={readContext:function(e){return hn(e)},useCallback:function(e,t){return A="useCallback",q(),Fv(e,t)},useContext:function(e){return A="useContext",q(),hn(e)},useEffect:function(e,t){return A="useEffect",q(),mc(e,t)},useImperativeHandle:function(e,t,n){return A="useImperativeHandle",q(),Hv(e,t,n)},useInsertionEffect:function(e,t){return A="useInsertionEffect",q(),Uv(e,t)},useLayoutEffect:function(e,t){return A="useLayoutEffect",q(),zv(e,t)},useMemo:function(e,t){A="useMemo",q();var n=ie.current;ie.current=rr;try{return Vv(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){A="useReducer",q();var a=ie.current;ie.current=rr;try{return Ov(e,t,n)}finally{ie.current=a}},useRef:function(e){return A="useRef",q(),Nv(e)},useState:function(e){A="useState",q();var t=ie.current;ie.current=rr;try{return dc(e)}finally{ie.current=t}},useDebugValue:function(e,t){return A="useDebugValue",q(),void 0},useDeferredValue:function(e){return A="useDeferredValue",q(),Bv(e)},useTransition:function(){return A="useTransition",q(),Pv()},useMutableSource:function(e,t,n){return A="useMutableSource",q(),void 0},useSyncExternalStore:function(e,t,n){return A="useSyncExternalStore",q(),kv(e,t,n)},useId:function(){return A="useId",q(),$v()},unstable_isNewReconciler:Je},Ng={readContext:function(e){return hn(e)},useCallback:function(e,t){return A="useCallback",q(),Sc(e,t)},useContext:function(e){return A="useContext",q(),hn(e)},useEffect:function(e,t){return A="useEffect",q(),yu(e,t)},useImperativeHandle:function(e,t,n){return A="useImperativeHandle",q(),gc(e,t,n)},useInsertionEffect:function(e,t){return A="useInsertionEffect",q(),hc(e,t)},useLayoutEffect:function(e,t){return A="useLayoutEffect",q(),yc(e,t)},useMemo:function(e,t){A="useMemo",q();var n=ie.current;ie.current=Pa;try{return Tc(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){A="useReducer",q();var a=ie.current;ie.current=Pa;try{return Mv(e,t,n)}finally{ie.current=a}},useRef:function(e){return A="useRef",q(),vc()},useState:function(e){A="useState",q();var t=ie.current;ie.current=Pa;try{return Av(e)}finally{ie.current=t}},useDebugValue:function(e,t){return A="useDebugValue",q(),bc()},useDeferredValue:function(e){return A="useDeferredValue",q(),Cg(e)},useTransition:function(){return A="useTransition",q(),wg()},useMutableSource:function(e,t,n){return A="useMutableSource",q(),void 0},useSyncExternalStore:function(e,t,n){return A="useSyncExternalStore",q(),fc(e,t)},useId:function(){return A="useId",q(),Ec()},unstable_isNewReconciler:Je},Ug={readContext:function(e){return hn(e)},useCallback:function(e,t){return A="useCallback",q(),Sc(e,t)},useContext:function(e){return A="useContext",q(),hn(e)},useEffect:function(e,t){return A="useEffect",q(),yu(e,t)},useImperativeHandle:function(e,t,n){return A="useImperativeHandle",q(),gc(e,t,n)},useInsertionEffect:function(e,t){return A="useInsertionEffect",q(),hc(e,t)},useLayoutEffect:function(e,t){return A="useLayoutEffect",q(),yc(e,t)},useMemo:function(e,t){A="useMemo",q();var n=ie.current;ie.current=xc;try{return Tc(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){A="useReducer",q();var a=ie.current;ie.current=xc;try{return Lv(e,t,n)}finally{ie.current=a}},useRef:function(e){return A="useRef",q(),vc()},useState:function(e){A="useState",q();var t=ie.current;ie.current=xc;try{return jv(e)}finally{ie.current=t}},useDebugValue:function(e,t){return A="useDebugValue",q(),bc()},useDeferredValue:function(e){return A="useDeferredValue",q(),xg(e)},useTransition:function(){return A="useTransition",q(),Dg()},useMutableSource:function(e,t,n){return A="useMutableSource",q(),void 0},useSyncExternalStore:function(e,t,n){return A="useSyncExternalStore",q(),fc(e,t)},useId:function(){return A="useId",q(),Ec()},unstable_isNewReconciler:Je},rr={readContext:function(e){return Yv(),hn(e)},useCallback:function(e,t){return A="useCallback",$e(),Rt(),Fv(e,t)},useContext:function(e){return A="useContext",$e(),Rt(),hn(e)},useEffect:function(e,t){return A="useEffect",$e(),Rt(),mc(e,t)},useImperativeHandle:function(e,t,n){return A="useImperativeHandle",$e(),Rt(),Hv(e,t,n)},useInsertionEffect:function(e,t){return A="useInsertionEffect",$e(),Rt(),Uv(e,t)},useLayoutEffect:function(e,t){return A="useLayoutEffect",$e(),Rt(),zv(e,t)},useMemo:function(e,t){A="useMemo",$e(),Rt();var n=ie.current;ie.current=rr;try{return Vv(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){A="useReducer",$e(),Rt();var a=ie.current;ie.current=rr;try{return Ov(e,t,n)}finally{ie.current=a}},useRef:function(e){return A="useRef",$e(),Rt(),Nv(e)},useState:function(e){A="useState",$e(),Rt();var t=ie.current;ie.current=rr;try{return dc(e)}finally{ie.current=t}},useDebugValue:function(e,t){return A="useDebugValue",$e(),Rt(),void 0},useDeferredValue:function(e){return A="useDeferredValue",$e(),Rt(),Bv(e)},useTransition:function(){return A="useTransition",$e(),Rt(),Pv()},useMutableSource:function(e,t,n){return A="useMutableSource",$e(),Rt(),void 0},useSyncExternalStore:function(e,t,n){return A="useSyncExternalStore",$e(),Rt(),kv(e,t,n)},useId:function(){return A="useId",$e(),Rt(),$v()},unstable_isNewReconciler:Je},Pa={readContext:function(e){return Yv(),hn(e)},useCallback:function(e,t){return A="useCallback",$e(),q(),Sc(e,t)},useContext:function(e){return A="useContext",$e(),q(),hn(e)},useEffect:function(e,t){return A="useEffect",$e(),q(),yu(e,t)},useImperativeHandle:function(e,t,n){return A="useImperativeHandle",$e(),q(),gc(e,t,n)},useInsertionEffect:function(e,t){return A="useInsertionEffect",$e(),q(),hc(e,t)},useLayoutEffect:function(e,t){return A="useLayoutEffect",$e(),q(),yc(e,t)},useMemo:function(e,t){A="useMemo",$e(),q();var n=ie.current;ie.current=Pa;try{return Tc(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){A="useReducer",$e(),q();var a=ie.current;ie.current=Pa;try{return Mv(e,t,n)}finally{ie.current=a}},useRef:function(e){return A="useRef",$e(),q(),vc()},useState:function(e){A="useState",$e(),q();var t=ie.current;ie.current=Pa;try{return Av(e)}finally{ie.current=t}},useDebugValue:function(e,t){return A="useDebugValue",$e(),q(),bc()},useDeferredValue:function(e){return A="useDeferredValue",$e(),q(),Cg(e)},useTransition:function(){return A="useTransition",$e(),q(),wg()},useMutableSource:function(e,t,n){return A="useMutableSource",$e(),q(),void 0},useSyncExternalStore:function(e,t,n){return A="useSyncExternalStore",$e(),q(),fc(e,t)},useId:function(){return A="useId",$e(),q(),Ec()},unstable_isNewReconciler:Je},xc={readContext:function(e){return Yv(),hn(e)},useCallback:function(e,t){return A="useCallback",$e(),q(),Sc(e,t)},useContext:function(e){return A="useContext",$e(),q(),hn(e)},useEffect:function(e,t){return A="useEffect",$e(),q(),yu(e,t)},useImperativeHandle:function(e,t,n){return A="useImperativeHandle",$e(),q(),gc(e,t,n)},useInsertionEffect:function(e,t){return A="useInsertionEffect",$e(),q(),hc(e,t)},useLayoutEffect:function(e,t){return A="useLayoutEffect",$e(),q(),yc(e,t)},useMemo:function(e,t){A="useMemo",$e(),q();var n=ie.current;ie.current=Pa;try{return Tc(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){A="useReducer",$e(),q();var a=ie.current;ie.current=Pa;try{return Lv(e,t,n)}finally{ie.current=a}},useRef:function(e){return A="useRef",$e(),q(),vc()},useState:function(e){A="useState",$e(),q();var t=ie.current;ie.current=Pa;try{return jv(e)}finally{ie.current=t}},useDebugValue:function(e,t){return A="useDebugValue",$e(),q(),bc()},useDeferredValue:function(e){return A="useDeferredValue",$e(),q(),xg(e)},useTransition:function(){return A="useTransition",$e(),q(),Dg()},useMutableSource:function(e,t,n){return A="useMutableSource",$e(),q(),void 0},useSyncExternalStore:function(e,t,n){return A="useSyncExternalStore",$e(),q(),fc(e,t)},useId:function(){return A="useId",$e(),q(),Ec()},unstable_isNewReconciler:Je}}var ei=_.unstable_now,zg=0,Rc=-1,gu=-1,wc=-1,Gv=!1,Dc=!1;function Hg(){return Gv}function uR(){Dc=!0}function sR(){Gv=!1,Dc=!1}function cR(){Gv=Dc,Dc=!1}function Fg(){return zg}function Vg(){zg=ei()}function Wv(e){gu=ei(),e.actualStartTime<0&&(e.actualStartTime=ei())}function Bg(e){gu=-1}function _c(e,t){if(gu>=0){var n=ei()-gu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),gu=-1}}function ir(e){if(Rc>=0){var t=ei()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case P:var a=n.stateNode;a.effectDuration+=t;return;case mt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(wc>=0){var t=ei()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case P:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case mt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function or(){Rc=ei()}function Iv(){wc=ei()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function $a(e,t){if(e&&e.defaultProps){var n=Ze({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Qv={},Kv,Jv,Zv,ep,tp,Pg,Oc,np,ap,rp,bu;{Kv=new Set,Jv=new Set,Zv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,bu=new Set;var $g=new Set;Oc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;$g.has(n)||($g.add(n),d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Pg=function(e,t){if(t===void 0){var n=yt(e)||"Component";tp.has(n)||(tp.add(n),d("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Qv,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Qv)}function ip(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&on){An(!0);try{i=n(a,r)}finally{An(!1)}}Pg(t,i)}var o=i==null?r:Ze({},r,i);if(e.memoizedState=o,e.lanes===H){var l=e.updateQueue;l.baseState=o}}var op={isMounted:tT,enqueueSetState:function(e,t,n){var a=io(e),r=ia(),i=ri(a),o=wr(r,i);o.payload=t,n!=null&&(Oc(n,"setState"),o.callback=n);var l=Qr(a,o,i);l!==null&&(Dn(l,a,i,r),rc(l,a,i)),zf(a,i)},enqueueReplaceState:function(e,t,n){var a=io(e),r=ia(),i=ri(a),o=wr(r,i);o.tag=og,o.payload=t,n!=null&&(Oc(n,"replaceState"),o.callback=n);var l=Qr(a,o,i);l!==null&&(Dn(l,a,i,r),rc(l,a,i)),zf(a,i)},enqueueForceUpdate:function(e,t){var n=io(e),a=ia(),r=ri(n),i=wr(a,r);i.tag=tc,t!=null&&(Oc(t,"forceUpdate"),i.callback=t);var o=Qr(n,i,r);o!==null&&(Dn(o,n,r,a),rc(o,n,r)),kT(n,r)}};function Yg(e,t,n,a,r,i,o){var l=e.stateNode;if(typeof l.shouldComponentUpdate=="function"){var u=l.shouldComponentUpdate(a,i,o);{if(e.mode&on){An(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{An(!1)}}u===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",yt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Bl(n,a)||!Bl(r,i):!0}function fR(e,t,n){var a=e.stateNode;{var r=yt(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&&!bu.has(t)&&(e.mode&on)===Oe&&(bu.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&&!bu.has(t)&&(e.mode&on)===Oe&&(bu.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.",yt(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"&&!Zv.has(t)&&(Zv.add(t),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",yt(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"||nt(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 Gg(e,t){t.updater=op,e.stateNode=t,K0(t,e),t._reactInternalInstance=Qv}function Wg(e,t,n){var a=!1,r=Sa,i=Sa,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===p&&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===Aa?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",yt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=hn(o);else{r=Ro(e,t,!0);var c=t.contextTypes;a=c!=null,i=a?wo(e,r):Sa}var f=new t(n,i);if(e.mode&on){An(!0);try{f=new t(n,i)}finally{An(!1)}}var y=e.memoizedState=f.state!==null&&f.state!==void 0?f.state:null;Gg(e,f);{if(typeof t.getDerivedStateFromProps=="function"&&y===null){var h=yt(t)||"Component";Jv.has(h)||(Jv.add(h),d("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",h,f.state===null?"null":"undefined",h))}if(typeof t.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"){var E=null,x=null,L=null;if(typeof f.componentWillMount=="function"&&f.componentWillMount.__suppressDeprecationWarning!==!0?E="componentWillMount":typeof f.UNSAFE_componentWillMount=="function"&&(E="UNSAFE_componentWillMount"),typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps.__suppressDeprecationWarning!==!0?x="componentWillReceiveProps":typeof f.UNSAFE_componentWillReceiveProps=="function"&&(x="UNSAFE_componentWillReceiveProps"),typeof f.componentWillUpdate=="function"&&f.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof f.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),E!==null||x!==null||L!==null){var Q=yt(t)||"Component",Ce=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(Q)||(ep.add(Q),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`,Q,Ce,E!==null?`
`+E:"",x!==null?`
`+x:"",L!==null?`
`+L:""))}}}return a&&Ny(e,r,i),f}function dR(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.",Ie(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function qg(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=Ie(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){fR(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=Ro(e,t,!0);r.context=wo(e,o)}{if(r.state===n){var l=yt(t)||"Component";np.has(l)||(np.add(l),d("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}e.mode&on&&Va.recordLegacyContextWarning(e,r),Va.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")&&(dR(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var c=gt;c|=Si,(e.mode&Ja)!==Oe&&(c|=Hr),e.flags|=c}}function vR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=Sa;if(typeof l=="object"&&l!==null)u=hn(l);else{var c=Ro(e,t,!0);u=wo(e,c)}var f=t.getDerivedStateFromProps,y=typeof f=="function"||typeof r.getSnapshotBeforeUpdate=="function";!y&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&qg(e,r,n,u),ug();var h=e.memoizedState,E=r.state=h;if(ic(e,n,r,a),E=e.memoizedState,i===n&&h===E&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var x=gt;x|=Si,(e.mode&Ja)!==Oe&&(x|=Hr),e.flags|=x}return!1}typeof f=="function"&&(ip(e,t,f,n),E=e.memoizedState);var L=oc()||Yg(e,t,i,n,h,E,u);if(L){if(!y&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"){var Q=gt;Q|=Si,(e.mode&Ja)!==Oe&&(Q|=Hr),e.flags|=Q}}else{if(typeof r.componentDidMount=="function"){var Ce=gt;Ce|=Si,(e.mode&Ja)!==Oe&&(Ce|=Hr),e.flags|=Ce}e.memoizedProps=n,e.memoizedState=E}return r.props=n,r.state=E,r.context=u,L}function pR(e,t,n,a,r){var i=t.stateNode;lg(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:$a(t.type,o);i.props=l;var u=t.pendingProps,c=i.context,f=n.contextType,y=Sa;if(typeof f=="object"&&f!==null)y=hn(f);else{var h=Ro(t,n,!0);y=wo(t,h)}var E=n.getDerivedStateFromProps,x=typeof E=="function"||typeof i.getSnapshotBeforeUpdate=="function";!x&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||c!==y)&&qg(t,i,a,y),ug();var L=t.memoizedState,Q=i.state=L;if(ic(t,a,i,r),Q=t.memoizedState,o===u&&L===Q&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||L!==e.memoizedState)&&(t.flags|=gt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||L!==e.memoizedState)&&(t.flags|=lo),!1;typeof E=="function"&&(ip(t,n,E,a),Q=t.memoizedState);var Ce=oc()||Yg(t,n,l,a,L,Q,y)||ht;return Ce?(!x&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,Q,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,Q,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=gt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=lo)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||L!==e.memoizedState)&&(t.flags|=gt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||L!==e.memoizedState)&&(t.flags|=lo),t.memoizedProps=a,t.memoizedState=Q),i.props=a,i.state=Q,i.context=y,Ce}function Hi(e,t){return{value:e,source:t,stack:ci(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function mR(e,t){return!0}function sp(e,t){try{var n=mR(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===ee)return;console.error(a)}var l=r?Ie(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",c;if(e.tag===P)c=`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var f=Ie(e)||"Anonymous";c="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+f+".")}var y=u+`
`+o+`
`+(""+c);console.error(y)}catch(h){setTimeout(function(){throw h})}}var hR=typeof WeakMap=="function"?WeakMap:Map;function Ig(e,t,n){var a=wr(qt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){uD(r),sp(e,t)},a}function cp(e,t,n){var a=wr(qt,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(){iS(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){iS(e),sp(e,t),typeof r!="function"&&oD(this);var u=t.value,c=t.stack;this.componentDidCatch(u,{componentStack:c!==null?c:""}),typeof r!="function"&&(ha(e.lanes,Pe)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ie(e)||"Unknown"))}),a}function Xg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new hR,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=sD.bind(null,e,t,n);Ua&&Uu(e,n),t.then(i,i)}}function yR(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 gR(e,t){var n=e.tag;if((e.mode&ut)===Oe&&(n===ge||n===We||n===fe)){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===te&&J1(t))return t;t=t.return}while(t!==null);return null}function Kg(e,t,n,a,r){if((e.mode&ut)===Oe){if(e===t)e.flags|=Na;else{if(e.flags|=xt,n.flags|=Of,n.flags&=-52805,n.tag===ee){var i=n.alternate;if(i===null)n.tag=ft;else{var o=wr(qt,Pe);o.tag=tc,Qr(n,o,Pe)}}n.lanes=et(n.lanes,Pe)}return e}return e.flags|=Na,e.lanes=r,e}function bR(e,t,n,a,r){if(n.flags|=rs,Ua&&Uu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;gR(n),Fn()&&n.mode&ut&&Py();var o=Qg(t);if(o!==null){o.flags&=-257,Kg(o,t,n,e,r),o.mode&ut&&Xg(e,i,r),yR(o,e,i);return}else{if(!BT(r)){Xg(e,i,r),$p();return}var l=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");a=l}}else if(Fn()&&n.mode&ut){Py();var u=Qg(t);if(u!==null){(u.flags&Na)===Ne&&(u.flags|=hi),Kg(u,t,n,e,r),nv(Hi(a,n));return}}a=Hi(a,n),Jw(a);var c=t;do{switch(c.tag){case P:{var f=a;c.flags|=Na;var y=wl(r);c.lanes=et(c.lanes,y);var h=Ig(c,f,y);yv(c,h);return}case ee:var E=a,x=c.type,L=c.stateNode;if((c.flags&xt)===Ne&&(typeof x.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&!Qb(L))){c.flags|=Na;var Q=wl(r);c.lanes=et(c.lanes,Q);var Ce=cp(c,E,Q);yv(c,Ce);return}break}c=c.return}while(c!==null)}function SR(){return null}var Su=he.ReactCurrentOwner,Ya=!1,fp,Tu,dp,vp,pp,Fi,mp,Mc,Eu;fp={},Tu={},dp={},vp={},pp={},Fi=!1,mp={},Mc={},Eu={};function aa(e,t,n,a){e===null?t.child=eg(t,null,n,a):t.child=Mo(t,e.child,n,a)}function TR(e,t,n,a){t.child=Mo(t,e.child,null,a),t.child=Mo(t,null,n,a)}function Jg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ha(i,a,"prop",yt(n))}var o=n.render,l=t.ref,u,c;ko(t,r),Sl(t);{if(Su.current=t,Ca(!0),u=Ho(e,t,o,a,l,r),c=Fo(),t.mode&on){An(!0);try{u=Ho(e,t,o,a,l,r),c=Fo()}finally{An(!1)}}Ca(!1)}return co(),e!==null&&!Ya?(pg(e,t,r),Dr(e,t,r)):(Fn()&&c&&Qd(t),t.flags|=oo,aa(e,t,u,r),t.child)}function Zg(e,t,n,a,r){if(e===null){var i=n.type;if(wD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=qo(i),t.tag=fe,t.type=o,gp(t,i),eb(e,t,o,a,r)}{var l=i.propTypes;if(l&&Ha(l,a,"prop",yt(i)),n.defaultProps!==void 0){var u=yt(i)||"Unknown";Eu[u]||(d("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Eu[u]=!0)}}var c=em(n.type,null,a,t,t.mode,r);return c.ref=t.ref,c.return=t,t.child=c,c}{var f=n.type,y=f.propTypes;y&&Ha(y,a,"prop",yt(f))}var h=e.child,E=xp(e,r);if(!E){var x=h.memoizedProps,L=n.compare;if(L=L!==null?L:Bl,L(x,a)&&e.ref===t.ref)return Dr(e,t,r)}t.flags|=oo;var Q=Yi(h,a);return Q.ref=t.ref,Q.return=t,t.child=Q,Q}function eb(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===De){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var c=i&&i.propTypes;c&&Ha(c,a,"prop",yt(i))}}if(e!==null){var f=e.memoizedProps;if(Bl(f,a)&&e.ref===t.ref&&t.type===e.type)if(Ya=!1,t.pendingProps=a=f,xp(e,r))(e.flags&Of)!==Ne&&(Ya=!0);else return t.lanes=e.lanes,Dr(e,t,r)}return hp(e,t,n,a,r)}function tb(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||St)if((t.mode&ut)===Oe){var o={baseLanes:H,cachePool:null,transitions:null};t.memoizedState=o,$c(t,n)}else if(ha(n,xa)){var y={baseLanes:H,cachePool:null,transitions:null};t.memoizedState=y;var h=i!==null?i.baseLanes:n;$c(t,h)}else{var l=null,u;if(i!==null){var c=i.baseLanes;u=et(c,n)}else u=n;t.lanes=t.childLanes=xa;var f={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=f,t.updateQueue=null,$c(t,u),null}else{var E;i!==null?(E=et(i.baseLanes,n),t.memoizedState=null):E=n,$c(t,E)}return aa(e,t,r,n),t.child}function ER(e,t,n){var a=t.pendingProps;return aa(e,t,a,n),t.child}function CR(e,t,n){var a=t.pendingProps.children;return aa(e,t,a,n),t.child}function xR(e,t,n){{t.flags|=gt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return aa(e,t,i,n),t.child}function nb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=yi,t.flags|=Mf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ha(i,a,"prop",yt(n))}var o;{var l=Ro(t,n,!0);o=wo(t,l)}var u,c;ko(t,r),Sl(t);{if(Su.current=t,Ca(!0),u=Ho(e,t,n,a,o,r),c=Fo(),t.mode&on){An(!0);try{u=Ho(e,t,n,a,o,r),c=Fo()}finally{An(!1)}}Ca(!1)}return co(),e!==null&&!Ya?(pg(e,t,r),Dr(e,t,r)):(Fn()&&c&&Qd(t),t.flags|=oo,aa(e,t,u,r),t.child)}function ab(e,t,n,a,r){{switch(BD(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|=xt,t.flags|=Na;var c=new Error("Simulated error coming from DevTools"),f=wl(r);t.lanes=et(t.lanes,f);var y=cp(t,Hi(c,t),f);yv(t,y);break}}if(t.type!==t.elementType){var h=n.propTypes;h&&Ha(h,a,"prop",yt(n))}}var E;tr(n)?(E=!0,Ps(t)):E=!1,ko(t,r);var x=t.stateNode,L;x===null?(kc(e,t),Wg(t,n,a),lp(t,n,a,r),L=!0):e===null?L=vR(t,n,a,r):L=pR(e,t,n,a,r);var Q=yp(e,t,n,L,E,r);{var Ce=t.stateNode;L&&Ce.props!==a&&(Fi||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ie(t)||"a component"),Fi=!0)}return Q}function yp(e,t,n,a,r,i){nb(e,t);var o=(t.flags&xt)!==Ne;if(!a&&!o)return r&&Hy(t,n,!1),Dr(e,t,i);var l=t.stateNode;Su.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Bg();else{Sl(t);{if(Ca(!0),u=l.render(),t.mode&on){An(!0);try{l.render()}finally{An(!1)}}Ca(!1)}co()}return t.flags|=oo,e!==null&&o?TR(e,t,u,i):aa(e,t,u,i),t.memoizedState=l.state,r&&Hy(t,n,!0),t.child}function rb(e){var t=e.stateNode;t.pendingContext?Uy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uy(e,t.context,!1),gv(e,t.containerInfo)}function RR(e,t,n){if(rb(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;lg(e,t),ic(t,a,null,n);var o=t.memoizedState;t.stateNode;var l=o.element;if(r.isDehydrated){var u={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},c=t.updateQueue;if(c.baseState=u,t.memoizedState=u,t.flags&hi){var f=Hi(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 ib(e,t,l,n,f)}else if(l!==i){var y=Hi(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return ib(e,t,l,n,y)}else{_1(t);var h=eg(t,null,l,n);t.child=h;for(var E=h;E;)E.flags=E.flags&-3|gi,E=E.sibling}}else{if(Oo(),l===i)return Dr(e,t,n);aa(e,t,l,n)}return t.child}function ib(e,t,n,a,r){return Oo(),nv(r),t.flags|=hi,aa(e,t,n,a),t.child}function wR(e,t,n){fg(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),nb(e,t),aa(e,t,o,n),t.child}function DR(e,t){return e===null&&tv(t),null}function _R(e,t,n,a){kc(e,t);var r=t.pendingProps,i=n,o=i._payload,l=i._init,u=l(o);t.type=u;var c=t.tag=DD(u),f=$a(u,r),y;switch(c){case ge:return gp(t,u),t.type=u=qo(u),y=hp(null,t,u,f,a),y;case ee:return t.type=u=Ip(u),y=ab(null,t,u,f,a),y;case We:return t.type=u=Xp(u),y=Jg(null,t,u,f,a),y;case Ee:{if(t.type!==t.elementType){var h=u.propTypes;h&&Ha(h,f,"prop",yt(u))}return y=Zg(null,t,u,$a(u.type,f),a),y}}var E="";throw u!==null&&typeof u=="object"&&u.$$typeof===De&&(E=" 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."+E))}function OR(e,t,n,a,r){kc(e,t),t.tag=ee;var i;return tr(n)?(i=!0,Ps(t)):i=!1,ko(t,r),Wg(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function MR(e,t,n,a){kc(e,t);var r=t.pendingProps,i;{var o=Ro(t,n,!1);i=wo(t,o)}ko(t,a);var l,u;Sl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var c=yt(n)||"Unknown";fp[c]||(d("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",c,c),fp[c]=!0)}t.mode&on&&Va.recordLegacyContextWarning(t,null),Ca(!0),Su.current=t,l=Ho(null,t,n,r,i,a),u=Fo(),Ca(!1)}if(co(),t.flags|=oo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var f=yt(n)||"Unknown";Tu[f]||(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.",f,f,f),Tu[f]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var y=yt(n)||"Unknown";Tu[y]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",y,y,y),Tu[y]=!0)}t.tag=ee,t.memoizedState=null,t.updateQueue=null;var h=!1;return tr(n)?(h=!0,Ps(t)):h=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hv(t),Gg(t,l),lp(t,n,r,a),yp(null,t,n,!0,h,a)}else{if(t.tag=ge,t.mode&on){An(!0);try{l=Ho(null,t,n,r,i,a),u=Fo()}finally{An(!1)}}return Fn()&&u&&Qd(t),aa(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=Nr();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=yt(t)||"Unknown";Eu[o]||(d("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),Eu[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=yt(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=yt(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:jn};function Sp(e){return{baseLanes:e,cachePool:SR(),transitions:null}}function LR(e,t){var n=null;return{baseLanes:et(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function kR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,fu)}function AR(e,t){return fs(e.childLanes,t)}function ob(e,t,n){var a=t.pendingProps;PD(t)&&(t.flags|=xt);var r=Ba.current,i=!1,o=(t.flags&xt)!==Ne;if(o||kR(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=K1(r,vg)),r=jo(r),Jr(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return HR(t,u)}var c=a.children,f=a.fallback;if(i){var y=jR(t,c,f,n),h=t.child;return h.memoizedState=Sp(n),t.memoizedState=bp,y}else return Tp(t,c)}else{var E=e.memoizedState;if(E!==null){var x=E.dehydrated;if(x!==null)return FR(e,t,o,a,x,E,n)}if(i){var L=a.fallback,Q=a.children,Ce=UR(e,t,Q,L,n),ye=t.child,ct=e.child.memoizedState;return ye.memoizedState=ct===null?Sp(n):LR(ct,n),ye.childLanes=AR(e,n),t.memoizedState=bp,Ce}else{var at=a.children,b=NR(e,t,at,n);return t.memoizedState=null,b}}}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 jR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&ut)===Oe&&i!==null?(l=i,l.childLanes=H,l.pendingProps=o,e.mode&Mt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=oi(n,r,a,null)):(l=Ep(o,r),u=oi(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return lS(e,t,H,null)}function lb(e,t){return Yi(e,t)}function NR(e,t,n,a){var r=e.child,i=r.sibling,o=lb(r,{mode:"visible",children:n});if((t.mode&ut)===Oe&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=mi):l.push(i)}return t.child=o,o}function UR(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},c;if((i&ut)===Oe&&t.child!==o){var f=t.child;c=f,c.childLanes=H,c.pendingProps=u,t.mode&Mt&&(c.actualDuration=0,c.actualStartTime=-1,c.selfBaseDuration=o.selfBaseDuration,c.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else c=lb(o,u),c.subtreeFlags=o.subtreeFlags&yr;var y;return l!==null?y=Yi(l,a):(y=oi(a,i,r,null),y.flags|=Ln),y.return=t,c.return=t,c.sibling=y,t.child=c,y}function Lc(e,t,n,a){a!==null&&nv(a),Mo(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 zR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=oi(a,i,r,null);return u.flags|=Ln,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&ut)!==Oe&&Mo(t,e.child,null,r),u}function HR(e,t,n){return(e.mode&ut)===Oe?(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=Pe):Vd(t)?e.lanes=Ci:e.lanes=xa,null}function FR(e,t,n,a,r,i,o){if(n)if(t.flags&hi){t.flags&=-257;var b=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Lc(e,t,o,b)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=xt,null;var k=a.children,S=a.fallback,V=zR(e,t,k,S,o),le=t.child;return le.memoizedState=Sp(o),t.memoizedState=bp,V}else{if(w1(),(t.mode&ut)===Oe)return Lc(e,t,o,null);if(Vd(r)){var l,u,c;{var f=$x(r);l=f.digest,u=f.message,c=f.stack}var y;u?y=new Error(u):y=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var h=up(y,l,c);return Lc(e,t,o,h)}var E=ha(o,e.childLanes);if(Ya||E){var x=Pc();if(x!==null){var L=XT(x,o);if(L!==jn&&L!==i.retryLane){i.retryLane=L;var Q=qt;da(e,L),Dn(x,e,L,Q)}}$p();var Ce=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,Ce)}else if(My(r)){t.flags|=xt,t.child=e.child;var ye=cD.bind(null,e);return Yx(r,ye),null}else{O1(t,r,i.treeContext);var ct=a.children,at=Tp(t,ct);return at.flags|=gi,at}}}function ub(e,t,n){e.lanes=et(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=et(a.lanes,t)),dv(e.return,t,n)}function VR(e,t,n){for(var a=t;a!==null;){if(a.tag===te){var r=a.memoizedState;r!==null&&ub(a,n,e)}else if(a.tag===X)ub(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 BR(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 PR(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 $R(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 sb(e,t){{var n=nt(e),a=!n&&typeof Ut(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 YR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(nt(e)){for(var n=0;n<e.length;n++)if(!sb(e[n],n))return}else{var a=Ut(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(!sb(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 cb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;PR(r),$R(i,r),YR(o,r),aa(e,t,o,n);var l=Ba.current,u=Tv(l,fu);if(u)l=Ev(l,fu),t.flags|=xt;else{var c=e!==null&&(e.flags&xt)!==Ne;c&&VR(t,t.child,n),l=jo(l)}if(Jr(t,l),(t.mode&ut)===Oe)t.memoizedState=null;else switch(r){case"forwards":{var f=BR(t.child),y;f===null?(y=t.child,t.child=null):(y=f.sibling,f.sibling=null),Cp(t,!1,y,f,i);break}case"backwards":{var h=null,E=t.child;for(t.child=null;E!==null;){var x=E.alternate;if(x!==null&&sc(x)===null){t.child=E;break}var L=E.sibling;E.sibling=h,h=E,E=L}Cp(t,!0,h,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function GR(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=Mo(t,null,a,n):aa(e,t,a,n),t.child}var fb=!1;function WR(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||fb||(fb=!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&&Ha(u,i,"prop","Context.Provider")}if(ag(t,r,l),o!==null){var c=o.value;if(ba(c,l)){if(o.children===i.children&&!Vs())return Dr(e,t,n)}else P1(t,r,n)}var f=i.children;return aa(e,t,f,n),t.child}var db=!1;function qR(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(db||(db=!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."),ko(t,n);var o=hn(a);Sl(t);var l;return Su.current=t,Ca(!0),l=i(o),Ca(!1),co(),t.flags|=oo,aa(e,t,l,n),t.child}function Cu(){Ya=!0}function kc(e,t){(t.mode&ut)===Oe&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Ln)}function Dr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Bg(),Nu(t.lanes),ha(n,t.childLanes)?(V1(e,t),t.child):null}function IR(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|=mi):i.push(e),n.flags|=Ln,n}}function xp(e,t){var n=e.lanes;return!!ha(n,t)}function XR(e,t,n){switch(t.tag){case P:rb(t),t.stateNode,Oo();break;case ue:fg(t);break;case ee:{var a=t.type;tr(a)&&Ps(t);break}case R:gv(t,t.stateNode.containerInfo);break;case ve:{var r=t.memoizedProps.value,i=t.type._context;ag(t,i,r);break}case mt:{var o=ha(n,t.childLanes);o&&(t.flags|=gt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case te:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return Jr(t,jo(Ba.current)),t.flags|=xt,null;var c=t.child,f=c.childLanes;if(ha(n,f))return ob(e,t,n);Jr(t,jo(Ba.current));var y=Dr(e,t,n);return y!==null?y.sibling:null}else Jr(t,jo(Ba.current));break}case X:{var h=(e.flags&xt)!==Ne,E=ha(n,t.childLanes);if(h){if(E)return cb(e,t,n);t.flags|=xt}var x=t.memoizedState;if(x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Jr(t,Ba.current),E)break;return null}case Le:case Dt:return t.lanes=H,tb(e,t,n)}return Dr(e,t,n)}function vb(e,t,n){if(t._debugNeedsRemount&&e!==null)return IR(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)Ya=!0;else{var i=xp(e,n);if(!i&&(t.flags&xt)===Ne)return Ya=!1,XR(e,t,n);(e.flags&Of)!==Ne?Ya=!0:Ya=!1}}else if(Ya=!1,Fn()&&S1(t)){var o=t.index,l=T1();By(t,l,o)}switch(t.lanes=H,t.tag){case it:return MR(e,t,t.type,n);case we:{var u=t.elementType;return _R(e,t,u,n)}case ge:{var c=t.type,f=t.pendingProps,y=t.elementType===c?f:$a(c,f);return hp(e,t,c,y,n)}case ee:{var h=t.type,E=t.pendingProps,x=t.elementType===h?E:$a(h,E);return ab(e,t,h,x,n)}case P:return RR(e,t,n);case ue:return wR(e,t,n);case Ke:return DR(e,t);case te:return ob(e,t,n);case R:return GR(e,t,n);case We:{var L=t.type,Q=t.pendingProps,Ce=t.elementType===L?Q:$a(L,Q);return Jg(e,t,L,Ce,n)}case It:return ER(e,t,n);case wt:return CR(e,t,n);case mt:return xR(e,t,n);case ve:return WR(e,t,n);case Jt:return qR(e,t,n);case Ee:{var ye=t.type,ct=t.pendingProps,at=$a(ye,ct);if(t.type!==t.elementType){var b=ye.propTypes;b&&Ha(b,at,"prop",yt(ye))}return at=$a(ye.type,at),Zg(e,t,ye,at,n)}case fe:return eb(e,t,t.type,t.pendingProps,n);case ft:{var k=t.type,S=t.pendingProps,V=t.elementType===k?S:$a(k,S);return OR(e,t,k,V,n)}case X:return cb(e,t,n);case _e:break;case Le:return tb(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 Vo(e){e.flags|=gt}function pb(e){e.flags|=yi,e.flags|=Mf}var mb,Rp,hb,yb;mb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===ue||r.tag===Ke)yx(e,r.stateNode);else if(r.tag!==R){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){},hb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=bv(),u=bx(o,n,i,a,r,l);t.updateQueue=u,u&&Vo(t)}},yb=function(e,t,n,a){n!==a&&Vo(t)};function xu(e,t){if(!Fn())switch(e.tailMode){case"hidden":{for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break}case"collapsed":{for(var r=e.tail,i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:i.sibling=null;break}}}function Bn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=H,a=Ne;if(t){if((e.mode&Mt)!==Oe){for(var u=e.selfBaseDuration,c=e.child;c!==null;)n=et(n,et(c.lanes,c.childLanes)),a|=c.subtreeFlags&yr,a|=c.flags&yr,u+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=u}else for(var f=e.child;f!==null;)n=et(n,et(f.lanes,f.childLanes)),a|=f.subtreeFlags&yr,a|=f.flags&yr,f.return=e,f=f.sibling;e.subtreeFlags|=a}else{if((e.mode&Mt)!==Oe){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=et(n,et(o.lanes,o.childLanes)),a|=o.subtreeFlags,a|=o.flags,r+=o.actualDuration,i+=o.treeBaseDuration,o=o.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(var l=e.child;l!==null;)n=et(n,et(l.lanes,l.childLanes)),a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;e.subtreeFlags|=a}return e.childLanes=n,t}function QR(e,t,n){if(j1()&&(t.mode&ut)!==Oe&&(t.flags&xt)===Ne)return Iy(t),Oo(),t.flags|=hi|rs|Na,!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(k1(t),Bn(t),(t.mode&Mt)!==Oe){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Oo(),(t.flags&xt)===Ne&&(t.memoizedState=null),t.flags|=gt,Bn(t),(t.mode&Mt)!==Oe){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Xy(),!0}function gb(e,t,n){var a=t.pendingProps;switch(Kd(t),t.tag){case it:case we:case fe:case ge:case We:case It:case wt:case mt:case Jt:case Ee:return Bn(t),null;case ee:{var r=t.type;return tr(r)&&Bs(t),Bn(t),null}case P:{var i=t.stateNode;if(Ao(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)Vo(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&hi)!==Ne)&&(t.flags|=lo,Xy())}}return Rp(e,t),Bn(t),null}case ue:{Sv(t);var u=cg(),c=t.type;if(e!==null&&t.stateNode!=null)hb(e,t,c,a,u),e.ref!==t.ref&&pb(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 Bn(t),null}var f=bv(),y=qs(t);if(y)M1(t,u,f)&&Vo(t);else{var h=hx(c,a,u,f,t);mb(h,t,!1,!1),t.stateNode=h,gx(h,c,a,u)&&Vo(t)}t.ref!==null&&pb(t)}return Bn(t),null}case Ke:{var E=a;if(e&&t.stateNode!=null){var x=e.memoizedProps;yb(e,t,x,E)}else{if(typeof E!="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 L=cg(),Q=bv(),Ce=qs(t);Ce?L1(t)&&Vo(t):t.stateNode=Sx(E,L,Q,t)}return Bn(t),null}case te:{No(t);var ye=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var ct=QR(e,t,ye);if(!ct)return t.flags&Na?t:null}if((t.flags&xt)!==Ne)return t.lanes=n,(t.mode&Mt)!==Oe&&Xv(t),t;var at=ye!==null,b=e!==null&&e.memoizedState!==null;if(at!==b&&at){var k=t.child;if(k.flags|=bi,(t.mode&ut)!==Oe){var S=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);S||Tv(Ba.current,vg)?Kw():$p()}}var V=t.updateQueue;if(V!==null&&(t.flags|=gt),Bn(t),(t.mode&Mt)!==Oe&&at){var le=t.child;le!==null&&(t.treeBaseDuration-=le.treeBaseDuration)}return null}case R:return Ao(t),Rp(e,t),e===null&&v1(t.stateNode.containerInfo),Bn(t),null;case ve:var Z=t.type._context;return fv(Z,t),Bn(t),null;case ft:{var Ue=t.type;return tr(Ue)&&Bs(t),Bn(t),null}case X:{No(t);var Ge=t.memoizedState;if(Ge===null)return Bn(t),null;var kt=(t.flags&xt)!==Ne,vt=Ge.rendering;if(vt===null)if(kt)xu(Ge,!1);else{var cn=Zw()&&(e===null||(e.flags&xt)===Ne);if(!cn)for(var pt=t.child;pt!==null;){var ln=sc(pt);if(ln!==null){kt=!0,t.flags|=xt,xu(Ge,!1);var Jn=ln.updateQueue;return Jn!==null&&(t.updateQueue=Jn,t.flags|=gt),t.subtreeFlags=Ne,B1(t,n),Jr(t,Ev(Ba.current,fu)),t.child}pt=pt.sibling}Ge.tail!==null&&kn()>Fb()&&(t.flags|=xt,kt=!0,xu(Ge,!1),t.lanes=yh)}else{if(!kt){var Wn=sc(vt);if(Wn!==null){t.flags|=xt,kt=!0;var Ea=Wn.updateQueue;if(Ea!==null&&(t.updateQueue=Ea,t.flags|=gt),xu(Ge,!0),Ge.tail===null&&Ge.tailMode==="hidden"&&!vt.alternate&&!Fn())return Bn(t),null}else kn()*2-Ge.renderingStartTime>Fb()&&n!==xa&&(t.flags|=xt,kt=!0,xu(Ge,!1),t.lanes=yh)}if(Ge.isBackwards)vt.sibling=t.child,t.child=vt;else{var oa=Ge.last;oa!==null?oa.sibling=vt:t.child=vt,Ge.last=vt}}if(Ge.tail!==null){var la=Ge.tail;Ge.rendering=la,Ge.tail=la.sibling,Ge.renderingStartTime=kn(),la.sibling=null;var Zn=Ba.current;return kt?Zn=Ev(Zn,fu):Zn=jo(Zn),Jr(t,Zn),la}return Bn(t),null}case _e:break;case Le:case Dt:{Pp(t);var kr=t.memoizedState,Io=kr!==null;if(e!==null){var Vu=e.memoizedState,sr=Vu!==null;sr!==Io&&(t.flags|=bi)}return!Io||(t.mode&ut)===Oe?Bn(t):ha(ur,xa)&&(Bn(t),t.subtreeFlags&(Ln|gt)&&(t.flags|=bi)),null}case _t:return null;case zt: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 KR(e,t,n){switch(Kd(t),t.tag){case ee:{var a=t.type;tr(a)&&Bs(t);var r=t.flags;return r&Na?(t.flags=r&-65537|xt,(t.mode&Mt)!==Oe&&Xv(t),t):null}case P:{t.stateNode,Ao(t),qd(t),xv();var i=t.flags;return(i&Na)!==Ne&&(i&xt)===Ne?(t.flags=i&-65537|xt,t):null}case ue:return Sv(t),null;case te:{No(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.");Oo()}var l=t.flags;return l&Na?(t.flags=l&-65537|xt,(t.mode&Mt)!==Oe&&Xv(t),t):null}case X:return No(t),null;case R:return Ao(t),null;case ve:var u=t.type._context;return fv(u,t),null;case Le:case Dt:return Pp(t),null;case _t:return null;default:return null}}function bb(e,t,n){switch(Kd(t),t.tag){case ee:{var a=t.type.childContextTypes;a!=null&&Bs(t);break}case P:{t.stateNode,Ao(t),qd(t),xv();break}case ue:{Sv(t);break}case R:Ao(t);break;case te:No(t);break;case X:No(t);break;case ve:var r=t.type._context;fv(r,t);break;case Le:case Dt:Pp(t);break}}var Sb=null;Sb=new Set;var Ac=!1,Pn=!1,JR=typeof WeakSet=="function"?WeakSet:Set,de=null,Bo=null,Po=null;function ZR(e){wf(null,function(){throw e}),Df()}var ew=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Mt)try{or(),t.componentWillUnmount()}finally{ir(e)}else t.componentWillUnmount()};function Tb(e,t){try{ti(Tn,e)}catch(n){Pt(e,t,n)}}function wp(e,t,n){try{ew(e,n)}catch(a){Pt(e,t,a)}}function tw(e,t,n){try{n.componentDidMount()}catch(a){Pt(e,t,a)}}function Eb(e,t){try{xb(e)}catch(n){Pt(e,t,n)}}function $o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Ht&&At&&e.mode&Mt)try{or(),a=n(null)}finally{ir(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.",Ie(e))}else n.current=null}function jc(e,t,n){try{n()}catch(a){Pt(e,t,a)}}var Cb=!1;function nw(e,t){px(e.containerInfo),de=t,aw();var n=Cb;return Cb=!1,n}function aw(){for(;de!==null;){var e=de,t=e.child;(e.subtreeFlags&Af)!==Ne&&t!==null?(t.return=e,de=t):rw()}}function rw(){for(;de!==null;){var e=de;en(e);try{iw(e)}catch(n){Pt(e,e.return,n)}Mn();var t=e.sibling;if(t!==null){t.return=e.return,de=t;return}de=e.return}}function iw(e){var t=e.alternate,n=e.flags;if((n&lo)!==Ne){switch(en(e),e.tag){case ge:case We:case fe:break;case ee:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!Fi&&(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.",Ie(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.",Ie(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:$a(e.type,a),r);{var l=Sb;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.",Ie(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case P:{{var u=e.stateNode;Fx(u.containerInfo)}break}case ue:case Ke:case R:case ft: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 Ga(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&Vn)!==va?ST(t):(e&Tn)!==va&&dh(t),(e&nr)!==va&&zu(!0),jc(t,n,l),(e&nr)!==va&&zu(!1),(e&Vn)!==va?TT():(e&Tn)!==va&&vh())}o=o.next}while(o!==i)}}function ti(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&Vn)!==va?gT(t):(e&Tn)!==va&&ET(t);var o=i.create;(e&nr)!==va&&zu(!0),i.destroy=o(),(e&nr)!==va&&zu(!1),(e&Vn)!==va?bT():(e&Tn)!==va&&CT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&Tn)!==Ne?u="useLayoutEffect":(i.tag&nr)!==Ne?u="useInsertionEffect":u="useEffect";var c=void 0;l===null?c=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?c=`
It looks like you wrote `+u+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+u+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:c=" You returned: "+l,d("%s must not return anything besides a function, which is used for clean-up.%s",u,c)}}}i=i.next}while(i!==r)}}function ow(e,t){if((t.flags&gt)!==Ne)switch(t.tag){case mt:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Fg(),l=t.alternate===null?"mount":"update";Hg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case P:var c=u.stateNode;c.passiveEffectDuration+=n;break e;case mt:var f=u.stateNode;f.passiveEffectDuration+=n;break e}u=u.return}break}}}function lw(e,t,n,a){if((n.flags&bl)!==Ne)switch(n.tag){case ge:case We:case fe:{if(!Pn)if(n.mode&Mt)try{or(),ti(Tn|Sn,n)}finally{ir(n)}else ti(Tn|Sn,n);break}case ee:{var r=n.stateNode;if(n.flags&gt&&!Pn)if(t===null)if(n.type===n.elementType&&!Fi&&(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.",Ie(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.",Ie(n)||"instance")),n.mode&Mt)try{or(),r.componentDidMount()}finally{ir(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:$a(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Fi&&(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.",Ie(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.",Ie(n)||"instance")),n.mode&Mt)try{or(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{ir(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Fi&&(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.",Ie(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.",Ie(n)||"instance")),sg(n,l,r));break}case P:{var u=n.updateQueue;if(u!==null){var c=null;if(n.child!==null)switch(n.child.tag){case ue:c=n.child.stateNode;break;case ee:c=n.child.stateNode;break}sg(n,u,c)}break}case ue:{var f=n.stateNode;if(t===null&&n.flags&gt){var y=n.type,h=n.memoizedProps;Rx(f,y,h)}break}case Ke:break;case R:break;case mt:{{var E=n.memoizedProps,x=E.onCommit,L=E.onRender,Q=n.stateNode.effectDuration,Ce=Fg(),ye=t===null?"mount":"update";Hg()&&(ye="nested-update"),typeof L=="function"&&L(n.memoizedProps.id,ye,n.actualDuration,n.treeBaseDuration,n.actualStartTime,Ce);{typeof x=="function"&&x(n.memoizedProps.id,ye,Q,Ce),rD(n);var ct=n.return;e:for(;ct!==null;){switch(ct.tag){case P:var at=ct.stateNode;at.effectDuration+=Q;break e;case mt:var b=ct.stateNode;b.effectDuration+=Q;break e}ct=ct.return}}}break}case te:{mw(e,n);break}case X:case ft:case _e:case Le:case Dt:case zt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Pn||n.flags&yi&&xb(n)}function uw(e){switch(e.tag){case ge:case We:case fe:{if(e.mode&Mt)try{or(),Tb(e,e.return)}finally{ir(e)}else Tb(e,e.return);break}case ee:{var t=e.stateNode;typeof t.componentDidMount=="function"&&tw(e,e.return,t),Eb(e,e.return);break}case ue:{Eb(e,e.return);break}}}function sw(e,t){for(var n=null,a=e;;){if(a.tag===ue){if(n===null){n=a;try{var r=a.stateNode;t?Nx(r):zx(a.stateNode,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}}else if(a.tag===Ke){if(n===null)try{var i=a.stateNode;t?Ux(i):Hx(i,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}else if(!((a.tag===Le||a.tag===Dt)&&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 xb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case ue:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&Mt)try{or(),r=t(a)}finally{ir(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.",Ie(e))}else t.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ie(e)),t.current=a}}function cw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function Rb(e){var t=e.alternate;t!==null&&(e.alternate=null,Rb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===ue){var n=e.stateNode;n!==null&&h1(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 fw(e){for(var t=e.return;t!==null;){if(wb(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 wb(e){return e.tag===ue||e.tag===P||e.tag===R}function Db(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||wb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==ue&&t.tag!==Ke&&t.tag!==bt;){if(t.flags&Ln||t.child===null||t.tag===R)continue e;t.child.return=t,t=t.child}if(!(t.flags&Ln))return t.stateNode}}function dw(e){var t=fw(e);switch(t.tag){case ue:{var n=t.stateNode;t.flags&as&&(Oy(n),t.flags&=-33);var a=Db(e);_p(e,a,n);break}case P:case R:{var r=t.stateNode.containerInfo,i=Db(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===ue||a===Ke;if(r){var i=e.stateNode;t?Lx(n,i,t):Ox(n,i)}else if(a!==R){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===ue||a===Ke;if(r){var i=e.stateNode;t?Mx(n,i,t):_x(n,i)}else if(a!==R){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,Wa=!1;function vw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case ue:{$n=a.stateNode,Wa=!1;break e}case P:{$n=a.stateNode.containerInfo,Wa=!0;break e}case R:{$n=a.stateNode.containerInfo,Wa=!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.");_b(e,t,n),$n=null,Wa=!1}cw(n)}function ni(e,t,n){for(var a=n.child;a!==null;)_b(e,t,a),a=a.sibling}function _b(e,t,n){switch(pT(n),n.tag){case ue:Pn||$o(n,t);case Ke:{{var a=$n,r=Wa;$n=null,ni(e,t,n),$n=a,Wa=r,$n!==null&&(Wa?Ax($n,n.stateNode):kx($n,n.stateNode))}return}case bt:{$n!==null&&(Wa?jx($n,n.stateNode):Fd($n,n.stateNode));return}case R:{{var i=$n,o=Wa;$n=n.stateNode.containerInfo,Wa=!0,ni(e,t,n),$n=i,Wa=o}return}case ge:case We:case Ee:case fe:{if(!Pn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var c=u.next,f=c;do{var y=f,h=y.destroy,E=y.tag;h!==void 0&&((E&nr)!==va?jc(n,t,h):(E&Tn)!==va&&(dh(n),n.mode&Mt?(or(),jc(n,t,h),ir(n)):jc(n,t,h),vh())),f=f.next}while(f!==c)}}}ni(e,t,n);return}case ee:{if(!Pn){$o(n,t);var x=n.stateNode;typeof x.componentWillUnmount=="function"&&wp(n,t,x)}ni(e,t,n);return}case _e:{ni(e,t,n);return}case Le:{if(n.mode&ut){var L=Pn;Pn=L||n.memoizedState!==null,ni(e,t,n),Pn=L}else ni(e,t,n);break}default:{ni(e,t,n);return}}}function pw(e){e.memoizedState}function mw(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&&Zx(i)}}}}function Ob(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new JR),t.forEach(function(a){var r=fD.bind(null,e,a);if(!n.has(a)){if(n.add(a),Ua)if(Bo!==null&&Po!==null)Uu(Po,Bo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function hw(e,t,n){Bo=n,Po=e,en(t),Mb(t,e),en(t),Bo=null,Po=null}function qa(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{vw(e,t,i)}catch(u){Pt(i,t,u)}}var o=Wu();if(t.subtreeFlags&jf)for(var l=t.child;l!==null;)en(l),Mb(l,e),l=l.sibling;en(o)}function Mb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case ge:case We:case Ee:case fe:{if(qa(t,e),lr(e),r&gt){try{Ga(nr|Sn,e,e.return),ti(nr|Sn,e)}catch(Ue){Pt(e,e.return,Ue)}if(e.mode&Mt){try{or(),Ga(Tn|Sn,e,e.return)}catch(Ue){Pt(e,e.return,Ue)}ir(e)}else try{Ga(Tn|Sn,e,e.return)}catch(Ue){Pt(e,e.return,Ue)}}return}case ee:{qa(t,e),lr(e),r&yi&&a!==null&&$o(a,a.return);return}case ue:{qa(t,e),lr(e),r&yi&&a!==null&&$o(a,a.return);{if(e.flags&as){var i=e.stateNode;try{Oy(i)}catch(Ue){Pt(e,e.return,Ue)}}if(r&gt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,c=e.type,f=e.updateQueue;if(e.updateQueue=null,f!==null)try{wx(o,f,c,u,l,e)}catch(Ue){Pt(e,e.return,Ue)}}}}return}case Ke:{if(qa(t,e),lr(e),r&gt){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var y=e.stateNode,h=e.memoizedProps,E=a!==null?a.memoizedProps:h;try{Dx(y,E,h)}catch(Ue){Pt(e,e.return,Ue)}}return}case P:{if(qa(t,e),lr(e),r&gt&&a!==null){var x=a.memoizedState;if(x.isDehydrated)try{Jx(t.containerInfo)}catch(Ue){Pt(e,e.return,Ue)}}return}case R:{qa(t,e),lr(e);return}case te:{qa(t,e),lr(e);var L=e.child;if(L.flags&bi){var Q=L.stateNode,Ce=L.memoizedState,ye=Ce!==null;if(Q.isHidden=ye,ye){var ct=L.alternate!==null&&L.alternate.memoizedState!==null;ct||Qw()}}if(r&gt){try{pw(e)}catch(Ue){Pt(e,e.return,Ue)}Ob(e)}return}case Le:{var at=a!==null&&a.memoizedState!==null;if(e.mode&ut){var b=Pn;Pn=b||at,qa(t,e),Pn=b}else qa(t,e);if(lr(e),r&bi){var k=e.stateNode,S=e.memoizedState,V=S!==null,le=e;if(k.isHidden=V,V&&!at&&(le.mode&ut)!==Oe){de=le;for(var Z=le.child;Z!==null;)de=Z,gw(Z),Z=Z.sibling}sw(le,V)}return}case X:{qa(t,e),lr(e),r&gt&&Ob(e);return}case _e:return;default:{qa(t,e),lr(e);return}}}function lr(e){var t=e.flags;if(t&Ln){try{dw(e)}catch(n){Pt(e,e.return,n)}e.flags&=-3}t&gi&&(e.flags&=-4097)}function yw(e,t,n){Bo=n,Po=t,de=e,Lb(e,t,n),Bo=null,Po=null}function Lb(e,t,n){for(var a=(e.mode&ut)!==Oe;de!==null;){var r=de,i=r.child;if(r.tag===Le&&a){var o=r.memoizedState!==null,l=o||Ac;if(l){Op(e,t,n);continue}else{var u=r.alternate,c=u!==null&&u.memoizedState!==null,f=c||Pn,y=Ac,h=Pn;Ac=l,Pn=f,Pn&&!h&&(de=r,bw(r));for(var E=i;E!==null;)de=E,Lb(E,t,n),E=E.sibling;de=r,Ac=y,Pn=h,Op(e,t,n);continue}}(r.subtreeFlags&bl)!==Ne&&i!==null?(i.return=r,de=i):Op(e,t,n)}}function Op(e,t,n){for(;de!==null;){var a=de;if((a.flags&bl)!==Ne){var r=a.alternate;en(a);try{lw(t,r,a,n)}catch(o){Pt(a,a.return,o)}Mn()}if(a===e){de=null;return}var i=a.sibling;if(i!==null){i.return=a.return,de=i;return}de=a.return}}function gw(e){for(;de!==null;){var t=de,n=t.child;switch(t.tag){case ge:case We:case Ee:case fe:{if(t.mode&Mt)try{or(),Ga(Tn,t,t.return)}finally{ir(t)}else Ga(Tn,t,t.return);break}case ee:{$o(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wp(t,t.return,a);break}case ue:{$o(t,t.return);break}case Le:{var r=t.memoizedState!==null;if(r){kb(e);continue}break}}n!==null?(n.return=t,de=n):kb(e)}}function kb(e){for(;de!==null;){var t=de;if(t===e){de=null;return}var n=t.sibling;if(n!==null){n.return=t.return,de=n;return}de=t.return}}function bw(e){for(;de!==null;){var t=de,n=t.child;if(t.tag===Le){var a=t.memoizedState!==null;if(a){Ab(e);continue}}n!==null?(n.return=t,de=n):Ab(e)}}function Ab(e){for(;de!==null;){var t=de;en(t);try{uw(t)}catch(a){Pt(t,t.return,a)}if(Mn(),t===e){de=null;return}var n=t.sibling;if(n!==null){n.return=t.return,de=n;return}de=t.return}}function Sw(e,t,n,a){de=t,Tw(t,e,n,a)}function Tw(e,t,n,a){for(;de!==null;){var r=de,i=r.child;(r.subtreeFlags&uo)!==Ne&&i!==null?(i.return=r,de=i):Ew(e,t,n,a)}}function Ew(e,t,n,a){for(;de!==null;){var r=de;if((r.flags&zr)!==Ne){en(r);try{Cw(t,r,n,a)}catch(o){Pt(r,r.return,o)}Mn()}if(r===e){de=null;return}var i=r.sibling;if(i!==null){i.return=r.return,de=i;return}de=r.return}}function Cw(e,t,n,a){switch(t.tag){case ge:case We:case fe:{if(t.mode&Mt){Iv();try{ti(Vn|Sn,t)}finally{qv(t)}}else ti(Vn|Sn,t);break}}}function xw(e){de=e,Rw()}function Rw(){for(;de!==null;){var e=de,t=e.child;if((de.flags&mi)!==Ne){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];de=r,_w(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)}}}de=e}}(e.subtreeFlags&uo)!==Ne&&t!==null?(t.return=e,de=t):ww()}}function ww(){for(;de!==null;){var e=de;(e.flags&zr)!==Ne&&(en(e),Dw(e),Mn());var t=e.sibling;if(t!==null){t.return=e.return,de=t;return}de=e.return}}function Dw(e){switch(e.tag){case ge:case We:case fe:{e.mode&Mt?(Iv(),Ga(Vn|Sn,e,e.return),qv(e)):Ga(Vn|Sn,e,e.return);break}}}function _w(e,t){for(;de!==null;){var n=de;en(n),Mw(n,t),Mn();var a=n.child;a!==null?(a.return=n,de=a):Ow(e)}}function Ow(e){for(;de!==null;){var t=de,n=t.sibling,a=t.return;if(Rb(t),t===e){de=null;return}if(n!==null){n.return=a,de=n;return}de=a}}function Mw(e,t){switch(e.tag){case ge:case We:case fe:{e.mode&Mt?(Iv(),Ga(Vn,e,t),qv(e)):Ga(Vn,e,t);break}}}function Lw(e){switch(e.tag){case ge:case We:case fe:{try{ti(Tn|Sn,e)}catch(n){Pt(e,e.return,n)}break}case ee:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Pt(e,e.return,n)}break}}}function kw(e){switch(e.tag){case ge:case We:case fe:{try{ti(Vn|Sn,e)}catch(t){Pt(e,e.return,t)}break}}}function Aw(e){switch(e.tag){case ge:case We:case fe:{try{Ga(Tn|Sn,e,e.return)}catch(n){Pt(e,e.return,n)}break}case ee:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&wp(e,e.return,t);break}}}function jw(e){switch(e.tag){case ge:case We:case fe:try{Ga(Vn|Sn,e,e.return)}catch(t){Pt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Ru=Symbol.for;Ru("selector.component"),Ru("selector.has_pseudo_class"),Ru("selector.role"),Ru("selector.test_id"),Ru("selector.text")}var Nw=[];function Uw(){Nw.forEach(function(e){return e()})}var zw=he.ReactCurrentActQueue;function Hw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function jb(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&zw.current!==null&&d("The current testing environment is not configured to support act(...)"),e}}var Fw=Math.ceil,Mp=he.ReactCurrentDispatcher,Lp=he.ReactCurrentOwner,Yn=he.ReactCurrentBatchConfig,Ia=he.ReactCurrentActQueue,xn=0,Nb=1,Gn=2,Ma=4,_r=0,wu=1,Vi=2,Nc=3,Du=4,Ub=5,kp=6,st=xn,ra=null,rn=null,Rn=H,ur=H,Ap=Wr(H),wn=_r,_u=null,Uc=H,Ou=H,zc=H,Mu=null,pa=null,jp=0,zb=500,Hb=1/0,Vw=500,Or=null;function Lu(){Hb=kn()+Vw}function Fb(){return Hb}var Hc=!1,Np=null,Yo=null,Bi=!1,ai=null,ku=H,Up=[],zp=null,Bw=50,Au=0,Hp=null,Fp=!1,Fc=!1,Pw=50,Go=0,Vc=null,ju=qt,Bc=H,Vb=!1;function Pc(){return ra}function ia(){return(st&(Gn|Ma))!==xn?kn():(ju!==qt||(ju=kn()),ju)}function ri(e){var t=e.mode;if((t&ut)===Oe)return Pe;if((st&Gn)!==xn&&Rn!==H)return wl(Rn);var n=z1()!==U1;if(n){if(Yn.transition!==null){var a=Yn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return Bc===jn&&(Bc=Th()),Bc}var r=za();if(r!==jn)return r;var i=Tx();return i}function $w(e){var t=e.mode;return(t&ut)===Oe?Pe:GT()}function Dn(e,t,n,a){vD(),Vb&&d("useInsertionEffect must not schedule updates."),Fp&&(Fc=!0),Dl(e,n,a),(st&Gn)!==H&&e===ra?hD(t):(Ua&&xh(e,t,n),yD(t),e===ra&&((st&Gn)===xn&&(Ou=et(Ou,n)),wn===Du&&ii(e,Rn)),ma(e,a),n===Pe&&st===xn&&(t.mode&ut)===Oe&&!Ia.isBatchingLegacy&&(Lu(),Vy()))}function Yw(e,t,n){var a=e.current;a.lanes=t,Dl(e,t,n),ma(e,n)}function Gw(e){return(st&Gn)!==xn}function ma(e,t){var n=e.callbackNode;FT(e,t);var a=ss(e,e===ra?Rn:H);if(a===H){n!==null&&nS(n),e.callbackNode=null,e.callbackPriority=jn;return}var r=Ri(a),i=e.callbackPriority;if(i===r&&!(Ia.current!==null&&n!==Wp)){n==null&&i!==Pe&&d("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&nS(n);var o;if(r===Pe)e.tag===qr?(Ia.isBatchingLegacy!==null&&(Ia.didScheduleLegacyUpdate=!0),b1($b.bind(null,e))):Fy($b.bind(null,e)),Ia.current!==null?Ia.current.push(Ir):Cx(function(){(st&(Gn|Ma))===xn&&Ir()}),o=null;else{var l;switch(Dh(a)){case ya:l=is;break;case br:l=Nf;break;case Sr:l=Ei;break;case ds:l=Uf;break;default:l=Ei;break}o=qp(l,Bb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Bb(e,t){if(sR(),ju=qt,Bc=H,(st&(Gn|Ma))!==xn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Lr();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===ra?Rn:H);if(r===H)return null;var i=!cs(e,r)&&!YT(e,r)&&!t,o=i?tD(e,r):Yc(e,r);if(o!==_r){if(o===Vi){var l=rd(e);l!==H&&(r=l,o=Vp(e,l))}if(o===wu){var u=_u;throw Pi(e,H),ii(e,r),ma(e,kn()),u}if(o===kp)ii(e,r);else{var c=!cs(e,r),f=e.current.alternate;if(c&&!qw(f)){if(o=Yc(e,r),o===Vi){var y=rd(e);y!==H&&(r=y,o=Vp(e,y))}if(o===wu){var h=_u;throw Pi(e,H),ii(e,r),ma(e,kn()),h}}e.finishedWork=f,e.finishedLanes=r,Ww(e,o,r)}}return ma(e,kn()),e.callbackNode===n?Bb.bind(null,e):null}function Vp(e,t){var n=Mu;if(vs(e)){var a=Pi(e,t);a.flags|=hi,d1(e.containerInfo)}var r=Yc(e,t);if(r!==Vi){var i=pa;pa=n,i!==null&&Pb(i)}return r}function Pb(e){pa===null?pa=e:pa.push.apply(pa,e)}function Ww(e,t,n){switch(t){case _r:case wu:throw new Error("Root did not complete. This is a bug in React.");case Vi:{$i(e,pa,Or);break}case Nc:{if(ii(e,n),bh(n)&&!aS()){var a=jp+zb-kn();if(a>10){var r=ss(e,H);if(r!==H)break;var i=e.suspendedLanes;if(!mo(i,n)){ia(),Ch(e,i);break}e.timeoutHandle=zd($i.bind(null,e,pa,Or),a);break}}$i(e,pa,Or);break}case Du:{if(ii(e,n),$T(n))break;if(!aS()){var o=zT(e,n),l=o,u=kn()-l,c=dD(u)-u;if(c>10){e.timeoutHandle=zd($i.bind(null,e,pa,Or),c);break}}$i(e,pa,Or);break}case Ub:{$i(e,pa,Or);break}default:throw new Error("Unknown root exit status.")}}function qw(e){for(var t=e;;){if(t.flags&_f){var n=t.updateQueue;if(n!==null){var a=n.stores;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.getSnapshot,l=i.value;try{if(!ba(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 ii(e,t){t=fs(t,zc),t=fs(t,Ou),qT(e,t)}function $b(e){if(cR(),(st&(Gn|Ma))!==xn)throw new Error("Should not already be working.");Lr();var t=ss(e,H);if(!ha(t,Pe))return ma(e,kn()),null;var n=Yc(e,t);if(e.tag!==qr&&n===Vi){var a=rd(e);a!==H&&(t=a,n=Vp(e,a))}if(n===wu){var r=_u;throw Pi(e,H),ii(e,t),ma(e,kn()),r}if(n===kp)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,$i(e,pa,Or),ma(e,kn()),null}function Iw(e,t){t!==H&&(ud(e,et(t,Pe)),ma(e,kn()),(st&(Gn|Ma))===xn&&(Lu(),Ir()))}function Bp(e,t){var n=st;st|=Nb;try{return e(t)}finally{st=n,st===xn&&!Ia.isBatchingLegacy&&(Lu(),Vy())}}function Xw(e,t,n,a,r){var i=za(),o=Yn.transition;try{return Yn.transition=null,Nn(ya),e(t,n,a,r)}finally{Nn(i),Yn.transition=o,st===xn&&Lu()}}function Mr(e){ai!==null&&ai.tag===qr&&(st&(Gn|Ma))===xn&&Lr();var t=st;st|=Nb;var n=Yn.transition,a=za();try{return Yn.transition=null,Nn(ya),e?e():void 0}finally{Nn(a),Yn.transition=n,st=t,(st&(Gn|Ma))===xn&&Ir()}}function Yb(){return(st&(Gn|Ma))!==xn}function $c(e,t){Qn(Ap,ur,e),ur=et(ur,t)}function Pp(e){ur=Ap.current,Xn(Ap,e)}function Pi(e,t){e.finishedWork=null,e.finishedLanes=H;var n=e.timeoutHandle;if(n!==Hd&&(e.timeoutHandle=Hd,Ex(n)),rn!==null)for(var a=rn.return;a!==null;){var r=a.alternate;bb(r,a),a=a.return}ra=e;var i=Yi(e.current,null);return rn=i,Rn=ur=t,wn=_r,_u=null,Uc=H,Ou=H,zc=H,Mu=null,pa=null,Y1(),Va.discardPendingWarnings(),i}function Gb(e,t){do{var n=rn;try{if(Zs(),mg(),Mn(),Lp.current=null,n===null||n.return===null){wn=wu,_u=t,rn=null;return}if(Ht&&n.mode&Mt&&_c(n,!0),Un)if(co(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;RT(n,a,Rn)}else xT(n,t,Rn);bR(e,n.return,n,t,Rn),Xb(n)}catch(r){t=r,rn===n&&n!==null?(n=n.return,rn=n):n=rn;continue}return}while(!0)}function Wb(){var e=Mp.current;return Mp.current=Cc,e===null?Cc:e}function qb(e){Mp.current=e}function Qw(){jp=kn()}function Nu(e){Uc=et(e,Uc)}function Kw(){wn===_r&&(wn=Nc)}function $p(){(wn===_r||wn===Nc||wn===Vi)&&(wn=Du),ra!==null&&(id(Uc)||id(Ou))&&ii(ra,Rn)}function Jw(e){wn!==Du&&(wn=Vi),Mu===null?Mu=[e]:Mu.push(e)}function Zw(){return wn===_r}function Yc(e,t){var n=st;st|=Gn;var a=Wb();if(ra!==e||Rn!==t){if(Ua){var r=e.memoizedUpdaters;r.size>0&&(Uu(e,Rn),r.clear()),Rh(e,t)}Or=wh(),Pi(e,t)}ph(t);do try{eD();break}catch(i){Gb(e,i)}while(!0);if(Zs(),st=n,qb(a),rn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return mh(),ra=null,Rn=H,wn}function eD(){for(;rn!==null;)Ib(rn)}function tD(e,t){var n=st;st|=Gn;var a=Wb();if(ra!==e||Rn!==t){if(Ua){var r=e.memoizedUpdaters;r.size>0&&(Uu(e,Rn),r.clear()),Rh(e,t)}Or=wh(),Lu(),Pi(e,t)}ph(t);do try{nD();break}catch(i){Gb(e,i)}while(!0);return Zs(),qb(a),st=n,rn!==null?(MT(),_r):(mh(),ra=null,Rn=H,wn)}function nD(){for(;rn!==null&&!rT();)Ib(rn)}function Ib(e){var t=e.alternate;en(e);var n;(e.mode&Mt)!==Oe?(Wv(e),n=Yp(t,e,ur),_c(e,!0)):n=Yp(t,e,ur),Mn(),e.memoizedProps=e.pendingProps,n===null?Xb(e):rn=n,Lp.current=null}function Xb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&rs)===Ne){en(t);var r=void 0;if((t.mode&Mt)===Oe?r=gb(n,t,ur):(Wv(t),r=gb(n,t,ur),_c(t,!1)),Mn(),r!==null){rn=r;return}}else{var i=KR(n,t);if(i!==null){i.flags&=J0,rn=i;return}if((t.mode&Mt)!==Oe){_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=Ne,a.deletions=null;else{wn=kp,rn=null;return}}var u=t.sibling;if(u!==null){rn=u;return}t=a,rn=t}while(t!==null);wn===_r&&(wn=Ub)}function $i(e,t,n){var a=za(),r=Yn.transition;try{Yn.transition=null,Nn(ya),aD(e,t,n,a)}finally{Yn.transition=r,Nn(a)}return null}function aD(e,t,n,a){do Lr();while(ai!==null);if(pD(),(st&(Gn|Ma))!==xn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(yT(i),r===null)return fh(),null;if(i===H&&d("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=H,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=jn;var o=et(r.lanes,r.childLanes);IT(e,o),e===ra&&(ra=null,rn=null,Rn=H),((r.subtreeFlags&uo)!==Ne||(r.flags&uo)!==Ne)&&(Bi||(Bi=!0,zp=n,qp(Ei,function(){return Lr(),null})));var l=(r.subtreeFlags&(Af|jf|bl|uo))!==Ne,u=(r.flags&(Af|jf|bl|uo))!==Ne;if(l||u){var c=Yn.transition;Yn.transition=null;var f=za();Nn(ya);var y=st;st|=Ma,Lp.current=null,nw(e,r),Vg(),hw(e,r,i),mx(e.containerInfo),e.current=r,wT(i),yw(r,e,i),DT(),iT(),st=y,Nn(f),Yn.transition=c}else e.current=r,Vg();var h=Bi;if(Bi?(Bi=!1,ai=e,ku=i):(Go=0,Vc=null),o=e.pendingLanes,o===H&&(Yo=null),h||Zb(e.current,!1),dT(r.stateNode,a),Ua&&e.memoizedUpdaters.clear(),Uw(),ma(e,kn()),t!==null)for(var E=e.onRecoverableError,x=0;x<t.length;x++){var L=t[x],Q=L.stack,Ce=L.digest;E(L.value,{componentStack:Q,digest:Ce})}if(Hc){Hc=!1;var ye=Np;throw Np=null,ye}return ha(ku,Pe)&&e.tag!==qr&&Lr(),o=e.pendingLanes,ha(o,Pe)?(uR(),e===Hp?Au++:(Au=0,Hp=e)):Au=0,Ir(),fh(),null}function Lr(){if(ai!==null){var e=Dh(ku),t=JT(Sr,e),n=Yn.transition,a=za();try{return Yn.transition=null,Nn(t),iD()}finally{Nn(a),Yn.transition=n}}return!1}function rD(e){Up.push(e),Bi||(Bi=!0,qp(Ei,function(){return Lr(),null}))}function iD(){if(ai===null)return!1;var e=zp;zp=null;var t=ai,n=ku;if(ai=null,ku=H,(st&(Gn|Ma))!==xn)throw new Error("Cannot flush passive effects while already rendering.");Fp=!0,Fc=!1,_T(n);var a=st;st|=Ma,xw(t.current),Sw(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];ow(t,o)}}OT(),Zb(t.current,!0),st=a,Ir(),Fc?t===Vc?Go++:(Go=0,Vc=t):Go=0,Fp=!1,Fc=!1,vT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Qb(e){return Yo!==null&&Yo.has(e)}function oD(e){Yo===null?Yo=new Set([e]):Yo.add(e)}function lD(e){Hc||(Hc=!0,Np=e)}var uD=lD;function Kb(e,t,n){var a=Hi(n,t),r=Ig(e,a,Pe),i=Qr(e,r,Pe),o=ia();i!==null&&(Dl(i,Pe,o),ma(i,o))}function Pt(e,t,n){if(ZR(n),zu(!1),e.tag===P){Kb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===P){Kb(a,e,n);return}else if(a.tag===ee){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Qb(i)){var o=Hi(n,e),l=cp(a,o,Pe),u=Qr(a,l,Pe),c=ia();u!==null&&(Dl(u,Pe,c),ma(u,c));return}}a=a.return}d(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,n)}function sD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ia();Ch(e,n),gD(e),ra===e&&mo(Rn,n)&&(wn===Du||wn===Nc&&bh(Rn)&&kn()-jp<zb?Pi(e,H):zc=et(zc,n)),ma(e,r)}function Jb(e,t){t===jn&&(t=$w(e));var n=ia(),a=da(e,t);a!==null&&(Dl(a,t,n),ma(a,n))}function cD(e){var t=e.memoizedState,n=jn;t!==null&&(n=t.retryLane),Jb(e,n)}function fD(e,t){var n=jn,a;switch(e.tag){case te:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case X: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),Jb(e,n)}function dD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Fw(e/1960)*1960}function vD(){if(Au>Bw)throw Au=0,Hp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Go>Pw&&(Go=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 pD(){Va.flushLegacyContextWarning(),Va.flushPendingUnsafeLifecycleWarnings()}function Zb(e,t){en(e),Gc(e,Hr,Aw),t&&Gc(e,kf,jw),Gc(e,Hr,Lw),t&&Gc(e,kf,kw),Mn()}function Gc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==Ne?a=a.child:((a.flags&t)!==Ne&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Wc=null;function eS(e){{if((st&Gn)!==xn||!(e.mode&ut))return;var t=e.tag;if(t!==it&&t!==P&&t!==ee&&t!==ge&&t!==We&&t!==Ee&&t!==fe)return;var n=Ie(e)||"ReactComponent";if(Wc!==null){if(Wc.has(n))return;Wc.add(n)}else Wc=new Set([n]);var a=ea;try{en(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?en(e):Mn()}}}var Yp;{var mD=null;Yp=function(e,t,n){var a=uS(mD,t);try{return vb(e,t,n)}catch(i){if(D1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Zs(),mg(),bb(e,t),uS(t,a),t.mode&Mt&&Wv(t),wf(null,vb,null,e,t,n),X0()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var tS=!1,Gp;Gp=new Set;function hD(e){if(fi&&!iR())switch(e.tag){case ge:case We:case fe:{var t=rn&&Ie(rn)||"Unknown",n=t;if(!Gp.has(n)){Gp.add(n);var a=Ie(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 ee:{tS||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),tS=!0);break}}}function Uu(e,t){if(Ua){var n=e.memoizedUpdaters;n.forEach(function(a){xh(e,a,t)})}}var Wp={};function qp(e,t){{var n=Ia.current;return n!==null?(n.push(t),Wp):ch(e,t)}}function nS(e){if(e!==Wp)return aT(e)}function aS(){return Ia.current!==null}function yD(e){{if(e.mode&ut){if(!jb())return}else if(!Hw()||st!==xn||e.tag!==ge&&e.tag!==We&&e.tag!==fe)return;if(Ia.current===null){var t=ea;try{en(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`,Ie(e))}finally{t?en(e):Mn()}}}}function gD(e){e.tag!==qr&&jb()&&Ia.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 zu(e){Vb=e}var La=null,Wo=null,bD=function(e){La=e};function qo(e){{if(La===null)return e;var t=La(e);return t===void 0?e:t.current}}function Ip(e){return qo(e)}function Xp(e){{if(La===null)return e;var t=La(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=qo(e.render);if(e.render!==n){var a={$$typeof:j,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function rS(e,t){{if(La===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 ee:{typeof a=="function"&&(r=!0);break}case ge:{(typeof a=="function"||i===De)&&(r=!0);break}case We:{(i===j||i===De)&&(r=!0);break}case Ee:case fe:{(i===be||i===De)&&(r=!0);break}default:return!1}if(r){var o=La(n);if(o!==void 0&&o===La(a))return!0}return!1}}function iS(e){{if(La===null||typeof WeakSet!="function")return;Wo===null&&(Wo=new WeakSet),Wo.add(e)}}var SD=function(e,t){{if(La===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Lr(),Mr(function(){Qp(e.current,a,n)})}},TD=function(e,t){{if(e.context!==Sa)return;Lr(),Mr(function(){Hu(t,e,null,null)})}};function Qp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case ge:case fe:case ee:u=l;break;case We:u=l.render;break}if(La===null)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,f=!1;if(u!==null){var y=La(u);y!==void 0&&(n.has(y)?f=!0:t.has(y)&&(o===ee?f=!0:c=!0))}if(Wo!==null&&(Wo.has(e)||a!==null&&Wo.has(a))&&(f=!0),f&&(e._debugNeedsRemount=!0),f||c){var h=da(e,Pe);h!==null&&Dn(h,e,Pe,qt)}r!==null&&!f&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var ED=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Kp(e.current,a,n),n}};function Kp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case ge:case fe:case ee:l=o;break;case We:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?CD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function CD(e,t){{var n=xD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ue:t.add(a.stateNode);return;case R:t.add(a.stateNode.containerInfo);return;case P:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function xD(e,t){for(var n=e,a=!1;;){if(n.tag===ue)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 Jp;{Jp=!1;try{var oS=Object.preventExtensions({})}catch{Jp=!0}}function RD(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=Ne,this.subtreeFlags=Ne,this.deletions=null,this.lanes=H,this.childLanes=H,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,!Jp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ta=function(e,t,n,a){return new RD(e,t,n,a)};function Zp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function wD(e){return typeof e=="function"&&!Zp(e)&&e.defaultProps===void 0}function DD(e){if(typeof e=="function")return Zp(e)?ee:ge;if(e!=null){var t=e.$$typeof;if(t===j)return We;if(t===be)return Ee}return it}function Yi(e,t){var n=e.alternate;n===null?(n=Ta(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=Ne,n.subtreeFlags=Ne,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&yr,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 it:case ge:case fe:n.type=qo(e.type);break;case ee:n.type=Ip(e.type);break;case We:n.type=Xp(e.type);break}return n}function _D(e,t){e.flags&=yr|Ln;var n=e.alternate;if(n===null)e.childLanes=H,e.lanes=t,e.child=null,e.subtreeFlags=Ne,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=Ne,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var a=n.dependencies;e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function OD(e,t,n){var a;return e===$s?(a=ut,t===!0&&(a|=on,a|=Ja)):a=Oe,Ua&&(a|=Mt),Ta(P,null,null,a)}function em(e,t,n,a,r,i){var o=it,l=e;if(typeof e=="function")Zp(e)?(o=ee,l=Ip(l)):l=qo(l);else if(typeof e=="string")o=ue;else e:switch(e){case tt:return oi(n.children,r,i,t);case _n:o=wt,r|=on,(r&ut)!==Oe&&(r|=Ja);break;case gn:return MD(n,r,i,t);case G:return LD(n,r,i,t);case W:return kD(n,r,i,t);case an:return lS(n,r,i,t);case Bt:case Ve:case rt:case Xe:case Fe:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aa:o=ve;break e;case p:o=Jt;break e;case j:o=We,l=Xp(l);break e;case be:o=Ee;break e;case De:o=we,l=null;break e}var u="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=a?Ie(a):null;c&&(u+=`
Check the render method of \``+c+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var f=Ta(o,n,t,r);return f.elementType=e,f.type=l,f.lanes=i,f._debugOwner=a,f}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 oi(e,t,n,a){var r=Ta(It,e,a,t);return r.lanes=n,r}function MD(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=Ta(mt,e,a,t|Mt);return r.elementType=gn,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function LD(e,t,n,a){var r=Ta(te,e,a,t);return r.elementType=G,r.lanes=n,r}function kD(e,t,n,a){var r=Ta(X,e,a,t);return r.elementType=W,r.lanes=n,r}function lS(e,t,n,a){var r=Ta(Le,e,a,t);r.elementType=an,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Ta(Ke,e,null,t);return a.lanes=n,a}function AD(){var e=Ta(ue,null,null,Oe);return e.elementType="DELETED",e}function jD(e){var t=Ta(bt,null,null,Oe);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Ta(R,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function uS(e,t){return e===null&&(e=Ta(it,null,null,Oe)),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 ND(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Hd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=jn,this.eventTimes=ld(H),this.expirationTimes=ld(qt),this.pendingLanes=H,this.suspendedLanes=H,this.pingedLanes=H,this.expiredLanes=H,this.mutableReadLanes=H,this.finishedLanes=H,this.entangledLanes=H,this.entanglements=ld(H),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],o=0;o<Hf;o++)i.push(new Set)}switch(t){case $s:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case qr:this._debugRootType=n?"hydrate()":"render()";break}}function sS(e,t,n,a,r,i,o,l,u,c){var f=new ND(e,t,n,l,u),y=OD(t,i);f.current=y,y.stateNode=f;{var h={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};y.memoizedState=h}return hv(y),f}var rm="18.3.1";function UD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return dt(a),{$$typeof:He,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function cS(e){if(!e)return Sa;var t=io(e),n=g1(t);if(t.tag===ee){var a=t.type;if(tr(a))return zy(t,a,n)}return n}function zD(e,t){{var n=io(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=lh(n);if(r===null)return null;if(r.mode&on){var i=Ie(n)||"Component";if(!om[i]){om[i]=!0;var o=ea;try{en(r),n.mode&on?d("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):d("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{o?en(o):Mn()}}}return r.stateNode}}function fS(e,t,n,a,r,i,o,l){var u=!1,c=null;return sS(e,t,u,c,n,a,r,i,o)}function dS(e,t,n,a,r,i,o,l,u,c){var f=!0,y=sS(n,a,f,e,r,i,o,l,u);y.context=cS(null);var h=y.current,E=ia(),x=ri(h),L=wr(E,x);return L.callback=t??null,Qr(h,L,x),Yw(y,x,E),y}function Hu(e,t,n,a){fT(t,e);var r=t.current,i=ia(),o=ri(r);LT(o);var l=cS(n);t.context===null?t.context=l:t.pendingContext=l,fi&&ea!==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.`,Ie(ea)||"Unknown"));var u=wr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var c=Qr(r,u,o);return c!==null&&(Dn(c,r,o,i),rc(c,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ue:return t.child.stateNode;default:return t.child.stateNode}}function HD(e){switch(e.tag){case P:{var t=e.stateNode;if(vs(t)){var n=VT(t);Iw(t,n)}break}case te:{Mr(function(){var r=da(e,Pe);if(r!==null){var i=ia();Dn(r,e,Pe,i)}});var a=Pe;lm(e,a);break}}}function vS(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=WT(n.retryLane,t))}function lm(e,t){vS(e,t);var n=e.alternate;n&&vS(n,t)}function FD(e){if(e.tag===te){var t=Cl,n=da(e,t);if(n!==null){var a=ia();Dn(n,e,t,a)}lm(e,t)}}function VD(e){if(e.tag===te){var t=ri(e),n=da(e,t);if(n!==null){var a=ia();Dn(n,e,t,a)}lm(e,t)}}function pS(e){var t=nT(e);return t===null?null:t.stateNode}var mS=function(e){return null};function BD(e){return mS(e)}var hS=function(e){return!1};function PD(e){return hS(e)}var yS=null,gS=null,bS=null,SS=null,TS=null,ES=null,CS=null,xS=null,RS=null;{var wS=function(e,t,n){var a=t[n],r=nt(e)?e.slice():Ze({},e);return n+1===t.length?(nt(r)?r.splice(a,1):delete r[a],r):(r[a]=wS(e[a],t,n+1),r)},DS=function(e,t){return wS(e,t,0)},_S=function(e,t,n,a){var r=t[a],i=nt(e)?e.slice():Ze({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],nt(i)?i.splice(r,1):delete i[r]}else i[r]=_S(e[r],t,n,a+1);return i},OS=function(e,t,n){if(t.length!==n.length){Be("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){Be("copyWithRename() expects paths to be the same except for the deepest key");return}return _S(e,t,n,0)},MS=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=nt(e)?e.slice():Ze({},e);return i[r]=MS(e[r],t,n+1,a),i},LS=function(e,t,n){return MS(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};yS=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=LS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Ze({},e.memoizedProps);var o=da(e,Pe);o!==null&&Dn(o,e,Pe,qt)}},gS=function(e,t,n){var a=um(e,t);if(a!==null){var r=DS(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=Ze({},e.memoizedProps);var i=da(e,Pe);i!==null&&Dn(i,e,Pe,qt)}},bS=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=OS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Ze({},e.memoizedProps);var o=da(e,Pe);o!==null&&Dn(o,e,Pe,qt)}},SS=function(e,t,n){e.pendingProps=LS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,Pe);a!==null&&Dn(a,e,Pe,qt)},TS=function(e,t){e.pendingProps=DS(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=da(e,Pe);n!==null&&Dn(n,e,Pe,qt)},ES=function(e,t,n){e.pendingProps=OS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,Pe);a!==null&&Dn(a,e,Pe,qt)},CS=function(e){var t=da(e,Pe);t!==null&&Dn(t,e,Pe,qt)},xS=function(e){mS=e},RS=function(e){hS=e}}function $D(e){var t=lh(e);return t===null?null:t.stateNode}function YD(e){return null}function GD(){return ea}function WD(e){var t=e.findFiberByHostInstance,n=he.ReactCurrentDispatcher;return cT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:yS,overrideHookStateDeletePath:gS,overrideHookStateRenamePath:bS,overrideProps:SS,overridePropsDeletePath:TS,overridePropsRenamePath:ES,setErrorHandler:xS,setSuspenseHandler:RS,scheduleUpdate:CS,currentDispatcherRef:n,findHostInstanceByFiber:$D,findFiberByHostInstance:t||YD,findHostInstancesForRefresh:ED,scheduleRefresh:SD,scheduleRoot:TD,setRefreshHandler:bD,getCurrentFiber:GD,reconcilerVersion:rm})}var kS=typeof reportError=="function"?reportError:function(e){console.error(e)};function sm(e){this._internalRoot=e}Ic.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=pS(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.")}}Hu(e,t,null,null)},Ic.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;Yb()&&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."),Mr(function(){Hu(null,e,null,null)}),ky(t)}};function qD(e,t){if(!Xc(e))throw new Error("createRoot(...): Target container is not a DOM element.");AS(e);var n=!1,a=!1,r="",i=kS;t!=null&&(t.hydrate?Be("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===se&&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=fS(e,$s,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===mn?e.parentNode:e;return Yl(l),new sm(o)}function Ic(e){this._internalRoot=e}function ID(e){e&&sE(e)}Ic.prototype.unstable_scheduleHydration=ID;function XD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");AS(e),t===void 0&&d("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=n??null,r=n!=null&&n.hydratedSources||null,i=!1,o=!1,l="",u=kS;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var c=dS(t,null,e,$s,a,i,o,l,u);if(Us(c.current,e),Yl(e),r)for(var f=0;f<r.length;f++){var y=r[f];Z1(c,y)}return new Ic(c)}function Xc(e){return!!(e&&(e.nodeType===ca||e.nodeType===hr||e.nodeType===mf))}function Fu(e){return!!(e&&(e.nodeType===ca||e.nodeType===hr||e.nodeType===mf||e.nodeType===mn&&e.nodeValue===" react-mount-point-unstable "))}function AS(e){e.nodeType===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),tu(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 QD=he.ReactCurrentOwner,jS;jS=function(e){if(e._reactRootContainer&&e.nodeType!==mn){var t=pS(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&&Gr(a));r&&!n&&d("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function cm(e){return e?e.nodeType===hr?e.documentElement:e.firstChild:null}function NS(){}function KD(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var h=qc(o);i.call(h)}}var o=dS(t,a,e,qr,null,!1,!1,"",NS);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===mn?e.parentNode:e;return Yl(l),Mr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var c=a;a=function(){var h=qc(f);c.call(h)}}var f=fS(e,qr,null,!1,!1,"",NS);e._reactRootContainer=f,Us(f.current,e);var y=e.nodeType===mn?e.parentNode:e;return Yl(y),Mr(function(){Hu(t,f,n,a)}),f}}function JD(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){jS(n),JD(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=KD(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Hu(t,o,e,r)}return qc(o)}var US=!1;function ZD(e){{US||(US=!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=QD.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.",yt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ca?e:zD(e,"findDOMNode")}function e_(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"),!Fu(t))throw new Error("Target container is not a DOM element.");{var a=tu(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 t_(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"),!Fu(t))throw new Error("Target container is not a DOM element.");{var a=tu(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 n_(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"),!Fu(n))throw new Error("Target container is not a DOM element.");if(e==null||!Q0(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var zS=!1;function a_(e){if(zS||(zS=!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")),!Fu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=tu(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&&!Gr(n);a&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Mr(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,ky(e)})}),!0}else{{var r=cm(e),i=!!(r&&Gr(r)),o=e.nodeType===ca&&Fu(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}}ZT(HD),tE(FD),nE(VD),aE(za),rE(QT),(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"),F0(ix),P0(Bp,Xw,Mr);function r_(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 UD(e,t,null,n)}function i_(e,t,n,a){return n_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[Gr,xo,zs,Im,Xm,Bp]};function o_(e,t){return fm.usingClientEntryPoint||d('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),qD(e,t)}function l_(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".'),XD(e,t,n)}function u_(e){return Yb()&&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."),Mr(e)}var s_=WD({findFiberByHostInstance:Oi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!s_&&N&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var HS=window.location.protocol;/^(https?|file):$/.test(HS)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(HS==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ua.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,ua.createPortal=r_,ua.createRoot=o_,ua.findDOMNode=ZD,ua.flushSync=u_,ua.hydrate=e_,ua.hydrateRoot=l_,ua.render=t_,ua.unmountComponentAtNode=a_,ua.unstable_batchedUpdates=Bp,ua.unstable_renderSubtreeIntoContainer=i_,ua.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ua}hm.exports=$S();var YS=hm.exports,Sm,Tm=YS;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(T,_){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(T,_)}finally{Em.usingClientEntryPoint=!1}}}var xe=Jc();const B=T=>{if(isNaN(T))return"00:00:00.000";const _=Math.floor(T/3600),he=Math.floor(T%3600/60),Me=Math.floor(T%60),ce=Math.round(T%1*1e3),Be=String(_).padStart(2,"0"),d=String(he).padStart(2,"0"),J=String(Me).padStart(2,"0"),ge=String(ce).padStart(3,"0");return`${Be}:${d}:${J}.${ge}`},li=T=>B(T),GS=T=>B(T),WS=({videoRef:T,currentTime:_,duration:he,isPlaying:Me,isMuted:ce=!1,onPlayPause:Be,onSeek:d,onToggleMute:J})=>{var ue;const ge=xe.useRef(null),ee=typeof window<"u"&&((ue=window.MEDIA_DATA)==null?void 0:ue.videoUrl)||"https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4";xe.useEffect(()=>{T.current&&(T.current.setAttribute("playsinline","true"),T.current.setAttribute("webkit-playsinline","true"),T.current.setAttribute("x-webkit-airplay","allow"))},[T]);const it=he>0?_/he*100:0,P=Ke=>{if(ge.current){const It=ge.current.getBoundingClientRect(),wt=(Ke.clientX-It.left)/It.width;d(he*wt)}},R=()=>{T.current&&(document.fullscreenElement?document.exitFullscreen():T.current.requestFullscreen())};return v.jsxs("div",{className:"video-player-container",children:[v.jsxs("video",{ref:T,preload:"auto",crossOrigin:"anonymous",onClick:Be,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:ce,children:[v.jsx("source",{src:ee,type:"video/mp4"}),v.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),v.jsx("div",{className:`play-pause-indicator ${Me?"pause-icon":"play-icon"}`}),v.jsxs("div",{className:"video-controls",children:[v.jsxs("div",{className:"video-time-display",children:[v.jsx("span",{className:"video-current-time",children:li(_)}),v.jsxs("span",{className:"video-duration",children:["/ ",li(he)]})]}),v.jsxs("div",{ref:ge,className:"video-progress",onClick:P,children:[v.jsx("div",{className:"video-progress-fill",style:{width:`${it}%`}}),v.jsx("div",{className:"video-scrubber",style:{left:`${it}%`}})]}),v.jsxs("div",{className:"video-controls-buttons",children:[J&&v.jsx("button",{className:"mute-button","aria-label":ce?"Unmute":"Mute",onClick:J,"data-tooltip":ce?"Unmute":"Mute",children:ce?v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),v.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),v.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),v.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),v.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),v.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),v.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:R,"data-tooltip":"Toggle fullscreen",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h4a1 1 0 010 2H6.414l2.293 2.293a1 1 0 01-1.414 1.414L5 6.414V8a1 1 0 01-2 0V4zm9 1a1 1 0 010-2h4a1 1 0 011 1v4a1 1 0 01-2 0V6.414l-2.293 2.293a1 1 0 11-1.414-1.414L13.586 5H12zm-9 7a1 1 0 012 0v1.586l2.293-2.293a1 1 0 011.414 1.414L6.414 15H8a1 1 0 010 2H4a1 1 0 01-1-1v-4zm13-1a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 010-2h1.586l-2.293-2.293a1 1 0 011.414-1.414L15 13.586V12a1 1 0 011-1z",clipRule:"evenodd"})})})]})]})]})},tf=(T,_)=>{const he=Math.min(Math.max(T/(_||1),0),1),Me=210,ce=40+Math.floor(he*20),Be=85+Math.floor(he*8);return`hsl(${Me}, ${ce}%, ${Be}%)`},Cm=async(T,_)=>new Promise(he=>{const Me=document.createElement("canvas");Me.width=10,Me.height=10;const ce=Me.getContext("2d");if(ce){const d=tf(_,T.duration);ce.fillStyle=d,ce.fillRect(0,0,Me.width,Me.height)}const Be=Me.toDataURL("image/png",.5);he(Be)}),Gi=({isOpen:T,onClose:_,title:he,children:Me,actions:ce})=>{if(xe.useEffect(()=>{const d=J=>{J.key==="Escape"&&T&&_()};return document.addEventListener("keydown",d),T&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[T,_]),!T)return null;const Be=d=>{d.target===d.currentTarget&&_()};return v.jsx("div",{className:"modal-overlay",onClick:Be,children:v.jsxs("div",{className:"modal-container",onClick:d=>d.stopPropagation(),children:[v.jsxs("div",{className:"modal-header",children:[v.jsx("h2",{className:"modal-title",children:he}),v.jsx("button",{className:"modal-close-button",onClick:_,"aria-label":"Close modal",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),v.jsx("div",{className:"modal-content",children:Me}),ce&&v.jsx("div",{className:"modal-actions",children:ce})]})})},xm=T=>new Promise(_=>setTimeout(_,T)),nf=async(T,_)=>{try{const he=await fetch(`/api/v1/media/${T}/trim_video`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});if(!he.ok)if(he.status===400)try{return{status:400,error:(await he.json()).error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:400,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else if(he.status!==404)try{const ce=await he.json();return{status:he.status,error:ce.error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:he.status,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${T}`};const Me=await he.json();return{status:200,msg:"Video Processed Successfully",url_redirect:Me.url_redirect||`./view?m=${T}`,...Me}}catch{return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${T}`}}},Re={debug:(...T)=>{},error:(...T)=>console.error(...T),warn:(...T)=>console.warn(...T),info:(...T)=>console.info(...T)},Rm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23333333;}%20.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%20%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cpath%20class='st0'%20d='M350.45,277.5l-164.08,94.73c-16.55,9.56-37.24-2.39-37.24-21.5V161.27c0-19.11,20.69-31.06,37.24-21.5%20l164.08,94.73C367,244.06,367,267.94,350.45,277.5z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",wm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M208.15,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C218.47,375.57,213.85,380.19,208.15,380.19z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M395.04,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C405.36,375.57,400.74,380.19,395.04,380.19z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Dm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M85.26,277.5l164.08,94.73c16.55,9.56,37.24-2.39,37.24-21.5V161.27c0-19.11-20.69-31.06-37.24-21.5%20L85.26,234.5C68.71,244.06,68.71,267.94,85.26,277.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M377.47,375.59h41.42c11.19,0,20.26-9.07,20.26-20.26V156.67c0-11.19-9.07-20.26-20.26-20.26h-41.42%20c-11.19,0-20.26,9.07-20.26,20.26v198.67C357.21,366.52,366.28,375.59,377.47,375.59z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_m="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(6,%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'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='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,3ZM12.29,20.29l1.42,1.42,5-5a1,1,0,0,0,0-1.42l-5-5-1.42,1.42L15.59,15H5v2H15.59Z'%20id='login_account_enter_door'/%3e%3c/g%3e%3c/svg%3e",Om=T=>{let _=`${T}%`,he="translateX(-50%)";return T<17?(_="0%",he="none"):T>83&&(_="100%",he="translateX(-100%)"),{left:_,transform:he}},IS=({currentTime:T,duration:_,thumbnails:he,trimStart:Me,trimEnd:ce,splitPoints:Be,zoomLevel:d,clipSegments:J,onTrimStartChange:ge,onTrimEndChange:ee,onZoomChange:it,onSeek:P,videoRef:R,onSave:ue,onSaveACopy:Ke,onSaveSegments:It,isPreviewMode:wt,hasUnsavedChanges:Jt=!1})=>{const ve=xe.useRef(null),We=xe.useRef(null),mt=xe.useRef(null),[te,Ee]=xe.useState(null),[fe,we]=xe.useState(!1),[ft,bt]=xe.useState({x:0,y:0}),[X,_e]=xe.useState(0),[Le,Dt]=xe.useState(!1),[_t,zt]=xe.useState(30),[oe,Je]=xe.useState(!1),[ht,St]=xe.useState(null),[sa,ot]=xe.useState(0),[Un,Ht]=xe.useState(!1),At=xe.useRef(null),qn=g=>{const z=g;let w=null,D=X;const O=()=>{const F=D,U=z<0?Math.max(0,F+z):Math.min(_,F+z);D=U;const pe=oe;P(U),_e(U),ot(U),pe&&R.current&&(R.current.play(),Je(!0))};return{onMouseDown:F=>{F.stopPropagation(),F.preventDefault(),D=X,O(),w=window.setTimeout(()=>{w=window.setInterval(O,125)},250);const U=()=>{w&&(clearInterval(w),w=null),document.removeEventListener("mouseup",U),document.removeEventListener("mouseleave",U)};document.addEventListener("mouseup",U),document.addEventListener("mouseleave",U)},onClick:F=>{F.stopPropagation()}}},[fn,yn]=xe.useState(!1),[dn,nn]=xe.useState(!1),[N,K]=xe.useState(!1),[ne,re]=xe.useState(!1),[Se,qe]=xe.useState(!1),[dt,je]=xe.useState(!1),[Tt,$t]=xe.useState(""),[Xt,Et]=xe.useState(""),[Ft,vn]=xe.useState(""),[Zt,un]=xe.useState("save"),zn=_>0?T/_*100:0,Xa=_>0?Me/_*100:0,ka=_>0?ce/_*100:0,I=async()=>{var g,z;yn(!1),re(!0),un("save");try{const w=J.map(U=>({startTime:B(U.startTime),endTime:B(U.endTime)})),D=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,O=typeof window<"u"&&((z=window.MEDIA_DATA)==null?void 0:z.redirectURL)||null,F=await nf(D,{segments:w,saveAsCopy:!1});re(!1),F.status===200?(vn(O||F.url_redirect),qe(!0)):F.status===400?(Et(F.error||"An error occurred during processing"),je(!0)):(Et("An unexpected error occurred"),je(!0))}catch(w){Re.error("Error processing video:",w),re(!1),Et(w instanceof Error?w.message:"An error occurred during processing"),je(!0)}},Te=async()=>{var g,z;nn(!1),re(!0),un("copy");try{const w=J.map(U=>({startTime:B(U.startTime),endTime:B(U.endTime)})),D=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,O=typeof window<"u"&&((z=window.MEDIA_DATA)==null?void 0:z.redirectUserMediaURL)||null,F=await nf(D,{segments:w,saveAsCopy:!0});re(!1),F.status===200?(vn(O||F.url_redirect),qe(!0)):F.status===400?(Et(F.error||"An error occurred during processing"),je(!0)):(Et("An unexpected error occurred"),je(!0))}catch(w){Re.error("Error processing video:",w),re(!1),Et(w instanceof Error?w.message:"An error occurred during processing"),je(!0)}},Qe=async()=>{var g,z;K(!1),re(!0),un("segments");try{const w=J.map(U=>({startTime:B(U.startTime),endTime:B(U.endTime),name:U.name})),D=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,O=typeof window<"u"&&((z=window.MEDIA_DATA)==null?void 0:z.redirectUserMediaURL)||null,F=await nf(D,{segments:w,saveAsCopy:!0,saveIndividualSegments:!0});re(!1),F.status===200?(vn(O||F.url_redirect),qe(!0)):F.status===400?(Et(F.error||"An error occurred during processing"),je(!0)):(Et("An unexpected error occurred"),je(!0))}catch(w){Re.error("Error processing video segments:",w),re(!1),Et(w instanceof Error?w.message:"An error occurred during processing"),je(!0)}};xe.useEffect(()=>{if(At.current&&ve.current&&d>1){const g=At.current.clientWidth,z=ve.current.clientWidth,w=T/_*z,D=Math.max(0,w-g/2);At.current.scrollTo({left:D,behavior:"smooth"});const O=ve.current.getBoundingClientRect();At.current.getBoundingClientRect();const U=O.left-At.current.scrollLeft+zn/100*O.width;(te!==null||fe)&&(bt({x:U,y:O.top-10}),_e(T))}},[T,d,_,te,fe,zn]),xe.useEffect(()=>{const g=R.current;if(!g||!ht||!oe||wt)return;Re.debug("Segment boundary check ACTIVATED for segment:",ht.id,"Start:",B(ht.startTime),"End:",B(ht.endTime));const z=()=>{const w=ht.endTime-g.currentTime;if(Math.round(w*10)%10===0&&Re.debug("Segment playback - time remaining:",B(w),"Current:",B(g.currentTime),"End:",B(ht.endTime)),g.currentTime>ht.endTime){g.pause(),g.currentTime=ht.endTime,Je(!1),Re.debug("Passed segment end - setting back to exact boundary:",B(ht.endTime));return}ht.endTime-g.currentTime<.05&&(g.pause(),g.currentTime=ht.endTime,Je(!1),Re.debug("Paused at segment end boundary:",B(ht.endTime)))};return g.addEventListener("timeupdate",z),()=>{g.removeEventListener("timeupdate",z)}},[ht,oe,wt]),xe.useEffect(()=>{if(R.current)if(R.current.paused)R.current.paused&&oe&&(ot(T),_e(T),Je(!1),Re.debug("Video paused at:",B(T)));else{ot(T),_e(T),te!==null&&Je(!0);const g=J.find(D=>T>=D.startTime&&T<=D.endTime),z=T/_*100;if(ve.current){const D=ve.current.offsetWidth,O=z/100*D;bt({x:O,y:ve.current.getBoundingClientRect().top-10})}const w=sessionStorage.getItem("continuingPastSegment")==="true";if(g){const D=R.current,O=ht&&ht.id<0&&oe;if(O&&D&&g){Re.debug(`CUTAWAY BOUNDARY REACHED: Current position ${B(D.currentTime)} at segment ${g.id} - STOPPING at boundary ${B(g.startTime)}`),D.pause(),setTimeout(()=>{if(R.current){R.current.currentTime=g.startTime,P(g.startTime),ot(g.startTime),_e(g.startTime);const U=()=>{R.current&&(R.current.currentTime=g.startTime,P(g.startTime),ot(g.startTime),_e(g.startTime),Re.debug(`Position corrected to exact segment boundary: ${B(R.current.currentTime)} (target: ${B(g.startTime)})`))};setTimeout(U,10),setTimeout(U,20),setTimeout(U,50),setTimeout(U,100),setTimeout(U,200),R.current.addEventListener("seeked",U),R.current.addEventListener("canplay",U),R.current.addEventListener("waiting",U),setTimeout(()=>{R.current&&(R.current.removeEventListener("seeked",U),R.current.removeEventListener("canplay",U),R.current.removeEventListener("waiting",U))},300)}},10),Je(!1),St(null);return}ht===null&&oe===!0||w||O?(te!==g.id||fe)&&(Re.debug("Tooltip updated for segment during continued playback:",g.id,O?"(cutaway playback - keeping virtual segment)":""),Ee(g.id),we(!1),!O&&sessionStorage.getItem("lastSegmentId")!==g.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((ht==null?void 0:ht.id)!==g.id||fe)&&(Re.debug("Playback moved into segment:",g.id),Ee(g.id),St(g),we(!1),sessionStorage.setItem("lastSegmentId",g.id.toString()))}else if(ht!==null||!fe){Ee(null),St(null);const D=jt(T);zt(D),D>=.5?we(!0):we(!1)}}},[T,oe,ht,te,J]),xe.useEffect(()=>{const g=z=>{const w=z.target;Le&&!w.closest(".zoom-dropdown-container")&&Dt(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[Le]),xe.useEffect(()=>{const g=z=>{const w=z.target;(te!==null||fe)&&!w.closest(".empty-space-tooltip")&&!w.closest(".segment-tooltip")&&!w.closest(".timeline-marker-head")&&!w.closest(".clip-segment")&&!w.closest(".timeline-container")&&(oe&&(Je(!1),St(null)),Ht(!1),Ee(null),we(!1))};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[te,fe,oe]),xe.useEffect(()=>{const g=We.current,z=mt.current,w=ve.current;if(!g||!z||!w)return;const D=O=>F=>{F.preventDefault();const U=w.getBoundingClientRect();let pe=!0,Y=O?Me:ce;const ke=He=>new CustomEvent("trim-handle-event",{detail:{type:He,isStart:O}});document.dispatchEvent(ke("drag-start"));const ze=He=>{if(!pe)return;const tt=U.width,gn=Math.max(0,Math.min(1,(He.clientX-U.left)/tt))*_;O?gn<ce&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:gn,isStart:!0,recordHistory:!1}})),Y=gn):gn>Me&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:gn,isStart:!1,recordHistory:!1}})),Y=gn)},se=()=>{pe=!1,document.removeEventListener("mousemove",ze),document.removeEventListener("mouseup",se),O?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:Y,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:Y,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(ke("drag-end"))};document.addEventListener("mousemove",ze),document.addEventListener("mouseup",se)};return g.addEventListener("mousedown",D(!0)),z.addEventListener("mousedown",D(!1)),()=>{g.removeEventListener("mousedown",D(!0)),z.removeEventListener("mousedown",D(!1))}},[_,Me,ce,ge,ee]);const Ct=()=>{const g=he.length||10;return Array.from({length:g}).map((z,w)=>{const D=_/g,O=w*D,F=O+D,U=(O+F)/2,pe=tf(U,_);return v.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/g}%`,backgroundColor:pe}},w)})},Vt=()=>Be.map((g,z)=>{const w=g/_*100;return v.jsx("div",{className:"split-point",style:{left:`${w}%`}},z)}),jt=g=>{const z=Math.max(0,_-g),D=[...J].sort((O,F)=>O.startTime-F.startTime).find(O=>O.startTime>g);if(D){const O=Math.max(0,D.startTime-g);return Math.min(30,O)}else return Math.min(30,z)},Qt=g=>{if(!ve.current||!At.current)return;const z=R.current&&!R.current.paused;Ht(!1);const w=ve.current.getBoundingClientRect();let D;if(d>1){const U=At.current.scrollLeft,pe=ve.current.clientWidth;D=(g.clientX-w.left+U)/pe}else D=(g.clientX-w.left)/w.width;const O=D*_;P(O),_e(O),ot(O);const F=J.find(U=>O>=U.startTime&&O<=U.endTime);if(F&&St(F),(z||wt)&&R.current&&R.current.play().then(()=>{Je(!0)}).catch(U=>{console.error("Error resuming playback:",U),Je(!1)}),g.target===ve.current||g.target.classList.contains("timeline-thumbnail")){const U=J.find(pe=>O>=pe.startTime&&O<=pe.endTime);if(U)Ee(U.id),we(!1);else{Ee(null);const pe=jt(O);if(zt(pe),pe<.5){we(!1);return}let Y;if(d>1){const ze=w.left-At.current.scrollLeft,se=O/_;Y=ze+se*w.width}else Y=g.clientX;bt({x:Y,y:w.top-10}),we(!0);const ke=ze=>{ze.target,document.removeEventListener("mousedown",ke)};document.addEventListener("mousedown",ke)}}},sn=(g,z)=>w=>{if(w.preventDefault(),w.stopPropagation(),!ve.current)return;ve.current.getBoundingClientRect().width;const O=J.find(j=>j.id===g);if(!O)return;const F=O.startTime,U=O.endTime,pe={...O};document.body.style.cursor="ew-resize";const Y=document.createElement("div");Y.style.position="fixed",Y.style.top="0",Y.style.left="0",Y.style.width="100vw",Y.style.height="100vh",Y.style.zIndex="1000",Y.style.cursor="ew-resize",document.body.appendChild(Y);let ke=!0,ze=F,se=U;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:g}}));const He=j=>{if(!ke||!ve.current)return;const G=ve.current.getBoundingClientRect(),be=Math.max(0,Math.min(1,(j-G.left)/G.width))*_,De=J.filter(rt=>rt.id!==g);let Ve=F,Fe=U;if(z){Ve=Math.min(be,U-.5);const Xe=De.filter(bn=>bn.endTime<=F).sort((bn,Ut)=>Ut.endTime-bn.endTime)[0];Xe&&Ve<Xe.endTime&&(Ve=Xe.endTime),Xe&&Math.abs(Ve-Xe.endTime)<.3&&(Ve=Xe.endTime),ze=Ve}else{Fe=Math.max(be,F+.5);const Xe=De.filter(bn=>bn.startTime>=U).sort((bn,Ut)=>bn.startTime-Ut.startTime)[0];Xe&&Fe>Xe.startTime&&(Fe=Xe.startTime),Xe&&Math.abs(Fe-Xe.startTime)<.3&&(Fe=Xe.startTime),se=Fe}const an=J.map(rt=>rt.id===g?{...rt,startTime:Ve,endTime:Fe}:rt),Bt=new CustomEvent("update-segments",{detail:{segments:an,recordHistory:!1}});if(document.dispatchEvent(Bt),te===g&&R.current){const rt=R.current.currentTime,Xe=an.find(On=>On.id===g);if(Xe){const On=rt>=Xe.startTime&&rt<=Xe.endTime;Re.debug(`During drag - playhead at ${B(rt)} is ${On?"inside":"outside"} segment (${B(Xe.startTime)} - ${B(Xe.endTime)})`),!On&&oe&&(R.current.pause(),Je(!1),St(null)),rt<Xe.startTime?(Re.debug(`Adjusting display time to segment start: ${B(Xe.startTime)}`),ot(Xe.startTime),_e(Xe.startTime)):rt>Xe.endTime&&(Re.debug(`Adjusting display time to segment end: ${B(Xe.endTime)}`),ot(Xe.endTime),_e(Xe.endTime))}}},tt=()=>{if(!ke)return;ke=!1,document.removeEventListener("mousemove",_n),document.removeEventListener("mouseup",gn),document.removeEventListener("touchmove",Aa),document.removeEventListener("touchend",p),document.removeEventListener("touchcancel",p),document.body.style.cursor="",document.body.contains(Y)&&document.body.removeChild(Y);const j=J.map(W=>W.id===g?{...W,startTime:ze,endTime:se}:W),G=z?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:j,recordHistory:!0,action:G}})),te===g&&R.current){const W=R.current.currentTime,be=j.find(De=>De.id===g);if(be){const De=W>=be.startTime&&W<=be.endTime;Re.debug(`Drag complete - playhead at ${B(W)} is ${De?"inside":"outside"} segment (${B(be.startTime)} - ${B(be.endTime)})`);const Ve=W>=pe.startTime&&W<=pe.endTime;De?!Ve&&De?(St(be),wt&&R.current.play().then(()=>{Je(!0)}).catch(Fe=>{console.error("Error starting playback:",Fe)})):Ve&&De&&(be.startTime!==pe.startTime||be.endTime!==pe.endTime)&&St(be):(oe&&(R.current.pause(),Je(!1),St(null),Ht(!1)),W<be.startTime?(Re.debug(`Final adjustment - setting display time to segment start: ${B(be.startTime)}`),ot(be.startTime),_e(be.startTime)):W>be.endTime&&(Re.debug(`Final adjustment - setting display time to segment end: ${B(be.endTime)}`),ot(be.endTime),_e(be.endTime)))}}},_n=j=>{He(j.clientX)},gn=()=>{tt()},Aa=j=>{j.touches.length>0&&(j.preventDefault(),He(j.touches[0].clientX))},p=()=>{tt()};document.addEventListener("mousemove",_n,{passive:!1}),document.addEventListener("mouseup",gn),document.addEventListener("touchmove",Aa,{passive:!1}),document.addEventListener("touchend",p),document.addEventListener("touchcancel",p)},Yt=g=>z=>{if(z.target.classList.contains("clip-segment-handle"))return;z.preventDefault(),z.stopPropagation(),Ht(!1);const w=R.current&&!R.current.paused;Ee(g);const D=J.find(se=>se.id===g);if(!D)return;const F=z.currentTarget.getBoundingClientRect(),U=(z.clientX-F.left)/F.width,pe=D.startTime+U*(D.endTime-D.startTime),Y=Math.max(D.startTime,Math.min(D.endTime,pe));if(_e(Y),ot(Y),R.current){const se=R.current.currentTime,He=se>=D.startTime&&se<=D.endTime;Re.debug(`Segment click - playhead at ${B(se)} is ${He?"inside":"outside"} segment (${B(D.startTime)} - ${B(D.endTime)})`),He||(Math.abs(se-D.startTime)<Math.abs(se-D.endTime)?(Re.debug(`Playhead outside segment - adjusting to segment start: ${B(D.startTime)}`),ot(D.startTime)):(Re.debug(`Playhead outside segment - adjusting to segment end: ${B(D.endTime)}`),ot(D.endTime)))}P(Y),(w||wt)&&R.current&&(St(D),R.current.play().then(()=>{Je(!0)}).catch(se=>{console.error("Error resuming playback after segment click:",se)})),wt&&R.current&&(St(D),R.current.play().then(()=>{Je(!0)}).catch(se=>{console.error("Error continuing preview playback:",se)}));const ke=z.clientX,ze=F.top-10;if(bt({x:ke,y:ze}),d>1&&ve.current&&At.current){ve.current.getBoundingClientRect();const se=ve.current.clientWidth,He=At.current.clientWidth,tt=Y/_*se,_n=Math.max(0,tt-He/2);At.current.scrollTo({left:_n,behavior:"smooth"}),setTimeout(()=>{if(ve.current&&At.current){const gn=ve.current.getBoundingClientRect(),p=Y/_*se-At.current.scrollLeft+gn.left;bt({x:p,y:ze})}},300)}},Nt=()=>J.map((g,z)=>{const w=g.startTime/_*100,D=(g.endTime-g.startTime)/_*100,O=tf((g.startTime+g.endTime)/2,_);return v.jsxs("div",{className:`clip-segment ${te===g.id?"selected":""}`,style:{left:`${w}%`,width:`${D}%`,backgroundColor:O,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:Yt(g.id),children:[v.jsxs("div",{className:"clip-segment-info",children:[v.jsxs("div",{className:"clip-segment-name",children:["Segment ",z+1]}),v.jsxs("div",{className:"clip-segment-time",children:[li(g.startTime)," - ",li(g.endTime)]}),v.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",li(g.endTime-g.startTime)]})]}),v.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:F=>{F.stopPropagation(),sn(g.id,!0)(F)},onTouchStart:F=>{F.stopPropagation(),sn(g.id,!0)(F)}}),v.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:F=>{F.stopPropagation(),sn(g.id,!1)(F)},onTouchStart:F=>{F.stopPropagation(),sn(g.id,!1)(F)}})]},g.id)});return v.jsxs("div",{className:"timeline-container-card",children:[v.jsxs("div",{className:"timeline-header",children:[v.jsx("div",{className:"timeline-title",children:v.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),v.jsxs("div",{className:"duration-time",children:["Total Segments: ",v.jsx("span",{children:B(J.reduce((g,z)=>g+(z.endTime-z.startTime),0))})]})]}),v.jsx("div",{ref:At,className:"timeline-scroll-container",style:{overflow:d>1?"auto":"hidden"},children:v.jsxs("div",{ref:ve,className:"timeline-container",onClick:Qt,style:{width:`${d===1?"100%":`${d*100}%`}`},children:[v.jsx("div",{className:"timeline-marker",style:{left:`${zn}%`},children:v.jsx("div",{className:"timeline-marker-head",onClick:g=>{if(g.stopPropagation(),J.find(z=>T>=z.startTime&&T<=z.endTime),te||fe){Ee(null),we(!1);return}else{const z=J.find(w=>{const D=T>=w.startTime&&T<=w.endTime,O=Math.abs(T-w.startTime)<.001,F=Math.abs(T-w.endTime)<.001;return D||O||F});if(Re.debug("Checking for segment at marker:",z?`Found segment ${z.id}`:"No segment found"),z)Ee(z.id);else{const w=jt(T);zt(w),w>=.5&&we(!0)}}},children:v.jsx("span",{className:"timeline-marker-head-icon",children:te||fe?"-":"+"})})}),J.length===0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"trim-line-marker",style:{left:`${Xa}%`},children:v.jsx("div",{ref:We,className:"trim-handle left"})}),v.jsx("div",{className:"trim-line-marker",style:{left:`${ka}%`},children:v.jsx("div",{ref:mt,className:"trim-handle right"})})]}),Nt(),Vt(),Ct(),te!==null&&v.jsxs("div",{className:"segment-tooltip two-row-tooltip",style:{position:"absolute",...Om(zn)},children:[v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Decrease by 50ms (hold for continuous adjustment)",...qn(-.05),children:"-50ms"}),v.jsx("div",{className:"tooltip-time-display",children:B(sa)}),v.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Increase by 50ms (hold for continuous adjustment)",...qn(.05),children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsx("button",{className:"tooltip-action-btn delete","data-tooltip":"Delete segment",onClick:g=>{g.stopPropagation();const z=new CustomEvent("delete-segment",{detail:{segmentId:te}});document.dispatchEvent(z)},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M3 6h18"}),v.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),v.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),v.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),v.jsx("button",{className:"tooltip-action-btn scissors","data-tooltip":"Split segment at current position",onClick:g=>{g.stopPropagation();const z=new CustomEvent("split-segment",{detail:{segmentId:te,time:X}});document.dispatchEvent(z)},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"6",cy:"6",r:"3"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),v.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),v.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),v.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play segment from beginning",onClick:g=>{g.stopPropagation();const z=J.find(w=>w.id===te);if(z&&R.current){if(Ht(!0),Math.abs(R.current.currentTime-z.endTime)<.05){Re.debug(`Already at end boundary (${B(R.current.currentTime)}), nudging position back slightly`);const w=Math.max(z.startTime,z.endTime-.1);R.current.currentTime=w,P(w),_e(w),Re.debug(`Position adjusted to ${B(w)}`)}else P(z.startTime),_e(z.startTime);St(z),R.current.play().then(()=>{Je(!0)}).catch(w=>{console.error("Error playing from beginning:",w)})}},children:v.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${oe?"pause":"play"}`,"data-tooltip":oe?"Pause playback":"Play from current position",onClick:g=>{g.stopPropagation();const z=J.find(w=>w.id===te);if(z&&R.current)if(oe)R.current.pause(),Je(!1),Ht(!1);else{Ht(!0),Re.debug("Play from current position - initial time:",B(R.current.currentTime));const w=Math.abs(R.current.currentTime-z.endTime)<.001,D=Math.abs(R.current.currentTime-z.endTime)<.05;if(w||D){const O=z.endTime+.5;Re.debug("At segment end - repositioning to continue beyond segment boundary:",B(R.current.currentTime),"->",B(O)),R.current.currentTime=O,St(null),sessionStorage.setItem("continuingPastSegment","true"),sessionStorage.setItem("lastSegmentId",z.id.toString())}else{const O=R.current.currentTime>=z.startTime&&R.current.currentTime<=z.endTime;if(Re.debug("Current position check:",{currentTime:B(R.current.currentTime),segmentStart:B(z.startTime),segmentEnd:B(z.endTime),isWithinSegment:O}),!O){const F=Math.max(z.startTime,Math.min(z.endTime,T));Re.debug("Adjusting position to be within segment:",B(F)),R.current.currentTime=F}St(z),Re.debug("Set active segment for boundary checking:",z.id)}R.current.play().then(()=>{var O;Je(!0),Re.debug("Play clicked - continuing from current position:",B(((O=R.current)==null?void 0:O.currentTime)||0))}).catch(O=>{console.error("Error starting playback:",O)})}},children:oe?v.jsx("img",{src:wm,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:Rm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:"tooltip-action-btn set-in","data-tooltip":"Set start point at current position",onClick:g=>{if(g.stopPropagation(),J.find(w=>w.id===te)){const w=J.map(O=>O.id===te?{...O,startTime:X<O.endTime-.5?X:O.endTime-.5}:O),D=new CustomEvent("update-segments",{detail:{segments:w,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(D)}},children:v.jsx("img",{src:qS,alt:"Set start point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:"tooltip-action-btn set-out","data-tooltip":"Set end point at current position",onClick:g=>{if(g.stopPropagation(),J.find(w=>w.id===te)){const w=J.map(O=>O.id===te?{...O,endTime:X>O.startTime+.5?X:O.startTime+.5}:O),D=new CustomEvent("update-segments",{detail:{segments:w,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(D)}},children:v.jsx("img",{src:_m,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),fe&&te===null&&v.jsxs("div",{className:"empty-space-tooltip two-row-tooltip",style:{position:"absolute",...Om(zn)},children:[v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Decrease by 50ms (hold for continuous adjustment)",...qn(-.05),children:"-50ms"}),v.jsx("div",{className:"tooltip-time-display",children:B(X)}),v.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Increase by 50ms (hold for continuous adjustment)",...qn(.05),children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[_t>=.5&&v.jsxs("button",{className:"tooltip-action-btn new-segment","data-tooltip":"Create new segment",onClick:async g=>{g.stopPropagation();const z=X,w=z+_t;if(_t<.5){we(!1);return}const D={id:Date.now(),name:"segment",startTime:z,endTime:w,thumbnail:""},O=[...J,D],F=new CustomEvent("update-segments",{detail:{segments:O,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(F),we(!1),setTimeout(()=>{const U=O[O.length-1];U&&(Ee(U.id),Re.debug("Created and selected new segment:",U.id))},100)},children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),v.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),v.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),v.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play from beginning of cutaway",onClick:g=>{if(g.stopPropagation(),R.current){const z=X;Ht(!0);const w=[...J].sort((ke,ze)=>ke.startTime-ze.startTime),D=[...w].reverse().find(ke=>ke.endTime<z),O=D?D.endTime+.025:0,F=w.find(ke=>ke.startTime>z),U=F?F.startTime:_,pe={id:-999,name:"Cutaway",startTime:O,endTime:U,thumbnail:""};P(O),_e(O),Je(!1),setTimeout(()=>{St(pe)},0);const Y=()=>{if(!R.current)return;const ke=R.current.currentTime,se=[...J].sort((tt,_n)=>tt.startTime-_n.startTime).find(tt=>tt.startTime>ke-.3),He=se&&ke>=se.startTime-.25&&ke<=se.startTime+.1&&!Un;if(se&&ke>=se.startTime-.25&&ke<=se.startTime+.1&&Re.debug(`Approaching boundary at ${B(se.startTime)}, continuePastBoundary=${Un}, willStop=${He}`),He&&se){Re.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${B(ke)} approaching segment at ${B(se.startTime)} (distance: ${Math.abs(ke-se.startTime).toFixed(3)}s) - STOPPING`),R.current.pause(),setTimeout(()=>{if(R.current){R.current.currentTime=se.startTime,P(se.startTime),ot(se.startTime),_e(se.startTime);const tt=()=>{R.current&&(R.current.currentTime=se.startTime,P(se.startTime),ot(se.startTime),_e(se.startTime),Re.debug(`Position corrected to exact segment boundary: ${B(R.current.currentTime)} (target: ${B(se.startTime)})`))};setTimeout(tt,10),setTimeout(tt,20),setTimeout(tt,50),setTimeout(tt,100),setTimeout(tt,200),R.current.addEventListener("seeked",tt),R.current.addEventListener("canplay",tt),R.current.addEventListener("waiting",tt),setTimeout(()=>{R.current&&(R.current.removeEventListener("seeked",tt),R.current.removeEventListener("canplay",tt),R.current.removeEventListener("waiting",tt))},300)}},10),Je(!1),St(null),R.current.removeEventListener("timeupdate",Y);return}};R.current.addEventListener("timeupdate",Y),setTimeout(()=>{R.current&&R.current.play().then(()=>{Je(!0),Re.debug("CUTAWAY PLAYBACK STARTED:",B(O),"to",B(U),D?`(after segment ${D.id}, offset +25ms from ${B(D.endTime)})`:"(from video start)",F?`(will stop at segment ${F.id})`:"(will play to end)")}).catch(ke=>{console.error("Error playing cutaway:",ke)})},50)}},children:v.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${oe?"pause":"play"}`,"data-tooltip":oe?"Pause playback":"Play from here until next segment",onClick:g=>{if(g.stopPropagation(),R.current)if(oe)R.current.pause(),Je(!1),Ht(!1);else{Ht(!0);const z=[...J].sort((Y,ke)=>Y.startTime-ke.startTime),w=R.current.currentTime,D=z.find(Y=>Y.startTime>w),O=D?D.startTime:_;let F=w;D&&Math.abs(w-D.startTime)<.05&&(Re.debug(`Already at boundary (${B(w)}), nudging position back slightly`),F=Math.max(0,w-.1),R.current.currentTime=F,P(F),Re.debug(`Position adjusted to ${B(F)}`));const U={id:-999,name:"Cutaway",startTime:F,endTime:O,thumbnail:""};Je(!1),setTimeout(()=>{St(U)},0);const pe=()=>{if(!R.current)return;const Y=R.current.currentTime,ze=[...J].sort((He,tt)=>He.startTime-tt.startTime).find(He=>He.startTime>Y-.3),se=ze&&Y>=ze.startTime-.25&&Y<=ze.startTime+.1&&!Un;if(ze&&Y>=ze.startTime-.25&&Y<=ze.startTime+.1&&Re.debug(`Approaching boundary at ${B(ze.startTime)}, continuePastBoundary=${Un}, willStop=${se}`),se&&ze){Re.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${B(Y)} approaching segment at ${B(ze.startTime)} (distance: ${Math.abs(Y-ze.startTime).toFixed(3)}s) - STOPPING`),R.current.pause(),setTimeout(()=>{if(R.current){R.current.currentTime=ze.startTime,P(ze.startTime),ot(ze.startTime),_e(ze.startTime);const He=()=>{R.current&&(R.current.currentTime=ze.startTime,P(ze.startTime),ot(ze.startTime),_e(ze.startTime),Re.debug(`Position corrected to exact segment boundary: ${B(R.current.currentTime)} (target: ${B(ze.startTime)})`))};setTimeout(He,10),setTimeout(He,20),setTimeout(He,50),setTimeout(He,100),setTimeout(He,200),R.current.addEventListener("seeked",He),R.current.addEventListener("canplay",He),R.current.addEventListener("waiting",He),setTimeout(()=>{R.current&&(R.current.removeEventListener("seeked",He),R.current.removeEventListener("canplay",He),R.current.removeEventListener("waiting",He))},300)}},10),Je(!1),St(null),R.current.removeEventListener("timeupdate",pe);return}};R.current.addEventListener("timeupdate",pe),setTimeout(()=>{R.current&&R.current.play().then(()=>{Je(!0),Re.debug("Play clicked in empty space - position:",B(w),"will stop at:",B(O),D?`(start of segment ${D.id})`:"(end of video)")}).catch(Y=>{console.error("Error starting playback:",Y)})},50)}},children:oe?v.jsx("img",{src:wm,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:Rm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:"tooltip-action-btn segment-end","data-tooltip":"Adjust end of previous segment or create segment from start",onClick:g=>{g.stopPropagation();const w=[...J].sort((D,O)=>D.startTime-O.startTime).filter(D=>D.endTime<=X).sort((D,O)=>O.endTime-D.endTime)[0];if(w){const D=J.map(F=>F.id===w.id?{...F,endTime:X}:F),O=new CustomEvent("update-segments",{detail:{segments:D,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(O),Re.debug("Adjusted end of previous segment to:",B(X)),Ee(w.id),we(!1)}else if(J.length>0){const D=[...J].sort((U,pe)=>U.startTime-pe.startTime);let O=!1,F=0;for(let U=0;U<D.length-1;U++){const pe=D[U].endTime,Y=D[U+1].startTime;if(X>pe&&X<Y){O=!0,F=pe;break}}if(O){const U={id:Date.now(),name:"segment",startTime:F,endTime:X,thumbnail:""},pe=[...J,U],Y=new CustomEvent("update-segments",{detail:{segments:pe,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(Y),Re.debug("Created new segment in gap from",B(F),"to",B(X)),Ee(U.id),we(!1)}else if(X<D[0].startTime){const U={id:Date.now(),name:"segment",startTime:0,endTime:X,thumbnail:""},pe=[...J,U],Y=new CustomEvent("update-segments",{detail:{segments:pe,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(Y),Re.debug("Created new segment from start to:",B(X)),Ee(U.id),we(!1)}else{const U=[...J].sort((pe,Y)=>Y.endTime-pe.endTime)[0];if(U&&U.endTime<_){const pe=J.map(ke=>ke.id===U.id?{...ke,endTime:_}:ke),Y=new CustomEvent("update-segments",{detail:{segments:pe,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(Y),Ee(U.id),we(!1)}}}else if(X>0){const D={id:Date.now(),name:"segment",startTime:0,endTime:X,thumbnail:""},O=new CustomEvent("update-segments",{detail:{segments:[D],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(O),Re.debug("Created new segment from start to:",B(X)),Ee(D.id),we(!1)}},children:v.jsx("img",{src:_m,alt:"Set end point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:"tooltip-action-btn segment-start","data-tooltip":"Adjust start of next segment or create segment to end",onClick:g=>{g.stopPropagation();const w=[...J].sort((D,O)=>D.startTime-O.startTime).filter(D=>D.startTime>=X).sort((D,O)=>D.startTime-O.startTime)[0];if(w){const D=J.map(F=>F.id===w.id?{...F,startTime:X}:F),O=new CustomEvent("update-segments",{detail:{segments:D,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(O),Re.debug("Adjusted start of next segment to:",B(X)),Ee(w.id),we(!1)}else if(J.length>0){const D=[...J].sort((U,pe)=>U.startTime-pe.startTime);let O=!1,F=0;for(let U=0;U<D.length-1;U++){const pe=D[U].endTime,Y=D[U+1].startTime;if(X>pe&&X<Y){O=!0,F=Y;break}}if(O){const U={id:Date.now(),name:"segment",startTime:X,endTime:F,thumbnail:""},pe=[...J,U],Y=new CustomEvent("update-segments",{detail:{segments:pe,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(Y),Re.debug("Created new segment in gap from",B(X),"to",B(F)),Ee(U.id),we(!1)}else if(X<D[0].startTime){const U={id:Date.now(),name:"segment",startTime:X,endTime:D[0].startTime,thumbnail:""},pe=[...J,U],Y=new CustomEvent("update-segments",{detail:{segments:pe,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(Y),Re.debug("Created new segment from",B(X),"to first segment"),Ee(U.id),we(!1)}else if(X>D[D.length-1].endTime){const U={id:Date.now(),name:"segment",startTime:X,endTime:_,thumbnail:""},pe=[...J,U],Y=new CustomEvent("update-segments",{detail:{segments:pe,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(Y),Re.debug("Created new segment from",B(X),"to end"),Ee(U.id),we(!1)}else{const U=D[0];if(U&&U.startTime>0){const pe=J.map(ke=>ke.id===U.id?{...ke,startTime:0}:ke),Y=new CustomEvent("update-segments",{detail:{segments:pe,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(Y),Ee(U.id),we(!1)}}}else if(X<_){const D={id:Date.now(),name:"segment",startTime:X,endTime:_,thumbnail:""},O=new CustomEvent("update-segments",{detail:{segments:[D],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(O),Re.debug("Created new segment from",B(X),"to end"),Ee(D.id),we(!1)}},children:v.jsx("svg",{height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("g",{"data-name":"1",id:"_1",children:v.jsx("path",{d:"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,3ZM12.29,20.29l1.42,1.42,5-5a1,1,0,0,0,0-1.42l-5-5-1.42,1.42L15.59,15H5v2H15.59Z",id:"login_account_enter_door"})})})})]})]})]})}),v.jsxs("div",{className:"timeline-controls",children:[v.jsxs("div",{className:"time-navigation",children:[v.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),v.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:g=>{if(g.key==="Enter"){const z=g.currentTarget.value;try{const w=z.split(":");let D=0,O=0,F=0,U=0;if(w.length===3){D=parseInt(w[0]),O=parseInt(w[1]);const Y=w[2].split(".");F=parseInt(Y[0]),Y.length>1&&(U=parseInt(Y[1].padEnd(3,"0").substring(0,3)))}else if(w.length===2){O=parseInt(w[0]);const Y=w[1].split(".");F=parseInt(Y[0]),Y.length>1&&(U=parseInt(Y[1].padEnd(3,"0").substring(0,3)))}const pe=D*3600+O*60+F+U/1e3;if(!isNaN(pe)&&pe>=0&&pe<=_){P(pe);const Y=ke=>{const ze=J.find(se=>{const He=ke>=se.startTime&&ke<=se.endTime,tt=Math.abs(ke-se.startTime)<.001,_n=Math.abs(ke-se.endTime)<.001;return He||tt||_n});if(ve.current&&At.current){const se=ve.current.getBoundingClientRect();let He;if(d>1)He=se.left-At.current.scrollLeft+ke/_*se.width;else{const tt=ke/_;He=se.left+se.width*tt}bt({x:He,y:se.top-10}),_e(ke),ze?(Ee(ze.id),we(!1)):(Ee(null),we(!0))}};setTimeout(()=>Y(pe),10)}}catch(w){console.error("Invalid time format:",w)}}}}),v.jsx("div",{className:"time-button-group",children:(()=>{const g=()=>{const z=J.find(w=>{const D=T>=w.startTime&&T<=w.endTime,O=Math.abs(T-w.startTime)<.001,F=Math.abs(T-w.endTime)<.001;return D||O||F});if(ve.current&&At.current){const w=ve.current.getBoundingClientRect();let D;if(d>1)D=w.left-At.current.scrollLeft+T/_*w.width;else{const O=T/_;D=w.left+w.width*O}if(bt({x:D,y:w.top-10}),_e(T),z)Ee(z.id),we(!1);else{const O=jt(T);zt(O),O>=.5?(Ee(null),we(!0)):(Ee(null),we(!1))}}};return v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"time-button",onClick:()=>{P(T-.01),setTimeout(g,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),v.jsx("button",{className:"time-button",onClick:()=>{P(T-.001),setTimeout(g,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{P(T+.001),setTimeout(g,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{P(T+.01),setTimeout(g,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),v.jsxs("div",{className:"controls-right",children:[v.jsxs("div",{className:"zoom-dropdown-container",children:[v.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>Dt(!Le),children:["Zoom ",d,"x",v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),Le&&v.jsx("div",{className:"zoom-dropdown",style:{position:"absolute",top:"100%",left:0,zIndex:1e3},children:[1,2,4,8,16,32,64,128,256,512,1024,2048,4096].map(g=>v.jsxs("div",{className:`zoom-option ${d===g?"selected":""}`,onClick:()=>{it(g),Dt(!1)},children:[d===g&&v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",g,"x"]},g))})]}),v.jsxs("div",{className:"save-buttons-row",children:[ue&&v.jsx("button",{onClick:()=>yn(!0),className:"save-button","data-tooltip":"Save changes",children:"Save"}),Ke&&v.jsx("button",{onClick:()=>nn(!0),className:"save-copy-button","data-tooltip":"Save as a new copy",children:"Save as Copy"}),It&&v.jsx("button",{onClick:()=>K(!0),className:"save-segments-button","data-tooltip":"Save segments as separate files",children:"Save Segments"})]}),v.jsxs(Gi,{isOpen:fn,onClose:()=>yn(!1),title:"Save Changes",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>yn(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:I,children:"Confirm Save"})]}),children:[v.jsx("p",{className:"modal-message",children:"You're about to save these changes and replace the original video. This action cannot be undone."}),v.jsx("p",{className:"modal-message",children:"The original video will be replaced with this trimmed version."})]}),v.jsxs(Gi,{isOpen:dn,onClose:()=>nn(!1),title:"Save As New Copy",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>nn(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:Te,children:"Confirm Save As Copy"})]}),children:[v.jsx("p",{className:"modal-message",children:"You're about to save these changes as a new copy. Your original video will remain unchanged."}),v.jsx("p",{className:"modal-message",children:"A new copy of the video will be created with your trimmed segments."})]}),v.jsxs(Gi,{isOpen:ne,onClose:()=>{},title:"Processing Video",children:[v.jsx("div",{className:"modal-spinner",children:v.jsx("div",{className:"spinner"})}),v.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),v.jsxs(Gi,{isOpen:N,onClose:()=>K(!1),title:"Save Segments",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>K(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:Qe,children:"Save Segments"})]}),children:[v.jsxs("p",{className:"modal-message",children:["You're about to save each segment as a separate video file. There are ",J.length," segments to be saved."]}),v.jsx("p",{className:"modal-message",children:"Each segment will be saved with its name as the filename."})]}),v.jsx(Gi,{isOpen:Se,onClose:()=>qe(!1),title:"Video Processed Successfully",children:v.jsx("div",{className:"modal-choices",children:Ft&&v.jsxs("a",{href:Ft,className:"modal-choice-button centered-choice",children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),Zt==="save"?"Go to media page":Zt==="copy"?"Go to the media page, the new video will soon be there":"Go to the media page, the new video(s) will soon be there"]})})}),v.jsxs(Gi,{isOpen:dt,onClose:()=>je(!1),title:"Video Processing Error",children:[v.jsx("div",{className:"modal-error-icon",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),v.jsx("p",{className:"modal-message text-center",children:Xt}),v.jsx("div",{className:"modal-choices",children:v.jsxs("button",{onClick:()=>je(!1),className:"modal-choice-button centered-choice",children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]})]})},XS=({onSplit:T,onReset:_,onUndo:he,onRedo:Me,onPreview:ce,onPlay:Be,canUndo:d,canRedo:J,isPreviewMode:ge=!1,isPlaying:ee=!1})=>v.jsx("div",{className:"editing-tools-container",children:v.jsxs("div",{className:"flex-container single-row",children:[v.jsxs("div",{className:"button-group play-buttons-group",children:[v.jsx("button",{className:"button preview-button",onClick:ce,"data-tooltip":ge?"Stop preview playback":"Play only segments (skips gaps between segments)",style:{fontSize:"0.875rem"},children:ge?v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),v.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),v.jsx("span",{className:"full-text",children:"Stop Preview"}),v.jsx("span",{className:"short-text",children:"Stop"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),v.jsx("span",{className:"full-text",children:"Play Preview"}),v.jsx("span",{className:"short-text",children:"Preview"})]})}),!ge&&v.jsx("button",{className:"button play-button",onClick:Be,"data-tooltip":ee?"Pause video":"Play full video",style:{fontSize:"0.875rem"},children:ee?v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),v.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),v.jsx("span",{className:"full-text",children:"Pause"}),v.jsx("span",{className:"short-text",children:"Pause"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),v.jsx("span",{className:"full-text",children:"Play"}),v.jsx("span",{className:"short-text",children:"Play"})]})}),ge&&v.jsxs("div",{className:"preview-mode-message",children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"8"})]}),"Preview Mode"]})]}),v.jsxs("div",{className:"button-group secondary",children:[v.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":"Undo last action",disabled:!d,onClick:he,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M9 14 4 9l5-5"}),v.jsx("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11"})]}),v.jsx("span",{className:"button-text",children:"Undo"})]}),v.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":"Redo last undone action",disabled:!J,onClick:Me,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"m15 14 5-5-5-5"}),v.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),v.jsx("span",{className:"button-text",children:"Redo"})]}),v.jsx("div",{className:"divider"}),v.jsxs("button",{className:"button",onClick:_,"data-tooltip":"Reset to full video",children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})}),v.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})}),QS=({segments:T})=>{const _=[...T].sort((ce,Be)=>ce.startTime-Be.startTime),he=ce=>{const Be=new CustomEvent("delete-segment",{detail:{segmentId:ce}});document.dispatchEvent(Be)},Me=ce=>`segment-default-color segment-color-${ce%8+1}`;return v.jsxs("div",{className:"clip-segments-container",children:[v.jsx("h3",{className:"clip-segments-title",children:"Clip Segments"}),_.map((ce,Be)=>v.jsxs("div",{className:`segment-item ${Me(Be)}`,children:[v.jsxs("div",{className:"segment-content",children:[v.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${ce.thumbnail})`}}),v.jsxs("div",{className:"segment-info",children:[v.jsxs("div",{className:"segment-title",children:["Segment ",Be+1]}),v.jsxs("div",{className:"segment-time",children:[li(ce.startTime)," - ",li(ce.endTime)]}),v.jsxs("div",{className:"segment-duration",children:["Duration: ",GS(ce.endTime-ce.startTime)]})]})]}),v.jsx("div",{className:"segment-actions",children:v.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>he(ce.id),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})})})})]},ce.id)),_.length===0&&v.jsx("div",{className:"empty-message",children:"No segments created yet. Use the split button to create segments."})]})},KS=()=>{const T=xe.useRef(null),[_,he]=xe.useState(0),[Me,ce]=xe.useState(0),[Be,d]=xe.useState(!1),[J,ge]=xe.useState(!1),[ee,it]=xe.useState(!1),[P,R]=xe.useState(0),[ue,Ke]=xe.useState([]),[It,wt]=xe.useState(0),[Jt,ve]=xe.useState(0),[We,mt]=xe.useState([]),[te,Ee]=xe.useState(1),[fe,we]=xe.useState([]),[ft,bt]=xe.useState([]),[X,_e]=xe.useState(-1),[Le,Dt]=xe.useState(!1);xe.useEffect(()=>{var N;if(ft.length>0){const K=((N=ft[X])==null?void 0:N.action)||"";K!=="save"&&K!=="save_copy"&&K!=="save_segments"&&Dt(!0)}},[ft,X]),xe.useEffect(()=>{const N=K=>{if(Le){const ne="Your edits will get lost if you leave the page. Do you want to continue?";return K.preventDefault(),K.returnValue=ne,ne}};return window.addEventListener("beforeunload",N),()=>{window.removeEventListener("beforeunload",N)}},[Le]),xe.useEffect(()=>{const N=T.current;if(!N)return;const K=()=>{ce(N.duration),ve(N.duration),(async()=>{const je=await Cm(N,N.duration/2),Tt={id:1,name:"segment",startTime:0,endTime:N.duration,thumbnail:je},$t={trimStart:0,trimEnd:N.duration,splitPoints:[],clipSegments:[Tt]};bt([$t]),_e(0),we([Tt]);const Xt=6,Et=N.duration/Xt,Ft=[];for(let vn=0;vn<Xt;vn++){const Zt=Et*vn+Et/2,un=await Cm(N,Zt);Ft.push(un)}Ke(Ft)})()},ne=()=>{he(N.currentTime)},re=()=>{ee||d(!0)},Se=()=>{ee||d(!1)},qe=()=>{d(!1),N.currentTime=It};return N.addEventListener("loadedmetadata",K),N.addEventListener("timeupdate",ne),N.addEventListener("play",re),N.addEventListener("pause",Se),N.addEventListener("ended",qe),()=>{N.removeEventListener("loadedmetadata",K),N.removeEventListener("timeupdate",ne),N.removeEventListener("play",re),N.removeEventListener("pause",Se),N.removeEventListener("ended",qe)}},[ee]);const _t=()=>{const N=T.current;N&&(Be?N.pause():(N.currentTime>=Jt&&(N.currentTime=It),N.play().then(()=>{}).catch(K=>{console.error("Error starting playback:",K),d(!1)})))},zt=N=>{const K=T.current;if(!K)return;const ne=!K.paused,re=ee;if(K.currentTime=N,he(N),re){const Se=fe.find(qe=>N>=qe.startTime&&N<=qe.endTime);if(Se){const dt=[...fe].sort((je,Tt)=>je.startTime-Tt.startTime).findIndex(je=>je.id===Se.id);dt!==-1&&R(dt)}}(ne||re)&&(re&&it(!0),K.play().then(()=>{d(!0)}).catch(Se=>{console.error("Error resuming playback:",Se),d(!1)}))},oe=N=>{const K={trimStart:It,trimEnd:Jt,splitPoints:[...We],clipSegments:JSON.parse(JSON.stringify(fe)),action:N||"manual_save"},ne=ft[X],re=()=>{if(!ne||ne.clipSegments.length!==K.clipSegments.length)return!0;for(let dt=0;dt<K.clipSegments.length;dt++){const je=ne.clipSegments[dt],Tt=K.clipSegments[dt];if(!je||!Tt||Math.abs(je.startTime-Tt.startTime)>.001||Math.abs(je.endTime-Tt.endTime)>.001)return!0}return!1},Se=!ne||ne.trimStart!==K.trimStart||ne.trimEnd!==K.trimEnd||ne.splitPoints.length!==K.splitPoints.length||re(),qe=K.action!==void 0;if(Se||qe){const dt=X;bt(je=>dt<je.length-1?[...je.slice(0,dt+1),K]:[...je,K]),_e(je=>je+1)}};return xe.useEffect(()=>{const N=K=>{if(K.detail){const{time:ne,isStart:re,recordHistory:Se,action:qe}=K.detail;re?wt(ne):ve(ne),Se&&setTimeout(()=>{oe(qe||(re?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",N),()=>{document.removeEventListener("update-trim",N)}},[]),xe.useEffect(()=>{const N=re=>{if(re.detail&&re.detail.segments){const Se=re.detail.recordHistory!==!1,qe=re.detail.action||"update_segments";we(re.detail.segments),Se&&setTimeout(()=>{const dt=JSON.parse(JSON.stringify(re.detail.segments)),je={trimStart:It,trimEnd:Jt,splitPoints:[...We],clipSegments:dt,action:qe},Tt=X;bt($t=>Tt<$t.length-1?[...$t.slice(0,Tt+1),je]:[...$t,je]),_e($t=>$t+1)},20)}},K=async re=>{const Se=re;if(Se.detail&&typeof Se.detail.time=="number"&&typeof Se.detail.segmentId=="number"){const qe=Se.detail.time,dt=Se.detail.segmentId;zt(qe);const je=fe.find(Ft=>Ft.id===dt);if(!je||qe<=je.startTime||qe>=je.endTime)return;const Tt=[...fe],$t=Tt.findIndex(Ft=>Ft.id===dt);if($t===-1)return;Tt.splice($t,1);const Xt={id:Date.now(),name:`${je.name}-A`,startTime:je.startTime,endTime:qe,thumbnail:""},Et={id:Date.now()+1,name:`${je.name}-B`,startTime:qe,endTime:je.endTime,thumbnail:""};Tt.push(Xt,Et),Tt.sort((Ft,vn)=>Ft.startTime-vn.startTime),we(Tt),oe("split_segment")}},ne=async re=>{const Se=re;if(Se.detail&&typeof Se.detail.segmentId=="number"){const qe=Se.detail.segmentId,dt=fe.filter(je=>je.id!==qe);if(dt.length!==fe.length){if(dt.length===0&&T.current){const je={id:Date.now(),name:"segment",startTime:0,endTime:T.current.duration,thumbnail:""};wt(0),ve(T.current.duration),mt([]),we([je])}else we(dt);oe("delete_segment")}}};return document.addEventListener("update-segments",N),document.addEventListener("split-segment",K),document.addEventListener("delete-segment",ne),()=>{document.removeEventListener("update-segments",N),document.removeEventListener("split-segment",K),document.removeEventListener("delete-segment",ne)}},[fe,Me]),xe.useEffect(()=>{if(!ee||!T.current)return;const N=[...fe].sort((ne,re)=>ne.startTime-re.startTime),K=()=>{if(!ee||!T.current)return;const ne=N[P];if(!ne)return;const re=T.current.currentTime;if(re<ne.startTime){T.current.currentTime=ne.startTime;return}if(re>=ne.endTime-.05)if(P<N.length-1){const Se=N[P+1];T.current.currentTime=Se.startTime,R(P+1),Re.debug("Moving to next segment in preview:",Se.name,"from",B(ne.endTime),"to",B(Se.startTime)),T.current.play().catch(qe=>{console.error("Error continuing preview playback:",qe)})}else T.current.currentTime=N[0].startTime,R(0),T.current.play().catch(Se=>{console.error("Error restarting preview playback:",Se)})};return T.current.addEventListener("timeupdate",K),()=>{T.current&&T.current.removeEventListener("timeupdate",K)}},[ee,P,fe]),{videoRef:T,currentTime:_,duration:Me,isPlaying:Be,isPreviewMode:ee,thumbnails:ue,trimStart:It,trimEnd:Jt,splitPoints:We,zoomLevel:te,clipSegments:fe,historyPosition:X,history:ft,isMuted:J,hasUnsavedChanges:Le,playPauseVideo:_t,seekVideo:zt,handleTrimStartChange:N=>{wt(N),oe("adjust_trim_start")},handleTrimEndChange:N=>{ve(N),oe("adjust_trim_end")},handleSplit:async()=>{if(T.current&&!We.includes(_)){const N=[...We,_].sort((re,Se)=>re-Se);mt(N);const K=[];let ne=0;for(let re=0;re<=N.length;re++){const Se=re<N.length?N[re]:Me;ne<Se&&(K.push({id:Date.now()+re,name:`Segment ${re+1}`,startTime:ne,endTime:Se,thumbnail:""}),ne=Se)}we(K),oe("create_split_points")}},handleReset:async()=>{if(wt(0),ve(Me),mt([]),!T.current)return;const N={id:Date.now(),name:"segment",startTime:0,endTime:Me,thumbnail:""};we([N]),oe("reset_all")},handleUndo:()=>{if(X>0){const N=ft[X-1];Re.debug(`** UNDO ** to position ${X-1}, action: ${N.action}, segments: ${N.clipSegments.length}`),Re.debug("Segment details after undo:",N.clipSegments.map(K=>`ID: ${K.id}, Time: ${B(K.startTime)} - ${B(K.endTime)}`)),wt(N.trimStart),ve(N.trimEnd),mt([...N.splitPoints]),we(JSON.parse(JSON.stringify(N.clipSegments))),_e(X-1)}},handleRedo:()=>{if(X<ft.length-1){const N=ft[X+1];Re.debug(`** REDO ** to position ${X+1}, action: ${N.action}, segments: ${N.clipSegments.length}`),Re.debug("Segment details after redo:",N.clipSegments.map(K=>`ID: ${K.id}, Time: ${B(K.startTime)} - ${B(K.endTime)}`)),wt(N.trimStart),ve(N.trimEnd),mt([...N.splitPoints]),we(JSON.parse(JSON.stringify(N.clipSegments))),_e(X+1)}},handlePreview:()=>{const N=T.current;if(!N||fe.length===0)return;if(ee){it(!1),N.pause(),d(!1);return}Be&&N.pause();const ne=[...fe].sort((re,Se)=>re.startTime-Se.startTime);ne.length!==0&&(it(!0),R(0),N.currentTime=ne[0].startTime,setTimeout(()=>{T.current&&T.current.play().then(()=>{d(!0)}).catch(re=>{console.error("Error starting preview:",re),it(!1),d(!1)})},50))},handlePlay:()=>{const N=T.current;if(N){if(ee){it(!1),d(!1),N.pause();return}Be?(N.pause(),d(!1)):N.play().then(()=>{d(!0)}).catch(K=>{console.error("Error playing video:",K),d(!1)})}},handleZoomChange:N=>{Ee(N)},toggleMute:()=>{const N=T.current;N&&(N.muted=!N.muted,ge(!J))},handleSave:()=>{const K={type:"save",segments:[...fe].sort((ne,re)=>ne.startTime-re.startTime).map(ne=>({startTime:B(ne.startTime),endTime:B(ne.endTime)}))};alert(JSON.stringify(K,null,2)),Dt(!1),oe("save")},handleSaveACopy:()=>{const K={type:"save_as_a_copy",segments:[...fe].sort((ne,re)=>ne.startTime-re.startTime).map(ne=>({startTime:B(ne.startTime),endTime:B(ne.endTime)}))};alert(JSON.stringify(K,null,2)),Dt(!1),oe("save_copy")},handleSaveSegments:()=>{const K={type:"save_segments",segments:[...fe].sort((ne,re)=>ne.startTime-re.startTime).map(ne=>({name:ne.name,startTime:B(ne.startTime),endTime:B(ne.endTime)}))};alert(JSON.stringify(K,null,2)),Dt(!1),oe("save_segments")}}},JS=()=>{const{videoRef:T,currentTime:_,duration:he,isPlaying:Me,isPreviewMode:ce,isMuted:Be,thumbnails:d,trimStart:J,trimEnd:ge,splitPoints:ee,zoomLevel:it,clipSegments:P,historyPosition:R,history:ue,hasUnsavedChanges:Ke,playPauseVideo:It,seekVideo:wt,handleTrimStartChange:Jt,handleTrimEndChange:ve,handleSplit:We,handleReset:mt,handleUndo:te,handleRedo:Ee,handlePreview:fe,handlePlay:we,handleZoomChange:ft,toggleMute:bt,handleSave:X,handleSaveACopy:_e,handleSaveSegments:Le}=KS();return v.jsx("div",{className:"bg-background min-h-screen",children:v.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[v.jsx(WS,{videoRef:T,currentTime:_,duration:he,isPlaying:Me,isMuted:Be,onPlayPause:It,onSeek:wt,onToggleMute:bt}),v.jsx(XS,{onSplit:We,onReset:mt,onUndo:te,onRedo:Ee,onPreview:fe,onPlay:we,isPreviewMode:ce,isPlaying:Me,canUndo:R>0,canRedo:R<ue.length-1}),v.jsx(IS,{currentTime:_,duration:he,thumbnails:d,trimStart:J,trimEnd:ge,splitPoints:ee,zoomLevel:it,clipSegments:P,onTrimStartChange:Jt,onTrimEndChange:ve,onZoomChange:ft,onSeek:wt,videoRef:T,onSave:X,onSaveACopy:_e,onSaveSegments:Le,isPreviewMode:ce,hasUnsavedChanges:Ke}),v.jsx(QS,{segments:P})]})})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""});const Mm=()=>{const T=document.getElementById("video-editor-trim-root");T&&Sm(T).render(v.jsx(JS,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Mm):Mm()})();
//# sourceMappingURL=video-editor.js.map