Files
mediacms/static/video_editor/video-editor.js
T

204 lines
400 KiB
JavaScript
Raw Normal View History

(function(){"use strict";var dm={exports:{}},Kc={exports:{}},al={exports:{}};al.exports;var vm;function z0(){return vm||(vm=1,function(w,L){/**
2025-06-11 14:48:30 +03:00
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var me="18.3.1",Ee=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),he=Symbol.for("react.provider"),te=Symbol.for("react.context"),bt=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Oe=Symbol.for("react.lazy"),zt=Symbol.for("react.offscreen"),qt=Symbol.iterator,St="@@iterator";function Pe(s){if(s===null||typeof s!="object")return null;var m=qt&&s[qt]||s[St];return typeof m=="function"?m:null}var _e={current:null},ot={transition:null},_={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ne={current:null},De={},Vt=null;function Me(s){Vt=s}De.setExtraStackFrame=function(s){Vt=s},De.getCurrentStack=null,De.getStackAddendum=function(){var s="";Vt&&(s+=Vt);var m=De.getCurrentStack;return m&&(s+=m()||""),s};var pe=!1,nt=!1,oe=!1,Le=!1,Ke=!1,le={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:ot,ReactCurrentOwner:ne};le.ReactDebugCurrentFrame=De,le.ReactCurrentActQueue=_;function W(s){{for(var m=arguments.length,k=new Array(m>1?m-1:0),N=1;N<m;N++)k[N-1]=arguments[N];Ye("warn",s,k)}}function q(s){{for(var m=arguments.length,k=new Array(m>1?m-1:0),N=1;N<m;N++)k[N-1]=arguments[N];Ye("error",s,k)}}function Ye(s,m,k){{var N=le.ReactDebugCurrentFrame,X=N.getStackAddendum();X!==""&&(m+="%s",k=k.concat([X]));var Ne=k.map(function(Se){return String(Se)});Ne.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Ne)}}var Fe={};function at(s,m){{var k=s.constructor,N=k&&(k.displayName||k.name)||"ReactClass",X=N+"."+m;if(Fe[X])return;q("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,N),Fe[X]=!0}}var ct={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,k){at(s,"forceUpdate")},enqueueReplaceState:function(s,m,k,N){at(s,"replaceState")},enqueueSetState:function(s,m,k,N){at(s,"setState")}},We=Object.assign,Ve={};Object.freeze(Ve);function Ue(s,m,k){this.props=s,this.context=m,this.refs=Ve,this.updater=k||ct}Ue.prototype.isReactComponent={},Ue.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")},Ue.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var cn={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)."]},et=function(s,m){Object.defineProperty(Ue.prototype,s,{get:function(){W("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var Ht in cn)cn.hasOwnProperty(Ht)&&et(Ht,cn[Ht])}function gt(){}gt.prototype=Ue.prototype;function Qe(s,m,k){this.props=s,this.context=m,this.refs=Ve,this.updater=k||ct}var Gt=Qe.prototype=new gt;Gt.constructor=Qe,We(Gt,Ue.prototype),Gt.isPureReactComponent=!0;function rn(){var s={current:null};return Object.seal(s),s}var fn=Array.isArray;function F(s){return fn(s)}function G(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,k=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return k}}function Te(s){try{return Ce(s),!1}catch{return!0}}function Ce(s){return""+s}function Ze(s){if(Te(s))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",G(s)),Ce(s)}function st(s,m,k){var N=s.displayName;if(N)return N;var X=m.displayN
2025-06-11 14:48:30 +03:00
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,X),"default"in X||q(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2025-06-11 14:48:30 +03:00
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,X),X.default}else throw s._result}function x(s){var m={_status:ma,_result:s},k={$$typeof:Oe,_payload:m,_init:T};{var N,X;Object.defineProperties(k,{defaultProps:{configurable:!0,get:function(){return N},set:function(Ne){q("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),N=Ne,Object.defineProperty(k,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return X},set:function(Ne){q("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),X=Ne,Object.defineProperty(k,"propTypes",{enumerable:!0})}}})}return k}function O(s){s!=null&&s.$$typeof===K?q("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?q("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&q("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)&&q("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:bt,render:s};{var k;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return k},set:function(N){k=N,!s.name&&!s.displayName&&(s.displayName=N)}})}return m}var c;c=Symbol.for("react.module.reference");function y(s){return!!(typeof s=="string"||typeof s=="function"||s===Re||s===Q||Ke||s===d||s===I||s===H||Le||s===zt||pe||nt||oe||typeof s=="object"&&s!==null&&(s.$$typeof===Oe||s.$$typeof===K||s.$$typeof===he||s.$$typeof===te||s.$$typeof===bt||s.$$typeof===c||s.getModuleId!==void 0))}function S(s,m){y(s)||q("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var k={$$typeof:K,type:s,compare:m===void 0?null:m};{var N;Object.defineProperty(k,"displayName",{enumerable:!1,configurable:!0,get:function(){return N},set:function(X){N=X,!s.name&&!s.displayName&&(s.displayName=X)}})}return k}function A(){var s=_e.current;return s===null&&q(`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:
2025-06-11 14:48:30 +03:00
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 ve(s){var m=A();if(s._context!==void 0){var k=s._context;k.Consumer===s?q("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):k.Provider===s&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function z(s){var m=A();return m.useState(s)}function ue(s,m,k){var N=A();return N.useReducer(s,m,k)}function ye(s){var m=A();return m.useRef(s)}function ze(s,m){var k=A();return k.useEffect(s,m)}function it(s,m){var k=A();return k.useInsertionEffect(s,m)}function Ft(s,m){var k=A();return k.useLayoutEffect(s,m)}function nn(s,m){var k=A();return k.useCallback(s,m)}function Zt(s,m){var k=A();return k.useMemo(s,m)}function Pn(s,m,k){var N=A();return N.useImperativeHandle(s,m,k)}function ft(s,m){{var k=A();return k.useDebugValue(s,m)}}function be(){var s=A();return s.useTransition()}function Rn(s){var m=A();return m.useDeferredValue(s)}function Ua(){var s=A();return s.useId()}function il(s,m,k){var N=A();return N.useSyncExternalStore(s,m,k)}var Ha=0,ha,ya,$r,yi,un,_t,za;function oa(){}oa.__reactDisabledLog=!0;function hr(){{if(Ha===0){ha=console.log,ya=console.info,$r=console.warn,yi=console.error,un=console.group,_t=console.groupCollapsed,za=console.groupEnd;var s={configurable:!0,enumerable:!0,value:oa,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Ha++}}function nr(){{if(Ha--,Ha===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:We({},s,{value:ha}),info:We({},s,{value:ya}),warn:We({},s,{value:$r}),error:We({},s,{value:yi}),group:We({},s,{value:un}),groupCollapsed:We({},s,{value:_t}),groupEnd:We({},s,{value:za})})}Ha<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var gi=le.ReactCurrentDispatcher,Pr;function no(s,m,k){{if(Pr===void 0)try{throw Error()}catch(X){var N=X.stack.trim().match(/\n( *(at )?)/);Pr=N&&N[1]||""}return`
`+Pr+s}}var bi=!1,ao;{var ol=typeof WeakMap=="function"?WeakMap:Map;ao=new ol}function Yu(s,m){if(!s||bi)return"";{var k=ao.get(s);if(k!==void 0)return k}var N;bi=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=gi.current,gi.current=null,hr();try{if(m){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(dn){N=dn}Reflect.construct(s,[],Se)}else{try{Se.call()}catch(dn){N=dn}s.call(Se.prototype)}}else{try{throw Error()}catch(dn){N=dn}s()}}catch(dn){if(dn&&N&&typeof dn.stack=="string"){for(var Ie=dn.stack.split(`
`),dt=N.stack.split(`
`),At=Ie.length-1,Yt=dt.length-1;At>=1&&Yt>=0&&Ie[At]!==dt[Yt];)Yt--;for(;At>=1&&Yt>=0;At--,Yt--)if(Ie[At]!==dt[Yt]){if(At!==1||Yt!==1)do if(At--,Yt--,Yt<0||Ie[At]!==dt[Yt]){var Wt=`
`+Ie[At].replace(" at new "," at ");return s.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ao.set(s,Wt),Wt}while(At>=1&&Yt>=0);break}}}finally{bi=!1,gi.current=Ne,nr(),Error.prepareStackTrace=X}var lt=s?s.displayName||s.name:"",en=lt?no(lt):"";return typeof s=="function"&&ao.set(s,en),en}function ll(s,m,k){return Yu(s,!1)}function af(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function Si(s,m,k){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return no(s);switch(s){case I:return no("Suspense");case H:return no("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case bt:return ll(s.render);case K:return Si(s.type,m,k);case Oe:{var N=s,X=N._payload,Ne=N._init;try{return Si(Ne(X),m,k)}catch{}}}return""}var Wu={},ul=le.ReactDebugCurrentFrame;function xt(s){if(s){var m=s._owner,k=Si(s.type,s._source,m?m.type:null);ul.setExtraStackFrame(k)}else ul.setExtraStackFrame(null)}function rf(s,m,k,N,X){{var Ne=Function.call.bind(yt);for(var Se in s)if(Ne(s,Se)){var Ie=void 0;try{if(typeof s[Se]!="function"){var dt=Error((N||"React class")+": "+k+" type `"+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[Se]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw dt.name="Invariant Violation",dt}Ie=s[Se](m,Se,N,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){Ie=At}Ie&&!(Ie instanceof Error)&&(xt(X),q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",N||"React class",k,Se,typeof Ie),xt(null)),Ie instanceof Error&&!(Ie.message in Wu)&&(Wu[Ie.message]=!0,xt(X),q("Failed %s type: %s",k,Ie.message),xt(null))}}}function yr(s){if(s){var m=s._owner,k=Si(s.type,s._source,m?m.type:null);Me(k)}else Me(null)}var Xe;Xe=!1;function sl(){if(ne.current){var s=Ge(ne.current.type);if(s)return`
2025-06-11 14:48:30 +03:00
Check the render method of \``+s+"`."}return""}function Qn(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),k=s.lineNumber;return`
2025-06-11 14:48:30 +03:00
Check your code at `+m+":"+k+"."}return""}function Ti(s){return s!=null?Qn(s.__source):""}var Yr={};function of(s){var m=sl();if(!m){var k=typeof s=="string"?s:s.displayName||s.name;k&&(m=`
2025-06-11 14:48:30 +03:00
Check the top-level render call using <`+k+">.")}return m}function Dn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var k=of(m);if(!Yr[k]){Yr[k]=!0;var N="";s&&s._owner&&s._owner!==ne.current&&(N=" It was passed a child from "+Ge(s._owner.type)+"."),yr(s),q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,N),yr(null)}}}function Jt(s,m){if(typeof s=="object"){if(F(s))for(var k=0;k<s.length;k++){var N=s[k];Xt(N)&&Dn(N,m)}else if(Xt(s))s._store&&(s._store.validated=!0);else if(s){var X=Pe(s);if(typeof X=="function"&&X!==s.entries)for(var Ne=X.call(s),Se;!(Se=Ne.next()).done;)Xt(Se.value)&&Dn(Se.value,m)}}}function Iu(s){{var m=s.type;if(m==null||typeof m=="string")return;var k;if(typeof m=="function")k=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===bt||m.$$typeof===K))k=m.propTypes;else return;if(k){var N=Ge(m);rf(k,s.props,"prop",N,s)}else if(m.PropTypes!==void 0&&!Xe){Xe=!0;var X=Ge(m);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ra(s){{for(var m=Object.keys(s.props),k=0;k<m.length;k++){var N=m[k];if(N!=="children"&&N!=="key"){yr(s),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),yr(null);break}}s.ref!==null&&(yr(s),q("Invalid attribute `ref` supplied to `React.Fragment`."),yr(null))}}function Kn(s,m,k){var N=y(s);if(!N){var X="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ne=Ti(m);Ne?X+=Ne:X+=sl();var Se;s===null?Se="null":F(s)?Se="array":s!==void 0&&s.$$typeof===Ee?(Se="<"+(Ge(s.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof s,q("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,X)}var Ie=Je.apply(this,arguments);if(Ie==null)return Ie;if(N)for(var dt=2;dt<arguments.length;dt++)Jt(arguments[dt],s);return s===Re?Ra(Ie):Iu(Ie),Ie}var Fa=!1;function lf(s){var m=Kn.bind(null,s);return m.type=s,Fa||(Fa=!0,W("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 W("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function cl(s,m,k){for(var N=Bt.apply(this,arguments),X=2;X<arguments.length;X++)Jt(arguments[X],N.type);return Iu(N),N}function qu(s,m){var k=ot.transition;ot.transition={};var N=ot.transition;ot.transition._updatedFibers=new Set;try{s()}finally{if(ot.transition=k,k===null&&N._updatedFibers){var X=N._updatedFibers.size;X>10&&W("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),N._updatedFibers.clear()}}}var fl=!1,ro=null;function uf(s){if(ro===null)try{var m=("require"+Math.random()).slice(0,7),k=w&&w[m];ro=k.call(w,"timers").setImmediate}catch{ro=function(X){fl===!1&&(fl=!0,typeof MessageChannel>"u"&&q("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 Ne=new MessageChannel;Ne.port1.onmessage=X,Ne.port2.postMessage(void 0)}}return ro(s)}var Wr=0,Ei=!1;function dl(s){{var m=Wr;Wr++,_.current===null&&(_.current=[]);var k=_.isBatchingLegacy,N;try{if(_.isBatchingLegac
2025-06-11 14:48:30 +03:00
* @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 w=Zc(),L=Symbol.for("react.element"),me=Symbol.for("react.portal"),Ee=Symbol.for("react.fragment"),fe=Symbol.for("react.strict_mode"),Re=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),Q=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),bt=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),Oe=Symbol.iterator,zt="@@iterator";function qt(c){if(c===null||typeof c!="object")return null;var y=Oe&&c[Oe]||c[zt];return typeof y=="function"?y:null}var St=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Pe(c){{for(var y=arguments.length,S=new Array(y>1?y-1:0),A=1;A<y;A++)S[A-1]=arguments[A];_e("error",c,S)}}function _e(c,y,S){{var A=St.ReactDebugCurrentFrame,ve=A.getStackAddendum();ve!==""&&(y+="%s",S=S.concat([ve]));var z=S.map(function(ue){return String(ue)});z.unshift("Warning: "+y),Function.prototype.apply.call(console[c],console,z)}}var ot=!1,_=!1,ne=!1,De=!1,Vt=!1,Me;Me=Symbol.for("react.module.reference");function pe(c){return!!(typeof c=="string"||typeof c=="function"||c===Ee||c===Re||Vt||c===fe||c===te||c===bt||De||c===K||ot||_||ne||typeof c=="object"&&c!==null&&(c.$$typeof===H||c.$$typeof===I||c.$$typeof===d||c.$$typeof===Q||c.$$typeof===he||c.$$typeof===Me||c.getModuleId!==void 0))}function nt(c,y,S){var A=c.displayName;if(A)return A;var ve=y.displayName||y.name||"";return ve!==""?S+"("+ve+")":S}function oe(c){return c.displayName||"Context"}function Le(c){if(c==null)return null;if(typeof c.tag=="number"&&Pe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case Ee:return"Fragment";case me:return"Portal";case Re:return"Profiler";case fe:return"StrictMode";case te:return"Suspense";case bt:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Q:var y=c;return oe(y)+".Consumer";case d:var S=c;return oe(S._context)+".Provider";case he:return nt(c,c.render,"ForwardRef");case I:var A=c.displayName||null;return A!==null?A:Le(c.type)||"Memo";case H:{var ve=c,z=ve._payload,ue=ve._init;try{return Le(ue(z))}catch{return null}}}return null}var Ke=Object.assign,le=0,W,q,Ye,Fe,at,ct,We;function Ve(){}Ve.__reactDisabledLog=!0;function Ue(){{if(le===0){W=console.log,q=console.info,Ye=console.warn,Fe=console.error,at=console.group,ct=console.groupCollapsed,We=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Ve,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}le++}}function cn(){{if(le--,le===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},c,{value:W}),info:Ke({},c,{value:q}),warn:Ke({},c,{value:Ye}),error:Ke({},c,{value:Fe}),group:Ke({},c,{value:at}),groupCollapsed:Ke({},c,{value:ct}),groupEnd:Ke({},c,{value:We})})}le<0&&Pe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var et=St.ReactCurrentDispatcher,Ht;function gt(c,y,S){{if(Ht===void 0)try{throw Error()}catch(ve){var A=ve.stack.trim().match(/\n( *(at )?)/);Ht=A&&A[1]||""}return`
`+Ht+c}}var Qe=!1,Gt;{var rn=typeof WeakMap=="function"?WeakMap:Map;Gt=new rn}function fn(c,y){if(!c||Qe)return"";{var S=Gt.get(c);if(S!==void 0)return S}var A;Qe=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var z;z=et.current,et.current=null,Ue();try{if(y){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(ft){A=ft}Reflect.construct(c,[],ue)}else{try{ue.call()}catch(ft){A=ft}c.call(ue.prototype)}}else{try{throw Error()}catch(ft){A=ft}c()}}catch(ft){if(ft&&A&&typeof ft.stack=="string"){for(var ye=ft.stack.split(`
`),ze=A.stack.split(`
`),it=ye.length-1,Ft=ze.length-1;it>=1&&Ft>=0&&ye[it]!==ze[Ft];)Ft--;for(;it>=1&&Ft>=0;it--,Ft--)if(ye[it]!==ze[Ft]){if(it!==1||Ft!==1)do if(it--,Ft--,Ft<0||ye[it]!==ze[Ft]){var nn=`
`+ye[it].replace(" at new "," at ");return c.displayName&&nn.includes("<anonymous>")&&(nn=nn.replace("<anonymous>",c.displayName)),typeof c=="function"&&Gt.set(c,nn),nn}while(it>=1&&Ft>=0);break}}}finally{Qe=!1,et.current=z,cn(),Error.prepareStackTrace=ve}var Zt=c?c.displayName||c.name:"",Pn=Zt?gt(Zt):"";return typeof c=="function"&&Gt.set(c,Pn),Pn}function F(c,y,S){return fn(c,!1)}function G(c){var y=c.prototype;return!!(y&&y.isReactComponent)}function Te(c,y,S){if(c==null)return"";if(typeof c=="function")return fn(c,G(c));if(typeof c=="string")return gt(c);switch(c){case te:return gt("Suspense");case bt:return gt("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case he:return F(c.render);case I:return Te(c.type,y,S);case H:{var A=c,ve=A._payload,z=A._init;try{return Te(z(ve),y,S)}catch{}}}return""}var Ce=Object.prototype.hasOwnProperty,Ze={},st=St.ReactDebugCurrentFrame;function ht(c){if(c){var y=c._owner,S=Te(c.type,c._source,y?y.type:null);st.setExtraStackFrame(S)}else st.setExtraStackFrame(null)}function Ge(c,y,S,A,ve){{var z=Function.call.bind(Ce);for(var ue in c)if(z(c,ue)){var ye=void 0;try{if(typeof c[ue]!="function"){var ze=Error((A||"React class")+": "+S+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ze.name="Invariant Violation",ze}ye=c[ue](y,ue,A,S,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(it){ye=it}ye&&!(ye instanceof Error)&&(ht(ve),Pe("%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",S,ue,typeof ye),ht(null)),ye instanceof Error&&!(ye.message in Ze)&&(Ze[ye.message]=!0,ht(ve),Pe("Failed %s type: %s",S,ye.message),ht(null))}}}var yt=Array.isArray;function rt(c){return yt(c)}function tn(c){{var y=typeof Symbol=="function"&&Symbol.toStringTag,S=y&&c[Symbol.toStringTag]||c.constructor.name||"Object";return S}}function mn(c){try{return Ot(c),!1}catch{return!0}}function Ot(c){return""+c}function Lt(c){if(mn(c))return Pe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tn(c)),Ot(c)}var hn=St.ReactCurrentOwner,ia={key:!0,ref:!0,__self:!0,__source:!0},va,Z;function xe(c){if(Ce.call(c,"ref")){var y=Object.getOwnPropertyDescriptor(c,"ref").get;if(y&&y.isReactWarning)return!1}return c.ref!==void 0}function Je(c){if(Ce.call(c,"key")){var y=Object.getOwnPropertyDescriptor(c,"key").get;if(y&&y.isReactWarning)return!1}return c.key!==void 0}function Rt(c,y){typeof c.ref=="string"&&hn.current}function Bt(c,y){{var S=function(){va||(va=!0,Pe("%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)",y))};S.isReactWarning=!0,Object.defineProperty(c,"key",{get:S,configurable:!0})}}function Xt(c,y){{var S=function(){Z||(Z=!0,Pe("%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)",y))};S.isReactWarning=!0,Object.defineProperty(c,"ref",{get:S,configurable:!0})}}var Qt=function(c,y,S,A,ve,z,ue){var ye={$$typeof:L,type:c,key:y,ref:S,props:ue,_owner:z};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:A}),Object.defineProperty(ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(ye.props),Object.freeze(ye)),ye};function wn(c,y,S,A,ve){{var z,ue={},ye=null,ze=null;S!==void 0&&(Lt(S
2025-06-11 14:48:30 +03:00
Check the render method of \``+c+"`."}return""}}function tr(c){return""}var Fr={};function Vr(c){{var y=pa();if(!y){var S=typeof c=="string"?c:c.displayName||c.name;S&&(y=`
2025-06-11 14:48:30 +03:00
Check the top-level render call using <`+S+">.")}return y}}function wa(c,y){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var S=Vr(y);if(Fr[S])return;Fr[S]=!0;var A="";c&&c._owner&&c._owner!==Pt.current&&(A=" It was passed a child from "+Le(c._owner.type)+"."),Dt(c),Pe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',S,A),Dt(null)}}function ja(c,y){{if(typeof c!="object")return;if(rt(c))for(var S=0;S<c.length;S++){var A=c[S];$n(A)&&wa(A,y)}else if($n(c))c._store&&(c._store.validated=!0);else if(c){var ve=qt(c);if(typeof ve=="function"&&ve!==c.entries)for(var z=ve.call(c),ue;!(ue=z.next()).done;)$n(ue.value)&&wa(ue.value,y)}}}function Br(c){{var y=c.type;if(y==null||typeof y=="string")return;var S;if(typeof y=="function")S=y.propTypes;else if(typeof y=="object"&&(y.$$typeof===he||y.$$typeof===I))S=y.propTypes;else return;if(S){var A=Le(y);Ge(S,c.props,"prop",A,c)}else if(y.PropTypes!==void 0&&!er){er=!0;var ve=Le(y);Pe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof y.getDefaultProps=="function"&&!y.getDefaultProps.isReactClassApproved&&Pe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ma(c){{for(var y=Object.keys(c.props),S=0;S<y.length;S++){var A=y[S];if(A!=="children"&&A!=="key"){Dt(c),Pe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),Dt(null);break}}c.ref!==null&&(Dt(c),Pe("Invalid attribute `ref` supplied to `React.Fragment`."),Dt(null))}}var h={};function B(c,y,S,A,ve,z){{var ue=pe(c);if(!ue){var ye="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(ye+=" 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 ze=tr();ze?ye+=ze:ye+=pa();var it;c===null?it="null":rt(c)?it="array":c!==void 0&&c.$$typeof===L?(it="<"+(Le(c.type)||"Unknown")+" />",ye=" Did you accidentally export a JSX literal instead of a component?"):it=typeof c,Pe("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",it,ye)}var Ft=wn(c,y,S,ve,z);if(Ft==null)return Ft;if(ue){var nn=y.children;if(nn!==void 0)if(A)if(rt(nn)){for(var Zt=0;Zt<nn.length;Zt++)ja(nn[Zt],c);Object.freeze&&Object.freeze(nn)}else Pe("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 ja(nn,c)}if(Ce.call(y,"key")){var Pn=Le(c),ft=Object.keys(y).filter(function(Ua){return Ua!=="key"}),be=ft.length>0?"{key: someKey, "+ft.join(": ..., ")+": ...}":"{key: someKey}";if(!h[Pn+be]){var Rn=ft.length>0?"{"+ft.join(": ..., ")+": ...}":"{}";Pe(`A props object containing a "key" prop is being spread into JSX:
2025-06-11 14:48:30 +03:00
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,be,Pn,Rn,Pn),h[Pn+be]=!0}}return c===Ee?ma(Ft):Br(Ft),Ft}}function D(c,y,S){return B(c,y,S,!0)}function T(c,y,S){return B(c,y,S,!1)}var x=T,O=D;rl.Fragment=Ee,rl.jsx=x,rl.jsxs=O}(),rl}dm.exports=F0();var p=dm.exports,hm={exports:{}},Jc={exports:{}},ef={},ym;function V0(){return ym||(ym=1,function(w){/**
2025-06-11 14:48:30 +03:00
* @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 L=!1,me=5;function Ee(Z,xe){var Je=Z.length;Z.push(xe),d(Z,xe,Je)}function fe(Z){return Z.length===0?null:Z[0]}function Re(Z){if(Z.length===0)return null;var xe=Z[0],Je=Z.pop();return Je!==xe&&(Z[0]=Je,Q(Z,Je,0)),xe}function d(Z,xe,Je){for(var Rt=Je;Rt>0;){var Bt=Rt-1>>>1,Xt=Z[Bt];if(he(Xt,xe)>0)Z[Bt]=xe,Z[Rt]=Xt,Rt=Bt;else return}}function Q(Z,xe,Je){for(var Rt=Je,Bt=Z.length,Xt=Bt>>>1;Rt<Xt;){var Qt=(Rt+1)*2-1,wn=Z[Qt],Pt=Qt+1,Tt=Z[Pt];if(he(wn,xe)<0)Pt<Bt&&he(Tt,wn)<0?(Z[Rt]=Tt,Z[Pt]=xe,Rt=Pt):(Z[Rt]=wn,Z[Qt]=xe,Rt=Qt);else if(Pt<Bt&&he(Tt,xe)<0)Z[Rt]=Tt,Z[Pt]=xe,Rt=Pt;else return}}function he(Z,xe){var Je=Z.sortIndex-xe.sortIndex;return Je!==0?Je:Z.id-xe.id}var te=1,bt=2,I=3,H=4,K=5;function Oe(Z,xe){}var zt=typeof performance=="object"&&typeof performance.now=="function";if(zt){var qt=performance;w.unstable_now=function(){return qt.now()}}else{var St=Date,Pe=St.now();w.unstable_now=function(){return St.now()-Pe}}var _e=1073741823,ot=-1,_=250,ne=5e3,De=1e4,Vt=_e,Me=[],pe=[],nt=1,oe=null,Le=I,Ke=!1,le=!1,W=!1,q=typeof setTimeout=="function"?setTimeout:null,Ye=typeof clearTimeout=="function"?clearTimeout:null,Fe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function at(Z){for(var xe=fe(pe);xe!==null;){if(xe.callback===null)Re(pe);else if(xe.startTime<=Z)Re(pe),xe.sortIndex=xe.expirationTime,Ee(Me,xe);else return;xe=fe(pe)}}function ct(Z){if(W=!1,at(Z),!le)if(fe(Me)!==null)le=!0,Ot(We);else{var xe=fe(pe);xe!==null&&Lt(ct,xe.startTime-Z)}}function We(Z,xe){le=!1,W&&(W=!1,hn()),Ke=!0;var Je=Le;try{var Rt;if(!L)return Ve(Z,xe)}finally{oe=null,Le=Je,Ke=!1}}function Ve(Z,xe){var Je=xe;for(at(Je),oe=fe(Me);oe!==null&&!(oe.expirationTime>Je&&(!Z||st()));){var Rt=oe.callback;if(typeof Rt=="function"){oe.callback=null,Le=oe.priorityLevel;var Bt=oe.expirationTime<=Je,Xt=Rt(Bt);Je=w.unstable_now(),typeof Xt=="function"?oe.callback=Xt:oe===fe(Me)&&Re(Me),at(Je)}else Re(Me);oe=fe(Me)}if(oe!==null)return!0;var Qt=fe(pe);return Qt!==null&&Lt(ct,Qt.startTime-Je),!1}function Ue(Z,xe){switch(Z){case te:case bt:case I:case H:case K:break;default:Z=I}var Je=Le;Le=Z;try{return xe()}finally{Le=Je}}function cn(Z){var xe;switch(Le){case te:case bt:case I:xe=I;break;default:xe=Le;break}var Je=Le;Le=xe;try{return Z()}finally{Le=Je}}function et(Z){var xe=Le;return function(){var Je=Le;Le=xe;try{return Z.apply(this,arguments)}finally{Le=Je}}}function Ht(Z,xe,Je){var Rt=w.unstable_now(),Bt;if(typeof Je=="object"&&Je!==null){var Xt=Je.delay;typeof Xt=="number"&&Xt>0?Bt=Rt+Xt:Bt=Rt}else Bt=Rt;var Qt;switch(Z){case te:Qt=ot;break;case bt:Qt=_;break;case K:Qt=Vt;break;case H:Qt=De;break;case I:default:Qt=ne;break}var wn=Bt+Qt,Pt={id:nt++,callback:xe,priorityLevel:Z,startTime:Bt,expirationTime:wn,sortIndex:-1};return Bt>Rt?(Pt.sortIndex=Bt,Ee(pe,Pt),fe(Me)===null&&Pt===fe(pe)&&(W?hn():W=!0,Lt(ct,Bt-Rt))):(Pt.sortIndex=wn,Ee(Me,Pt),!le&&!Ke&&(le=!0,Ot(We))),Pt}function gt(){}function Qe(){!le&&!Ke&&(le=!0,Ot(We))}function Gt(){return fe(Me)}function rn(Z){Z.callback=null}function fn(){return Le}var F=!1,G=null,Te=-1,Ce=me,Ze=-1;function st(){var Z=w.unstable_now()-Ze;return!(Z<Ce)}function ht(){}function Ge(Z){if(Z<0||Z>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Z>0?Ce=Math.floor(1e3/Z):Ce=me}var yt=function(){if(G!==null){var Z=w.unstable_now();Ze=Z;var xe=!0,Je=!0;try{Je=G(xe,Z)}finally{Je?rt():(F=!1,G=null)}}else F=!1},rt;if(typeof Fe=="function")rt=function(){Fe(yt)};else if(typeof MessageChannel<"u"){var tn=new MessageChannel,mn=tn.port2;tn.port1.onmessage=yt,rt=function(){mn.postMessage(null)}}else rt=function(){q(yt,0)};function Ot(Z){G=Z,F||(F=!0,rt())}function Lt(Z,xe){Te=q(function(){Z
2025-06-11 14:48:30 +03:00
* @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 w=Zc(),L=B0(),me=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ee=!1;function fe(e){Ee=e}function Re(e){if(!Ee){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Q("warn",e,n)}}function d(e){if(!Ee){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Q("error",e,n)}}function Q(e,t,n){{var a=me.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var he=0,te=1,bt=2,I=3,H=4,K=5,Oe=6,zt=7,qt=8,St=9,Pe=10,_e=11,ot=12,_=13,ne=14,De=15,Vt=16,Me=17,pe=18,nt=19,oe=21,Le=22,Ke=23,le=24,W=25,q=!0,Ye=!1,Fe=!1,at=!1,ct=!1,We=!0,Ve=!0,Ue=!0,cn=!0,et=new Set,Ht={},gt={};function Qe(e,t){Gt(e,t),Gt(e+"Capture",t)}function Gt(e,t){Ht[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ht[e]=t;{var n=e.toLowerCase();gt[n]=e,e==="onDoubleClick"&&(gt.ondblclick=e)}for(var a=0;a<t.length;a++)et.add(t[a])}var rn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fn=Object.prototype.hasOwnProperty;function F(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function G(e){try{return Te(e),!1}catch{return!0}}function Te(e){return""+e}function Ce(e,t){if(G(e))return d("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,F(e)),Te(e)}function Ze(e){if(G(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",F(e)),Te(e)}function st(e,t){if(G(e))return d("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,F(e)),Te(e)}function ht(e,t){if(G(e))return d("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,F(e)),Te(e)}function Ge(e){if(G(e))return d("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",F(e)),Te(e)}function yt(e){if(G(e))return d("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",F(e)),Te(e)}var rt=0,tn=1,mn=2,Ot=3,Lt=4,hn=5,ia=6,va=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Z=va+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xe=new RegExp("^["+va+"]["+Z+"]*$"),Je={},Rt={};function Bt(e){return fn.call(Rt,e)?!0:fn.call(Je,e)?!1:xe.test(e)?(Rt[e]=!0,!0):(Je[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function Xt(e,t,n){return t!==null?t.type===rt: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===rt)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(a)return!1;if(n!==null)return!n.acceptsBooleans;var r=e.toLowerCase().slice(0,5);return r!=="data-"&&r!=="aria-"}default:return!1}}function wn(e,t,n,a){if(t===null||typeof t>"u"||Qt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Ot:return!t;case Lt:return t===!1;case hn:return isNaN(t);case ia:return isNaN(t)||t<1}return!1}function Pt(e){return Dt.hasOwnProperty(e)?Dt[e]:null}function Tt(e,t,n,a,r,i,o){this.acceptsBooleans=t===mn||t===Ot||t===Lt,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Dt={},er=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressCon
`+hr+e}}var gi=!1,Pr;{var no=typeof WeakMap=="function"?WeakMap:Map;Pr=new no}function bi(e,t){if(!e||gi)return"";{var n=Pr.get(e);if(n!==void 0)return n}var a;gi=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=oa.current,oa.current=null,_t();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(M){a=M}Reflect.construct(e,[],o)}else{try{o.call()}catch(M){a=M}e.call(o.prototype)}}else{try{throw Error()}catch(M){a=M}e()}}catch(M){if(M&&a&&typeof M.stack=="string"){for(var l=M.stack.split(`
2025-06-11 14:48:30 +03:00
`),u=a.stack.split(`
`),f=l.length-1,v=u.length-1;f>=1&&v>=0&&l[f]!==u[v];)v--;for(;f>=1&&v>=0;f--,v--)if(l[f]!==u[v]){if(f!==1||v!==1)do if(f--,v--,v<0||l[f]!==u[v]){var b=`
`+l[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&Pr.set(e,b),b}while(f>=1&&v>=0);break}}}finally{gi=!1,oa.current=i,za(),Error.prepareStackTrace=r}var g=e?e.displayName||e.name:"",R=g?nr(g):"";return typeof e=="function"&&Pr.set(e,R),R}function ao(e,t,n){return bi(e,!0)}function ol(e,t,n){return bi(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ll(e,t,n){if(e==null)return"";if(typeof e=="function")return bi(e,Yu(e));if(typeof e=="string")return nr(e);switch(e){case S:return nr("Suspense");case A:return nr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return ol(e.render);case ve:return ll(e.type,t,n);case z:{var a=e,r=a._payload,i=a._init;try{return ll(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case K:return nr(e.type);case Vt:return nr("Lazy");case _:return nr("Suspense");case nt:return nr("SuspenseList");case he:case bt:case De:return ol(e.type);case _e:return ol(e.type.render);case te:return ao(e.type);default:return""}}function Si(e){try{var t="",n=e;do t+=af(n),n=n.return;while(n);return t}catch(a){return`
2025-06-11 14:48:30 +03:00
Error generating stack: `+a.message+`
`+a.stack}}function Wu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function ul(e){return e.displayName||"Context"}function xt(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case B:return"Portal";case x:return"Profiler";case T:return"StrictMode";case S:return"Suspense";case A:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return ul(t)+".Consumer";case O:var n=e;return ul(n._context)+".Provider";case y:return Wu(e,e.render,"ForwardRef");case ve:var a=e.displayName||null;return a!==null?a:xt(e.type)||"Memo";case z:{var r=e,i=r._payload,o=r._init;try{return xt(o(i))}catch{return null}}}return null}function rf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function yr(e){return e.displayName||"Context"}function Xe(e){var t=e.tag,n=e.type;switch(t){case le:return"Cache";case St:var a=n;return yr(a)+".Consumer";case Pe:var r=n;return yr(r._context)+".Provider";case pe:return"DehydratedFragment";case _e:return rf(n,n.render,"ForwardRef");case zt:return"Fragment";case K:return n;case H:return"Portal";case I:return"Root";case Oe:return"Text";case Vt:return xt(n);case qt:return n===T?"StrictMode":"Mode";case Le:return"Offscreen";case ot:return"Profiler";case oe:return"Scope";case _:return"Suspense";case nt:return"SuspenseList";case W:return"TracingMarker";case te:case he:case Me:case bt:case ne:case De:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var sl=me.ReactDebugCurrentFrame,Qn=null,Ti=!1;function Yr(){{if(Qn===null)return null;var e=Qn._debugOwner;if(e!==null&&typeof e<"u")return Xe(e)}return null}function of(){return Qn===null?"":Si(Qn)}function Dn(){sl.getCurrentStack=null,Qn=null,Ti=!1}function Jt(e){sl.getCurrentStack=e===null?null:of,Qn=e,Ti=!1}function Iu(){return Qn}function Ra(e){Ti=e}function Kn(e){return""+e}function Fa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return yt(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function cl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||d("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||d("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function qu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fl(e){return e._valueTracker}function ro(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Wr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);yt(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){yt(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){yt(l),a=""+l},stopTracking:function(){ro(e),delete e[t]}};return o}}function Ei(e){fl(e)||(e._valueTracker=Wr(e))}function dl(e){if(!e)return!1;var t=fl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function gr(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
2025-06-11 14:48:30 +03:00
Check the render method of \``+e+"`.":""}var Ci=["value","defaultValue"];function pl(e){{cl("select",e);for(var t=0;t<Ci.length;t++){var n=Ci[t];if(e[n]!=null){var a=lt(e[n]);e.multiple&&!a?d("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,dn()):!e.multiple&&a&&d("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,dn())}}}}function br(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var f=o.hasOwnProperty("$"+r[u].value);r[u].selected!==f&&(r[u].selected=f),f&&a&&(r[u].defaultSelected=!0)}}else{for(var v=Kn(Fa(n)),b=null,g=0;g<r.length;g++){if(r[g].value===v){r[g].selected=!0,a&&(r[g].defaultSelected=!0);return}b===null&&!r[g].disabled&&(b=r[g])}b!==null&&(b.selected=!0)}}function ml(e,t){return be({},t,{value:void 0})}function hl(e,t){var n=e;pl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!en&&(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"),en=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?br(n,!!t.multiple,a,!1):t.defaultValue!=null&&br(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?br(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?br(n,!!t.multiple,t.defaultValue,!0):br(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&br(n,!!t.multiple,a,!1)}var Mm=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=be({},t,{value:void 0,defaultValue:void 0,children:Kn(n._wrapperState.initialValue)});return a}function Lm(e,t){var n=e;cl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Mm&&(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",Yr()||"A component"),Mm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){d("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(lt(r)){if(r.length>1)throw new Error("<textarea> can only have at most one child.");r=r[0]}i=r}}i==null&&(i=""),a=i}n._wrapperState={initialValue:Fa(a)}}function Om(e,t){var n=e,a=Fa(t.value),r=Fa(t.defaultValue);if(a!=null){var i=Kn(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=Kn(r))}function Am(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function aS(e,t){Om(e,t)}var Sr="http://www.w3.org/1999/xhtml",rS="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 rS;default:return Sr}}function pf(e,t){return e==null||e===Sr?vf(t):e===df&&t==="foreignObject"?Sr:e}var iS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Zu,Nm=iS(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Zu=Zu||document.createElement("div"),Zu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),la=1,Tr=3,vn=8,Er=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Tr){n.nodeValue=t;return}}e.textContent=t}
2025-06-11 14:48:30 +03:00
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function sC(e){if(!rn)return!1;var t="on"+e,n=t in document;if(!n){var a=document.createElement("div");a.setAttribute(t,"return;"),n=typeof a[t]=="function"}return n}function cC(){Qe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Kh(e,t,n,a){qm(a);var r=xs(t,"onChange");if(r.length>0){var i=new hd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var $l=null,Pl=null;function fC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function dC(e){var t=[];Kh(t,Pl,e,Sf(e)),Km(vC,t)}function vC(e){my(e,0)}function Ss(e){var t=Oo(e);if(dl(t))return e}function pC(e,t){if(e==="change")return t}var Zh=!1;rn&&(Zh=sC("input")&&(!document.documentMode||document.documentMode>9));function mC(e,t){$l=e,Pl=t,$l.attachEvent("onpropertychange",ey)}function Jh(){$l&&($l.detachEvent("onpropertychange",ey),$l=null,Pl=null)}function ey(e){e.propertyName==="value"&&Ss(Pl)&&dC(e)}function hC(e,t,n){e==="focusin"?(Jh(),mC(t,n)):e==="focusout"&&Jh()}function yC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss(Pl)}function gC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function bC(e,t){if(e==="click")return Ss(t)}function SC(e,t){if(e==="input"||e==="change")return Ss(t)}function TC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Ne(e,"number",e.value)}function EC(e,t,n,a,r,i,o){var l=n?Oo(n):window,u,f;if(fC(l)?u=pC:Qh(l)?Zh?u=SC:(u=yC,f=hC):gC(l)&&(u=bC),u){var v=u(t,n);if(v){Kh(e,v,a,r);return}}f&&f(t,l,n),t==="focusout"&&TC(l)}function CC(){Gt("onMouseEnter",["mouseout","mouseover"]),Gt("onMouseLeave",["mouseout","mouseover"]),Gt("onPointerEnter",["pointerout","pointerover"]),Gt("onPointerLeave",["pointerout","pointerover"])}function xC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!$S(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Fi(f)||ru(f)))return}if(!(!u&&!l)){var v;if(r.window===r)v=r;else{var b=r.ownerDocument;b?v=b.defaultView||b.parentWindow:v=window}var g,R;if(u){var M=a.relatedTarget||a.toElement;if(g=n,R=M?Fi(M):null,R!==null){var j=Li(R);(R!==j||R.tag!==K&&R.tag!==Oe)&&(R=null)}}else g=null,R=n;if(g!==R){var ae=Fh,ke="onMouseLeave",we="onMouseEnter",mt="mouse";(t==="pointerout"||t==="pointerover")&&(ae=Bh,ke="onPointerLeave",we="onPointerEnter",mt="pointer");var ut=g==null?v:Oo(g),E=R==null?v:Oo(R),U=new ae(ke,mt+"leave",g,a,r);U.target=ut,U.relatedTarget=E;var C=null,Y=Fi(r);if(Y===n){var de=new ae(we,mt+"enter",R,a,r);de.target=E,de.relatedTarget=ut,C=de}GC(e,U,C,g,R)}}}function wC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ta=typeof Object.is=="function"?Object.is:wC;function Yl(e,t){if(Ta(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(!fn.call(t,i)||!Ta(e[i],t[i]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function RC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ny(e,t){for(var n=ty(e),a=0,r=0;n;){if(n.nodeType===Tr){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=ty(RC(n))}}function DC(e){var t=e.ownerDocument,n=t&&t.defaultView||window,a=n.getSelection&&n.getSelection();if(!a||a.rangeCount===0)return null;var r=a.anchorNode,i=a.anchorOffset,o=a.focusNode,l=a.focusOffset;try{r.nodeType,o.nodeType}catch{return null}return _C(e,r,i,o,l)}function _C(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,v=e,b=null;e:for(;;){for(var g=null;v===t&&(n===0||v.nodeType===Tr)&&(o=i+n),v===a&&(r===0||v.nodeType===Tr)&&(l=i+r),v.nodeType===Tr&&(i+=v.nodeValue.length),(g=v.firstChild)!==null;)b=v,v=g;for(;;){if(v===e)break e;if(b===t&&++u===n&&(o=i),b===a&&++f===r&&(l=i),(g=v.nextSibling)!==null)break;v=b,b=v.parentNode}v=g}return o===-1||l===-1?null:{start:o,end:l}}function kC(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelecti
`).replace(KC,"")}function Ms(e,t,n,a){var r=ks(t),i=ks(e);if(i!==r&&(a&&(ua||(ua=!0,d('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&q))throw new Error("Text content does not match server-rendered HTML.")}function Cy(e){return e.nodeType===Er?e:e.ownerDocument}function ZC(){}function Ls(e){e.onclick=ZC}function JC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===zi)o&&Object.freeze(o),Fm(t,o);else if(i===Xl){var l=o?o[Rs]:void 0;l!=null&&Nm(t,l)}else if(i===Hi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Ju(t,o)}else typeof o=="number"&&Ju(t,""+o);else i===ws||i===Jr||i===by||(Ht.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Kt("scroll",t)):o!=null&&ma(t,i,o,r))}}function ex(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===zi?Fm(e,o):i===Xl?Nm(e,o):i===Hi?Ju(e,o):ma(e,i,o,a)}}function tx(e,t,n,a){var r,i=Cy(n),o,l=a;if(l===Sr&&(l=vf(e)),l===Sr){if(r=xi(e,t),!r&&e!==e.toLowerCase()&&d("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var f=u.firstChild;o=u.removeChild(f)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var v=o;t.multiple?v.multiple=!0:t.size&&(v.size=t.size)}}else o=i.createElementNS(l,e);return l===Sr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!fn.call(kd,e)&&(kd[e]=!0,d("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),o}function nx(e,t){return Cy(t).createTextNode(e)}function ax(e,t,n,a){var r=xi(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<Il.length;o++)Kt(Il[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=vl(e,n),Kt("invalid",e);break;case"option":At(e,n),i=n;break;case"select":hl(e,n),i=ml(e,n),Kt("invalid",e);break;case"textarea":Lm(e,n),i=ff(e,n),Kt("invalid",e);break;default:i=n}switch(gf(t,i),JC(t,e,a,i,r),t){case"input":Ei(e),k(e,n,!1);break;case"textarea":Ei(e),Am(e);break;case"option":Yt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Ls(e);break}}function rx(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=vl(e,n),l=vl(e,a),i=[];break;case"select":o=ml(e,n),l=ml(e,a),i=[];break;case"textarea":o=ff(e,n),l=ff(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Ls(e);break}gf(t,l);var u,f,v=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===zi){var b=o[u];for(f in b)b.hasOwnProperty(f)&&(v||(v={}),v[f]="")}else u===Xl||u===Hi||u===ws||u===Jr||u===by||(Ht.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var g=l[u],R=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||g===R||g==null&&R==null))if(u===zi)if(g&&Object.freeze(g),R){for(f in R)R.hasOwnProperty(f)&&(!g||!g.hasOwnProperty(f))&&(v||(v={}),v[f]="");for(f in g)g.hasOwnProperty(f)&&R[f]!==g[f]&&(v||(v={}),v[f]=g[f])}else v||(i||(i=[]),i.push(u,v)),v=g;else if(u===Xl){var M=g?g[Rs]:void 0,j=R?R[Rs]:void 0;M!=null&&j!==M&&(i=i||[]).push(u,M)}else u===Hi?(typeof g=="string"||typeof g=="number")&&(i=i||[]).push(u,""+g):u===ws||u===Jr||(Ht.hasOwnProperty(u)?(g!=null&&(typeof g!="function"&&_s(u,g),u==="onScroll"&&Kt("scroll",e)),!i&&R!==g&&(i=[])):(i=i||[]).push(u,g))}return v&&(xS(v,l[zi]),(i=i||[]).push(zi,v)),i}function ix(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=xi(n,a),o=xi(n,r);switch(ex(e,t,i,o),n){case"input":m(e,r);break;case"textarea":Om(e,r);break;case"select":Ku(e,r);break}}function ox(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function lx(e,t,n,a,r,i,o){var l,u;switch(l=xi(t,n),Ds(t,n),t){case"dialog":Kt("cancel
2025-06-11 14:48:30 +03:00
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,o)}if(a.size>0){var l=Yi(a);d(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
2025-06-11 14:48:30 +03:00
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
Please update the following components: %s`,l)}if(i.size>0){var u=Yi(i);d(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
2025-06-11 14:48:30 +03:00
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,u)}if(e.size>0){var f=Yi(e);Re(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
2025-06-11 14:48:30 +03:00
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,f)}if(n.size>0){var v=Yi(n);Re(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
2025-06-11 14:48:30 +03:00
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,v)}if(r.size>0){var b=Yi(r);Re(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
2025-06-11 14:48:30 +03:00
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,b)}};var Gs=new Map,Xy=new Set;Wa.recordLegacyContextWarning=function(e,t){var n=$1(e);if(n===null){d("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!Xy.has(e.type)){var a=Gs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Gs.set(n,a)),a.push(e))}},Wa.flushLegacyContextWarning=function(){Gs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Xe(i)||"Component"),Xy.add(i.type)});var r=Yi(a);try{Jt(n),d(`Legacy context API has been detected within a strict-mode tree.
2025-06-11 14:48:30 +03:00
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)}finally{Dn()}}})},Wa.discardPendingWarnings=function(){iu=[],ou=[],lu=[],uu=[],su=[],cu=[],Gs=new Map}}var av,rv,iv,ov,lv,Qy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Qy=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Xe(t)||"Component";ov[n]||(ov[n]=!0,d('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function P1(e){return e.prototype&&e.prototype.isReactComponent}function fu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&on||We)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==te)&&!(typeof n.type=="function"&&!P1(n.type))&&n._owner){var r=Xe(e)||"Component";iv[r]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,a),iv[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==te)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=l.stateNode}if(!o)throw new Error("Missing owner for string ref "+a+". This error is likely caused by a bug in React. Please file an issue.");var u=o;st(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var v=function(b){var g=u.refs;b===null?delete g[f]:g[f]=b};return v._stringRef=f,v}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
2025-06-11 14:48:30 +03:00
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function Xs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Qs(e){{var t=Xe(e)||"Component";if(lv[t])return;lv[t]=!0,d("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function Ky(e){var t=e._payload,n=e._init;return n(t)}function Zy(e){function t(E,U){if(e){var C=E.deletions;C===null?(E.deletions=[U],E.flags|=wi):C.push(U)}}function n(E,U){if(!e)return null;for(var C=U;C!==null;)t(E,C),C=C.sibling;return null}function a(E,U){for(var C=new Map,Y=U;Y!==null;)Y.key!==null?C.set(Y.key,Y):C.set(Y.index,Y),Y=Y.sibling;return C}function r(E,U){var C=eo(E,U);return C.index=0,C.sibling=null,C}function i(E,U,C){if(E.index=C,!e)return E.flags|=th,U;var Y=E.alternate;if(Y!==null){var de=Y.index;return de<U?(E.flags|=_n,U):de}else return E.flags|=_n,U}function o(E){return e&&E.alternate===null&&(E.flags|=_n),E}function l(E,U,C,Y){if(U===null||U.tag!==Oe){var de=nm(C,E.mode,Y);return de.return=E,de}else{var ie=r(U,C);return ie.return=E,ie}}function u(E,U,C,Y){var de=C.type;if(de===D)return v(E,U,C.props.children,Y,C.key);if(U!==null&&(U.elementType===de||a0(U,C)||typeof de=="object"&&de!==null&&de.$$typeof===z&&Ky(de)===U.type)){var ie=r(U,C.props);return ie.ref=fu(E,U,C),ie.return=E,ie._debugSource=C._source,ie._debugOwner=C._owner,ie}var He=tm(C,E.mode,Y);return He.ref=fu(E,U,C),He.return=E,He}function f(E,U,C,Y){if(U===null||U.tag!==H||U.stateNode.containerInfo!==C.containerInfo||U.stateNode.implementation!==C.implementation){var de=am(C,E.mode,Y);return de.return=E,de}else{var ie=r(U,C.children||[]);return ie.return=E,ie}}function v(E,U,C,Y,de){if(U===null||U.tag!==zt){var ie=mi(C,E.mode,Y,de);return ie.return=E,ie}else{var He=r(U,C);return He.return=E,He}}function b(E,U,C){if(typeof U=="string"&&U!==""||typeof U=="number"){var Y=nm(""+U,E.mode,C);return Y.return=E,Y}if(typeof U=="object"&&U!==null){switch(U.$$typeof){case h:{var de=tm(U,E.mode,C);return de.ref=fu(E,null,U),de.return=E,de}case B:{var ie=am(U,E.mode,C);return ie.return=E,ie}case z:{var He=U._payload,qe=U._init;return b(E,qe(He),C)}}if(lt(U)||ft(U)){var Ut=mi(U,E.mode,C,null);return Ut.return=E,Ut}Xs(E,U)}return typeof U=="function"&&Qs(E),null}function g(E,U,C,Y){var de=U!==null?U.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return de!==null?null:l(E,U,""+C,Y);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case h:return C.key===de?u(E,U,C,Y):null;case B:return C.key===de?f(E,U,C,Y):null;case z:{var ie=C._payload,He=C._init;return g(E,U,He(ie),Y)}}if(lt(C)||ft(C))return de!==null?null:v(E,U,C,Y,null);Xs(E,C)}return typeof C=="function"&&Qs(E),null}function R(E,U,C,Y,de){if(typeof Y=="string"&&Y!==""||typeof Y=="number"){var ie=E.get(C)||null;return l(U,ie,""+Y,de)}if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case h:{var He=E.get(Y.key===null?C:Y.key)||null;return u(U,He,Y,de)}case B:{var qe=E.get(Y.key===null?C:Y.key)||null;return f(U,qe,Y,de)}case z:var Ut=Y._payload,Et=Y._init;return R(E,U,C,Et(Ut),de)}if(lt(Y)||ft(Y)){var sn=E.get(C)||null;return v(U,sn,Y,de,null)}Xs(U,Y)}return typeof Y=="function"&&Qs(U),null}function M(E,U,C){{if(typeof E!="object"||E===null)return U;switch(E.$$typeof){case h:case B:Qy(E,C);var Y=E.key;if(typeof Y!="string")break;if(U===null){U=new Set,U.add(Y);break}if(!U.has(Y)){U.add(Y);break}d("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Y);break;case z:var de=E._payload,ie=E._init;M(ie(de),U,C);break}}return U}function j(E,U,C,Y){for(var de=null,ie
2025-06-11 14:48:30 +03:00
`,n+=l}d(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,t,n)}}}function qn(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
2025-06-11 14:48:30 +03:00
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(Rv)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.",V),!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.
2025-06-11 14:48:30 +03:00
Previous: %s
Incoming: %s`,V,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Ta(e[n],t[n]))return!1;return!0}function Io(e,t,n,a,r,i){qi=i,jt=t,La=e!==null?e._debugHookTypes:null,ui=-1,Rv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=P,e!==null&&e.memoizedState!==null?ce.current=Ng:La!==null?ce.current=Ag:ce.current=Og;var o=n(a,r);if(hu){var l=0;do{if(hu=!1,yu=0,l>=iw)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,Rv=!1,bn=null,Sn=null,t.updateQueue=null,ui=-1,ce.current=jg,o=n(a,r)}while(hu)}ce.current=Cc,t._debugHookTypes=La;var u=bn!==null&&bn.next!==null;if(qi=P,jt=null,bn=null,Sn=null,V=null,La=null,ui=-1,e!==null&&(e.flags&Cr)!==(t.flags&Cr)&&(e.mode&vt)!==Ae&&d("Internal React error: Expected static flag was missing. Please notify the React team."),cc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function qo(){var e=yu!==0;return yu=0,e}function vg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&rr)!==Ae?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function pg(){if(ce.current=Cc,cc){for(var e=jt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}qi=P,jt=null,bn=null,Sn=null,La=null,ui=-1,V=null,Dg=!1,hu=!1,yu=0}function sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?jt.memoizedState=Sn=e:Sn=Sn.next=e,Sn}function Oa(){var e;if(bn===null){var t=jt.alternate;t!==null?e=t.memoizedState:e=null}else e=bn.next;var n;if(Sn===null?n=jt.memoizedState:n=Sn.next,n!==null)Sn=n,n=Sn.next,bn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");bn=e;var a={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null};Sn===null?jt.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}function mg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function kv(e,t,n){var a=sr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:P,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=cw.bind(null,jt,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=bn,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,f=l.next;o.next=f,l.next=u}i.baseQueue!==o&&d("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var v=o.next,b=i.baseState,g=null,R=null,M=null,j=v;do{var ae=j.lane;if(Co(qi,ae)){if(M!==null){var we={lane:Ln,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};M=M.next=we}if(j.hasEagerState)b=j.eagerState;else{var mt=j.action;b=e(b,mt)}}else{var ke={lane:ae,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};M===null?(R=M=ke,g=b):M=M.next=ke,jt.lanes=tt(jt.lanes,ae),zu(ae)}j=j.next}while(j!==null&&j!==v);M===null?g=b:M.next=R,Ta(b,a.memoizedState)||Ru(),a.memoizedState=b,a.baseState=g,a.baseQueue=M,r.lastRenderedState=b}var ut=r.interleaved;if(ut!==null){var E=ut;do{var U=E.lane;jt.lanes=tt(jt.lanes,U),zu(U),E=E.next}while(E!==ut)}else o===null&&(r.lanes=P);var C=r.dispatch;return[a.memoizedState,C]}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,f=u;do{var v=f.action;l=e(l,v),f=f.next}while(f!==u);Ta(l,a.memoizedState)||Ru(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function g_(e,t,n){}function b_(e,t,n){}function Ov(e,t,n){var a=jt,r=sr(),i,o=Nn();if(o){if(n===void 0)throw new Error("Missing getServerSnapshot, which is r
2025-06-11 14:48:30 +03:00
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),t.contextTypes&&!Eu.has(t)&&(e.mode&on)===Ae&&(Eu.add(t),d(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
2025-06-11 14:48:30 +03:00
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),a.contextTypes&&d("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!ap.has(t)&&(ap.add(t),d("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&d("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",r),t.prototype&&t.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&d("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",xt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&d("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&d("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",r),typeof a.componentWillRecieveProps=="function"&&d("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&d("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&d("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),a.defaultProps&&d("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",r,r),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!Jv.has(t)&&(Jv.add(t),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",xt(t))),typeof a.getDerivedStateFromProps=="function"&&d("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&d("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&d("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r);var l=a.state;l&&(typeof l!="object"||lt(l))&&d("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&d("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Yg(e,t){t.updater=op,e.stateNode=t,tT(t,e),t._reactInternalInstance=Qv}function Wg(e,t,n){var a=!1,r=Ea,i=Ea,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===c&&o._context===void 0;if(!l&&!rp.has(t)){rp.add(t);var u="";o===void 0?u=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===O?u=" Did you accidentally pass the Context.Provider instead?":o._context!==void 0?u=" Did you accidentally pass the Context.Consumer instead?":u=" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",d("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",xt(t)||"Component",u)}}
2025-06-11 14:48:30 +03:00
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://reactjs.org/link/unsafe-component-lifecycles`,ae,ke,R!==null?`
`+R:"",M!==null?`
`+M:"",j!==null?`
`+j:""))}}}return a&&Ny(e,r,i),v}function hw(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xe(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Ig(e,t,n,a){var r=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==r){{var i=Xe(e)||"Component";Kv.has(i)||(Kv.add(i),d("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}op.enqueueReplaceState(t,t.state,null)}}function lp(e,t,n,a){mw(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=pn(i);else{var o=Ao(e,t,!0);r.context=No(e,o)}{if(r.state===n){var l=xt(t)||"Component";np.has(l)||(np.add(l),d("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}e.mode&on&&Wa.recordLegacyContextWarning(e,r),Wa.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")&&(hw(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=wt;f|=Mi,(e.mode&rr)!==Ae&&(f|=qr),e.flags|=f}}function yw(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=Ea;if(typeof l=="object"&&l!==null)u=pn(l);else{var f=Ao(e,t,!0);u=No(e,f)}var v=t.getDerivedStateFromProps,b=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function";!b&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Ig(e,r,n,u),lg();var g=e.memoizedState,R=r.state=g;if(ic(e,n,r,a),R=e.memoizedState,i===n&&g===R&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var M=wt;M|=Mi,(e.mode&rr)!==Ae&&(M|=qr),e.flags|=M}return!1}typeof v=="function"&&(ip(e,t,v,n),R=e.memoizedState);var j=oc()||Pg(e,t,i,n,g,R,u);if(j){if(!b&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"){var ae=wt;ae|=Mi,(e.mode&rr)!==Ae&&(ae|=qr),e.flags|=ae}}else{if(typeof r.componentDidMount=="function"){var ke=wt;ke|=Mi,(e.mode&rr)!==Ae&&(ke|=qr),e.flags|=ke}e.memoizedProps=n,e.memoizedState=R}return r.props=n,r.state=R,r.context=u,j}function gw(e,t,n,a,r){var i=t.stateNode;og(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Ga(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,v=n.contextType,b=Ea;if(typeof v=="object"&&v!==null)b=pn(v);else{var g=Ao(t,n,!0);b=No(t,g)}var R=n.getDerivedStateFromProps,M=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function";!M&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==b)&&Ig(t,i,a,b),lg();var j=t.memoizedState,ae=i.state=j;if(ic(t,a,i,r),ae=t.memoizedState,o===u&&j===ae&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=ho),!1;typeof R=="function"&&(ip(t,n,R,a),ae=t.memoizedState);var ke=oc()||Pg(t,n,l,a,j,ae,b)||Fe;return ke?(!M&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(type
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var v=Xe(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var b=u+`
2025-06-11 14:48:30 +03:00
`+o+`
`+(""+f);console.error(b)}catch(g){setTimeout(function(){throw g})}}var Sw=typeof WeakMap=="function"?WeakMap:Map;function qg(e,t,n){var a=Or(It,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){dD(r),sp(e,t)},a}function cp(e,t,n){var a=Or(It,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(){r0(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){r0(e),sp(e,t),typeof r!="function"&&cD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(ga(e.lanes,Be)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Xe(e)||"Unknown"))}),a}function Gg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new Sw,r=new Set,a.set(t,r)):(r=a.get(t),r===void 0&&(r=new Set,a.set(t,r))),!r.has(n)){r.add(n);var i=vD.bind(null,e,t,n);Ba&&Fu(e,n),t.then(i,i)}}function Tw(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 Ew(e,t){var n=e.tag;if((e.mode&vt)===Ae&&(n===he||n===_e||n===De)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Xg(e){var t=e;do{if(t.tag===_&&nw(t))return t;t=t.return}while(t!==null);return null}function Qg(e,t,n,a,r){if((e.mode&vt)===Ae){if(e===t)e.flags|=Va;else{if(e.flags|=kt,n.flags|=kf,n.flags&=-52805,n.tag===te){var i=n.alternate;if(i===null)n.tag=Me;else{var o=Or(It,Be);o.tag=tc,ii(n,o,Be)}}n.lanes=tt(n.lanes,Be)}return e}return e.flags|=Va,e.lanes=r,e}function Cw(e,t,n,a,r){if(n.flags|=rs,Ba&&Fu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;Ew(n),Nn()&&n.mode&vt&&By();var o=Xg(t);if(o!==null){o.flags&=-257,Qg(o,t,n,e,r),o.mode&vt&&Gg(e,i,r),Tw(o,e,i);return}else{if(!WT(r)){Gg(e,i,r),Pp();return}var l=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");a=l}}else if(Nn()&&n.mode&vt){By();var u=Xg(t);if(u!==null){(u.flags&Va)===je&&(u.flags|=Ri),Qg(u,t,n,e,r),nv(Gi(a,n));return}}a=Gi(a,n),nD(a);var f=t;do{switch(f.tag){case I:{var v=a;f.flags|=Va;var b=kl(r);f.lanes=tt(f.lanes,b);var g=qg(f,v,b);yv(f,g);return}case te:var R=a,M=f.type,j=f.stateNode;if((f.flags&kt)===je&&(typeof M.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&!Xb(j))){f.flags|=Va;var ae=kl(r);f.lanes=tt(f.lanes,ae);var ke=cp(f,R,ae);yv(f,ke);return}break}f=f.return}while(f!==null)}function xw(){return null}var Cu=me.ReactCurrentOwner,Xa=!1,fp,xu,dp,vp,pp,Xi,mp,Mc,wu;fp={},xu={},dp={},vp={},pp={},Xi=!1,mp={},Mc={},wu={};function Jn(e,t,n,a){e===null?t.child=Jy(t,null,n,a):t.child=zo(t,e.child,n,a)}function ww(e,t,n,a){t.child=zo(t,e.child,null,a),t.child=zo(t,null,n,a)}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Pa(i,a,"prop",xt(n))}var o=n.render,l=t.ref,u,f;Vo(t,r),Cl(t);{if(Cu.current=t,Ra(!0),u=Io(e,t,o,a,l,r),f=qo(),t.mode&on){Mn(!0);try{u=Io(e,t,o,a,l,r),f=qo()}finally{Mn(!1)}}Ra(!1)}return bo(),e!==null&&!Xa?(vg(e,t,r),Ar(e,t,r)):(Nn()&&f&&Qd(t),t.flags|=mo,Jn(e,t,u,r),t.child)}function Zg(e,t,n,a,r){if(e===null){var i=n.type;if(MD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=tl(i),t.tag=De,t.type=o,gp(t,i),Jg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Pa(l,a,"prop",xt(i)),n.defaultProps!==void 0){var u=xt(i)||"Unknown";wu[u]||(d("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),wu[u]=!0)}}var f=em(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var v=n.type,b=v.propTypes;b&&Pa(b,a,"prop",xt(v))}var g=e.child,R=xp(e,r);if(!R){var M=g.memoizedProps,j=n.compare;if(j=j!==null?j:Yl,j(M,a)&&e.ref===t.
2025-06-11 14:48:30 +03:00
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),pp[r]||(pp[r]=!0,d("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var o=xt(t)||"Unknown";wu[o]||(d("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),wu[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=xt(t)||"Unknown";vp[l]||(d("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=xt(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:Ln};function Sp(e){return{baseLanes:e,cachePool:xw(),transitions:null}}function jw(e,t){var n=null;return{baseLanes:tt(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function Uw(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,pu)}function Hw(e,t){return fs(e.childLanes,t)}function ib(e,t,n){var a=t.pendingProps;ID(t)&&(t.flags|=kt);var r=Ia.current,i=!1,o=(t.flags&kt)!==je;if(o||Uw(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=tw(r,dg)),r=$o(r),li(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return $w(t,u)}var f=a.children,v=a.fallback;if(i){var b=zw(t,f,v,n),g=t.child;return g.memoizedState=Sp(n),t.memoizedState=bp,b}else return Tp(t,f)}else{var R=e.memoizedState;if(R!==null){var M=R.dehydrated;if(M!==null)return Pw(e,t,o,a,M,R,n)}if(i){var j=a.fallback,ae=a.children,ke=Vw(e,t,ae,j,n),we=t.child,mt=e.child.memoizedState;return we.memoizedState=mt===null?Sp(n):jw(mt,n),we.childLanes=Hw(e,n),t.memoizedState=bp,ke}else{var ut=a.children,E=Fw(e,t,ut,n);return t.memoizedState=null,E}}}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 zw(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&vt)===Ae&&i!==null?(l=i,l.childLanes=P,l.pendingProps=o,e.mode&Nt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=mi(n,r,a,null)):(l=Ep(o,r),u=mi(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return o0(e,t,P,null)}function ob(e,t){return eo(e,t)}function Fw(e,t,n,a){var r=e.child,i=r.sibling,o=ob(r,{mode:"visible",children:n});if((t.mode&vt)===Ae&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=wi):l.push(i)}return t.child=o,o}function Vw(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&vt)===Ae&&t.child!==o){var v=t.child;f=v,f.childLanes=P,f.pendingProps=u,t.mode&Nt&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=ob(o,u),f.subtreeFlags=o.subtreeFlags&Cr;var b;return l!==null?b=eo(l,a):(b=mi(a,i,r,null),b.flags|=_n),b.return=t,f.return=t,f.sibling=b,t.child=f,b}function Lc(e,t,n,a){a!==null&&nv(a),zo(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=_n,t.memoizedState=null,o}function Bw(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=mi(a,i,r,null);return u.flags|=_n,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&vt)!==Ae&&zo(t,e.child,null,r),u}function $w(e,t,n){return(e.mode&vt)===Ae?(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=Be):Vd(t)?e.lanes=Ai:e.lanes=Da,null}function Pw(e,t,n,a,r,i,o){if(n)if(t.flags&Ri){t.flags&=-257;var E=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Lc(e,t,o,E)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=kt,null;var U=a.children,C=a.fall
2025-06-11 14:48:30 +03:00
It looks like you wrote `+u+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+u+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:f=" You returned: "+l,d("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function cR(e,t){if((t.flags&wt)!==je)switch(t.tag){case ot:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=zg(),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 I:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case ot:var v=u.stateNode;v.passiveEffectDuration+=n;break e}u=u.return}break}}}function fR(e,t,n,a){if((n.flags&El)!==je)switch(n.tag){case he:case _e:case De:{if(!Hn)if(n.mode&Nt)try{dr(),ci(gn|yn,n)}finally{fr(n)}else ci(gn|yn,n);break}case te:{var r=n.stateNode;if(n.flags&wt&&!Hn)if(t===null)if(n.type===n.elementType&&!Xi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),n.mode&Nt)try{dr(),r.componentDidMount()}finally{fr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Ga(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Xi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),n.mode&Nt)try{dr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{fr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Xi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),ug(n,l,r));break}case I:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case K:f=n.child.stateNode;break;case te:f=n.child.stateNode;break}ug(n,u,f)}break}case K:{var v=n.stateNode;if(t===null&&n.flags&wt){var b=n.type,g=n.memoizedProps;kx(v,b,g)}break}case Oe:break;case H:break;case ot:{{var R=n.memoizedProps,M=R.onCommit,j=R.onRender,ae=n.stateNode.effectDuration,ke=zg(),we=t===null?"mount":"update";Hg()&&(we="nested-update"),typeof j=="function"&&j(n.memoizedProps.id,we,n.actualDuration,n.treeBaseDuration,n.actualStartTime,ke);{typeof M=="function"&&M(n.memoizedProps.id,we,ae,ke),uD(n);var mt=n.return;e:for(;mt!==null;){switch(mt.tag){case I:var ut=mt.stateNode;ut.effectDuration+=ae;break e;case ot:var E=mt.stateNode;E.effectDuration+=ae;break e}mt=mt.return}}}break}case _:{bR(e,n);break}case nt:case Me:case oe:case Le:case Ke:case W: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.")}Hn||n.flags&Di&&Cb(n)}function dR(e){switch(e.tag){case he:case _e:case De:{if(e.mode&Nt)try{dr(),Sb(e,e.return)}finally{fr(e)}else Sb(e,e.return);break}case te:{var t=e.stateNode;typeof t.componentDidMount=="function"&&iR(e,e.ret
2025-06-11 14:48:30 +03:00
Error message:
%s`,n)}function vD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ta();Eh(e,n),ED(e),ea===e&&Co(En,n)&&(Cn===Mu||Cn===jc&&gh(En)&&kn()-Np<Ub?Zi(e,P):Hc=tt(Hc,n)),da(e,r)}function Kb(e,t){t===Ln&&(t=qR(e));var n=ta(),a=sa(e,t);a!==null&&(Ml(a,t,n),da(a,n))}function pD(e){var t=e.memoizedState,n=Ln;t!==null&&(n=t.retryLane),Kb(e,n)}function mD(e,t){var n=Ln,a;switch(e.tag){case _:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case nt:a=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),Kb(e,n)}function hD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:PR(e/1960)*1960}function yD(){if(Uu>WR)throw Uu=0,zp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Jo>IR&&(Jo=0,Vc=null,d("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function gD(){Wa.flushLegacyContextWarning(),Wa.flushPendingUnsafeLifecycleWarnings()}function Zb(e,t){Jt(e),Wc(e,qr,HR),t&&Wc(e,Of,zR),Wc(e,qr,jR),t&&Wc(e,Of,UR),Dn()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==je?a=a.child:((a.flags&t)!==je&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Ic=null;function Jb(e){{if((pt&Vn)!==Tn||!(e.mode&vt))return;var t=e.tag;if(t!==bt&&t!==I&&t!==te&&t!==he&&t!==_e&&t!==ne&&t!==De)return;var n=Xe(e)||"ReactComponent";if(Ic!==null){if(Ic.has(n))return;Ic.add(n)}else Ic=new Set([n]);var a=Qn;try{Jt(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?Jt(e):Dn()}}}var Yp;{var bD=null;Yp=function(e,t,n){var a=l0(bD,t);try{return db(e,t,n)}catch(i){if(L1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Js(),pg(),gb(e,t),l0(t,a),t.mode&Nt&&Iv(t),Rf(null,db,null,e,t,n),JS()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var e0=!1,Wp;Wp=new Set;function SD(e){if(Ti&&!sw())switch(e.tag){case he:case _e:case De:{var t=an&&Xe(an)||"Unknown",n=t;if(!Wp.has(n)){Wp.add(n);var a=Xe(e)||"Unknown";d("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",a,t,t)}break}case te:{e0||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),e0=!0);break}}}function Fu(e,t){if(Ba){var n=e.memoizedUpdaters;n.forEach(function(a){Ch(e,a,t)})}}var Ip={};function qp(e,t){{var n=Ja.current;return n!==null?(n.push(t),Ip):sh(e,t)}}function t0(e){if(e!==Ip)return lT(e)}function n0(){return Ja.current!==null}function TD(e){{if(e.mode&vt){if(!Ab())return}else if(!$R()||pt!==Tn||e.tag!==he&&e.tag!==_e&&e.tag!==De)return;if(Ja.current===null){var t=Qn;try{Jt(e),d(`An update to %s inside a test was not wrapped in act(...).
2025-06-11 14:48:30 +03:00
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Xe(e))}finally{t?Jt(e):Dn()}}}}function ED(e){e.tag!==ni&&Ab()&&Ja.current===null&&d(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
2025-06-11 14:48:30 +03:00
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Vu(e){Fb=e}var Na=null,el=null,CD=function(e){Na=e};function tl(e){{if(Na===null)return e;var t=Na(e);return t===void 0?e:t.current}}function Gp(e){return tl(e)}function Xp(e){{if(Na===null)return e;var t=Na(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=tl(e.render);if(e.render!==n){var a={$$typeof:y,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function a0(e,t){{if(Na===null)return!1;var n=e.elementType,a=t.type,r=!1,i=typeof a=="object"&&a!==null?a.$$typeof:null;switch(e.tag){case te:{typeof a=="function"&&(r=!0);break}case he:{(typeof a=="function"||i===z)&&(r=!0);break}case _e:{(i===y||i===z)&&(r=!0);break}case ne:case De:{(i===ve||i===z)&&(r=!0);break}default:return!1}if(r){var o=Na(n);if(o!==void 0&&o===Na(a))return!0}return!1}}function r0(e){{if(Na===null||typeof WeakSet!="function")return;el===null&&(el=new WeakSet),el.add(e)}}var xD=function(e,t){{if(Na===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Hr(),Ur(function(){Qp(e.current,a,n)})}},wD=function(e,t){{if(e.context!==Ea)return;Hr(),Ur(function(){Bu(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 he:case De:case te:u=l;break;case _e:u=l.render;break}if(Na===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,v=!1;if(u!==null){var b=Na(u);b!==void 0&&(n.has(b)?v=!0:t.has(b)&&(o===te?v=!0:f=!0))}if(el!==null&&(el.has(e)||a!==null&&el.has(a))&&(v=!0),v&&(e._debugNeedsRemount=!0),v||f){var g=sa(e,Be);g!==null&&xn(g,e,Be,It)}r!==null&&!v&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var RD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Kp(e.current,a,n),n}};function Kp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case he:case De:case te:l=o;break;case _e:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?DD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function DD(e,t){{var n=_D(e,t);if(n)return;for(var a=e;;){switch(a.tag){case K:t.add(a.stateNode);return;case H:t.add(a.stateNode.containerInfo);return;case I:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function _D(e,t){for(var n=e,a=!1;;){if(n.tag===K)a=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return a;for(;n.sibling===null;){if(n.return===null||n.return===e)return a;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Zp;{Zp=!1;try{var i0=Object.preventExtensions({})}catch{Zp=!0}}function kD(e,t,n,a){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=a,this.flags=je,this.subtreeFlags=je,this.deletions=null,this.lanes=P,this.childLanes=P,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Zp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ca=function(e,t,n,a){return new kD(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function MD(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function LD(e){if(typeof e=="function")return Jp(e)?te:he;if(e!=null){var t=e.$$typeof;if(t===y)return _e;if(t===ve)return ne}return bt}function eo(e,t){var n=e.alternate;n===null?(n=Ca(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHoo
2025-06-11 14:48:30 +03:00
Check the render method of \``+f+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var v=Ca(o,n,t,r);return v.elementType=e,v.type=l,v.lanes=i,v._debugOwner=a,v}function tm(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=em(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function mi(e,t,n,a){var r=Ca(zt,e,a,t);return r.lanes=n,r}function ND(e,t,n,a){typeof e.id!="string"&&d('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Ca(ot,e,a,t|Nt);return r.elementType=x,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function jD(e,t,n,a){var r=Ca(_,e,a,t);return r.elementType=S,r.lanes=n,r}function UD(e,t,n,a){var r=Ca(nt,e,a,t);return r.elementType=A,r.lanes=n,r}function o0(e,t,n,a){var r=Ca(Le,e,a,t);r.elementType=ze,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Ca(Oe,e,null,t);return a.lanes=n,a}function HD(){var e=Ca(K,null,null,Ae);return e.elementType="DELETED",e}function zD(e){var t=Ca(pe,null,null,Ae);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Ca(H,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function l0(e,t){return e===null&&(e=Ca(bt,null,null,Ae)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function FD(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=zd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Ln,this.eventTimes=ld(P),this.expirationTimes=ld(It),this.pendingLanes=P,this.suspendedLanes=P,this.pingedLanes=P,this.expiredLanes=P,this.mutableReadLanes=P,this.finishedLanes=P,this.entangledLanes=P,this.entanglements=ld(P),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],o=0;o<zf;o++)i.push(new Set)}switch(t){case Ps:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case ni:this._debugRootType=n?"hydrate()":"render()";break}}function u0(e,t,n,a,r,i,o,l,u,f){var v=new FD(e,t,n,l,u),b=AD(t,i);v.current=b,b.stateNode=v;{var g={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};b.memoizedState=g}return hv(b),v}var rm="18.3.1";function VD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Ze(a),{$$typeof:B,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function s0(e){if(!e)return Ea;var t=po(e),n=E1(t);if(t.tag===te){var a=t.type;if(lr(a))return Uy(t,a,n)}return n}function BD(e,t){{var n=po(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var a=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+a)}var r=oh(n);if(r===null)return null;if(r.mode&on){var i=Xe(n)||"Component";if(!om[i]){om[i]=!0;var o=Qn;try{Jt(r),n.mode&on?d("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMod
2025-06-11 14:48:30 +03:00
Check the render method of %s.`,Xe(Qn)||"Unknown"));var u=Or(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=ii(r,u,o);return f!==null&&(xn(f,r,o,i),rc(f,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case K:return t.child.stateNode;default:return t.child.stateNode}}function $D(e){switch(e.tag){case I:{var t=e.stateNode;if(vs(t)){var n=YT(t);ZR(t,n)}break}case _:{Ur(function(){var r=sa(e,Be);if(r!==null){var i=ta();xn(r,e,Be,i)}});var a=Be;lm(e,a);break}}}function d0(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=QT(n.retryLane,t))}function lm(e,t){d0(e,t);var n=e.alternate;n&&d0(n,t)}function PD(e){if(e.tag===_){var t=Rl,n=sa(e,t);if(n!==null){var a=ta();xn(n,e,t,a)}lm(e,t)}}function YD(e){if(e.tag===_){var t=vi(e),n=sa(e,t);if(n!==null){var a=ta();xn(n,e,t,a)}lm(e,t)}}function v0(e){var t=oT(e);return t===null?null:t.stateNode}var p0=function(e){return null};function WD(e){return p0(e)}var m0=function(e){return!1};function ID(e){return m0(e)}var h0=null,y0=null,g0=null,b0=null,S0=null,T0=null,E0=null,C0=null,x0=null;{var w0=function(e,t,n){var a=t[n],r=lt(e)?e.slice():be({},e);return n+1===t.length?(lt(r)?r.splice(a,1):delete r[a],r):(r[a]=w0(e[a],t,n+1),r)},R0=function(e,t){return w0(e,t,0)},D0=function(e,t,n,a){var r=t[a],i=lt(e)?e.slice():be({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],lt(i)?i.splice(r,1):delete i[r]}else i[r]=D0(e[r],t,n,a+1);return i},_0=function(e,t,n){if(t.length!==n.length){Re("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){Re("copyWithRename() expects paths to be the same except for the deepest key");return}return D0(e,t,n,0)},k0=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=lt(e)?e.slice():be({},e);return i[r]=k0(e[r],t,n+1,a),i},M0=function(e,t,n){return k0(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};h0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=M0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=be({},e.memoizedProps);var o=sa(e,Be);o!==null&&xn(o,e,Be,It)}},y0=function(e,t,n){var a=um(e,t);if(a!==null){var r=R0(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=be({},e.memoizedProps);var i=sa(e,Be);i!==null&&xn(i,e,Be,It)}},g0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=_0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=be({},e.memoizedProps);var o=sa(e,Be);o!==null&&xn(o,e,Be,It)}},b0=function(e,t,n){e.pendingProps=M0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=sa(e,Be);a!==null&&xn(a,e,Be,It)},S0=function(e,t){e.pendingProps=R0(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=sa(e,Be);n!==null&&xn(n,e,Be,It)},T0=function(e,t,n){e.pendingProps=_0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=sa(e,Be);a!==null&&xn(a,e,Be,It)},E0=function(e){var t=sa(e,Be);t!==null&&xn(t,e,Be,It)},C0=function(e){p0=e},x0=function(e){m0=e}}function qD(e){var t=oh(e);return t===null?null:t.stateNode}function GD(e){return null}function XD(){return Qn}function QD(e){var t=e.findFiberByHostInstance,n=me.ReactCurrentDispatcher;return pT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:h0,overrideHookStateDeletePath:y0,overrideHookStateRenamePath:g0,overrideProps:b0,overridePropsDeletePath:S0,overridePropsRenamePath:T0,setErrorHandler:C0,setSuspenseHandler:x0,scheduleUpdate:E0,currentDispatcherRef:n,findHostInstanceByFiber:qD,findFiberByHostInstance:t||GD,findHostInstancesForRefresh:RD,scheduleRefresh:xD,scheduleRoot:wD,setRefreshHandler:CD,getCurrentFiber:XD,reconcilerVersion:rm})}var L0=typeof reportError=="function"?reportError:function(e){console.error(e)};function sm(e){this._internalRoot=e}Gc.prototype.render=sm.proto
2025-06-11 14:48:30 +03:00
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=c0(e,Ps,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===vn?e.parentNode:e;return ql(l),new sm(o)}function Gc(e){this._internalRoot=e}function ZD(e){e&&vE(e)}Gc.prototype.unstable_scheduleHydration=ZD;function JD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");O0(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=L0;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=f0(t,null,e,Ps,a,i,o,l,u);if(Us(f.current,e),ql(e),r)for(var v=0;v<r.length;v++){var b=r[v];aw(f,b)}return new Gc(f)}function Xc(e){return!!(e&&(e.nodeType===la||e.nodeType===Er||e.nodeType===mf))}function $u(e){return!!(e&&(e.nodeType===la||e.nodeType===Er||e.nodeType===mf||e.nodeType===vn&&e.nodeValue===" react-mount-point-unstable "))}function O0(e){e.nodeType===la&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),ru(e)&&(e._reactRootContainer?d("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):d("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var e_=me.ReactCurrentOwner,A0;A0=function(e){if(e._reactRootContainer&&e.nodeType!==vn){var t=v0(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&&ei(a));r&&!n&&d("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===la&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function cm(e){return e?e.nodeType===Er?e.documentElement:e.firstChild:null}function N0(){}function t_(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var g=qc(o);i.call(g)}}var o=f0(t,a,e,ni,null,!1,!1,"",N0);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===vn?e.parentNode:e;return ql(l),Ur(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var g=qc(v);f.call(g)}}var v=c0(e,ni,null,!1,!1,"",N0);e._reactRootContainer=v,Us(v.current,e);var b=e.nodeType===vn?e.parentNode:e;return ql(b),Ur(function(){Bu(t,v,n,a)}),v}}function n_(e,t){e!==null&&typeof e!="function"&&d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Qc(e,t,n,a,r){A0(n),n_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=t_(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Bu(t,o,e,r)}return qc(o)}var j0=!1;function a_(e){{j0||(j0=!0,d("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the
2025-07-27 23:24:07 +03:00
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,ra.createPortal=u_,ra.createRoot=c_,ra.findDOMNode=a_,ra.flushSync=d_,ra.hydrate=r_,ra.hydrateRoot=f_,ra.render=i_,ra.unmountComponentAtNode=l_,ra.unstable_batchedUpdates=Bp,ra.unstable_renderSubtreeIntoContainer=s_,ra.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ra}hm.exports=$0();var P0=hm.exports,Sm,Tm=P0;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(w,L){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(w,L)}finally{Em.usingClientEntryPoint=!1}}}const $=w=>{if(isNaN(w))return"00:00:00.000";const L=Math.floor(w/3600),me=Math.floor(w%3600/60),Ee=Math.floor(w%60),fe=Math.round(w%1*1e3),Re=String(L).padStart(2,"0"),d=String(me).padStart(2,"0"),Q=String(Ee).padStart(2,"0"),he=String(fe).padStart(3,"0");return`${Re}:${d}:${Q}.${he}`},hi=w=>$(w),Y0=w=>$(w),re={debug:(...w)=>{},error:(...w)=>console.error(...w),warn:(...w)=>console.warn(...w),info:(...w)=>console.info(...w)};var ee=Zc();const W0=({videoRef:w,currentTime:L,duration:me,isPlaying:Ee,isMuted:fe=!1,onPlayPause:Re,onSeek:d,onToggleMute:Q})=>{var le;const he=ee.useRef(null),[te,bt]=ee.useState(!1),[I,H]=ee.useState(!1),[K,Oe]=ee.useState(null),[zt,qt]=ee.useState(!1),St=ee.useRef(!1),[Pe,_e]=ee.useState({x:0}),[ot,_]=ee.useState(0),ne=typeof window<"u"&&((le=window.MEDIA_DATA)==null?void 0:le.videoUrl)||"/videos/sample-video.mp4";ee.useEffect(()=>{if(bt((()=>{const q=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(q)&&!window.MSStream})()),typeof window<"u"){const q=localStorage.getItem("video_initialized")==="true";H(q)}},[]),ee.useEffect(()=>{Ee&&!I&&(H(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Ee,I]),ee.useEffect(()=>{const W=w.current;if(!W)return;W.setAttribute("playsinline","true"),W.setAttribute("webkit-playsinline","true"),W.setAttribute("x-webkit-airplay","allow");const q=()=>{St.current||(Oe(W.currentTime),typeof window<"u"&&(window.lastSeekedPosition=W.currentTime))},Ye=()=>{te&&(H(!0),localStorage.setItem("video_initialized","true"))},Fe=()=>{};return W.addEventListener("timeupdate",q),W.addEventListener("play",Ye),W.addEventListener("pause",Fe),()=>{W.removeEventListener("timeupdate",q),W.removeEventListener("play",Ye),W.removeEventListener("pause",Fe)}},[w,te,St]),ee.useEffect(()=>{Oe(L)},[L]);const De=me>0?L/me*100:0,Vt=W=>{W.preventDefault(),qt(!0),St.current=!0,Me(W);const q=Fe=>{St.current&&Me(Fe)},Ye=()=>{qt(!1),St.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",Ye)};document.addEventListener("mousemove",q),document.addEventListener("mouseup",Ye)},Me=W=>{if(!he.current)return;const q=he.current.getBoundingClientRect(),Ye=Math.max(0,Math.min(1,(W.clientX-q.left)/q.width)),Fe=me*Ye;_e({x:W.clientX}),_(Fe),Oe(Fe),typeof window<"u"&&(window.lastSeekedPosition=Fe),d(Fe)},pe=W=>{if(!he.current||!W.touches[0])return;W.preventDefault(),qt(!0),St.current=!0,nt(W);const q=Fe=>{St.current&&nt(Fe)},Ye=()=>{qt(!1),St.current=!1,document.removeEventListener("touchmove",q),document.removeEventListener("touchend",Ye),document.removeEventListener("touchcancel",Ye)};document.addEventListener("touchmove",q,{passive:!1}),document.addEventListener("touchend",Ye),document.addEventListener("touchcancel",Ye)},nt=W=>{if(!he.current)return;const q="touches"in W?W.touches[0]:null;if(!q)return;W.preventDefault();const Ye=he.current.getBoundingClientRect(),Fe=Math.max(0,Math.min(1,(q.clientX-Ye.left)/Ye.width)),at=me*Fe;_e({x:q.clientX}),_(at),Oe(at),typeof window<"u"&&(window.lastSeekedPosition=at),d(at)},oe=W=>{if(!zt&&he.current){const q=he.current.getBoundingClientRect(),Ye=(W.clientX-q.left)/q.width,Fe=me*Ye;Oe(Fe),typeof window<"u"&&(window.lastSeekedPosition=Fe),d(Fe)}},Le=()=>{w.cur
2025-06-11 14:48:30 +03:00
//# sourceMappingURL=video-editor.js.map