@invariant.guru/cli 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/main.js +284 -281
- package/dist/ui/assets/{Editor-BacggN6k.js → Editor-B3P_TPOi.js} +1 -1
- package/dist/ui/assets/{Preview-BNQ0QaKY.js → Preview-Co8EGMAS.js} +1 -1
- package/dist/ui/assets/{index-AAKJY32z.js → index-Csx-Iteb.js} +8 -8
- package/dist/ui/index.html +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
14
14
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
15
|
2. You might be breaking the Rules of Hooks
|
|
16
16
|
3. You might have more than one copy of React in the same app
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=d(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),f=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=f.T,n=l.p;try{if(f.T=null,l.p=2,e)return e()}finally{f.T=t,l.p=n,l.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),h=o(((e,t)=>{t.exports=m()})),g=o((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Jf(e)?e.slice():z({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Jf(e)?e.slice():z({},e);return r+1===t.length?(o[n[r]]=o[a],Jf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Jf(e)?e.slice():z({},e);return n+1===t.length?(Jf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function l(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function u(){}function f(){}function m(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function g(e,t,n,r){return new F(e,t,n,r)}function _(e,t){e.context===Fg&&(tf(e.current,2,t,e,null,null),ol())}function v(e,t){if(Ig!==null){var n=t.staleFamilies;t=t.updatedFamilies,Ml(),gr(e.current,t,n),ol()}}function y(e){Ig=e}function b(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ee(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function te(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(x(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function ne(e){var t=e.alternate;if(!t){if(t=x(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return S(i),e;if(a===r)return S(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function re(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=re(e),t!==null)return t;e=e.sibling}return null}function ie(e){return typeof e!=`object`||!e?null:(e=Kf&&e[Kf]||e[`@@iterator`],typeof e==`function`?e:null)}function C(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===qf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Pf:return`Fragment`;case If:return`Profiler`;case Ff:return`StrictMode`;case Bf:return`Suspense`;case Vf:return`SuspenseList`;case Wf:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case Nf:return`Portal`;case Rf:return e.displayName||`Context`;case Lf:return(e._context.displayName||`Context`)+`.Consumer`;case zf:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Hf:return t=e.displayName||null,t===null?C(e.type)||`Memo`:t;case Uf:t=e._payload,e=e._init;try{return C(e(t))}catch{}}return null}function w(e){return typeof e.tag==`number`?T(e):typeof e.name==`string`?e.name:null}function T(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return C(t);case 8:return t===Ff?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return T(e.return)}return null}function ae(e){return{current:e}}function oe(e,t){0>$f?console.error(`Unexpected pop.`):(t!==Qf[$f]&&console.error(`Unexpected Fiber popped.`),e.current=Zf[$f],Zf[$f]=null,Qf[$f]=null,$f--)}function E(e,t,n){$f++,Zf[$f]=e.current,Qf[$f]=n,e.current=t}function se(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function ce(e,t){E(np,t,e),E(tp,e,e),E(ep,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Vu(t):US;break;default:if(n=t.tagName,t=t.namespaceURI)t=Vu(t),t=Hu(t,n);else switch(n){case`svg`:t=WS;break;case`math`:t=GS;break;default:t=US}}n=n.toLowerCase(),n=Ht(null,n),n={context:t,ancestorInfo:n},oe(ep,e),E(ep,n,e)}function le(e){oe(ep,e),oe(tp,e),oe(np,e)}function ue(){return se(ep.current)}function de(e){e.memoizedState!==null&&E(rp,e,e);var t=se(ep.current),n=e.type,r=Hu(t.context,n);n=Ht(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(E(tp,e,e),E(ep,r,e))}function fe(e){tp.current===e&&(oe(ep,e),oe(tp,e)),rp.current===e&&(oe(rp,e),bC._currentValue=yC)}function pe(){}function me(){if(ip===0){ap=console.log,op=console.info,sp=console.warn,cp=console.error,lp=console.group,up=console.groupCollapsed,dp=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ip++}function he(){if(ip--,ip===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:ap}),info:z({},e,{value:op}),warn:z({},e,{value:sp}),error:z({},e,{value:cp}),group:z({},e,{value:lp}),groupCollapsed:z({},e,{value:up}),groupEnd:z({},e,{value:dp})})}0>ip&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function ge(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=d(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),f=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=f.T,n=l.p;try{if(f.T=null,l.p=2,e)return e()}finally{f.T=t,l.p=n,l.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),h=o(((e,t)=>{t.exports=m()})),g=o((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Jf(e)?e.slice():z({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Jf(e)?e.slice():z({},e);return r+1===t.length?(o[n[r]]=o[a],Jf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Jf(e)?e.slice():z({},e);return n+1===t.length?(Jf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function l(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function u(){}function f(){}function m(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function g(e,t,n,r){return new _r(e,t,n,r)}function _(e,t){e.context===Fg&&(tf(e.current,2,t,e,null,null),ol())}function v(e,t){if(Ig!==null){var n=t.staleFamilies;t=t.updatedFamilies,Ml(),gr(e.current,t,n),ol()}}function y(e){Ig=e}function b(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ee(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function te(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(x(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function ne(e){var t=e.alternate;if(!t){if(t=x(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return S(i),e;if(a===r)return S(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function re(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=re(e),t!==null)return t;e=e.sibling}return null}function ie(e){return typeof e!=`object`||!e?null:(e=Kf&&e[Kf]||e[`@@iterator`],typeof e==`function`?e:null)}function C(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===qf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Pf:return`Fragment`;case If:return`Profiler`;case Ff:return`StrictMode`;case Bf:return`Suspense`;case Vf:return`SuspenseList`;case Wf:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case Nf:return`Portal`;case Rf:return e.displayName||`Context`;case Lf:return(e._context.displayName||`Context`)+`.Consumer`;case zf:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Hf:return t=e.displayName||null,t===null?C(e.type)||`Memo`:t;case Uf:t=e._payload,e=e._init;try{return C(e(t))}catch{}}return null}function w(e){return typeof e.tag==`number`?T(e):typeof e.name==`string`?e.name:null}function T(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return C(t);case 8:return t===Ff?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return T(e.return)}return null}function ae(e){return{current:e}}function oe(e,t){0>$f?console.error(`Unexpected pop.`):(t!==Qf[$f]&&console.error(`Unexpected Fiber popped.`),e.current=Zf[$f],Zf[$f]=null,Qf[$f]=null,$f--)}function E(e,t,n){$f++,Zf[$f]=e.current,Qf[$f]=n,e.current=t}function se(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function ce(e,t){E(np,t,e),E(tp,e,e),E(ep,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Vu(t):US;break;default:if(n=t.tagName,t=t.namespaceURI)t=Vu(t),t=Hu(t,n);else switch(n){case`svg`:t=WS;break;case`math`:t=GS;break;default:t=US}}n=n.toLowerCase(),n=Ht(null,n),n={context:t,ancestorInfo:n},oe(ep,e),E(ep,n,e)}function le(e){oe(ep,e),oe(tp,e),oe(np,e)}function ue(){return se(ep.current)}function de(e){e.memoizedState!==null&&E(rp,e,e);var t=se(ep.current),n=e.type,r=Hu(t.context,n);n=Ht(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(E(tp,e,e),E(ep,r,e))}function fe(e){tp.current===e&&(oe(ep,e),oe(tp,e)),rp.current===e&&(oe(rp,e),bC._currentValue=yC)}function pe(){}function me(){if(ip===0){ap=console.log,op=console.info,sp=console.warn,cp=console.error,lp=console.group,up=console.groupCollapsed,dp=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ip++}function he(){if(ip--,ip===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:ap}),info:z({},e,{value:op}),warn:z({},e,{value:sp}),error:z({},e,{value:cp}),group:z({},e,{value:lp}),groupCollapsed:z({},e,{value:up}),groupEnd:z({},e,{value:dp})})}0>ip&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function ge(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
18
18
|
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
19
19
|
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
|
|
20
20
|
`,t)),t!==-1)e=e.slice(0,t);else return``;return e}function _e(e){if(fp===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);fp=t&&t[1]||``,pp=-1<e.stack.indexOf(`
|
|
@@ -72,7 +72,7 @@ This will cause a hydration error.%s`,t,n),!1}function qt(e,t){if(t){var n=e.fir
|
|
|
72
72
|
|
|
73
73
|
If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
|
|
74
74
|
|
|
75
|
-
If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Gm[t]=!0)}case`function`:case`symbol`:return Gm[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Gm[t]=!0}}return!0}function nn(e,t,n){var r=[],i;for(i in t)tn(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function rn(e){return Xm.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function an(){}function on(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function sn(e){var t=Ze(e);if(t&&(e=t.stateNode)){var n=e[Jp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(k(t,`name`),n=n.querySelectorAll(`input[name="`+mt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Jp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");gt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&ft(r)}break a;case`textarea`:Ct(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&j(e,!!n.multiple,t,!1)}}}function cn(e,t,n){if(eh)return e(t,n);eh=!0;try{return e(t)}finally{if(eh=!1,(Qm!==null||$m!==null)&&(ol(),Qm&&(t=Qm,e=$m,$m=Qm=null,sn(t),e)))for(t=0;t<e.length;t++)sn(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Jp]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function un(){if(oh)return oh;var e,t=ah,n=t.length,r,i=`value`in ih?ih.value:ih.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return oh=i.slice(e,1<r?1-r:void 0)}function dn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fn(){return!0}function pn(){return!1}function mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?fn:pn,this.isPropagationStopped=pn,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=fn)},persist:function(){},isPersistent:fn}),t}function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wh[e])?!!t[e]:!1}function gn(){return hn}function _n(e,t){switch(e){case`keyup`:return jh.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Mh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function vn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function yn(e,t){switch(e){case`compositionend`:return vn(t);case`keypress`:return t.which===Lh?(zh=!0,Rh):null;case`textInput`:return e=t.data,e===Rh&&zh?null:e;default:return null}}function bn(e,t){if(Bh)return e===`compositionend`||!Nh&&_n(e,t)?(e=un(),oh=ah=ih=null,Bh=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Ih&&t.locale!==`ko`?null:t.data;default:return null}}function xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Vh[e.type]:t===`textarea`}function Sn(e){if(!th)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function Cn(e,t,n,r){Qm?$m?$m.push(r):$m=[r]:Qm=r,t=mu(t,`onChange`),0<t.length&&(n=new ch(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function wn(e){cu(e,0)}function Tn(e){if(ft(Qe(e)))return e}function En(e,t){if(e===`change`)return t}function Dn(){Hh&&(Hh.detachEvent(`onpropertychange`,On),Uh=Hh=null)}function On(e){if(e.propertyName===`value`&&Tn(Uh)){var t=[];Cn(t,Uh,e,on(e)),cn(wn,t)}}function kn(e,t,n){e===`focusin`?(Dn(),Hh=t,Uh=n,Hh.attachEvent(`onpropertychange`,On)):e===`focusout`&&Dn()}function An(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Tn(Uh)}function jn(e,t){if(e===`click`)return Tn(t)}function Mn(e,t){if(e===`input`||e===`change`)return Tn(t)}function Nn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function Pn(e,t){if(Gh(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!vp.call(t,i)||!Gh(e[i],t[i]))return!1}return!0}function Fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function In(e,t){var n=Fn(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Fn(n)}}function Ln(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ln(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=pt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=pt(e.document)}return t}function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Bn(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xh||qh==null||qh!==pt(r)||(r=qh,`selectionStart`in r&&zn(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yh&&Pn(Yh,r)||(Yh=r,r=mu(Jh,`onSelect`),0<r.length&&(t=new ch(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=qh)))}function Vn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function Hn(e){if(Qh[e])return Qh[e];if(!Zh[e])return e;var t=Zh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $h)return Qh[e]=t[n];return e}function Un(e,t){sg.set(e,t),et(t,[e])}function Wn(e){for(var t=hg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r){if(Jf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==hg&&t!==vg)return gg;t=vg}else return gg}else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==hg&&t!==_g)return gg;t=_g}}return t}function Gn(e,t,n,r){for(var i in e)vp.call(e,i)&&i[0]!==`_`&&Kn(i,e[i],t,n,r)}function Kn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}if(t.$$typeof===Mf){var a=C(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&Kn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Jf(t.children)||0<t.children.length)&&(e=!0):vp.call(t,l)&&l[0]!==`_`&&Kn(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=Wn(t),l===_g||l===hg){t=JSON.stringify(t);break}if(l===vg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Kn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Kn(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,Kn(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&Gn(t,n,r+1,i);return;case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===mg?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function qn(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([yg+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([yg+i,`…`],[bg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof){if(s.$$typeof===Mf){if(o.type===s.type&&o.key===s.key){o=C(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([yg+i,o],[bg+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[xg+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,qn(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([xg+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Kn(a,o,n,r,yg),Kn(a,s,n,r,bg)}i=!1}}else n.push([bg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function Jn(e){H=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function N(e,t,n,r){Sg&&(Eg.start=t,Eg.end=n,Tg.color=`warning`,Tg.tooltipText=r,Tg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,Eg)):performance.measure(r,Eg))}function Yn(e,t,n){N(e,t,n,`Reconnect`)}function Xn(e,t,n,r,i){var a=T(e);if(a!==null&&Sg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Dg],l=qn(o.memoizedProps,l,c,0),1<c.length&&(l&&!wg&&(o.lanes&i)===0&&100<e.actualDuration?(wg=!0,c[0]=kg,Tg.color=`warning`,Tg.tooltipText=Og):(Tg.color=r,Tg.tooltipText=a),Tg.properties=c,Eg.start=t,Eg.end=n,s==null?performance.measure(``+a,Eg):s.run(performance.measure.bind(performance,``+a,Eg)))):s==null?console.timeStamp(a,t,n,Cg,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,Cg,void 0,r))}}function Zn(e,t,n,r){if(Sg){var i=T(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&Kn(`key`,e.key,o,0,``),e.memoizedProps!==null&&Gn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:Cg,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,``+i,e)):performance.measure(``+i,e)}}}function Qn(e,t,n,r,i){if(i!==null){if(Sg){var a=T(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&Kn(`key`,e.key,r,0,``),e.memoizedProps!==null&&Gn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:Cg,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,``+a,t)):performance.measure(``+a,t)}}}else a=T(e),a!==null&&Sg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,Cg,void 0,i)):console.timeStamp(a,t,n,Cg,void 0,i))}function $n(e,t,n,r){if(Sg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,H,V,i)):console.timeStamp(n,e,t,H,V,i)}}function er(e,t,n,r){!Sg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,H,V,n)):console.timeStamp(`Prewarm`,e,t,H,V,n))}function tr(e,t,n,r){!Sg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,H,V,n)):console.timeStamp(`Suspended`,e,t,H,V,n))}function nr(e,t,n,r,i,a){if(Sg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:H,trackGroup:V,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function P(e,t,n,r){!Sg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,H,V,`error`)):console.timeStamp(`Errored`,e,t,H,V,`error`))}function rr(e,t,n,r){!Sg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,H,V,`secondary-light`)):console.timeStamp(n,e,t,H,V,`secondary-light`))}function ir(e,t,n,r,i){if(Sg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:H,trackGroup:V,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function ar(e,t,n){!Sg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,H,V,`secondary-dark`)):console.timeStamp(`Animating`,e,t,H,V,`secondary-dark`))}function or(){for(var e=Ng,t=Pg=Ng=0;t<e;){var n=Mg[t];Mg[t++]=null;var r=Mg[t];Mg[t++]=null;var i=Mg[t];Mg[t++]=null;var a=Mg[t];if(Mg[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ur(n,i,a)}}function sr(e,t,n,r){Mg[Ng++]=e,Mg[Ng++]=t,Mg[Ng++]=n,Mg[Ng++]=r,Pg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function cr(e,t,n,r){return sr(e,t,n,r),dr(e)}function lr(e,t){return sr(e,null,null,t),dr(e)}function ur(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Ag||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ip(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function dr(e){if(Kx>Gx)throw Zx=Kx=0,Qx=qx=null,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.`);Zx>Xx&&(Zx=0,Qx=null,console.error(`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.`)),e.alternate===null&&e.flags&4098&&Wl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Wl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function fr(e){if(Ig===null)return e;var t=Ig(e);return t===void 0?e:t.current}function pr(e){if(Ig===null)return e;var t=Ig(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=fr(e.render),e.render!==t)?(t={$$typeof:zf,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function mr(e,t){if(Ig===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Uf)&&(r=!0);break;case 11:(i===zf||i===Uf)&&(r=!0);break;case 14:case 15:(i===Hf||i===Uf)&&(r=!0);break;default:return!1}return!!(r&&(e=Ig(n),e!==void 0&&e===Ig(t)))}function hr(e){Ig!==null&&typeof WeakSet==`function`&&(Lg===null&&(Lg=new WeakSet),Lg.add(e))}function gr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(Ig===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Ig(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Lg!==null&&(Lg.has(e)||i!==null&&Lg.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=lr(e,2),i!==null&&tl(i,e,2)),a===null||r||gr(a,t,n),o===null)break;e=o}while(1)}function F(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Hg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function _r(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vr(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=fr(e.type);break;case 1:n.type=fr(e.type);break;case 11:n.type=pr(e.type)}return n}function yr(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function br(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)_r(e)&&(o=1),s=fr(s);else if(typeof e==`string`)o=ue(),o=Gd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Wf:return t=g(31,n,t,i),t.elementType=Wf,t.lanes=a,t;case Pf:return Sr(n.children,i,a,t);case Ff:o=8,i|=zg,i|=Bg;break;case If:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,r|W),t.elementType=If,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Bf:return t=g(13,n,t,i),t.elementType=Bf,t.lanes=a,t;case Vf:return t=g(19,n,t,i),t.elementType=Vf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Rf:o=10;break a;case Lf:o=9;break a;case zf:o=11,s=pr(s);break a;case Hf:o=14;break a;case Uf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:Jf(e)?n=`array`:e!==void 0&&e.$$typeof===Mf?(n=`<`+(C(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?w(r):null)&&(s+=`
|
|
75
|
+
If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Gm[t]=!0)}case`function`:case`symbol`:return Gm[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Gm[t]=!0}}return!0}function nn(e,t,n){var r=[],i;for(i in t)tn(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function rn(e){return Xm.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function an(){}function on(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function sn(e){var t=Ze(e);if(t&&(e=t.stateNode)){var n=e[Jp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(k(t,`name`),n=n.querySelectorAll(`input[name="`+mt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Jp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");gt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&ft(r)}break a;case`textarea`:Ct(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&j(e,!!n.multiple,t,!1)}}}function cn(e,t,n){if(eh)return e(t,n);eh=!0;try{return e(t)}finally{if(eh=!1,(Qm!==null||$m!==null)&&(ol(),Qm&&(t=Qm,e=$m,$m=Qm=null,sn(t),e)))for(t=0;t<e.length;t++)sn(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Jp]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function un(){if(oh)return oh;var e,t=ah,n=t.length,r,i=`value`in ih?ih.value:ih.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return oh=i.slice(e,1<r?1-r:void 0)}function dn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fn(){return!0}function pn(){return!1}function mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?fn:pn,this.isPropagationStopped=pn,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=fn)},persist:function(){},isPersistent:fn}),t}function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wh[e])?!!t[e]:!1}function gn(){return hn}function _n(e,t){switch(e){case`keyup`:return jh.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Mh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function vn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function yn(e,t){switch(e){case`compositionend`:return vn(t);case`keypress`:return t.which===Lh?(zh=!0,Rh):null;case`textInput`:return e=t.data,e===Rh&&zh?null:e;default:return null}}function bn(e,t){if(Bh)return e===`compositionend`||!Nh&&_n(e,t)?(e=un(),oh=ah=ih=null,Bh=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Ih&&t.locale!==`ko`?null:t.data;default:return null}}function xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Vh[e.type]:t===`textarea`}function Sn(e){if(!th)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function Cn(e,t,n,r){Qm?$m?$m.push(r):$m=[r]:Qm=r,t=mu(t,`onChange`),0<t.length&&(n=new ch(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function wn(e){cu(e,0)}function Tn(e){if(ft(Qe(e)))return e}function En(e,t){if(e===`change`)return t}function Dn(){Hh&&(Hh.detachEvent(`onpropertychange`,On),Uh=Hh=null)}function On(e){if(e.propertyName===`value`&&Tn(Uh)){var t=[];Cn(t,Uh,e,on(e)),cn(wn,t)}}function kn(e,t,n){e===`focusin`?(Dn(),Hh=t,Uh=n,Hh.attachEvent(`onpropertychange`,On)):e===`focusout`&&Dn()}function An(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Tn(Uh)}function jn(e,t){if(e===`click`)return Tn(t)}function Mn(e,t){if(e===`input`||e===`change`)return Tn(t)}function Nn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function Pn(e,t){if(Gh(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!vp.call(t,i)||!Gh(e[i],t[i]))return!1}return!0}function Fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function In(e,t){var n=Fn(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Fn(n)}}function Ln(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ln(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=pt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=pt(e.document)}return t}function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Bn(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xh||qh==null||qh!==pt(r)||(r=qh,`selectionStart`in r&&zn(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yh&&Pn(Yh,r)||(Yh=r,r=mu(Jh,`onSelect`),0<r.length&&(t=new ch(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=qh)))}function Vn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function Hn(e){if(Qh[e])return Qh[e];if(!Zh[e])return e;var t=Zh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $h)return Qh[e]=t[n];return e}function Un(e,t){sg.set(e,t),et(t,[e])}function Wn(e){for(var t=hg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r){if(Jf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==hg&&t!==vg)return gg;t=vg}else return gg}else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==hg&&t!==_g)return gg;t=_g}}return t}function Gn(e,t,n,r){for(var i in e)vp.call(e,i)&&i[0]!==`_`&&Kn(i,e[i],t,n,r)}function Kn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}if(t.$$typeof===Mf){var a=C(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&Kn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Jf(t.children)||0<t.children.length)&&(e=!0):vp.call(t,l)&&l[0]!==`_`&&Kn(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=Wn(t),l===_g||l===hg){t=JSON.stringify(t);break}if(l===vg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Kn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Kn(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,Kn(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&Gn(t,n,r+1,i);return;case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===mg?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function qn(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([yg+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([yg+i,`…`],[bg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof){if(s.$$typeof===Mf){if(o.type===s.type&&o.key===s.key){o=C(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([yg+i,o],[bg+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[xg+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,qn(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([xg+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Kn(a,o,n,r,yg),Kn(a,s,n,r,bg)}i=!1}}else n.push([bg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function Jn(e){H=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function Yn(e,t,n,r){Sg&&(Eg.start=t,Eg.end=n,Tg.color=`warning`,Tg.tooltipText=r,Tg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,Eg)):performance.measure(r,Eg))}function Xn(e,t,n){Yn(e,t,n,`Reconnect`)}function N(e,t,n,r,i){var a=T(e);if(a!==null&&Sg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Dg],l=qn(o.memoizedProps,l,c,0),1<c.length&&(l&&!wg&&(o.lanes&i)===0&&100<e.actualDuration?(wg=!0,c[0]=kg,Tg.color=`warning`,Tg.tooltipText=Og):(Tg.color=r,Tg.tooltipText=a),Tg.properties=c,Eg.start=t,Eg.end=n,s==null?performance.measure(``+a,Eg):s.run(performance.measure.bind(performance,``+a,Eg)))):s==null?console.timeStamp(a,t,n,Cg,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,Cg,void 0,r))}}function Zn(e,t,n,r){if(Sg){var i=T(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&Kn(`key`,e.key,o,0,``),e.memoizedProps!==null&&Gn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:Cg,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,``+i,e)):performance.measure(``+i,e)}}}function Qn(e,t,n,r,i){if(i!==null){if(Sg){var a=T(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&Kn(`key`,e.key,r,0,``),e.memoizedProps!==null&&Gn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:Cg,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,``+a,t)):performance.measure(``+a,t)}}}else a=T(e),a!==null&&Sg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,Cg,void 0,i)):console.timeStamp(a,t,n,Cg,void 0,i))}function $n(e,t,n,r){if(Sg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,H,V,i)):console.timeStamp(n,e,t,H,V,i)}}function er(e,t,n,r){!Sg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,H,V,n)):console.timeStamp(`Prewarm`,e,t,H,V,n))}function tr(e,t,n,r){!Sg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,H,V,n)):console.timeStamp(`Suspended`,e,t,H,V,n))}function nr(e,t,n,r,i,a){if(Sg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:H,trackGroup:V,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function rr(e,t,n,r){!Sg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,H,V,`error`)):console.timeStamp(`Errored`,e,t,H,V,`error`))}function ir(e,t,n,r){!Sg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,H,V,`secondary-light`)):console.timeStamp(n,e,t,H,V,`secondary-light`))}function P(e,t,n,r,i){if(Sg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:H,trackGroup:V,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function ar(e,t,n){!Sg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,H,V,`secondary-dark`)):console.timeStamp(`Animating`,e,t,H,V,`secondary-dark`))}function or(){for(var e=Ng,t=Pg=Ng=0;t<e;){var n=Mg[t];Mg[t++]=null;var r=Mg[t];Mg[t++]=null;var i=Mg[t];Mg[t++]=null;var a=Mg[t];if(Mg[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ur(n,i,a)}}function sr(e,t,n,r){Mg[Ng++]=e,Mg[Ng++]=t,Mg[Ng++]=n,Mg[Ng++]=r,Pg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function cr(e,t,n,r){return sr(e,t,n,r),dr(e)}function lr(e,t){return sr(e,null,null,t),dr(e)}function ur(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Ag||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ip(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function dr(e){if(Kx>Gx)throw Zx=Kx=0,Qx=qx=null,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.`);Zx>Xx&&(Zx=0,Qx=null,console.error(`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.`)),e.alternate===null&&e.flags&4098&&Wl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Wl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function fr(e){if(Ig===null)return e;var t=Ig(e);return t===void 0?e:t.current}function pr(e){if(Ig===null)return e;var t=Ig(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=fr(e.render),e.render!==t)?(t={$$typeof:zf,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function mr(e,t){if(Ig===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Uf)&&(r=!0);break;case 11:(i===zf||i===Uf)&&(r=!0);break;case 14:case 15:(i===Hf||i===Uf)&&(r=!0);break;default:return!1}return!!(r&&(e=Ig(n),e!==void 0&&e===Ig(t)))}function hr(e){Ig!==null&&typeof WeakSet==`function`&&(Lg===null&&(Lg=new WeakSet),Lg.add(e))}function gr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(Ig===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Ig(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Lg!==null&&(Lg.has(e)||i!==null&&Lg.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=lr(e,2),i!==null&&tl(i,e,2)),a===null||r||gr(a,t,n),o===null)break;e=o}while(1)}function _r(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Hg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function vr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function F(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=fr(e.type);break;case 1:n.type=fr(e.type);break;case 11:n.type=pr(e.type)}return n}function yr(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function br(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)vr(e)&&(o=1),s=fr(s);else if(typeof e==`string`)o=ue(),o=Gd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Wf:return t=g(31,n,t,i),t.elementType=Wf,t.lanes=a,t;case Pf:return Sr(n.children,i,a,t);case Ff:o=8,i|=zg,i|=Bg;break;case If:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,r|W),t.elementType=If,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Bf:return t=g(13,n,t,i),t.elementType=Bf,t.lanes=a,t;case Vf:return t=g(19,n,t,i),t.elementType=Vf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Rf:o=10;break a;case Lf:o=9;break a;case zf:o=11,s=pr(s);break a;case Hf:o=14;break a;case Uf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:Jf(e)?n=`array`:e!==void 0&&e.$$typeof===Mf?(n=`<`+(C(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?w(r):null)&&(s+=`
|
|
76
76
|
|
|
77
77
|
Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=g(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function xr(e,t,n){return t=br(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Sr(e,t,n,r){return e=g(7,e,r,t),e.lanes=n,e}function Cr(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function wr(e){var t=g(18,null,null,U);return t.stateNode=e,t}function Tr(e,t,n){return t=g(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Er(e,t){if(typeof e==`object`&&e){var n=Ug.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},Ug.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}function Dr(e,t){Nr(),Wg[Gg++]=qg,Wg[Gg++]=Kg,Kg=e,qg=t}function Or(e,t,n){Nr(),Jg[Yg++]=Zg,Jg[Yg++]=Qg,Jg[Yg++]=Xg,Xg=e;var r=Zg;e=Qg;var i=32-Ip(r)-1;r&=~(1<<i),n+=1;var a=32-Ip(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Zg=1<<32-Ip(t)+i|n<<i|r,Qg=a+e}else Zg=1<<a|n<<i|r,Qg=e}function kr(e){Nr(),e.return!==null&&(Dr(e,1),Or(e,1,0))}function Ar(e){for(;e===Kg;)Kg=Wg[--Gg],Wg[Gg]=null,qg=Wg[--Gg],Wg[Gg]=null;for(;e===Xg;)Xg=Jg[--Yg],Jg[Yg]=null,Qg=Jg[--Yg],Jg[Yg]=null,Zg=Jg[--Yg],Jg[Yg]=null}function jr(){return Nr(),Xg===null?null:{id:Zg,overflow:Qg}}function Mr(e,t){Nr(),Jg[Yg++]=Zg,Jg[Yg++]=Qg,Jg[Yg++]=Xg,Zg=t.id,Qg=t.overflow,Xg=e}function Nr(){G||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Pr(e,t){if(e.return===null){if(n_===null)n_={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(n_.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);n_.distanceFromLeaf>t&&(n_.distanceFromLeaf=t)}return n_}var n=Pr(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Fr(){G&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function Ir(e,t){t_||(e=Pr(e,0),e.serverProps=null,t!==null&&(t=yd(t),e.serverTail.push(t)))}function Lr(e){var t=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=``,r=n_;throw r!==null&&(n_=null,n=Bt(r)),Ur(Er(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
78
78
|
|
|
@@ -101,7 +101,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
101
101
|
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
102
102
|
<%s>{%s}</%s>`,t,t,n,t,n))}function Wi(e,t){var n=Li();n===null?Ui(e,t):n.run(Ui.bind(null,e,t))}function Gi(e,t){var n=T(e)||`Component`;Xv[n]||(Xv[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
103
103
|
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
104
|
-
<%s>%s</%s>`,n,t,n))}function Ki(e,t){var n=Li();n===null?Gi(e,t):n.run(Gi.bind(null,e,t))}function qi(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=
|
|
104
|
+
<%s>%s</%s>`,n,t,n))}function Ki(e,t){var n=Li();n===null?Gi(e,t):n.run(Gi.bind(null,e,t))}function qi(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=F(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=Cr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=J,t):(t=i(t,n),t.return=e,t._debugInfo=J,t)}function c(e,t,n,r){var a=n.type;return a===Pf?(t=u(e,t,n.props.children,r,n.key),Ri(n,t,e),t):t!==null&&(t.elementType===a||mr(t,n)||typeof a==`object`&&a&&a.$$typeof===Uf&&Ni(a)===t.type)?(t=i(t,n.props),Bi(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=J,t):(t=xr(n,e.mode,r),Bi(t,n),t.return=e,t._debugInfo=J,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Tr(n,e.mode,r),t.return=e,t._debugInfo=J,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=J,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=Sr(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=J,t):(t=i(t,n),t.return=e,t._debugInfo=J,t)}function d(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Cr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=J,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Mf:return n=xr(t,e.mode,n),Bi(n,t),n.return=e,e=Ii(t._debugInfo),n._debugInfo=J,J=e,n;case Nf:return t=Tr(t,e.mode,n),t.return=e,t._debugInfo=J,t;case Uf:var r=Ii(t._debugInfo);return t=Ni(t),e=d(e,t,n),J=r,e}if(Jf(t)||ie(t))return n=Sr(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Ii(t._debugInfo),n._debugInfo=J,J=e,n;if(typeof t.then==`function`)return r=Ii(t._debugInfo),e=d(e,zi(t),n),J=r,e;if(t.$$typeof===Rf)return d(e,ei(e,t),n);Hi(e,t)}return typeof t==`function`&&Wi(e,t),typeof t==`symbol`&&Ki(e,t),null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Mf:return n.key===i?(i=Ii(n._debugInfo),e=c(e,t,n,r),J=i,e):null;case Nf:return n.key===i?l(e,t,n,r):null;case Uf:return i=Ii(n._debugInfo),n=Ni(n),e=p(e,t,n,r),J=i,e}if(Jf(n)||ie(n))return i===null?(i=Ii(n._debugInfo),e=u(e,t,n,r,null),J=i,e):null;if(typeof n.then==`function`)return i=Ii(n._debugInfo),e=p(e,t,zi(n),r),J=i,e;if(n.$$typeof===Rf)return p(e,t,ei(e,n),r);Hi(e,n)}return typeof n==`function`&&Wi(e,n),typeof n==`symbol`&&Ki(e,n),null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Mf:return n=e.get(r.key===null?n:r.key)||null,e=Ii(r._debugInfo),t=c(t,n,r,i),J=e,t;case Nf:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Uf:var a=Ii(r._debugInfo);return r=Ni(r),t=m(e,t,n,r,i),J=a,t}if(Jf(r)||ie(r))return n=e.get(n)||null,e=Ii(r._debugInfo),t=u(t,n,r,i,null),J=e,t;if(typeof r.then==`function`)return a=Ii(r._debugInfo),t=m(e,t,n,zi(r),i),J=a,t;if(r.$$typeof===Rf)return m(e,t,n,ei(t,r),i);Hi(t,r)}return typeof r==`function`&&Wi(t,r),typeof r==`symbol`&&Ki(t,r),null}function h(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Mf:case Nf:f(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}D(t,function(){console.error("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.",i)});break;case Uf:n=Ni(n),h(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,f=null,g=o,_=o=0,v=null;g!==null&&_<s.length;_++){g.index>_?(v=g,g=null):v=g.sibling;var y=p(i,g,s[_],c);if(y===null){g===null&&(g=v);break}l=h(i,y,s[_],l),e&&g&&y.alternate===null&&t(i,g),o=a(y,o,_),f===null?u=y:f.sibling=y,f=y,g=v}if(_===s.length)return n(i,g),G&&Dr(i,_),u;if(g===null){for(;_<s.length;_++)g=d(i,s[_],c),g!==null&&(l=h(i,g,s[_],l),o=a(g,o,_),f===null?u=g:f.sibling=g,f=g);return G&&Dr(i,_),u}for(g=r(g);_<s.length;_++)v=m(g,i,_,s[_],c),v!==null&&(l=h(i,v,s[_],l),e&&v.alternate!==null&&g.delete(v.key===null?_:v.key),o=a(v,o,_),f===null?u=v:f.sibling=v,f=v);return e&&g.forEach(function(e){return t(i,e)}),G&&Dr(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,f=o,g=o=0,_=null,v=null,y=s.next();f!==null&&!y.done;g++,y=s.next()){f.index>g?(_=f,f=null):_=f.sibling;var b=p(i,f,y.value,c);if(b===null){f===null&&(f=_);break}v=h(i,b,y.value,v),e&&f&&b.alternate===null&&t(i,f),o=a(b,o,g),u===null?l=b:u.sibling=b,u=b,f=_}if(y.done)return n(i,f),G&&Dr(i,g),l;if(f===null){for(;!y.done;g++,y=s.next())f=d(i,y.value,c),f!==null&&(v=h(i,f,y.value,v),o=a(f,o,g),u===null?l=f:u.sibling=f,u=f);return G&&Dr(i,g),l}for(f=r(f);!y.done;g++,y=s.next())_=m(f,i,g,y.value,c),_!==null&&(v=h(i,_,y.value,v),e&&_.alternate!==null&&f.delete(_.key===null?g:_.key),o=a(_,o,g),u===null?l=_:u.sibling=_,u=_);return e&&f.forEach(function(e){return t(i,e)}),G&&Dr(i,g),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Pf&&a.key===null&&(Ri(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Mf:var c=Ii(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Pf){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=J,Ri(a,s,e),e=s;break a}}else if(r.elementType===l||mr(r,a)||typeof l==`object`&&l&&l.$$typeof===Uf&&Ni(l)===r.type){n(e,r.sibling),s=i(r,a.props),Bi(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=J,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===Pf?(s=Sr(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=J,Ri(a,s,e),e=s):(s=xr(a,e.mode,s),Bi(s,a),s.return=e,s._debugInfo=J,e=s)}return e=o(e),J=c,e;case Nf:a:{for(c=a,a=c.key;r!==null;){if(r.key===a){if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}s=Tr(c,e.mode,s),s.return=e,e=s}return o(e);case Uf:return c=Ii(a._debugInfo),a=Ni(a),e=y(e,r,a,s),J=c,e}if(Jf(a))return c=Ii(a._debugInfo),e=_(e,r,a,s),J=c,e;if(ie(a)){if(c=Ii(a._debugInfo),l=ie(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(qv||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),qv=!0):a.entries!==l||Kv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Kv=!0),e=v(e,r,u,s),J=c,e}if(typeof a.then==`function`)return c=Ii(a._debugInfo),e=y(e,r,zi(a),s),J=c,e;if(a.$$typeof===Rf)return y(e,r,ei(e,a),s);Hi(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=Cr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=J,e=s),o(e)):(typeof a==`function`&&Wi(e,a),typeof a==`symbol`&&Ki(e,a),n(e,r))}return function(e,t,n,r){var i=J;J=null;try{Gv=0;var a=y(e,t,n,r);return Wv=null,a}catch(t){if(t===Rv||t===Bv)throw t;var o=g(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=J;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{J=i}}}function Ji(e,t){var n=Jf(e);return e=!n&&typeof ie(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Yi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zi(e){return{lane:e,tag:$v,payload:null,callback:null,next:null}}function Qi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ay===r&&!iy){var i=T(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
105
105
|
|
|
106
106
|
Please update the following component: %s`,i),iy=!0}return(Z&Fb)===Pb?(sr(e,r,t,n),dr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=dr(e),ur(e,null,n),t)}function $i(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}function ea(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ta(){if(oy){var e=sv;if(e!==null)throw e}}function na(e,t,n,r){oy=!1;var i=e.updateQueue;ry=!1,ay=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($&f)===f:(r&f)===f){f!==0&&f===ov&&(oy=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case ey:if(m=m.payload,typeof m==`function`){d_=!0;var _=m.call(g,d,h);if(f.mode&zg){Ae(!0);try{m.call(g,d,h)}finally{Ae(!1)}}d_=!1,d=_;break a}d=m;break a;case ny:f.flags=f.flags&-65537|128;case $v:if(_=m.payload,typeof _==`function`){if(d_=!0,m=_.call(g,d,h),f.mode&zg){Ae(!0);try{_.call(g,d,h)}finally{Ae(!1)}}d_=!1}else m=_;if(m==null)break a;d=z({},d,m);break a;case ty:ry=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),cx|=o,e.lanes=o,e.memoizedState=d}ay=null}function ra(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function ia(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)ra(n[e],t)}function aa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ra(n[e],t)}function oa(e,t){var n=ox;E(cy,n,e),E(sy,t,e),ox=n|t.baseLanes}function sa(e){E(cy,ox,e),E(sy,sy.current,e)}function ca(e){ox=cy.current,oe(sy,e),oe(cy,e)}function la(e){var t=e.alternate;E(py,py.current&dy,e),E(ly,e,e),uy===null&&(t===null||sy.current!==null||t.memoizedState!==null)&&(uy=e)}function ua(e){E(py,py.current,e),E(ly,e,e),uy===null&&(uy=e)}function da(e){e.tag===22?(E(py,py.current,e),E(ly,e,e),uy===null&&(uy=e)):fa(e)}function fa(e){E(py,py.current,e),E(ly,ly.current,e)}function pa(e){oe(ly,e),uy===e&&(uy=null),oe(py,e)}function ma(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hd(n)||gd(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function I(){var e=X;Fy===null?Fy=[e]:Fy.push(e)}function L(){var e=X;if(Fy!==null&&(Iy++,Fy[Iy]!==e)){var t=T(Y);if(!by.has(t)&&(by.add(t),Fy!==null)){for(var n=``,r=0;r<=Iy;r++){var i=Fy[r],a=r===Iy?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
|
|
107
107
|
`,n+=i}console.error(`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://react.dev/link/rules-of-hooks
|
|
@@ -130,9 +130,9 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
130
130
|
%s
|
|
131
131
|
|
|
132
132
|
%s
|
|
133
|
-
`,e,t,n)}function ns(e){pg(e)}function rs(e,t){try{ib=t.source?T(t.source):null,ab=null;var n=t.value;if(B.actQueue!==null)B.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function is(e,t,n){try{ib=n.source?T(n.source):null,ab=T(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function as(e,t,n){return n=Zi(n),n.tag=ny,n.payload={element:null},n.callback=function(){D(t.source,rs,e,t)},n}function os(e){return e=Zi(e),e.tag=ny,e}function ss(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){hr(n),D(r.source,is,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){hr(n),D(r.source,is,t,n,r),typeof i!=`function`&&(Cx===null?Cx=new Set([this]):Cx.add(this)),kv(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,T(n)||`Unknown`)})}function cs(e,t,n,r,i){if(n.flags|=32768,Fp&&Gl(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xr(t,n,i,!0),G&&(t_=!0),n=ly.current,n!==null){switch(n.tag){case 31:case 13:return uy===null?hl():n.alternate===null&&sx===Lb&&(sx=Bb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Vv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Il(e,r,i)),!1;case 22:return n.flags|=65536,r===Vv?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Il(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Il(e,r,i),hl(),!1}if(G)return t_=!0,t=ly.current,t===null?(r!==a_&&Ur(Er(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Er(r,n),i=as(e.stateNode,r,i),ea(e,i),sx!==Vb&&(sx=zb)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==a_&&Ur(Er(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=Er(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(px===null?px=[a]:px.push(a),sx!==Vb&&(sx=zb),t===null)return!0;r=Er(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=as(n.stateNode,r,e),ea(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Cx===null||!Cx.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=os(i),ss(i,e,n,r),ea(n,i),!1}n=n.return}while(n!==null);return!1}function ls(e,t,n,r){t.child=e===null?Qv(t,null,n,r):Zv(t,e.child,n,r)}function us(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qr(t),r=ya(e,t,n,o,a,i),s=Ca(),e!==null&&!sb?(wa(e,t,i),Ps(e,t,i)):(G&&s&&kr(t),t.flags|=1,ls(e,t,r,i),t.child)}function ds(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!
|
|
133
|
+
`,e,t,n)}function ns(e){pg(e)}function rs(e,t){try{ib=t.source?T(t.source):null,ab=null;var n=t.value;if(B.actQueue!==null)B.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function is(e,t,n){try{ib=n.source?T(n.source):null,ab=T(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function as(e,t,n){return n=Zi(n),n.tag=ny,n.payload={element:null},n.callback=function(){D(t.source,rs,e,t)},n}function os(e){return e=Zi(e),e.tag=ny,e}function ss(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){hr(n),D(r.source,is,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){hr(n),D(r.source,is,t,n,r),typeof i!=`function`&&(Cx===null?Cx=new Set([this]):Cx.add(this)),kv(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,T(n)||`Unknown`)})}function cs(e,t,n,r,i){if(n.flags|=32768,Fp&&Gl(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xr(t,n,i,!0),G&&(t_=!0),n=ly.current,n!==null){switch(n.tag){case 31:case 13:return uy===null?hl():n.alternate===null&&sx===Lb&&(sx=Bb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Vv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Il(e,r,i)),!1;case 22:return n.flags|=65536,r===Vv?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Il(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Il(e,r,i),hl(),!1}if(G)return t_=!0,t=ly.current,t===null?(r!==a_&&Ur(Er(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Er(r,n),i=as(e.stateNode,r,i),ea(e,i),sx!==Vb&&(sx=zb)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==a_&&Ur(Er(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=Er(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(px===null?px=[a]:px.push(a),sx!==Vb&&(sx=zb),t===null)return!0;r=Er(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=as(n.stateNode,r,e),ea(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Cx===null||!Cx.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=os(i),ss(i,e,n,r),ea(n,i),!1}n=n.return}while(n!==null);return!1}function ls(e,t,n,r){t.child=e===null?Qv(t,null,n,r):Zv(t,e.child,n,r)}function us(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qr(t),r=ya(e,t,n,o,a,i),s=Ca(),e!==null&&!sb?(wa(e,t,i),Ps(e,t,i)):(G&&s&&kr(t),t.flags|=1,ls(e,t,r,i),t.child)}function ds(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!vr(a)&&a.defaultProps===void 0&&n.compare===null?(n=fr(a),t.tag=15,t.type=n,ws(t,a),fs(e,t,n,r,i)):(e=br(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Fs(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Pn:n,n(o,r)&&e.ref===t.ref)return Ps(e,t,i)}return t.flags|=1,e=F(a,r),e.ref=t.ref,e.return=t,t.child=e}function fs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Pn(a,r)&&e.ref===t.ref&&t.type===e.type){if(sb=!1,t.pendingProps=r=a,Fs(e,i))e.flags&131072&&(sb=!0);else return t.lanes=e.lanes,Ps(e,t,i)}}return bs(e,t,n,r,i)}function ps(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Ag,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return hs(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Oi(t,a===null?null:a.cachePool),a===null?sa(t):oa(t,a),da(t);else return r=t.lanes=536870912,hs(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Oi(t,null),sa(t),fa(t)):(Oi(t,a.cachePool),oa(t,a),fa(t),t.memoizedState=null);return ls(e,t,i,n),t.child}function ms(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Ag,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hs(e,t,n,r,i){var a=Di();return a=a===null?null:{parent:h_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Oi(t,null),sa(t),da(t),e!==null&&Xr(e,t,r,!0),t.childLanes=i,null}function gs(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
134
134
|
- <Activity %s>
|
|
135
|
-
+ <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _s(e,t,n){return Zv(t,e.child,null,n),e=gs(t,t.pendingProps),e.flags|=2,pa(t),t.memoizedState=null,e}function vs(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(G){if(r.mode===`hidden`)return e=gs(t,r),t.lanes=536870912,ms(null,e);if(ua(t),(e=e_)?(n=md(e,i_),n=n!==null&&n.data===kS?n:null,n!==null&&(r={dehydrated:n,treeContext:jr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=wr(n),r.return=t,t.child=r,$g=t,e_=null)):n=null,n===null)throw Ir(t,e),Lr(t);return t.lanes=536870912,null}return gs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(ua(t),i){if(t.flags&256)t.flags&=-257,t=_s(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}else if(Fr(),n&536870912&&ml(t),sb||Xr(e,t,n,!1),i=(n&e.childLanes)!==0,sb||i){if(r=Wb,r!==null&&(o=He(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,lr(e,o),tl(r,e,o),ob;hl(),t=_s(e,t,n)}else e=a.treeContext,e_=vd(o.nextSibling),$g=t,G=!0,r_=null,t_=!1,n_=null,i_=!1,e!==null&&Mr(t,e),t=gs(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&ml(t),e=
|
|
135
|
+
+ <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _s(e,t,n){return Zv(t,e.child,null,n),e=gs(t,t.pendingProps),e.flags|=2,pa(t),t.memoizedState=null,e}function vs(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(G){if(r.mode===`hidden`)return e=gs(t,r),t.lanes=536870912,ms(null,e);if(ua(t),(e=e_)?(n=md(e,i_),n=n!==null&&n.data===kS?n:null,n!==null&&(r={dehydrated:n,treeContext:jr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=wr(n),r.return=t,t.child=r,$g=t,e_=null)):n=null,n===null)throw Ir(t,e),Lr(t);return t.lanes=536870912,null}return gs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(ua(t),i){if(t.flags&256)t.flags&=-257,t=_s(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}else if(Fr(),n&536870912&&ml(t),sb||Xr(e,t,n,!1),i=(n&e.childLanes)!==0,sb||i){if(r=Wb,r!==null&&(o=He(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,lr(e,o),tl(r,e,o),ob;hl(),t=_s(e,t,n)}else e=a.treeContext,e_=vd(o.nextSibling),$g=t,G=!0,r_=null,t_=!1,n_=null,i_=!1,e!==null&&Mr(t,e),t=gs(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&ml(t),e=F(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function ys(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function bs(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=C(n)||`Unknown`;cb[a]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,a,a),cb[a]=!0)}return t.mode&zg&&uv.recordLegacyContextWarning(t,null),e===null&&(ws(t,t.type),n.contextTypes&&(a=C(n)||`Unknown`,ub[a]||(ub[a]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,a)))),Qr(t),n=ya(e,t,n,r,void 0,i),r=Ca(),e!==null&&!sb?(wa(e,t,i),Ps(e,t,i)):(G&&r&&kr(t),t.flags|=1,ls(e,t,n,i),t.child)}function xs(e,t,n,r,i,a){return Qr(t),Iy=-1,Ly=e!==null&&e.type!==t.type,t.updateQueue=null,n=xa(t,r,n,i),ba(e,t),r=Ca(),e!==null&&!sb?(wa(e,t,a),Ps(e,t,a)):(G&&r&&kr(t),t.flags|=1,ls(e,t,n,a),t.child)}function Ss(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=Wb,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=os(c),ss(c,o,t,Er(a,t)),ea(t,c)}if(Qr(t),t.stateNode===null){if(o=Fg,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Rf)&&!tb.has(n)&&(tb.add(n),c=a===void 0?` 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 a==`object`?a.$$typeof===Lf?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,C(n)||`Component`,c)),typeof a==`object`&&a&&(o=$r(a)),a=new n(r,o),t.mode&zg){Ae(!0);try{a=new n(r,o)}finally{Ae(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=rb,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=Ky,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=C(n)||`Component`,Jy.has(o)||(Jy.add(o),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=C(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;Xy.has(a)||(Xy.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
136
136
|
|
|
137
137
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
138
138
|
|
|
@@ -141,7 +141,7 @@ https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
|
|
|
141
141
|
`+o,c===null?``:`
|
|
142
142
|
`+c,l===null?``:`
|
|
143
143
|
`+l))}}a=t.stateNode,o=C(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!eb.has(n)&&(eb.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!$y.has(n)&&($y.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%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.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,C(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%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().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||Yy.has(n)||(Yy.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,C(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Jf(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Yi(t),o=n.contextType,a.context=typeof o==`object`&&o?$r(o):Fg,a.state===r&&(o=C(n)||`Component`,Zy.has(o)||(Zy.add(o),console.error(`%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.`,o))),t.mode&zg&&uv.recordLegacyContextWarning(t,a),uv.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Xo(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,T(t)||`Component`),rb.enqueueReplaceState(a,a.state,null)),na(t,r,a,i),ta(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Bg)!==U&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=$o(n,d),a.props=c;var f=a.context;l=n.contextType,o=Fg,typeof l==`object`&&l&&(o=$r(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&Qo(t,a,r,o),ry=!1;var p=t.memoizedState;a.state=p,na(t,r,a,i),ta(),f=t.memoizedState,d||p!==f||ry?(typeof u==`function`&&(Xo(t,n,u,r),f=t.memoizedState),(c=ry||Zo(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Bg)!==U&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Bg)!==U&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Bg)!==U&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,Xi(e,t),o=t.memoizedProps,l=$o(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=Fg,typeof f==`object`&&f&&(c=$r(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&Qo(t,a,r,c),ry=!1,p=t.memoizedState,a.state=p,na(t,r,a,i),ta();var m=t.memoizedState;o!==u||p!==m||ry||e!==null&&e.dependencies!==null&&Zr(e.dependencies)?(typeof d==`function`&&(Xo(t,n,d,r),m=t.memoizedState),(l=ry||Zo(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&Zr(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,ys(e,t),o=!!(t.flags&128),c||o){if(c=t.stateNode,we(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,w_=-1;else if(n=Cv(c),t.mode&zg){Ae(!0);try{Cv(c)}finally{Ae(!1)}}t.flags|=1,e!==null&&o?(t.child=Zv(t,e.child,null,i),t.child=Zv(t,null,n,i)):ls(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=Ps(e,t,i);return i=t.stateNode,a&&i.props!==r&&(fb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",T(t)||`a component`),fb=!0),e}function Cs(e,t,n,r){return Vr(),t.flags|=256,ls(e,t,n,r),t.child}function ws(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
144
|
-
%s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=C(t)||`Unknown`,db[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),db[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=C(t)||`Unknown`,lb[t]||(console.error(`%s: Function components do not support contextType.`,t),lb[t]=!0))}function Ts(e){return{baseLanes:e,cachePool:ki()}}function Es(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dx),e}function Ds(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=!!(t.flags&128);if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(py.current&fy)!==0),r&&(a=!0,t.flags&=-129),r=!!(t.flags&32),t.flags&=-33,e===null){if(G){if(a?la(t):fa(t),(e=e_)?(n=md(e,i_),n=n!==null&&n.data!==kS?n:null,n!==null&&(r={dehydrated:n,treeContext:jr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=wr(n),r.return=t,t.child=r,$g=t,e_=null)):n=null,n===null)throw Ir(t,e),Lr(t);return gd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){fa(t);var l=t.mode;return c=ks({mode:`hidden`,children:c},l),i=Sr(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=Ts(n),i.childLanes=Es(e,r,n),t.memoizedState=hb,ms(null,i)}return la(t),Os(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(la(t),t.flags&=-257,t=As(e,t,n)):t.memoizedState===null?(fa(t),c=i.fallback,l=t.mode,i=ks({mode:`visible`,children:i.children},l),c=Sr(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Zv(t,e.child,null,n),i=t.child,i.memoizedState=Ts(n),i.childLanes=Es(e,r,n),t.memoizedState=hb,t=ms(null,i)):(fa(t),t.child=e.child,t.flags|=128,t=null);else if(la(t),Fr(),n&536870912&&ml(t),gd(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Ug.set(c,i),Ur(i),t=As(e,t,n)}else if(sb||Xr(e,t,n,!1),r=(n&e.childLanes)!==0,sb||r){if(r=Wb,r!==null&&(i=He(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,lr(e,i),tl(r,e,i),ob;hd(d)||hl(),t=As(e,t,n)}else hd(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,e_=vd(d.nextSibling),$g=t,G=!0,r_=null,t_=!1,n_=null,i_=!1,e!==null&&Mr(t,e),t=Os(t,i.children),t.flags|=4096);return t}}return a?(fa(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=vr(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=Sr(c,l,n,null),c.flags|=2):c=vr(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,ms(null,i),i=t.child,c=e.child.memoizedState,c===null?c=Ts(n):(l=c.cachePool,l===null?l=ki():(p=h_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=Es(e,r,n),t.memoizedState=hb,ms(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&ml(t),la(t),n=e.child,e=n.sibling,n=vr(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Os(e,t){return t=ks({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function ks(e,t){return e=g(22,e,null,t),e.lanes=0,e}function As(e,t,n){return Zv(t,e.child,null,n),e=Os(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jr(e.return,t,n)}function Ms(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ns(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=py.current;if((r=(s&fy)!==0)?(s=s&dy|fy,t.flags|=128):s&=dy,E(py,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!pb[s]){if(pb[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}s=a??`null`,mb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(mb[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(mb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(mb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o){if(Jf(o)){for(s=0;s<o.length;s++)if(!Ji(o[s],s))break a}else if(s=ie(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Ji(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i)}if(ls(e,t,o,n),G?(Nr(),o=qg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&js(e,n,t);else if(e.tag===19)js(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ma(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ms(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ma(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ms(t,!0,n,null,a,o);break;case`together`:Ms(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),w_=-1,cx|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Xr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=vr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fs(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Zr(e)))}function Is(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Kr(t,h_,e.memoizedState.cache),Vr();break;case 27:case 5:de(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Kr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,ua(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(la(t),e=Ps(e,t,n),e===null?null:e.sibling):Ds(e,t,n):(la(t),t.flags|=128,null);la(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Xr(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ns(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),E(py,py.current,t),r)break;return null;case 22:return t.lanes=0,ps(e,t,n,t.pendingProps);case 24:Kr(t,h_,e.memoizedState.cache)}return Ps(e,t,n)}function Ls(e,t,n){if(t._debugNeedsRemount&&e!==null){n=br(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null){if(e.memoizedProps!==t.pendingProps||t.type!==e.type)sb=!0;else{if(!Fs(e,n)&&!(t.flags&128))return sb=!1,Is(e,t,n);sb=!!(e.flags&131072)}}else sb=!1,(r=G)&&(Nr(),r=!!(t.flags&1048576)),r&&(r=t.index,Nr(),Or(t,qg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=Ni(t.elementType),t.type=e,typeof e==`function`)_r(e)?(r=$o(e,r),t.tag=1,t.type=e=fr(e),t=Ss(null,t,e,r,n)):(t.tag=0,ws(t,e),t.type=e=fr(e),t=bs(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===zf){t.tag=11,t.type=e=pr(e),t=us(null,t,e,r,n);break a}if(i===Hf){t.tag=14,t=ds(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Uf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=C(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return bs(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=$o(r,t.pendingProps),Ss(e,t,r,i,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Xi(e,t),na(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Kr(t,h_,r),r!==a.cache&&Yr(t,[h_],n,!0),ta(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Cs(e,t,r,n);break a}if(r!==i){i=Er(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Ur(i),t=Cs(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(e_=vd(e.firstChild),$g=t,G=!0,r_=null,t_=!1,n_=null,i_=!0,n=Qv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Vr(),r===i){t=Ps(e,t,n);break a}ls(e,t,r,n)}t=t.child}return t;case 26:return ys(e,t),e===null?(n=jd(t.type,null,t.pendingProps,null))?t.memoizedState=n:G||(n=t.type,e=t.pendingProps,r=se(np.current),r=Bu(r).createElement(n),r[qp]=t,r[Jp]=e,Eu(r,n,e),$e(r),t.stateNode=r):t.memoizedState=jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return de(t),e===null&&G&&(r=se(np.current),i=ue(),r=t.stateNode=Ed(t.type,t.pendingProps,r,i,!1),t_||(i=Iu(r,t.type,t.pendingProps,i),i!==null&&(Pr(t,0).serverProps=i)),$g=t,i_=!0,i=e_,ed(t.type)?(nC=i,e_=vd(r.firstChild)):e_=i),ls(e,t,t.pendingProps.children,n),ys(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&G&&(a=ue(),r=Gt(t.type,a.ancestorInfo),i=e_,(o=!i)||(o=fd(i,t.type,t.pendingProps,i_),o===null?a=!1:(t.stateNode=o,t_||(a=Iu(o,t.type,t.pendingProps,a),a!==null&&(Pr(t,0).serverProps=a)),$g=t,e_=vd(o.firstChild),i_=!1,a=!0),o=!a),o&&(r&&Ir(t,i),Lr(t))),de(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Uu(i,a)?r=null:o!==null&&Uu(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=ya(e,t,Sa,null,null,n),bC._currentValue=i),ys(e,t),ls(e,t,r,n),t.child;case 6:return e===null&&G&&(n=t.pendingProps,e=ue(),r=e.ancestorInfo.current,n=r==null||Kt(n,r.tag,e.ancestorInfo.implicitRootScope),e=e_,(r=!e)||(r=pd(e,t.pendingProps,i_),r===null?r=!1:(t.stateNode=r,$g=t,e_=null,r=!0),r=!r),r&&(n&&Ir(t,e),Lr(t))),null;case 13:return Ds(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zv(t,null,r,n):ls(e,t,r,n),t.child;case 11:return us(e,t,t.type,t.pendingProps,n);case 7:return ls(e,t,t.pendingProps,n),t.child;case 8:return ls(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,ls(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||gb||(gb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Kr(t,r,a),ls(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Qr(t),i=$r(i),r=xv(r,i,void 0),t.flags|=1,ls(e,t,r,n),t.child;case 14:return ds(e,t,t.type,t.pendingProps,n);case 15:return fs(e,t,t.type,t.pendingProps,n);case 19:return Ns(e,t,n);case 31:return vs(e,t,n);case 22:return ps(e,t,n,t.pendingProps);case 24:return Qr(t),r=$r(h_),e===null?(i=Di(),i===null&&(i=Wb,a=ni(),i.pooledCache=a,ri(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Yi(t),Kr(t,h_,i)):((e.lanes&n)!==0&&(Xi(e,t),na(t,null,null,n),ta()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Kr(t,h_,r),r!==i.cache&&Yr(t,[h_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Kr(t,h_,r))),ls(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Rs(e){e.flags|=4}function zs(e,t,n,r,i){if((t=(e.mode&Vg)!==U)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(dl())e.flags|=8192;else throw Hv=Vv,zv}}else e.flags&=-16777217}function Bs(e,t){if(t.type!==`stylesheet`||(t.state.loading&sC)!==rC)e.flags&=-16777217;else if(e.flags|=16777216,!Kd(t)){if(dl())e.flags|=8192;else throw Hv=Vv,zv}}function Vs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ie(),e.lanes|=t,fx|=t)}function Hs(e,t){if(!G)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Us(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t){if((e.mode&W)!==U){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling}else if((e.mode&W)!==U){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(Ar(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Us(t),null;case 1:return Us(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qr(h_,t),le(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Br(t)?(Wr(),Rs(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Hr())),Us(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Rs(t),a===null?(Us(t),zs(t,i,null,r,n)):(Us(t),Bs(t,a))):a?a===e.memoizedState?(Us(t),t.flags&=-16777217):(Rs(t),Us(t),Bs(t,a)):(e=e.memoizedProps,e!==r&&Rs(t),Us(t),zs(t,i,e,r,n)),null;case 27:if(fe(t),n=se(np.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Rs(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Us(t),null}e=ue(),Br(t)?Rr(t,e):(e=Ed(i,r,n,e,!0),t.stateNode=e,Rs(t))}return Us(t),null;case 5:if(fe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Rs(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Us(t),null}var o=ue();if(Br(t))Rr(t,o);else{switch(a=se(np.current),Gt(i,o.ancestorInfo),o=o.context,a=Bu(a),o){case WS:a=a.createElementNS(Lm,i);break;case GS:a=a.createElementNS(Im,i);break;default:switch(i){case`svg`:a=a.createElementNS(Lm,i);break;case`math`:a=a.createElementNS(Im,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||vp.call(JS,i)||(JS[i]=!0,console.error(`The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.`,i)))}}a[qp]=t,a[Jp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Eu(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Rs(t)}}return Us(t),zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Rs(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=se(np.current),n=ue(),Br(t)){if(e=t.stateNode,n=t.memoizedProps,i=!t_,r=null,a=$g,a!==null)switch(a.tag){case 3:i&&(i=bd(e,n,r),i!==null&&(Pr(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=bd(e,n,r),i!==null&&(Pr(t,0).serverProps=i))}e[qp]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Cu(e.nodeValue,n)),e||Lr(t,!0)}else i=n.ancestorInfo.current,i!=null&&Kt(r,i.tag,n.ancestorInfo.implicitRootScope),e=Bu(e).createTextNode(r),e[qp]=t,t.stateNode=e}return Us(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Br(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[qp]=t,Us(t),(t.mode&W)!==U&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Wr(),Vr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Us(t),(t.mode&W)!==U&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Hr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(pa(t),t):(pa(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Us(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Br(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[qp]=t,Us(t),(t.mode&W)!==U&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Wr(),Vr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Us(t),(t.mode&W)!==U&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Hr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(pa(t),t):(pa(t),null)}return pa(t),t.flags&128?(t.lanes=n,(t.mode&W)!==U&&Ci(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vs(t,t.updateQueue),Us(t),(t.mode&W)!==U&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return le(t),e===null&&uu(t.stateNode.containerInfo),Us(t),null;case 10:return qr(t.type,t),Us(t),null;case 19:if(oe(py,t),r=t.memoizedState,r===null)return Us(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)Hs(r,!1);else{if(sx!==Lb||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ma(e),a!==null){for(t.flags|=128,Hs(r,!1),e=a.updateQueue,t.updateQueue=e,Vs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yr(n,e),n=n.sibling;return E(py,py.current&dy|fy,t),G&&Dr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Cp()>yx&&(t.flags|=128,i=!0,Hs(r,!1),t.lanes=4194304)}}else{if(!i){if(e=ma(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Vs(t,e),Hs(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!G)return Us(t),null}else 2*Cp()-r.renderingStartTime>yx&&n!==536870912&&(t.flags|=128,i=!0,Hs(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Us(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Cp(),e.sibling=null,n=py.current,n=i?n&dy|fy:n&dy,E(py,n,t),G&&Dr(t,r.treeForkCount),e);case 22:case 23:return pa(t),ca(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Us(t),t.subtreeFlags&6&&(t.flags|=8192)):Us(t),n=t.updateQueue,n!==null&&Vs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&oe(lv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qr(h_,t),Us(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Gs(e,t){switch(Ar(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&W)!==U&&Ci(t),t):null;case 3:return qr(h_,t),le(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(pa(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&W)!==U&&Ci(t),t):null;case 13:if(pa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&W)!==U&&Ci(t),t):null;case 19:return oe(py,t),null;case 4:return le(t),null;case 10:return qr(t.type,t),null;case 22:case 23:return pa(t),ca(t),e!==null&&oe(lv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&W)!==U&&Ci(t),t):null;case 24:return qr(h_,t),null;case 25:return null;default:return null}}function Ks(e,t){switch(Ar(t),t.tag){case 3:qr(h_,t),le(t);break;case 26:case 27:case 5:fe(t);break;case 4:le(t);break;case 31:t.memoizedState!==null&&pa(t);break;case 13:pa(t);break;case 19:oe(py,t);break;case 10:qr(t.type,t);break;case 22:case 23:pa(t),ca(t),e!==null&&oe(lv,t);break;case 24:qr(h_,t)}}function qs(e){return(e.mode&W)!==U}function Js(e,t){qs(e)?(Si(),Xs(t,e),bi()):Xs(t,e)}function Ys(e,t,n){qs(e)?(Si(),Zs(n,e,t),bi()):Zs(n,e,t)}function Xs(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&gy)!==my&&($x=!0),r=D(t,Nv,n),(e&gy)!==my&&($x=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&_y)===0?(n.tag&gy)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
|
|
144
|
+
%s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=C(t)||`Unknown`,db[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),db[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=C(t)||`Unknown`,lb[t]||(console.error(`%s: Function components do not support contextType.`,t),lb[t]=!0))}function Ts(e){return{baseLanes:e,cachePool:ki()}}function Es(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dx),e}function Ds(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=!!(t.flags&128);if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(py.current&fy)!==0),r&&(a=!0,t.flags&=-129),r=!!(t.flags&32),t.flags&=-33,e===null){if(G){if(a?la(t):fa(t),(e=e_)?(n=md(e,i_),n=n!==null&&n.data!==kS?n:null,n!==null&&(r={dehydrated:n,treeContext:jr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=wr(n),r.return=t,t.child=r,$g=t,e_=null)):n=null,n===null)throw Ir(t,e),Lr(t);return gd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){fa(t);var l=t.mode;return c=ks({mode:`hidden`,children:c},l),i=Sr(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=Ts(n),i.childLanes=Es(e,r,n),t.memoizedState=hb,ms(null,i)}return la(t),Os(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(la(t),t.flags&=-257,t=As(e,t,n)):t.memoizedState===null?(fa(t),c=i.fallback,l=t.mode,i=ks({mode:`visible`,children:i.children},l),c=Sr(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Zv(t,e.child,null,n),i=t.child,i.memoizedState=Ts(n),i.childLanes=Es(e,r,n),t.memoizedState=hb,t=ms(null,i)):(fa(t),t.child=e.child,t.flags|=128,t=null);else if(la(t),Fr(),n&536870912&&ml(t),gd(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Ug.set(c,i),Ur(i),t=As(e,t,n)}else if(sb||Xr(e,t,n,!1),r=(n&e.childLanes)!==0,sb||r){if(r=Wb,r!==null&&(i=He(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,lr(e,i),tl(r,e,i),ob;hd(d)||hl(),t=As(e,t,n)}else hd(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,e_=vd(d.nextSibling),$g=t,G=!0,r_=null,t_=!1,n_=null,i_=!1,e!==null&&Mr(t,e),t=Os(t,i.children),t.flags|=4096);return t}}return a?(fa(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=F(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=Sr(c,l,n,null),c.flags|=2):c=F(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,ms(null,i),i=t.child,c=e.child.memoizedState,c===null?c=Ts(n):(l=c.cachePool,l===null?l=ki():(p=h_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=Es(e,r,n),t.memoizedState=hb,ms(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&ml(t),la(t),n=e.child,e=n.sibling,n=F(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Os(e,t){return t=ks({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function ks(e,t){return e=g(22,e,null,t),e.lanes=0,e}function As(e,t,n){return Zv(t,e.child,null,n),e=Os(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jr(e.return,t,n)}function Ms(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ns(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=py.current;if((r=(s&fy)!==0)?(s=s&dy|fy,t.flags|=128):s&=dy,E(py,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!pb[s]){if(pb[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}s=a??`null`,mb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(mb[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(mb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(mb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o){if(Jf(o)){for(s=0;s<o.length;s++)if(!Ji(o[s],s))break a}else if(s=ie(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Ji(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i)}if(ls(e,t,o,n),G?(Nr(),o=qg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&js(e,n,t);else if(e.tag===19)js(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ma(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ms(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ma(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ms(t,!0,n,null,a,o);break;case`together`:Ms(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),w_=-1,cx|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Xr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=F(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=F(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fs(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Zr(e)))}function Is(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Kr(t,h_,e.memoizedState.cache),Vr();break;case 27:case 5:de(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Kr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,ua(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(la(t),e=Ps(e,t,n),e===null?null:e.sibling):Ds(e,t,n):(la(t),t.flags|=128,null);la(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Xr(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ns(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),E(py,py.current,t),r)break;return null;case 22:return t.lanes=0,ps(e,t,n,t.pendingProps);case 24:Kr(t,h_,e.memoizedState.cache)}return Ps(e,t,n)}function Ls(e,t,n){if(t._debugNeedsRemount&&e!==null){n=br(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null){if(e.memoizedProps!==t.pendingProps||t.type!==e.type)sb=!0;else{if(!Fs(e,n)&&!(t.flags&128))return sb=!1,Is(e,t,n);sb=!!(e.flags&131072)}}else sb=!1,(r=G)&&(Nr(),r=!!(t.flags&1048576)),r&&(r=t.index,Nr(),Or(t,qg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=Ni(t.elementType),t.type=e,typeof e==`function`)vr(e)?(r=$o(e,r),t.tag=1,t.type=e=fr(e),t=Ss(null,t,e,r,n)):(t.tag=0,ws(t,e),t.type=e=fr(e),t=bs(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===zf){t.tag=11,t.type=e=pr(e),t=us(null,t,e,r,n);break a}if(i===Hf){t.tag=14,t=ds(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Uf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=C(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return bs(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=$o(r,t.pendingProps),Ss(e,t,r,i,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Xi(e,t),na(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Kr(t,h_,r),r!==a.cache&&Yr(t,[h_],n,!0),ta(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Cs(e,t,r,n);break a}if(r!==i){i=Er(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Ur(i),t=Cs(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(e_=vd(e.firstChild),$g=t,G=!0,r_=null,t_=!1,n_=null,i_=!0,n=Qv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Vr(),r===i){t=Ps(e,t,n);break a}ls(e,t,r,n)}t=t.child}return t;case 26:return ys(e,t),e===null?(n=jd(t.type,null,t.pendingProps,null))?t.memoizedState=n:G||(n=t.type,e=t.pendingProps,r=se(np.current),r=Bu(r).createElement(n),r[qp]=t,r[Jp]=e,Eu(r,n,e),$e(r),t.stateNode=r):t.memoizedState=jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return de(t),e===null&&G&&(r=se(np.current),i=ue(),r=t.stateNode=Ed(t.type,t.pendingProps,r,i,!1),t_||(i=Iu(r,t.type,t.pendingProps,i),i!==null&&(Pr(t,0).serverProps=i)),$g=t,i_=!0,i=e_,ed(t.type)?(nC=i,e_=vd(r.firstChild)):e_=i),ls(e,t,t.pendingProps.children,n),ys(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&G&&(a=ue(),r=Gt(t.type,a.ancestorInfo),i=e_,(o=!i)||(o=fd(i,t.type,t.pendingProps,i_),o===null?a=!1:(t.stateNode=o,t_||(a=Iu(o,t.type,t.pendingProps,a),a!==null&&(Pr(t,0).serverProps=a)),$g=t,e_=vd(o.firstChild),i_=!1,a=!0),o=!a),o&&(r&&Ir(t,i),Lr(t))),de(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Uu(i,a)?r=null:o!==null&&Uu(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=ya(e,t,Sa,null,null,n),bC._currentValue=i),ys(e,t),ls(e,t,r,n),t.child;case 6:return e===null&&G&&(n=t.pendingProps,e=ue(),r=e.ancestorInfo.current,n=r==null||Kt(n,r.tag,e.ancestorInfo.implicitRootScope),e=e_,(r=!e)||(r=pd(e,t.pendingProps,i_),r===null?r=!1:(t.stateNode=r,$g=t,e_=null,r=!0),r=!r),r&&(n&&Ir(t,e),Lr(t))),null;case 13:return Ds(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zv(t,null,r,n):ls(e,t,r,n),t.child;case 11:return us(e,t,t.type,t.pendingProps,n);case 7:return ls(e,t,t.pendingProps,n),t.child;case 8:return ls(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,ls(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||gb||(gb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Kr(t,r,a),ls(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Qr(t),i=$r(i),r=xv(r,i,void 0),t.flags|=1,ls(e,t,r,n),t.child;case 14:return ds(e,t,t.type,t.pendingProps,n);case 15:return fs(e,t,t.type,t.pendingProps,n);case 19:return Ns(e,t,n);case 31:return vs(e,t,n);case 22:return ps(e,t,n,t.pendingProps);case 24:return Qr(t),r=$r(h_),e===null?(i=Di(),i===null&&(i=Wb,a=ni(),i.pooledCache=a,ri(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Yi(t),Kr(t,h_,i)):((e.lanes&n)!==0&&(Xi(e,t),na(t,null,null,n),ta()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Kr(t,h_,r),r!==i.cache&&Yr(t,[h_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Kr(t,h_,r))),ls(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Rs(e){e.flags|=4}function zs(e,t,n,r,i){if((t=(e.mode&Vg)!==U)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(dl())e.flags|=8192;else throw Hv=Vv,zv}}else e.flags&=-16777217}function Bs(e,t){if(t.type!==`stylesheet`||(t.state.loading&sC)!==rC)e.flags&=-16777217;else if(e.flags|=16777216,!Kd(t)){if(dl())e.flags|=8192;else throw Hv=Vv,zv}}function Vs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ie(),e.lanes|=t,fx|=t)}function Hs(e,t){if(!G)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Us(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t){if((e.mode&W)!==U){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling}else if((e.mode&W)!==U){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(Ar(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Us(t),null;case 1:return Us(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qr(h_,t),le(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Br(t)?(Wr(),Rs(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Hr())),Us(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Rs(t),a===null?(Us(t),zs(t,i,null,r,n)):(Us(t),Bs(t,a))):a?a===e.memoizedState?(Us(t),t.flags&=-16777217):(Rs(t),Us(t),Bs(t,a)):(e=e.memoizedProps,e!==r&&Rs(t),Us(t),zs(t,i,e,r,n)),null;case 27:if(fe(t),n=se(np.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Rs(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Us(t),null}e=ue(),Br(t)?Rr(t,e):(e=Ed(i,r,n,e,!0),t.stateNode=e,Rs(t))}return Us(t),null;case 5:if(fe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Rs(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Us(t),null}var o=ue();if(Br(t))Rr(t,o);else{switch(a=se(np.current),Gt(i,o.ancestorInfo),o=o.context,a=Bu(a),o){case WS:a=a.createElementNS(Lm,i);break;case GS:a=a.createElementNS(Im,i);break;default:switch(i){case`svg`:a=a.createElementNS(Lm,i);break;case`math`:a=a.createElementNS(Im,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||vp.call(JS,i)||(JS[i]=!0,console.error(`The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.`,i)))}}a[qp]=t,a[Jp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Eu(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Rs(t)}}return Us(t),zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Rs(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=se(np.current),n=ue(),Br(t)){if(e=t.stateNode,n=t.memoizedProps,i=!t_,r=null,a=$g,a!==null)switch(a.tag){case 3:i&&(i=bd(e,n,r),i!==null&&(Pr(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=bd(e,n,r),i!==null&&(Pr(t,0).serverProps=i))}e[qp]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Cu(e.nodeValue,n)),e||Lr(t,!0)}else i=n.ancestorInfo.current,i!=null&&Kt(r,i.tag,n.ancestorInfo.implicitRootScope),e=Bu(e).createTextNode(r),e[qp]=t,t.stateNode=e}return Us(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Br(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[qp]=t,Us(t),(t.mode&W)!==U&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Wr(),Vr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Us(t),(t.mode&W)!==U&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Hr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(pa(t),t):(pa(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Us(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Br(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[qp]=t,Us(t),(t.mode&W)!==U&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Wr(),Vr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Us(t),(t.mode&W)!==U&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Hr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(pa(t),t):(pa(t),null)}return pa(t),t.flags&128?(t.lanes=n,(t.mode&W)!==U&&Ci(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vs(t,t.updateQueue),Us(t),(t.mode&W)!==U&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return le(t),e===null&&uu(t.stateNode.containerInfo),Us(t),null;case 10:return qr(t.type,t),Us(t),null;case 19:if(oe(py,t),r=t.memoizedState,r===null)return Us(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)Hs(r,!1);else{if(sx!==Lb||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ma(e),a!==null){for(t.flags|=128,Hs(r,!1),e=a.updateQueue,t.updateQueue=e,Vs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)yr(n,e),n=n.sibling;return E(py,py.current&dy|fy,t),G&&Dr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Cp()>yx&&(t.flags|=128,i=!0,Hs(r,!1),t.lanes=4194304)}}else{if(!i){if(e=ma(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Vs(t,e),Hs(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!G)return Us(t),null}else 2*Cp()-r.renderingStartTime>yx&&n!==536870912&&(t.flags|=128,i=!0,Hs(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Us(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Cp(),e.sibling=null,n=py.current,n=i?n&dy|fy:n&dy,E(py,n,t),G&&Dr(t,r.treeForkCount),e);case 22:case 23:return pa(t),ca(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Us(t),t.subtreeFlags&6&&(t.flags|=8192)):Us(t),n=t.updateQueue,n!==null&&Vs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&oe(lv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qr(h_,t),Us(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Gs(e,t){switch(Ar(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&W)!==U&&Ci(t),t):null;case 3:return qr(h_,t),le(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(pa(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&W)!==U&&Ci(t),t):null;case 13:if(pa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&W)!==U&&Ci(t),t):null;case 19:return oe(py,t),null;case 4:return le(t),null;case 10:return qr(t.type,t),null;case 22:case 23:return pa(t),ca(t),e!==null&&oe(lv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&W)!==U&&Ci(t),t):null;case 24:return qr(h_,t),null;case 25:return null;default:return null}}function Ks(e,t){switch(Ar(t),t.tag){case 3:qr(h_,t),le(t);break;case 26:case 27:case 5:fe(t);break;case 4:le(t);break;case 31:t.memoizedState!==null&&pa(t);break;case 13:pa(t);break;case 19:oe(py,t);break;case 10:qr(t.type,t);break;case 22:case 23:pa(t),ca(t),e!==null&&oe(lv,t);break;case 24:qr(h_,t)}}function qs(e){return(e.mode&W)!==U}function Js(e,t){qs(e)?(Si(),Xs(t,e),bi()):Xs(t,e)}function Ys(e,t,n){qs(e)?(Si(),Zs(n,e,t),bi()):Zs(n,e,t)}function Xs(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&gy)!==my&&($x=!0),r=D(t,Nv,n),(e&gy)!==my&&($x=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&_y)===0?(n.tag&gy)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
|
|
145
145
|
|
|
146
146
|
It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
147
147
|
|
|
@@ -154,7 +154,7 @@ It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, w
|
|
|
154
154
|
fetchData();
|
|
155
155
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
156
156
|
|
|
157
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,D(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){Fl(t,t.return,e)}}function Zs(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&gy)!==my&&($x=!0),i=t,D(i,Fv,i,n,s),(e&gy)!==my&&($x=!1))}r=r.next}while(r!==a)}}catch(e){Fl(t,t.return,e)}}function Qs(e,t){qs(e)?(Si(),Xs(t,e),bi()):Xs(t,e)}function $s(e,t,n){qs(e)?(Si(),Zs(n,e,t),bi()):Zs(n,e,t)}function ec(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||fb||(n.props!==e.memoizedProps&&console.error("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.",T(e)||`instance`),n.state!==e.memoizedState&&console.error("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.",T(e)||`instance`));try{D(e,aa,t,n)}catch(t){Fl(e,e.return,t)}}}function tc(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function nc(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||fb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(e)||`instance`));try{var i=$o(e.type,n),a=D(e,tc,t,i,r);n=_b,a!==void 0||n.has(e.type)||(n.add(e.type),D(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,T(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){Fl(e,e.return,t)}}function rc(e,t,n){n.props=$o(e.type,e.memoizedProps),n.state=e.memoizedState,qs(e)?(Si(),D(e,jv,e,t,n),bi()):D(e,jv,e,t,n)}function ic(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`){if(qs(e))try{Si(),e.refCleanup=t(n)}finally{bi()}else e.refCleanup=t(n)}else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,T(e)),t.current=n}}function ac(e,t){try{D(e,ic,e)}catch(n){Fl(e,t,n)}}function oc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{if(qs(e))try{Si(),D(e,r)}finally{bi(e)}else D(e,r)}catch(n){Fl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(qs(e))try{Si(),D(e,n,null)}finally{bi(e)}else D(e,n,null)}catch(n){Fl(e,t,n)}else n.current=null}}function sc(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,nv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function cc(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,nv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function lc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{D(e,Ju,r,t,n,e)}catch(t){Fl(e,e.return,t)}}function uc(e,t,n){try{D(e,Xu,e.stateNode,e.type,n,t,e)}catch(t){Fl(e,e.return,t)}}function dc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ed(e.type)||e.tag===4}function fc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||dc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ed(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?($u(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):($u(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(r!==4&&(r===27&&ed(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(pc(e,t,n),e=e.sibling;e!==null;)pc(e,t,n),e=e.sibling}function mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ed(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(mc(e,t,n),e=e.sibling;e!==null;)mc(e,t,n),e=e.sibling}function hc(e){for(var t,n=e.return;n!==null;){if(dc(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=fc(e),mc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Zu(n),t.flags&=-33),t=fc(e),mc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=fc(e),pc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function gc(e){var t=e.stateNode,n=e.memoizedProps;try{D(e,Dd,e.type,n,t,e)}catch(t){Fl(e,e.return,t)}}function _c(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3&&e.memoizedState.isDehydrated&&!(t.flags&256)}function vc(e,t){if(e=e.containerInfo,KS=LC,e=Rn(e),zn(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(qS={focusedElem:e,selectionRange:n},LC=!1,Sb=t;Sb!==null;)if(t=Sb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Sb=e;else for(;Sb!==null;){switch(e=t=Sb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&nc(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)dd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:dd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw 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.`)}if(e=t.sibling,e!==null){e.return=t.return,Sb=e;break}Sb=t.return}}function yc(e,t,n){var r=di(),i=pi(),a=hi(),o=gi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:jc(e,n),s&4&&Js(n,_y|hy);break;case 1:if(jc(e,n),s&4){if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||fb||(e.props!==n.memoizedProps&&console.error("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.",T(n)||`instance`),e.state!==n.memoizedState&&console.error("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.",T(n)||`instance`)),qs(n)?(Si(),D(n,Tv,n,e),bi()):D(n,Tv,n,e);else{var c=$o(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||fb||(e.props!==n.memoizedProps&&console.error("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.",T(n)||`instance`),e.state!==n.memoizedState&&console.error("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.",T(n)||`instance`)),qs(n)?(Si(),D(n,Dv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),bi()):D(n,Dv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}}s&64&&ec(n),s&512&&ac(n,n.return);break;case 3:if(t=si(),jc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{D(n,aa,s,c)}catch(e){Fl(n,n.return,e)}}e.effectDuration+=ci(t);break;case 27:t===null&&s&4&&gc(n);case 26:case 5:if(jc(e,n),t===null){if(s&4)lc(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{D(n,Yu,c,e,t,n)}catch(e){Fl(n,n.return,e)}}}s&512&&ac(n,n.return);break;case 12:if(s&4){s=si(),jc(e,n),e=n.stateNode,e.effectDuration+=li(s);try{D(n,sc,n,t,x_,e.effectDuration)}catch(e){Fl(n,n.return,e)}}else jc(e,n);break;case 31:jc(e,n),s&4&&Cc(e,n);break;case 13:jc(e,n),s&4&&wc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=zl.bind(null,n),_d(e,s))));break;case 22:if(s=n.memoizedState!==null||vb,!s){t=t!==null&&t.memoizedState!==null||yb,c=vb;var l=yb;vb=s,(yb=t)&&!l?(Fc(e,n,!!(n.subtreeFlags&8772)),(n.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Yn(n,K,q)):jc(e,n),vb=c,yb=l}break;case 30:break;default:jc(e,n)}(n.mode&W)!==U&&0<=K&&0<=q&&((O_||.05<E_)&&Qn(n,K,q,E_,D_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<q-K&&(_c(n.return.alternate,n.return)||N(n,K,q,`Mount`))),fi(r),mi(i),D_=a,O_=o}function bc(e){var t=e.alternate;t!==null&&(e.alternate=null,bc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ye(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xc(e,t,n){for(n=n.child;n!==null;)Sc(e,t,n),n=n.sibling}function Sc(e,t,n){if(Np&&typeof Np.onCommitFiberUnmount==`function`)try{Np.onCommitFiberUnmount(Mp,n)}catch(e){Pp||(Pp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=di(),i=pi(),a=hi(),o=gi();switch(n.tag){case 26:yb||oc(n,t),xc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:yb||oc(n,t);var s=Tb,c=Eb;ed(n.type)&&(Tb=n.stateNode,Eb=!1),xc(e,t,n),D(n,Od,n.stateNode),Tb=s,Eb=c;break;case 5:yb||oc(n,t);case 6:if(s=Tb,c=Eb,Tb=null,xc(e,t,n),Tb=s,Eb=c,Tb!==null){if(Eb)try{D(n,nd,Tb,n.stateNode)}catch(e){Fl(n,t,e)}else try{D(n,td,Tb,n.stateNode)}catch(e){Fl(n,t,e)}}break;case 18:Tb!==null&&(Eb?(e=Tb,rd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Cf(e)):rd(Tb,n.stateNode));break;case 4:s=Tb,c=Eb,Tb=n.stateNode.containerInfo,Eb=!0,xc(e,t,n),Tb=s,Eb=c;break;case 0:case 11:case 14:case 15:Zs(gy,n,t),yb||Ys(n,t,_y),xc(e,t,n);break;case 1:yb||(oc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&rc(n,t,s)),xc(e,t,n);break;case 21:xc(e,t,n);break;case 22:yb=(s=yb)||n.memoizedState!==null,xc(e,t,n),yb=s;break;default:xc(e,t,n)}(n.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(n,K,q,E_,D_),fi(r),mi(i),D_=a,O_=o}function Cc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{D(t,wd,e)}catch(e){Fl(t,t.return,e)}}}function wc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{D(t,Td,e)}catch(e){Fl(t,t.return,e)}}function Tc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function Ec(e,t){var n=Tc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Fp){if(Cb!==null&&wb!==null)Gl(wb,Cb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`)}var r=Bl.bind(null,e,t);t.then(r,r)}})}function Dc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=di(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(ed(c.type)){Tb=c.stateNode,Eb=!1;break a}break;case 5:Tb=c.stateNode,Eb=!1;break a;case 3:case 4:Tb=c.stateNode.containerInfo,Eb=!0;break a}c=c.return}if(Tb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);Sc(i,a,o),Tb=null,Eb=!1,(o.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&N(o,K,q,`Unmount`),fi(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Oc(t,e),t=t.sibling}function Oc(e,t){var n=di(),r=pi(),i=hi(),a=gi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dc(t,e),kc(e),s&4&&(Zs(gy|hy,e,e.return),Xs(gy|hy,e),Ys(e,e.return,_y|hy));break;case 1:if(Dc(t,e),kc(e),s&512&&(yb||o===null||oc(o,o.return)),s&64&&vb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Db,Dc(t,e),kc(e),s&512&&(yb||o===null||oc(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null){if(s===null){if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[em]||l[qp]||l.namespaceURI===Lm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),Eu(l,s,o),l[qp]=e,$e(l),s=l;break a;case`link`:var u=Ud(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),Eu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Ud(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],k(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),Eu(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[qp]=e,$e(l),s=l}e.stateNode=s}else Wd(c,e.type,e.stateNode)}else e.stateNode=zd(c,s,e.memoizedProps)}else l===s?s===null&&e.stateNode!==null&&uc(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Wd(c,e.type,e.stateNode):zd(c,s,e.memoizedProps))}break;case 27:Dc(t,e),kc(e),s&512&&(yb||o===null||oc(o,o.return)),o!==null&&s&4&&uc(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Dc(t,e),kc(e),s&512&&(yb||o===null||oc(o,o.return)),e.flags&32){c=e.stateNode;try{D(e,Zu,c)}catch(t){Fl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,uc(e,c,o===null?c:o.memoizedProps)),s&1024&&(bb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(Dc(t,e),kc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{D(e,Qu,c,o,s)}catch(t){Fl(e,e.return,t)}}break;case 3:if(c=si(),fC=null,l=Db,Db=kd(t.containerInfo),Dc(t,e),Db=l,kc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{D(e,Cd,t.containerInfo)}catch(t){Fl(e,e.return,t)}bb&&(bb=!1,Ac(e)),t.effectDuration+=ci(c);break;case 4:s=Db,Db=kd(e.stateNode.containerInfo),Dc(t,e),kc(e),Db=s;break;case 12:s=si(),Dc(t,e),kc(e),e.stateNode.effectDuration+=li(s);break;case 31:Dc(t,e),kc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ec(e,s)));break;case 13:Dc(t,e),kc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(gx=Cp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ec(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=vb,m=yb;if(vb=p||c,yb=m||f,Dc(t,e),yb=m,vb=p,f&&!c&&!p&&!m&&(e.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Yn(e,K,q),kc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Ag:t._visibility|Ag,!c||o===null||f||vb||yb||(Nc(e),(e.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&N(e,K,q,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?D(f,od,l):D(f,ld,f.stateNode,f.memoizedProps)}catch(e){Fl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?D(f,sd,u):D(f,ud,u,f.memoizedProps)}catch(e){Fl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?D(f,ad,d):D(f,cd,f.stateNode)}catch(e){Fl(f,f.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,Ec(e,o))));break;case 19:Dc(t,e),kc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ec(e,s)));break;case 30:break;case 21:break;default:Dc(t,e),kc(e)}(e.mode&W)!==U&&0<=K&&0<=q&&((O_||.05<E_)&&Qn(e,K,q,E_,D_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<q-K&&(_c(e.return.alternate,e.return)||N(e,K,q,`Mount`))),fi(n),mi(r),D_=i,O_=a}function kc(e){var t=e.flags;if(t&2){try{D(e,hc,e)}catch(t){Fl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ac(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ac(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)yc(e,t.alternate,t),t=t.sibling}function Mc(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 14:case 15:Ys(e,e.return,_y),Nc(e);break;case 1:oc(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&rc(e,e.return,a),Nc(e);break;case 27:D(e,Od,e.stateNode);case 26:case 5:oc(e,e.return),Nc(e);break;case 22:e.memoizedState===null&&Nc(e);break;case 30:Nc(e);break;default:Nc(e)}(e.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(e,K,q,E_,D_),fi(t),mi(n),D_=r,O_=i}function Nc(e){for(e=e.child;e!==null;)Mc(e),e=e.sibling}function Pc(e,t,n,r){var i=di(),a=pi(),o=hi(),s=gi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Fc(e,n,r),Js(n,_y);break;case 1:if(Fc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&D(n,Tv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{D(n,ia,t,e)}catch(e){Fl(n,n.return,e)}}r&&c&64&&ec(n),ac(n,n.return);break;case 27:gc(n);case 26:case 5:Fc(e,n,r),r&&t===null&&c&4&&lc(n),ac(n,n.return);break;case 12:if(r&&c&4){c=si(),Fc(e,n,r),r=n.stateNode,r.effectDuration+=li(c);try{D(n,sc,n,t,x_,r.effectDuration)}catch(e){Fl(n,n.return,e)}}else Fc(e,n,r);break;case 31:Fc(e,n,r),r&&c&4&&Cc(e,n);break;case 13:Fc(e,n,r),r&&c&4&&wc(e,n);break;case 22:n.memoizedState===null&&Fc(e,n,r),ac(n,n.return);break;case 30:break;default:Fc(e,n,r)}(n.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(n,K,q,E_,D_),fi(i),mi(a),D_=o,O_=s}function Fc(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;)Pc(e,t.alternate,t,n),t=t.sibling}function Ic(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&ri(e),n!=null&&ii(n))}function Lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ri(t),e!=null&&ii(e))}function Rc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;zc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function zc(e,t,n,r,i){var a=di(),o=pi(),s=hi(),c=gi(),l=wg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&W)!==U&&0<t.actualStartTime&&t.flags&1&&Xn(t,t.actualStartTime,i,Ob,n),Rc(e,t,n,r,i),u&2048&&Qs(t,vy|hy);break;case 1:(t.mode&W)!==U&&0<t.actualStartTime&&(t.flags&128?Zn(t,t.actualStartTime,i,[]):t.flags&1&&Xn(t,t.actualStartTime,i,Ob,n)),Rc(e,t,n,r,i);break;case 3:var d=si(),f=Ob;Ob=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!(t.flags&256),Rc(e,t,n,r,i),Ob=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(ri(r),n!=null&&ii(n))),e.passiveEffectDuration+=ci(d);break;case 12:if(u&2048){u=si(),Rc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=li(u);try{D(t,cc,t,t.alternate,x_,e.passiveEffectDuration)}catch(e){Fl(t,t.return,e)}}else Rc(e,t,n,r,i);break;case 31:u=Ob,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Ob=!1,d=d.hydrationErrors,d!==null&&Zn(t,t.actualStartTime,i,d)):Ob=!0):Ob=!1,Rc(e,t,n,r,i),Ob=u;break;case 13:u=Ob,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?Ob=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Ob=!1,d=d.hydrationErrors,d!==null&&Zn(t,t.actualStartTime,i,d)):Ob=!0),Rc(e,t,n,r,i),Ob=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&jg?Rc(e,t,n,r,i):(f._visibility|=jg,Bc(e,t,n,r,!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&W)===U||Ob||(e=t.actualStartTime,0<=e&&.05<i-e&&Yn(t,e,i),0<=K&&0<=q&&.05<q-K&&Yn(t,K,q))):f._visibility&jg?Rc(e,t,n,r,i):Hc(e,t,n,r,i),u&2048&&Ic(d,t);break;case 24:Rc(e,t,n,r,i),u&2048&&Lc(t.alternate,t);break;default:Rc(e,t,n,r,i)}(t.mode&W)!==U&&((e=!Ob&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&N(t,n,i,`Mount`)),0<=K&&0<=q&&((O_||.05<E_)&&Qn(t,K,q,E_,D_),e&&.05<q-K&&N(t,K,q,`Mount`))),fi(a),mi(o),D_=s,O_=c,wg=l}function Bc(e,t,n,r,i,a){for(i&&=!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Vc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Vc(e,t,n,r,i,a){var o=di(),s=pi(),c=hi(),l=gi(),u=wg;i&&(t.mode&W)!==U&&0<t.actualStartTime&&t.flags&1&&Xn(t,t.actualStartTime,a,Ob,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Bc(e,t,n,r,i,a),Qs(t,vy);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=jg,Bc(e,t,n,r,i,a)):f._visibility&jg?Bc(e,t,n,r,i,a):Hc(e,t,n,r,a),i&&d&2048&&Ic(t.alternate,t);break;case 24:Bc(e,t,n,r,i,a),i&&d&2048&&Lc(t.alternate,t);break;default:Bc(e,t,n,r,i,a)}(t.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(t,K,q,E_,D_),fi(o),mi(s),D_=c,O_=l,wg=u}function Hc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=wg;(a.mode&W)!==U&&0<a.actualStartTime&&a.flags&1&&Xn(a,a.actualStartTime,l,Ob,s);var d=a.flags;switch(a.tag){case 22:Hc(o,a,s,c,l),d&2048&&Ic(a.alternate,a);break;case 24:Hc(o,a,s,c,l),d&2048&&Lc(a.alternate,a);break;default:Hc(o,a,s,c,l)}wg=u,a=t}}function Uc(e,t,n){if(e.subtreeFlags&kb)for(e=e.child;e!==null;)Wc(e,t,n),e=e.sibling}function Wc(e,t,n){switch(e.tag){case 26:Uc(e,t,n),e.flags&kb&&e.memoizedState!==null&&qd(n,Db,e.memoizedState,e.memoizedProps);break;case 5:Uc(e,t,n);break;case 3:case 4:var r=Db;Db=kd(e.stateNode.containerInfo),Uc(e,t,n),Db=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kb,kb=16777216,Uc(e,t,n),kb=r):Uc(e,t,n));break;default:Uc(e,t,n)}}function Gc(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Kc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=di();Sb=r,Xc(r,e),(r.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&N(r,K,q,`Unmount`),fi(i)}Gc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qc(e),e=e.sibling}function qc(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 15:Kc(e),e.flags&2048&&$s(e,e.return,vy|hy);break;case 3:var a=si();Kc(e),e.stateNode.passiveEffectDuration+=ci(a);break;case 12:a=si(),Kc(e),e.stateNode.passiveEffectDuration+=li(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&jg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~jg,Jc(e),(e.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&N(e,K,q,`Disconnect`)):Kc(e);break;default:Kc(e)}(e.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(e,K,q,E_,D_),fi(t),mi(n),O_=i,D_=r}function Jc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=di();Sb=r,Xc(r,e),(r.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&N(r,K,q,`Unmount`),fi(i)}Gc(e)}for(e=e.child;e!==null;)Yc(e),e=e.sibling}function Yc(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 15:$s(e,e.return,vy),Jc(e);break;case 22:var a=e.stateNode;a._visibility&jg&&(a._visibility&=~jg,Jc(e));break;default:Jc(e)}(e.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(e,K,q,E_,D_),fi(t),mi(n),O_=i,D_=r}function Xc(e,t){for(;Sb!==null;){var n=Sb,r=n,i=t,a=di(),o=pi(),s=hi(),c=gi();switch(r.tag){case 0:case 11:case 15:$s(r,i,vy);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&ri(i));break;case 24:ii(r.memoizedState.cache)}if((r.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(r,K,q,E_,D_),fi(a),mi(o),O_=c,D_=s,r=n.child,r!==null)r.return=n,Sb=r;else a:for(n=e;Sb!==null;){if(r=Sb,a=r.sibling,o=r.return,bc(r),r===n){Sb=null;break a}if(a!==null){a.return=o,Sb=a;break a}Sb=o}}}function Zc(){Mb.forEach(function(e){return e()})}function Qc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||B.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function $c(e){if((Z&Fb)!==Pb&&$!==0)return $&-$;var t=B.T;return t===null?qe():(t._updatedFibers||=new Set,t._updatedFibers.add(e),ru())}function el(){if(dx===0){if(!($&536870912)||G){var e=Bp;Bp<<=1,!(Bp&3932160)&&(Bp=262144),dx=e}else dx=536870912}return e=ly.current,e!==null&&(e.flags|=32),dx}function tl(e,t,n){if($x&&console.error(`useInsertionEffect must not schedule updates.`),Jx&&(Yx=!0),(e===Wb&&(tx===qb||tx===ex)||e.cancelPendingCommit!==null)&&(ll(e,0),al(e,$,dx,!1)),Re(e,n),(Z&Fb)!==Pb&&e===Wb){if(_p)switch(t.tag){case 0:case 11:case 15:e=Q&&T(Q)||`Unknown`,nS.has(e)||(nS.add(e),t=T(t)||`Unknown`,console.error("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://react.dev/link/setstate-in-render",t,e,e));break;case 1:tS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Fp&&We(e,t,n),ql(t),e===Wb&&((Z&Fb)===Pb&&(lx|=n),sx===Vb&&al(e,$,dx,!1)),Jl(e)}function nl(e,t,n){if((Z&(Fb|Ib))!==Pb)throw Error(`Should not already be working.`);if($!==0&&Q!==null){var r=Q,i=Cp();switch(ev){case Jb:case qb:var a=tv;Sg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,Cg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,Cg,void 0,`primary-light`));break;case ex:a=tv,Sg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,Cg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,Cg,void 0,`primary-light`));break;default:Sg&&(r=i-tv,3>r||console.timeStamp(`Blocked`,tv,i,Cg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&!(t&127)&&(t&e.expiredLanes)===0||Pe(e,t))?vl(e,t):gl(e,t,!0);var o=n;do{if(a===Lb){ix&&!n&&al(e,t,0,!1),t=tx,tv=g_(),ev=t;break}if(r=Cp(),i=e.current.alternate,o&&!il(i)){Jn(t),i=b_,a=r,!Sg||a<=i||(Sx?Sx.run(console.timeStamp.bind(console,`Teared Render`,i,a,H,V,`error`)):console.timeStamp(`Teared Render`,i,a,H,V,`error`)),cl(t,r),a=gl(e,t,!1),o=!1;continue}if(a===zb){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Jn(t),P(b_,r,t,Sx),cl(t,r),t=s;a:{r=e,a=o,o=px;var c=r.current.memoizedState.isDehydrated;if(c&&(ll(r,s).flags|=256),s=gl(r,s,!1),s!==zb){if(ax&&!c){r.errorRecoveryDisabledLanes|=a,lx|=a,a=Vb;break a}r=mx,mx=o,r!==null&&(mx===null?mx=r:mx.push.apply(mx,r))}a=s}if(o=!1,a!==zb)continue;r=Cp()}}if(a===Rb){Jn(t),P(b_,r,t,Sx),cl(t,r),ll(e,0),al(e,t,0,!0);break}a:{switch(n=e,a){case Lb:case Rb:throw Error(`Root did not complete. This is a bug in React.`);case Vb:if((t&4194048)!==t)break;case Hb:Jn(t),er(b_,r,t,Sx),cl(t,r),i=t,i&127?R_=r:i&4194048&&(Y_=r),al(n,t,dx,!rx);break a;case zb:mx=null;break;case Bb:case Ub:break;default:throw Error(`Unknown root exit status.`)}if(B.actQueue!==null)El(n,i,t,mx,xx,hx,dx,lx,fx,a,null,null,b_,r);else{if((t&62914560)===t&&(o=gx+vx-Cp(),10<o)){if(al(n,t,dx,!rx),Ne(n,0,!0)!==0)break a;Lx=t,n.timeoutHandle=ZS(rl.bind(null,n,i,mx,xx,hx,t,dx,lx,fx,rx,a,`Throttled`,b_,r),o);break a}rl(n,i,mx,xx,hx,t,dx,lx,fx,rx,a,null,b_,r)}}break}while(1);Jl(e)}function rl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=$S;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},Wc(t,a,h),m=(a&62914560)===a?gx-Cp():(a&4194048)===a?_x-Cp():0,m=Jd(h,m),m!==null)){Lx=a,e.cancelPendingCommit=m(El.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),al(e,a,o,!l);return}El(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function il(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Gh(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function al(e,t,n,r){t&=~ux,t&=~lx,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ip(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Be(e,n,t)}function ol(){return(Z&(Fb|Ib))!==Pb||(Yl(0,!1),!1)}function sl(){if(Q!==null){if(tx===Gb)var e=Q.return;else e=Q,Gr(),Ta(e),Wv=null,Gv=0,e=Q;for(;e!==null;)Ks(e.alternate,e),e=e.return;Q=null}}function cl(e,t){e&127&&(k_=t),e&4194048&&(z_=t),e&62914560&&(X_=t),e&2080374784&&(Z_=t)}function ll(e,t){Sg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,V,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,V,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,V,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,V,`primary-light`));var n=b_;if(b_=g_(),$!==0&&0<n){if(Jn($),sx===Bb||sx===Vb)er(n,b_,t,Sx);else{var r=b_,i=Sx;if(Sg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,H,V,a)):console.timeStamp(o,n,r,H,V,a)}}cl($,b_)}if(n=Sx,Sx=null,t&127){Sx=j_,i=0<=A_&&A_<k_?k_:A_,r=0<=F_&&F_<k_?k_:F_,a=0<=r?r:0<=i?i:b_,0<=R_?(Jn(2),tr(R_,a,t,n)):Q_&127&&(Jn(2),ar(k_,a,$_)),n=i;var s=r,c=I_,l=0<L_,u=M_===v_,d=M_===y_;if(i=b_,r=j_,a=N_,o=P_,Sg){if(H=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,H,V,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,H,V,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:H,trackGroup:V,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}A_=-1.1,M_=0,P_=N_=null,R_=-1.1,L_=F_,F_=-1.1,k_=g_()}if(t&4194048&&(Sx=U_,i=0<=B_&&B_<z_?z_:B_,n=0<=V_&&V_<z_?z_:V_,r=0<=K_&&K_<z_?z_:K_,a=0<=r?r:0<=n?n:b_,0<=Y_?(Jn(256),tr(Y_,a,t,Sx)):Q_&4194048&&(Jn(256),ar(z_,a,$_)),d=r,s=q_,c=0<J_,l=H_===y_,a=b_,r=U_,o=W_,u=G_,Sg&&(H=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,H,V,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,H,V,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,H,V,`primary-dark`)):console.timeStamp(`Action`,i,n,H,V,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:H,trackGroup:V,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),V_=B_=-1.1,H_=0,Y_=-1.1,J_=K_,K_=-1.1,z_=g_()),t&62914560&&Q_&62914560&&(Jn(4194304),ar(X_,b_,$_)),t&2080374784&&Q_&2080374784&&(Jn(268435456),ar(Z_,b_,$_)),n=e.timeoutHandle,n!==$S&&(e.timeoutHandle=$S,QS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lx=0,sl(),Wb=e,Q=n=vr(e.current,null),$=t,tx=Gb,nx=null,rx=!1,ix=Pe(e,t),ax=!1,sx=Lb,fx=dx=ux=lx=cx=0,mx=px=null,hx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Ip(r),a=1<<i,t|=e[i],r&=~a;return ox=t,or(),e=dg(),1e3<e-lg&&(B.recentlyCreatedOwnerStacks=0,lg=e),uv.discardPendingWarnings(),n}function ul(e,t){Y=null,B.H=Ry,B.getCurrentStack=null,_p=!1,gp=null,t===Rv||t===Bv?(t=Pi(),tx=Jb):t===zv?(t=Pi(),tx=Yb):tx=t===ob?$b:typeof t==`object`&&t&&typeof t.then==`function`?Zb:Kb,nx=t;var n=Q;n===null?(sx=Rb,rs(e,Er(t,e.current))):n.mode&W&&vi(n)}function dl(){var e=ly.current;return e===null?!0:($&4194048)===$?uy===null:($&62914560)===$||$&536870912?e===uy:!1}function fl(){var e=B.H;return B.H=Ry,e===null?Ry:e}function pl(){var e=B.A;return B.A=Ab,e}function ml(e){Sx===null&&(Sx=e._debugTask==null?null:e._debugTask)}function hl(){sx=Vb,rx||($&4194048)!==$&&ly.current!==null||(ix=!0),!(cx&134217727)&&!(lx&134217727)||Wb===null||al(Wb,$,dx,!1)}function gl(e,t,n){var r=Z;Z|=Fb;var i=fl(),a=pl();if(Wb!==e||$!==t){if(Fp){var o=e.memoizedUpdaters;0<o.size&&(Gl(e,$),o.clear()),Ge(e,t)}xx=null,ll(e,t)}t=!1,o=sx;a:do try{if(tx!==Gb&&Q!==null){var s=Q,c=nx;switch(tx){case $b:sl(),o=Hb;break a;case Jb:case qb:case ex:case Zb:ly.current===null&&(t=!0);var l=tx;if(tx=Gb,nx=null,Cl(e,s,c,l),n&&ix){o=Lb;break a}break;default:l=tx,tx=Gb,nx=null,Cl(e,s,c,l)}}_l(),o=sx;break}catch(t){ul(e,t)}while(1);return t&&e.shellSuspendCounter++,Gr(),Z=r,B.H=i,B.A=a,Q===null&&(Wb=null,$=0,or()),o}function _l(){for(;Q!==null;)bl(Q)}function vl(e,t){var n=Z;Z|=Fb;var r=fl(),i=pl();if(Wb!==e||$!==t){if(Fp){var a=e.memoizedUpdaters;0<a.size&&(Gl(e,$),a.clear()),Ge(e,t)}xx=null,yx=Cp()+bx,ll(e,t)}else ix=Pe(e,t);a:do try{if(tx!==Gb&&Q!==null)b:switch(t=Q,a=nx,tx){case Kb:tx=Gb,nx=null,Cl(e,t,a,Kb);break;case qb:case ex:if(ji(a)){tx=Gb,nx=null,xl(t);break}t=function(){tx!==qb&&tx!==ex||Wb!==e||(tx=Qb),Jl(e)},a.then(t,t);break a;case Jb:tx=Qb;break a;case Yb:tx=Xb;break a;case Qb:ji(a)?(tx=Gb,nx=null,xl(t)):(tx=Gb,nx=null,Cl(e,t,a,Qb));break;case Xb:var o=null;switch(Q.tag){case 26:o=Q.memoizedState;case 5:case 27:var s=Q;if(o?Kd(o):s.stateNode.complete){tx=Gb,nx=null;var c=s.sibling;if(c!==null)Q=c;else{var l=s.return;l===null?Q=null:(Q=l,wl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}tx=Gb,nx=null,Cl(e,t,a,Xb);break;case Zb:tx=Gb,nx=null,Cl(e,t,a,Zb);break;case $b:sl(),sx=Hb;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}B.actQueue===null?yl():_l();break}catch(t){ul(e,t)}while(1);return Gr(),B.H=r,B.A=i,Z=n,Q===null?(Wb=null,$=0,or(),sx):Lb}function yl(){for(;Q!==null&&!xp();)bl(Q)}function bl(e){var t=e.alternate;(e.mode&W)===U?t=D(e,Ls,t,e,ox):(_i(e),t=D(e,Ls,t,e,ox),vi(e)),e.memoizedProps=e.pendingProps,t===null?wl(e):Q=t}function xl(e){var t=D(e,Sl,e);e.memoizedProps=e.pendingProps,t===null?wl(e):Q=t}function Sl(e){var t=e.alternate,n=(e.mode&W)!==U;switch(n&&_i(e),e.tag){case 15:case 0:t=xs(t,e,e.pendingProps,e.type,void 0,$);break;case 11:t=xs(t,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:Ta(e);default:Ks(t,e),e=Q=yr(e,ox),t=Ls(t,e,ox)}return n&&vi(e),t}function Cl(e,t,n,r){Gr(),Ta(t),Wv=null,Gv=0;var i=t.return;try{if(cs(e,i,t,n,$)){sx=Rb,rs(e,Er(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;sx=Rb,rs(e,Er(n,e.current)),Q=null;return}t.flags&32768?(G||r===Kb?e=!0:ix||$&536870912?e=!1:(rx=e=!0,(r===qb||r===ex||r===Jb||r===Zb)&&(r=ly.current,r!==null&&r.tag===13&&(r.flags|=16384))),Tl(t,e)):wl(t)}function wl(e){var t=e;do{if(t.flags&32768){Tl(t,rx);return}var n=t.alternate;if(e=t.return,_i(t),n=D(t,Ws,n,t,ox),(t.mode&W)!==U&&yi(t),n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);sx===Lb&&(sx=Ub)}function Tl(e,t){do{var n=Gs(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if((e.mode&W)!==U){yi(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Q=e;return}Q=e=n}while(e!==null);sx=Hb,Q=null}function El(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Ml();while(Px!==Ox);if(uv.flushLegacyContextWarning(),uv.flushPendingUnsafeLifecycleWarnings(),(Z&(Fb|Ib))!==Pb)throw Error(`Should not already be working.`);if(Jn(n),l===zb?P(f,p,n,Sx):r===null?$n(f,p,n,Sx):nr(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!!(t.flags&256),Sx),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Pg,ze(e,n,a,o,s,c),e===Wb&&(Q=Wb=null,$=0),Ix=t,Fx=e,Lx=n,Rx=a,Bx=i,Vx=r,zx=p,Hx=d,Ux=wx,Wx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Kl(Dp,function(){return XS=window.event,Ux===wx&&(Ux=Ex),Nl(),null})):(e.callbackNode=null,e.callbackPriority=0),C_=null,x_=g_(),d!==null&&rr(p,x_,d,Sx),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=B.T,B.T=null,i=Yf.p,Yf.p=Hp,o=Z,Z|=Ib;try{vc(e,t,n)}finally{Z=o,Yf.p=i,B.T=r}}Px=kx,Dl(),Ol(),kl()}}function Dl(){if(Px===kx){Px=Ox;var e=Fx,t=Ix,n=Lx,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=B.T,B.T=null;var i=Yf.p;Yf.p=Hp;var a=Z;Z|=Ib;try{Cb=n,wb=e,ui(),Oc(t,e),wb=Cb=null,n=qS;var o=Rn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ln(s.ownerDocument.documentElement,s)){if(c!==null&&zn(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=In(s,h),v=In(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}LC=!!KS,qS=KS=null}finally{Z=a,Yf.p=i,B.T=r}}e.current=t,Px=Ax}}function Ol(){if(Px===Ax){Px=Ox;var e=Wx;if(e!==null){x_=g_();var t=S_,n=x_;!Sg||n<=t||($_?$_.run(console.timeStamp.bind(console,e,t,n,H,V,`secondary-light`)):console.timeStamp(e,t,n,H,V,`secondary-light`))}e=Fx,t=Ix,n=Lx;var r=!!(t.flags&8772);if(t.subtreeFlags&8772||r){r=B.T,B.T=null;var i=Yf.p;Yf.p=Hp;var a=Z;Z|=Ib;try{Cb=n,wb=e,ui(),yc(e,t.alternate,t),wb=Cb=null}finally{Z=a,Yf.p=i,B.T=r}}e=zx,t=Hx,S_=g_(),e=t===null?e:x_,t=S_,n=Ux===Tx,r=Sx,C_===null?!Sg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,H,V,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,H,V,n?`error`:`secondary-dark`)):ir(e,t,C_,!1,r),Px=jx}}function kl(){if(Px===Mx||Px===jx){if(Px===Mx){var e=S_;S_=g_();var t=S_,n=Ux===Tx;!Sg||t<=e||($_?$_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,H,V,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,H,V,n?` error`:`secondary-light`)),Ux!==Tx&&(Ux=Dx)}Px=Ox,Sp(),e=Fx;var r=Ix;t=Lx,n=Vx;var i=r.actualDuration!==0||!!(r.subtreeFlags&10256)||!!(r.flags&10256);i?Px=Nx:(Px=Ox,Ix=Fx=null,jl(e,e.pendingLanes),Zx=0,Qx=null);var a=e.pendingLanes;if(a===0&&(Cx=null),i||Ul(e),a=Ke(t),r=r.stateNode,Np&&typeof Np.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Hp:var s=Tp;break;case Up:s=Ep;break;case Wp:s=Dp;break;case Gp:s=kp;break;default:s=Dp}Np.onCommitFiberRoot(Mp,r,s,o)}catch(e){Pp||(Pp=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Fp&&e.memoizedUpdaters.clear(),Zc(),n!==null){o=B.T,s=Yf.p,Yf.p=Hp,B.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=Al(l.stack);D(l.source,c,l.value,u)}}finally{B.T=o,Yf.p=s}}Lx&3&&Ml(),Jl(e),a=e.pendingLanes,t&261930&&a&42?(rv=!0,e===qx?Kx++:(Kx=0,qx=e)):Kx=0,i||cl(t,S_),Yl(0,!1)}}function Al(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function jl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ii(t)))}function Ml(){return Dl(),Ol(),kl(),Nl()}function Nl(){if(Px!==Nx)return!1;var e=Fx,t=Rx;Rx=0;var n=Ke(Lx),r=Wp===0||Wp>n?Wp:n;n=B.T;var i=Yf.p;try{Yf.p=r,B.T=null;var a=Bx;Bx=null,r=Fx;var o=Lx;if(Px=Ox,Ix=Fx=null,Lx=0,(Z&(Fb|Ib))!==Pb)throw Error(`Cannot flush passive effects while already rendering.`);Jn(o),Jx=!0,Yx=!1;var s=0;if(C_=null,s=Cp(),Ux===Dx)ar(S_,s,$_);else{var c=S_,l=s,u=Ux===Ex;!Sg||l<=c||(Sx?Sx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,H,V,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,H,V,`secondary-light`))}c=Z,Z|=Ib;var d=r.current;ui(),qc(d);var f=r.current;d=zx,ui(),zc(r,f,o,a,d),Ul(r),Z=c;var p=Cp();if(f=s,d=Sx,C_===null?!Sg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,H,V,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,H,V,`secondary-dark`)):ir(f,p,C_,!0,d),cl(o,p),Yl(0,!1),Yx?r===Qx?Zx++:(Zx=0,Qx=r):Zx=0,Yx=Jx=!1,Np&&typeof Np.onPostCommitFiberRoot==`function`)try{Np.onPostCommitFiberRoot(Mp,r)}catch(e){Pp||(Pp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Yf.p=i,B.T=n,jl(e,t)}}function Pl(e,t,n){t=Er(n,t),xi(t),t=as(e.stateNode,t,2),e=Qi(e,t,2),e!==null&&(Re(e,2),Jl(e))}function Fl(e,t,n){if($x=!1,e.tag===3)Pl(e,e,n);else{for(;t!==null;){if(t.tag===3){Pl(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Cx===null||!Cx.has(r))){e=Er(n,e),xi(e),n=os(2),r=Qi(t,n,2),r!==null&&(ss(n,r,t,e),Re(r,2),Jl(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
157
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,D(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){Fl(t,t.return,e)}}function Zs(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&gy)!==my&&($x=!0),i=t,D(i,Fv,i,n,s),(e&gy)!==my&&($x=!1))}r=r.next}while(r!==a)}}catch(e){Fl(t,t.return,e)}}function Qs(e,t){qs(e)?(Si(),Xs(t,e),bi()):Xs(t,e)}function $s(e,t,n){qs(e)?(Si(),Zs(n,e,t),bi()):Zs(n,e,t)}function ec(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||fb||(n.props!==e.memoizedProps&&console.error("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.",T(e)||`instance`),n.state!==e.memoizedState&&console.error("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.",T(e)||`instance`));try{D(e,aa,t,n)}catch(t){Fl(e,e.return,t)}}}function tc(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function nc(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||fb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(e)||`instance`));try{var i=$o(e.type,n),a=D(e,tc,t,i,r);n=_b,a!==void 0||n.has(e.type)||(n.add(e.type),D(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,T(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){Fl(e,e.return,t)}}function rc(e,t,n){n.props=$o(e.type,e.memoizedProps),n.state=e.memoizedState,qs(e)?(Si(),D(e,jv,e,t,n),bi()):D(e,jv,e,t,n)}function ic(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`){if(qs(e))try{Si(),e.refCleanup=t(n)}finally{bi()}else e.refCleanup=t(n)}else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,T(e)),t.current=n}}function ac(e,t){try{D(e,ic,e)}catch(n){Fl(e,t,n)}}function oc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{if(qs(e))try{Si(),D(e,r)}finally{bi(e)}else D(e,r)}catch(n){Fl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(qs(e))try{Si(),D(e,n,null)}finally{bi(e)}else D(e,n,null)}catch(n){Fl(e,t,n)}else n.current=null}}function sc(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,nv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function cc(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,nv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function lc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{D(e,Ju,r,t,n,e)}catch(t){Fl(e,e.return,t)}}function uc(e,t,n){try{D(e,Xu,e.stateNode,e.type,n,t,e)}catch(t){Fl(e,e.return,t)}}function dc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ed(e.type)||e.tag===4}function fc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||dc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ed(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?($u(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):($u(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(r!==4&&(r===27&&ed(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(pc(e,t,n),e=e.sibling;e!==null;)pc(e,t,n),e=e.sibling}function mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ed(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(mc(e,t,n),e=e.sibling;e!==null;)mc(e,t,n),e=e.sibling}function hc(e){for(var t,n=e.return;n!==null;){if(dc(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=fc(e),mc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Zu(n),t.flags&=-33),t=fc(e),mc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=fc(e),pc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function gc(e){var t=e.stateNode,n=e.memoizedProps;try{D(e,Dd,e.type,n,t,e)}catch(t){Fl(e,e.return,t)}}function _c(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3&&e.memoizedState.isDehydrated&&!(t.flags&256)}function vc(e,t){if(e=e.containerInfo,KS=LC,e=Rn(e),zn(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(qS={focusedElem:e,selectionRange:n},LC=!1,Sb=t;Sb!==null;)if(t=Sb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Sb=e;else for(;Sb!==null;){switch(e=t=Sb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&nc(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)dd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:dd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw 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.`)}if(e=t.sibling,e!==null){e.return=t.return,Sb=e;break}Sb=t.return}}function yc(e,t,n){var r=di(),i=pi(),a=hi(),o=gi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:jc(e,n),s&4&&Js(n,_y|hy);break;case 1:if(jc(e,n),s&4){if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||fb||(e.props!==n.memoizedProps&&console.error("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.",T(n)||`instance`),e.state!==n.memoizedState&&console.error("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.",T(n)||`instance`)),qs(n)?(Si(),D(n,Tv,n,e),bi()):D(n,Tv,n,e);else{var c=$o(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||fb||(e.props!==n.memoizedProps&&console.error("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.",T(n)||`instance`),e.state!==n.memoizedState&&console.error("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.",T(n)||`instance`)),qs(n)?(Si(),D(n,Dv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),bi()):D(n,Dv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}}s&64&&ec(n),s&512&&ac(n,n.return);break;case 3:if(t=si(),jc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{D(n,aa,s,c)}catch(e){Fl(n,n.return,e)}}e.effectDuration+=ci(t);break;case 27:t===null&&s&4&&gc(n);case 26:case 5:if(jc(e,n),t===null){if(s&4)lc(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{D(n,Yu,c,e,t,n)}catch(e){Fl(n,n.return,e)}}}s&512&&ac(n,n.return);break;case 12:if(s&4){s=si(),jc(e,n),e=n.stateNode,e.effectDuration+=li(s);try{D(n,sc,n,t,x_,e.effectDuration)}catch(e){Fl(n,n.return,e)}}else jc(e,n);break;case 31:jc(e,n),s&4&&Cc(e,n);break;case 13:jc(e,n),s&4&&wc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=zl.bind(null,n),_d(e,s))));break;case 22:if(s=n.memoizedState!==null||vb,!s){t=t!==null&&t.memoizedState!==null||yb,c=vb;var l=yb;vb=s,(yb=t)&&!l?(Fc(e,n,!!(n.subtreeFlags&8772)),(n.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Xn(n,K,q)):jc(e,n),vb=c,yb=l}break;case 30:break;default:jc(e,n)}(n.mode&W)!==U&&0<=K&&0<=q&&((O_||.05<E_)&&Qn(n,K,q,E_,D_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<q-K&&(_c(n.return.alternate,n.return)||Yn(n,K,q,`Mount`))),fi(r),mi(i),D_=a,O_=o}function bc(e){var t=e.alternate;t!==null&&(e.alternate=null,bc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ye(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xc(e,t,n){for(n=n.child;n!==null;)Sc(e,t,n),n=n.sibling}function Sc(e,t,n){if(Np&&typeof Np.onCommitFiberUnmount==`function`)try{Np.onCommitFiberUnmount(Mp,n)}catch(e){Pp||(Pp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=di(),i=pi(),a=hi(),o=gi();switch(n.tag){case 26:yb||oc(n,t),xc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:yb||oc(n,t);var s=Tb,c=Eb;ed(n.type)&&(Tb=n.stateNode,Eb=!1),xc(e,t,n),D(n,Od,n.stateNode),Tb=s,Eb=c;break;case 5:yb||oc(n,t);case 6:if(s=Tb,c=Eb,Tb=null,xc(e,t,n),Tb=s,Eb=c,Tb!==null){if(Eb)try{D(n,nd,Tb,n.stateNode)}catch(e){Fl(n,t,e)}else try{D(n,td,Tb,n.stateNode)}catch(e){Fl(n,t,e)}}break;case 18:Tb!==null&&(Eb?(e=Tb,rd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Cf(e)):rd(Tb,n.stateNode));break;case 4:s=Tb,c=Eb,Tb=n.stateNode.containerInfo,Eb=!0,xc(e,t,n),Tb=s,Eb=c;break;case 0:case 11:case 14:case 15:Zs(gy,n,t),yb||Ys(n,t,_y),xc(e,t,n);break;case 1:yb||(oc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&rc(n,t,s)),xc(e,t,n);break;case 21:xc(e,t,n);break;case 22:yb=(s=yb)||n.memoizedState!==null,xc(e,t,n),yb=s;break;default:xc(e,t,n)}(n.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(n,K,q,E_,D_),fi(r),mi(i),D_=a,O_=o}function Cc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{D(t,wd,e)}catch(e){Fl(t,t.return,e)}}}function wc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{D(t,Td,e)}catch(e){Fl(t,t.return,e)}}function Tc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function Ec(e,t){var n=Tc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Fp){if(Cb!==null&&wb!==null)Gl(wb,Cb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`)}var r=Bl.bind(null,e,t);t.then(r,r)}})}function Dc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=di(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(ed(c.type)){Tb=c.stateNode,Eb=!1;break a}break;case 5:Tb=c.stateNode,Eb=!1;break a;case 3:case 4:Tb=c.stateNode.containerInfo,Eb=!0;break a}c=c.return}if(Tb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);Sc(i,a,o),Tb=null,Eb=!1,(o.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Yn(o,K,q,`Unmount`),fi(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Oc(t,e),t=t.sibling}function Oc(e,t){var n=di(),r=pi(),i=hi(),a=gi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dc(t,e),kc(e),s&4&&(Zs(gy|hy,e,e.return),Xs(gy|hy,e),Ys(e,e.return,_y|hy));break;case 1:if(Dc(t,e),kc(e),s&512&&(yb||o===null||oc(o,o.return)),s&64&&vb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Db,Dc(t,e),kc(e),s&512&&(yb||o===null||oc(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null){if(s===null){if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[em]||l[qp]||l.namespaceURI===Lm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),Eu(l,s,o),l[qp]=e,$e(l),s=l;break a;case`link`:var u=Ud(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),Eu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Ud(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],k(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),Eu(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[qp]=e,$e(l),s=l}e.stateNode=s}else Wd(c,e.type,e.stateNode)}else e.stateNode=zd(c,s,e.memoizedProps)}else l===s?s===null&&e.stateNode!==null&&uc(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Wd(c,e.type,e.stateNode):zd(c,s,e.memoizedProps))}break;case 27:Dc(t,e),kc(e),s&512&&(yb||o===null||oc(o,o.return)),o!==null&&s&4&&uc(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Dc(t,e),kc(e),s&512&&(yb||o===null||oc(o,o.return)),e.flags&32){c=e.stateNode;try{D(e,Zu,c)}catch(t){Fl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,uc(e,c,o===null?c:o.memoizedProps)),s&1024&&(bb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(Dc(t,e),kc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{D(e,Qu,c,o,s)}catch(t){Fl(e,e.return,t)}}break;case 3:if(c=si(),fC=null,l=Db,Db=kd(t.containerInfo),Dc(t,e),Db=l,kc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{D(e,Cd,t.containerInfo)}catch(t){Fl(e,e.return,t)}bb&&(bb=!1,Ac(e)),t.effectDuration+=ci(c);break;case 4:s=Db,Db=kd(e.stateNode.containerInfo),Dc(t,e),kc(e),Db=s;break;case 12:s=si(),Dc(t,e),kc(e),e.stateNode.effectDuration+=li(s);break;case 31:Dc(t,e),kc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ec(e,s)));break;case 13:Dc(t,e),kc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(gx=Cp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ec(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=vb,m=yb;if(vb=p||c,yb=m||f,Dc(t,e),yb=m,vb=p,f&&!c&&!p&&!m&&(e.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Xn(e,K,q),kc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Ag:t._visibility|Ag,!c||o===null||f||vb||yb||(Nc(e),(e.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Yn(e,K,q,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?D(f,od,l):D(f,ld,f.stateNode,f.memoizedProps)}catch(e){Fl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?D(f,sd,u):D(f,ud,u,f.memoizedProps)}catch(e){Fl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?D(f,ad,d):D(f,cd,f.stateNode)}catch(e){Fl(f,f.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,Ec(e,o))));break;case 19:Dc(t,e),kc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ec(e,s)));break;case 30:break;case 21:break;default:Dc(t,e),kc(e)}(e.mode&W)!==U&&0<=K&&0<=q&&((O_||.05<E_)&&Qn(e,K,q,E_,D_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<q-K&&(_c(e.return.alternate,e.return)||Yn(e,K,q,`Mount`))),fi(n),mi(r),D_=i,O_=a}function kc(e){var t=e.flags;if(t&2){try{D(e,hc,e)}catch(t){Fl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ac(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ac(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)yc(e,t.alternate,t),t=t.sibling}function Mc(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 14:case 15:Ys(e,e.return,_y),Nc(e);break;case 1:oc(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&rc(e,e.return,a),Nc(e);break;case 27:D(e,Od,e.stateNode);case 26:case 5:oc(e,e.return),Nc(e);break;case 22:e.memoizedState===null&&Nc(e);break;case 30:Nc(e);break;default:Nc(e)}(e.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(e,K,q,E_,D_),fi(t),mi(n),D_=r,O_=i}function Nc(e){for(e=e.child;e!==null;)Mc(e),e=e.sibling}function Pc(e,t,n,r){var i=di(),a=pi(),o=hi(),s=gi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Fc(e,n,r),Js(n,_y);break;case 1:if(Fc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&D(n,Tv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{D(n,ia,t,e)}catch(e){Fl(n,n.return,e)}}r&&c&64&&ec(n),ac(n,n.return);break;case 27:gc(n);case 26:case 5:Fc(e,n,r),r&&t===null&&c&4&&lc(n),ac(n,n.return);break;case 12:if(r&&c&4){c=si(),Fc(e,n,r),r=n.stateNode,r.effectDuration+=li(c);try{D(n,sc,n,t,x_,r.effectDuration)}catch(e){Fl(n,n.return,e)}}else Fc(e,n,r);break;case 31:Fc(e,n,r),r&&c&4&&Cc(e,n);break;case 13:Fc(e,n,r),r&&c&4&&wc(e,n);break;case 22:n.memoizedState===null&&Fc(e,n,r),ac(n,n.return);break;case 30:break;default:Fc(e,n,r)}(n.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(n,K,q,E_,D_),fi(i),mi(a),D_=o,O_=s}function Fc(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;)Pc(e,t.alternate,t,n),t=t.sibling}function Ic(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&ri(e),n!=null&&ii(n))}function Lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ri(t),e!=null&&ii(e))}function Rc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;zc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function zc(e,t,n,r,i){var a=di(),o=pi(),s=hi(),c=gi(),l=wg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&W)!==U&&0<t.actualStartTime&&t.flags&1&&N(t,t.actualStartTime,i,Ob,n),Rc(e,t,n,r,i),u&2048&&Qs(t,vy|hy);break;case 1:(t.mode&W)!==U&&0<t.actualStartTime&&(t.flags&128?Zn(t,t.actualStartTime,i,[]):t.flags&1&&N(t,t.actualStartTime,i,Ob,n)),Rc(e,t,n,r,i);break;case 3:var d=si(),f=Ob;Ob=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!(t.flags&256),Rc(e,t,n,r,i),Ob=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(ri(r),n!=null&&ii(n))),e.passiveEffectDuration+=ci(d);break;case 12:if(u&2048){u=si(),Rc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=li(u);try{D(t,cc,t,t.alternate,x_,e.passiveEffectDuration)}catch(e){Fl(t,t.return,e)}}else Rc(e,t,n,r,i);break;case 31:u=Ob,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Ob=!1,d=d.hydrationErrors,d!==null&&Zn(t,t.actualStartTime,i,d)):Ob=!0):Ob=!1,Rc(e,t,n,r,i),Ob=u;break;case 13:u=Ob,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?Ob=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Ob=!1,d=d.hydrationErrors,d!==null&&Zn(t,t.actualStartTime,i,d)):Ob=!0),Rc(e,t,n,r,i),Ob=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&jg?Rc(e,t,n,r,i):(f._visibility|=jg,Bc(e,t,n,r,!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&W)===U||Ob||(e=t.actualStartTime,0<=e&&.05<i-e&&Xn(t,e,i),0<=K&&0<=q&&.05<q-K&&Xn(t,K,q))):f._visibility&jg?Rc(e,t,n,r,i):Hc(e,t,n,r,i),u&2048&&Ic(d,t);break;case 24:Rc(e,t,n,r,i),u&2048&&Lc(t.alternate,t);break;default:Rc(e,t,n,r,i)}(t.mode&W)!==U&&((e=!Ob&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&Yn(t,n,i,`Mount`)),0<=K&&0<=q&&((O_||.05<E_)&&Qn(t,K,q,E_,D_),e&&.05<q-K&&Yn(t,K,q,`Mount`))),fi(a),mi(o),D_=s,O_=c,wg=l}function Bc(e,t,n,r,i,a){for(i&&=!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Vc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Vc(e,t,n,r,i,a){var o=di(),s=pi(),c=hi(),l=gi(),u=wg;i&&(t.mode&W)!==U&&0<t.actualStartTime&&t.flags&1&&N(t,t.actualStartTime,a,Ob,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Bc(e,t,n,r,i,a),Qs(t,vy);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=jg,Bc(e,t,n,r,i,a)):f._visibility&jg?Bc(e,t,n,r,i,a):Hc(e,t,n,r,a),i&&d&2048&&Ic(t.alternate,t);break;case 24:Bc(e,t,n,r,i,a),i&&d&2048&&Lc(t.alternate,t);break;default:Bc(e,t,n,r,i,a)}(t.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(t,K,q,E_,D_),fi(o),mi(s),D_=c,O_=l,wg=u}function Hc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=wg;(a.mode&W)!==U&&0<a.actualStartTime&&a.flags&1&&N(a,a.actualStartTime,l,Ob,s);var d=a.flags;switch(a.tag){case 22:Hc(o,a,s,c,l),d&2048&&Ic(a.alternate,a);break;case 24:Hc(o,a,s,c,l),d&2048&&Lc(a.alternate,a);break;default:Hc(o,a,s,c,l)}wg=u,a=t}}function Uc(e,t,n){if(e.subtreeFlags&kb)for(e=e.child;e!==null;)Wc(e,t,n),e=e.sibling}function Wc(e,t,n){switch(e.tag){case 26:Uc(e,t,n),e.flags&kb&&e.memoizedState!==null&&qd(n,Db,e.memoizedState,e.memoizedProps);break;case 5:Uc(e,t,n);break;case 3:case 4:var r=Db;Db=kd(e.stateNode.containerInfo),Uc(e,t,n),Db=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kb,kb=16777216,Uc(e,t,n),kb=r):Uc(e,t,n));break;default:Uc(e,t,n)}}function Gc(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Kc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=di();Sb=r,Xc(r,e),(r.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Yn(r,K,q,`Unmount`),fi(i)}Gc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qc(e),e=e.sibling}function qc(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 15:Kc(e),e.flags&2048&&$s(e,e.return,vy|hy);break;case 3:var a=si();Kc(e),e.stateNode.passiveEffectDuration+=ci(a);break;case 12:a=si(),Kc(e),e.stateNode.passiveEffectDuration+=li(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&jg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~jg,Jc(e),(e.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Yn(e,K,q,`Disconnect`)):Kc(e);break;default:Kc(e)}(e.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(e,K,q,E_,D_),fi(t),mi(n),O_=i,D_=r}function Jc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=di();Sb=r,Xc(r,e),(r.mode&W)!==U&&0<=K&&0<=q&&.05<q-K&&Yn(r,K,q,`Unmount`),fi(i)}Gc(e)}for(e=e.child;e!==null;)Yc(e),e=e.sibling}function Yc(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 15:$s(e,e.return,vy),Jc(e);break;case 22:var a=e.stateNode;a._visibility&jg&&(a._visibility&=~jg,Jc(e));break;default:Jc(e)}(e.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(e,K,q,E_,D_),fi(t),mi(n),O_=i,D_=r}function Xc(e,t){for(;Sb!==null;){var n=Sb,r=n,i=t,a=di(),o=pi(),s=hi(),c=gi();switch(r.tag){case 0:case 11:case 15:$s(r,i,vy);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&ri(i));break;case 24:ii(r.memoizedState.cache)}if((r.mode&W)!==U&&0<=K&&0<=q&&(O_||.05<E_)&&Qn(r,K,q,E_,D_),fi(a),mi(o),O_=c,D_=s,r=n.child,r!==null)r.return=n,Sb=r;else a:for(n=e;Sb!==null;){if(r=Sb,a=r.sibling,o=r.return,bc(r),r===n){Sb=null;break a}if(a!==null){a.return=o,Sb=a;break a}Sb=o}}}function Zc(){Mb.forEach(function(e){return e()})}function Qc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||B.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function $c(e){if((Z&Fb)!==Pb&&$!==0)return $&-$;var t=B.T;return t===null?qe():(t._updatedFibers||=new Set,t._updatedFibers.add(e),ru())}function el(){if(dx===0){if(!($&536870912)||G){var e=Bp;Bp<<=1,!(Bp&3932160)&&(Bp=262144),dx=e}else dx=536870912}return e=ly.current,e!==null&&(e.flags|=32),dx}function tl(e,t,n){if($x&&console.error(`useInsertionEffect must not schedule updates.`),Jx&&(Yx=!0),(e===Wb&&(tx===qb||tx===ex)||e.cancelPendingCommit!==null)&&(ll(e,0),al(e,$,dx,!1)),Re(e,n),(Z&Fb)!==Pb&&e===Wb){if(_p)switch(t.tag){case 0:case 11:case 15:e=Q&&T(Q)||`Unknown`,nS.has(e)||(nS.add(e),t=T(t)||`Unknown`,console.error("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://react.dev/link/setstate-in-render",t,e,e));break;case 1:tS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Fp&&We(e,t,n),ql(t),e===Wb&&((Z&Fb)===Pb&&(lx|=n),sx===Vb&&al(e,$,dx,!1)),Jl(e)}function nl(e,t,n){if((Z&(Fb|Ib))!==Pb)throw Error(`Should not already be working.`);if($!==0&&Q!==null){var r=Q,i=Cp();switch(ev){case Jb:case qb:var a=tv;Sg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,Cg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,Cg,void 0,`primary-light`));break;case ex:a=tv,Sg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,Cg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,Cg,void 0,`primary-light`));break;default:Sg&&(r=i-tv,3>r||console.timeStamp(`Blocked`,tv,i,Cg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&!(t&127)&&(t&e.expiredLanes)===0||Pe(e,t))?vl(e,t):gl(e,t,!0);var o=n;do{if(a===Lb){ix&&!n&&al(e,t,0,!1),t=tx,tv=g_(),ev=t;break}if(r=Cp(),i=e.current.alternate,o&&!il(i)){Jn(t),i=b_,a=r,!Sg||a<=i||(Sx?Sx.run(console.timeStamp.bind(console,`Teared Render`,i,a,H,V,`error`)):console.timeStamp(`Teared Render`,i,a,H,V,`error`)),cl(t,r),a=gl(e,t,!1),o=!1;continue}if(a===zb){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Jn(t),rr(b_,r,t,Sx),cl(t,r),t=s;a:{r=e,a=o,o=px;var c=r.current.memoizedState.isDehydrated;if(c&&(ll(r,s).flags|=256),s=gl(r,s,!1),s!==zb){if(ax&&!c){r.errorRecoveryDisabledLanes|=a,lx|=a,a=Vb;break a}r=mx,mx=o,r!==null&&(mx===null?mx=r:mx.push.apply(mx,r))}a=s}if(o=!1,a!==zb)continue;r=Cp()}}if(a===Rb){Jn(t),rr(b_,r,t,Sx),cl(t,r),ll(e,0),al(e,t,0,!0);break}a:{switch(n=e,a){case Lb:case Rb:throw Error(`Root did not complete. This is a bug in React.`);case Vb:if((t&4194048)!==t)break;case Hb:Jn(t),er(b_,r,t,Sx),cl(t,r),i=t,i&127?R_=r:i&4194048&&(Y_=r),al(n,t,dx,!rx);break a;case zb:mx=null;break;case Bb:case Ub:break;default:throw Error(`Unknown root exit status.`)}if(B.actQueue!==null)El(n,i,t,mx,xx,hx,dx,lx,fx,a,null,null,b_,r);else{if((t&62914560)===t&&(o=gx+vx-Cp(),10<o)){if(al(n,t,dx,!rx),Ne(n,0,!0)!==0)break a;Lx=t,n.timeoutHandle=ZS(rl.bind(null,n,i,mx,xx,hx,t,dx,lx,fx,rx,a,`Throttled`,b_,r),o);break a}rl(n,i,mx,xx,hx,t,dx,lx,fx,rx,a,null,b_,r)}}break}while(1);Jl(e)}function rl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=$S;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},Wc(t,a,h),m=(a&62914560)===a?gx-Cp():(a&4194048)===a?_x-Cp():0,m=Jd(h,m),m!==null)){Lx=a,e.cancelPendingCommit=m(El.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),al(e,a,o,!l);return}El(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function il(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Gh(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function al(e,t,n,r){t&=~ux,t&=~lx,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ip(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Be(e,n,t)}function ol(){return(Z&(Fb|Ib))!==Pb||(Yl(0,!1),!1)}function sl(){if(Q!==null){if(tx===Gb)var e=Q.return;else e=Q,Gr(),Ta(e),Wv=null,Gv=0,e=Q;for(;e!==null;)Ks(e.alternate,e),e=e.return;Q=null}}function cl(e,t){e&127&&(k_=t),e&4194048&&(z_=t),e&62914560&&(X_=t),e&2080374784&&(Z_=t)}function ll(e,t){Sg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,V,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,V,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,V,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,V,`primary-light`));var n=b_;if(b_=g_(),$!==0&&0<n){if(Jn($),sx===Bb||sx===Vb)er(n,b_,t,Sx);else{var r=b_,i=Sx;if(Sg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,H,V,a)):console.timeStamp(o,n,r,H,V,a)}}cl($,b_)}if(n=Sx,Sx=null,t&127){Sx=j_,i=0<=A_&&A_<k_?k_:A_,r=0<=F_&&F_<k_?k_:F_,a=0<=r?r:0<=i?i:b_,0<=R_?(Jn(2),tr(R_,a,t,n)):Q_&127&&(Jn(2),ar(k_,a,$_)),n=i;var s=r,c=I_,l=0<L_,u=M_===v_,d=M_===y_;if(i=b_,r=j_,a=N_,o=P_,Sg){if(H=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,H,V,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,H,V,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:H,trackGroup:V,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}A_=-1.1,M_=0,P_=N_=null,R_=-1.1,L_=F_,F_=-1.1,k_=g_()}if(t&4194048&&(Sx=U_,i=0<=B_&&B_<z_?z_:B_,n=0<=V_&&V_<z_?z_:V_,r=0<=K_&&K_<z_?z_:K_,a=0<=r?r:0<=n?n:b_,0<=Y_?(Jn(256),tr(Y_,a,t,Sx)):Q_&4194048&&(Jn(256),ar(z_,a,$_)),d=r,s=q_,c=0<J_,l=H_===y_,a=b_,r=U_,o=W_,u=G_,Sg&&(H=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,H,V,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,H,V,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,H,V,`primary-dark`)):console.timeStamp(`Action`,i,n,H,V,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:H,trackGroup:V,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),V_=B_=-1.1,H_=0,Y_=-1.1,J_=K_,K_=-1.1,z_=g_()),t&62914560&&Q_&62914560&&(Jn(4194304),ar(X_,b_,$_)),t&2080374784&&Q_&2080374784&&(Jn(268435456),ar(Z_,b_,$_)),n=e.timeoutHandle,n!==$S&&(e.timeoutHandle=$S,QS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lx=0,sl(),Wb=e,Q=n=F(e.current,null),$=t,tx=Gb,nx=null,rx=!1,ix=Pe(e,t),ax=!1,sx=Lb,fx=dx=ux=lx=cx=0,mx=px=null,hx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Ip(r),a=1<<i,t|=e[i],r&=~a;return ox=t,or(),e=dg(),1e3<e-lg&&(B.recentlyCreatedOwnerStacks=0,lg=e),uv.discardPendingWarnings(),n}function ul(e,t){Y=null,B.H=Ry,B.getCurrentStack=null,_p=!1,gp=null,t===Rv||t===Bv?(t=Pi(),tx=Jb):t===zv?(t=Pi(),tx=Yb):tx=t===ob?$b:typeof t==`object`&&t&&typeof t.then==`function`?Zb:Kb,nx=t;var n=Q;n===null?(sx=Rb,rs(e,Er(t,e.current))):n.mode&W&&vi(n)}function dl(){var e=ly.current;return e===null?!0:($&4194048)===$?uy===null:($&62914560)===$||$&536870912?e===uy:!1}function fl(){var e=B.H;return B.H=Ry,e===null?Ry:e}function pl(){var e=B.A;return B.A=Ab,e}function ml(e){Sx===null&&(Sx=e._debugTask==null?null:e._debugTask)}function hl(){sx=Vb,rx||($&4194048)!==$&&ly.current!==null||(ix=!0),!(cx&134217727)&&!(lx&134217727)||Wb===null||al(Wb,$,dx,!1)}function gl(e,t,n){var r=Z;Z|=Fb;var i=fl(),a=pl();if(Wb!==e||$!==t){if(Fp){var o=e.memoizedUpdaters;0<o.size&&(Gl(e,$),o.clear()),Ge(e,t)}xx=null,ll(e,t)}t=!1,o=sx;a:do try{if(tx!==Gb&&Q!==null){var s=Q,c=nx;switch(tx){case $b:sl(),o=Hb;break a;case Jb:case qb:case ex:case Zb:ly.current===null&&(t=!0);var l=tx;if(tx=Gb,nx=null,Cl(e,s,c,l),n&&ix){o=Lb;break a}break;default:l=tx,tx=Gb,nx=null,Cl(e,s,c,l)}}_l(),o=sx;break}catch(t){ul(e,t)}while(1);return t&&e.shellSuspendCounter++,Gr(),Z=r,B.H=i,B.A=a,Q===null&&(Wb=null,$=0,or()),o}function _l(){for(;Q!==null;)bl(Q)}function vl(e,t){var n=Z;Z|=Fb;var r=fl(),i=pl();if(Wb!==e||$!==t){if(Fp){var a=e.memoizedUpdaters;0<a.size&&(Gl(e,$),a.clear()),Ge(e,t)}xx=null,yx=Cp()+bx,ll(e,t)}else ix=Pe(e,t);a:do try{if(tx!==Gb&&Q!==null)b:switch(t=Q,a=nx,tx){case Kb:tx=Gb,nx=null,Cl(e,t,a,Kb);break;case qb:case ex:if(ji(a)){tx=Gb,nx=null,xl(t);break}t=function(){tx!==qb&&tx!==ex||Wb!==e||(tx=Qb),Jl(e)},a.then(t,t);break a;case Jb:tx=Qb;break a;case Yb:tx=Xb;break a;case Qb:ji(a)?(tx=Gb,nx=null,xl(t)):(tx=Gb,nx=null,Cl(e,t,a,Qb));break;case Xb:var o=null;switch(Q.tag){case 26:o=Q.memoizedState;case 5:case 27:var s=Q;if(o?Kd(o):s.stateNode.complete){tx=Gb,nx=null;var c=s.sibling;if(c!==null)Q=c;else{var l=s.return;l===null?Q=null:(Q=l,wl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}tx=Gb,nx=null,Cl(e,t,a,Xb);break;case Zb:tx=Gb,nx=null,Cl(e,t,a,Zb);break;case $b:sl(),sx=Hb;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}B.actQueue===null?yl():_l();break}catch(t){ul(e,t)}while(1);return Gr(),B.H=r,B.A=i,Z=n,Q===null?(Wb=null,$=0,or(),sx):Lb}function yl(){for(;Q!==null&&!xp();)bl(Q)}function bl(e){var t=e.alternate;(e.mode&W)===U?t=D(e,Ls,t,e,ox):(_i(e),t=D(e,Ls,t,e,ox),vi(e)),e.memoizedProps=e.pendingProps,t===null?wl(e):Q=t}function xl(e){var t=D(e,Sl,e);e.memoizedProps=e.pendingProps,t===null?wl(e):Q=t}function Sl(e){var t=e.alternate,n=(e.mode&W)!==U;switch(n&&_i(e),e.tag){case 15:case 0:t=xs(t,e,e.pendingProps,e.type,void 0,$);break;case 11:t=xs(t,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:Ta(e);default:Ks(t,e),e=Q=yr(e,ox),t=Ls(t,e,ox)}return n&&vi(e),t}function Cl(e,t,n,r){Gr(),Ta(t),Wv=null,Gv=0;var i=t.return;try{if(cs(e,i,t,n,$)){sx=Rb,rs(e,Er(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;sx=Rb,rs(e,Er(n,e.current)),Q=null;return}t.flags&32768?(G||r===Kb?e=!0:ix||$&536870912?e=!1:(rx=e=!0,(r===qb||r===ex||r===Jb||r===Zb)&&(r=ly.current,r!==null&&r.tag===13&&(r.flags|=16384))),Tl(t,e)):wl(t)}function wl(e){var t=e;do{if(t.flags&32768){Tl(t,rx);return}var n=t.alternate;if(e=t.return,_i(t),n=D(t,Ws,n,t,ox),(t.mode&W)!==U&&yi(t),n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);sx===Lb&&(sx=Ub)}function Tl(e,t){do{var n=Gs(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if((e.mode&W)!==U){yi(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Q=e;return}Q=e=n}while(e!==null);sx=Hb,Q=null}function El(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Ml();while(Px!==Ox);if(uv.flushLegacyContextWarning(),uv.flushPendingUnsafeLifecycleWarnings(),(Z&(Fb|Ib))!==Pb)throw Error(`Should not already be working.`);if(Jn(n),l===zb?rr(f,p,n,Sx):r===null?$n(f,p,n,Sx):nr(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!!(t.flags&256),Sx),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Pg,ze(e,n,a,o,s,c),e===Wb&&(Q=Wb=null,$=0),Ix=t,Fx=e,Lx=n,Rx=a,Bx=i,Vx=r,zx=p,Hx=d,Ux=wx,Wx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Kl(Dp,function(){return XS=window.event,Ux===wx&&(Ux=Ex),Nl(),null})):(e.callbackNode=null,e.callbackPriority=0),C_=null,x_=g_(),d!==null&&ir(p,x_,d,Sx),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=B.T,B.T=null,i=Yf.p,Yf.p=Hp,o=Z,Z|=Ib;try{vc(e,t,n)}finally{Z=o,Yf.p=i,B.T=r}}Px=kx,Dl(),Ol(),kl()}}function Dl(){if(Px===kx){Px=Ox;var e=Fx,t=Ix,n=Lx,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=B.T,B.T=null;var i=Yf.p;Yf.p=Hp;var a=Z;Z|=Ib;try{Cb=n,wb=e,ui(),Oc(t,e),wb=Cb=null,n=qS;var o=Rn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ln(s.ownerDocument.documentElement,s)){if(c!==null&&zn(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=In(s,h),v=In(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}LC=!!KS,qS=KS=null}finally{Z=a,Yf.p=i,B.T=r}}e.current=t,Px=Ax}}function Ol(){if(Px===Ax){Px=Ox;var e=Wx;if(e!==null){x_=g_();var t=S_,n=x_;!Sg||n<=t||($_?$_.run(console.timeStamp.bind(console,e,t,n,H,V,`secondary-light`)):console.timeStamp(e,t,n,H,V,`secondary-light`))}e=Fx,t=Ix,n=Lx;var r=!!(t.flags&8772);if(t.subtreeFlags&8772||r){r=B.T,B.T=null;var i=Yf.p;Yf.p=Hp;var a=Z;Z|=Ib;try{Cb=n,wb=e,ui(),yc(e,t.alternate,t),wb=Cb=null}finally{Z=a,Yf.p=i,B.T=r}}e=zx,t=Hx,S_=g_(),e=t===null?e:x_,t=S_,n=Ux===Tx,r=Sx,C_===null?!Sg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,H,V,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,H,V,n?`error`:`secondary-dark`)):P(e,t,C_,!1,r),Px=jx}}function kl(){if(Px===Mx||Px===jx){if(Px===Mx){var e=S_;S_=g_();var t=S_,n=Ux===Tx;!Sg||t<=e||($_?$_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,H,V,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,H,V,n?` error`:`secondary-light`)),Ux!==Tx&&(Ux=Dx)}Px=Ox,Sp(),e=Fx;var r=Ix;t=Lx,n=Vx;var i=r.actualDuration!==0||!!(r.subtreeFlags&10256)||!!(r.flags&10256);i?Px=Nx:(Px=Ox,Ix=Fx=null,jl(e,e.pendingLanes),Zx=0,Qx=null);var a=e.pendingLanes;if(a===0&&(Cx=null),i||Ul(e),a=Ke(t),r=r.stateNode,Np&&typeof Np.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Hp:var s=Tp;break;case Up:s=Ep;break;case Wp:s=Dp;break;case Gp:s=kp;break;default:s=Dp}Np.onCommitFiberRoot(Mp,r,s,o)}catch(e){Pp||(Pp=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Fp&&e.memoizedUpdaters.clear(),Zc(),n!==null){o=B.T,s=Yf.p,Yf.p=Hp,B.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=Al(l.stack);D(l.source,c,l.value,u)}}finally{B.T=o,Yf.p=s}}Lx&3&&Ml(),Jl(e),a=e.pendingLanes,t&261930&&a&42?(rv=!0,e===qx?Kx++:(Kx=0,qx=e)):Kx=0,i||cl(t,S_),Yl(0,!1)}}function Al(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function jl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ii(t)))}function Ml(){return Dl(),Ol(),kl(),Nl()}function Nl(){if(Px!==Nx)return!1;var e=Fx,t=Rx;Rx=0;var n=Ke(Lx),r=Wp===0||Wp>n?Wp:n;n=B.T;var i=Yf.p;try{Yf.p=r,B.T=null;var a=Bx;Bx=null,r=Fx;var o=Lx;if(Px=Ox,Ix=Fx=null,Lx=0,(Z&(Fb|Ib))!==Pb)throw Error(`Cannot flush passive effects while already rendering.`);Jn(o),Jx=!0,Yx=!1;var s=0;if(C_=null,s=Cp(),Ux===Dx)ar(S_,s,$_);else{var c=S_,l=s,u=Ux===Ex;!Sg||l<=c||(Sx?Sx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,H,V,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,H,V,`secondary-light`))}c=Z,Z|=Ib;var d=r.current;ui(),qc(d);var f=r.current;d=zx,ui(),zc(r,f,o,a,d),Ul(r),Z=c;var p=Cp();if(f=s,d=Sx,C_===null?!Sg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,H,V,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,H,V,`secondary-dark`)):P(f,p,C_,!0,d),cl(o,p),Yl(0,!1),Yx?r===Qx?Zx++:(Zx=0,Qx=r):Zx=0,Yx=Jx=!1,Np&&typeof Np.onPostCommitFiberRoot==`function`)try{Np.onPostCommitFiberRoot(Mp,r)}catch(e){Pp||(Pp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Yf.p=i,B.T=n,jl(e,t)}}function Pl(e,t,n){t=Er(n,t),xi(t),t=as(e.stateNode,t,2),e=Qi(e,t,2),e!==null&&(Re(e,2),Jl(e))}function Fl(e,t,n){if($x=!1,e.tag===3)Pl(e,e,n);else{for(;t!==null;){if(t.tag===3){Pl(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Cx===null||!Cx.has(r))){e=Er(n,e),xi(e),n=os(2),r=Qi(t,n,2),r!==null&&(ss(n,r,t,e),Re(r,2),Jl(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
158
158
|
|
|
159
159
|
Error message:
|
|
160
160
|
|
|
@@ -242,4 +242,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
242
242
|
React keys must be passed directly to JSX without using spread:
|
|
243
243
|
let props = %s;
|
|
244
244
|
<%s key={someKey} {...props} />`,o,f,m,f),de[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ie&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=d(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),C=Symbol.for(`react.activity`),w=Symbol.for(`react.client.reference`),T=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=Object.prototype.hasOwnProperty,oe=Array.isArray,E=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var se,ce={},le=h.react_stack_bottom_frame.bind(h,o)(),ue=E(i(o)),de={};e.Fragment=v,e.jsxDEV=function(e,t,n,r){var a=1e4>T.recentlyCreatedOwnerStacks++;return f(e,t,n,r,a?Error(`react-stack-top-frame`):le,a?E(i(e)):ue)}})()})),yt=o(((e,t)=>{t.exports=vt()})),bt=_(),j=yt(),xt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/shell/Rail.tsx`,St=[{key:`sessions`,label:`Sessions`,route:{name:`sessions`},icon:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,j.jsxDEV)(`rect`,{x:`3`,y:`3.5`,width:`14`,height:`13`,rx:`2.5`},void 0,!1,{fileName:xt,lineNumber:27,columnNumber:9},void 0),(0,j.jsxDEV)(`path`,{d:`M6.5 8h7M6.5 11.5h4.5`},void 0,!1,{fileName:xt,lineNumber:28,columnNumber:9},void 0)]},void 0,!0,{fileName:xt,lineNumber:26,columnNumber:7},void 0)},{key:`reviews`,label:`Reviews`,route:{name:`reviews`},icon:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,j.jsxDEV)(`path`,{d:`M3.5 4.5h13v9h-7.5L6 16.5v-3H3.5z`},void 0,!1,{fileName:xt,lineNumber:38,columnNumber:9},void 0),(0,j.jsxDEV)(`path`,{d:`M7 8h6M7 10.75h3.5`},void 0,!1,{fileName:xt,lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:xt,lineNumber:37,columnNumber:7},void 0)},{key:`packages`,label:`Packages`,soon:!0,icon:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,j.jsxDEV)(`path`,{d:`M10 2.8 16.5 6v8L10 17.2 3.5 14V6z`},void 0,!1,{fileName:xt,lineNumber:49,columnNumber:9},void 0),(0,j.jsxDEV)(`path`,{d:`M3.5 6 10 9.4 16.5 6M10 9.4v7.8`},void 0,!1,{fileName:xt,lineNumber:50,columnNumber:9},void 0)]},void 0,!0,{fileName:xt,lineNumber:48,columnNumber:7},void 0)}];function Ct({route:e,onNavigate:t,onOpenPalette:n,live:r}){return(0,j.jsxDEV)(`nav`,{className:`rail`,"aria-label":`Primary`,children:[(0,j.jsxDEV)(`div`,{className:`rail__mark`,title:`Invariant`,children:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,j.jsxDEV)(`path`,{d:`M12 3.2 20 7.6v8.8L12 20.8 4 16.4V7.6z`},void 0,!1,{fileName:xt,lineNumber:66,columnNumber:11},this),(0,j.jsxDEV)(`path`,{d:`M12 8.4v7.2`},void 0,!1,{fileName:xt,lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:xt,lineNumber:65,columnNumber:9},this)},void 0,!1,{fileName:xt,lineNumber:64,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`rail__items`,children:St.map(n=>{let r=n.route?.name===e.name||n.key===`reviews`&&e.name===`review`||n.key===`sessions`&&e.name===`session`;return(0,j.jsxDEV)(`button`,{type:`button`,className:`rail__item${r?` is-active`:``}${n.soon?` is-soon`:``}`,onClick:()=>n.route&&t(n.route),disabled:n.soon,title:n.soon?`${n.label} — coming soon`:n.label,"aria-current":r?`page`:void 0,children:[n.icon,(0,j.jsxDEV)(`span`,{className:`visually-hidden`,children:n.label},void 0,!1,{fileName:xt,lineNumber:90,columnNumber:15},this)]},n.key,!0,{fileName:xt,lineNumber:80,columnNumber:13},this)})},void 0,!1,{fileName:xt,lineNumber:71,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`rail__foot`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`rail__item`,onClick:n,title:`Command palette (⌘K)`,children:[(0,j.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,j.jsxDEV)(`rect`,{x:`3`,y:`4.5`,width:`14`,height:`11`,rx:`2.5`},void 0,!1,{fileName:xt,lineNumber:99,columnNumber:13},this),(0,j.jsxDEV)(`path`,{d:`M6.5 9 8.6 11 6.5 13M11 13h3`},void 0,!1,{fileName:xt,lineNumber:100,columnNumber:13},this)]},void 0,!0,{fileName:xt,lineNumber:98,columnNumber:11},this),(0,j.jsxDEV)(`span`,{className:`visually-hidden`,children:`Command palette`},void 0,!1,{fileName:xt,lineNumber:102,columnNumber:11},this)]},void 0,!0,{fileName:xt,lineNumber:97,columnNumber:9},this),(0,j.jsxDEV)(`span`,{className:`rail__live rail__live--${r}`,title:r===`live`?`Live — watching for changes`:r===`connecting`?`Connecting…`:`Disconnected — retrying`},void 0,!1,{fileName:xt,lineNumber:104,columnNumber:9},this)]},void 0,!0,{fileName:xt,lineNumber:96,columnNumber:7},this)]},void 0,!0,{fileName:xt,lineNumber:63,columnNumber:5},this)}var wt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusGlyph.tsx`;function Tt({status:e,size:t=10}){return(0,j.jsxDEV)(`span`,{className:`glyph glyph--${e}`,style:{width:t,height:t},"aria-hidden":`true`,children:[e===`in-progress`&&(0,j.jsxDEV)(`span`,{className:`glyph__pulse`},void 0,!1,{fileName:wt,lineNumber:21,columnNumber:36},this),e===`review`&&(0,j.jsxDEV)(`span`,{className:`glyph__ring`},void 0,!1,{fileName:wt,lineNumber:22,columnNumber:31},this),e===`executed`&&(0,j.jsxDEV)(`svg`,{className:`glyph__check`,viewBox:`0 0 10 10`,focusable:`false`,children:(0,j.jsxDEV)(`path`,{d:`M2.2 5.2 4.1 7 7.8 3.2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:wt,lineNumber:25,columnNumber:11},this)},void 0,!1,{fileName:wt,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:wt,lineNumber:16,columnNumber:5},this)}var Et=[[60,1,`s`],[3600,60,`m`],[86400,3600,`h`],[2592e3,86400,`d`]];function Dt(e){let t=new Date(e).getTime();if(Number.isNaN(t))return`—`;let n=Math.max(0,Math.round((Date.now()-t)/1e3));if(n<10)return`just now`;for(let[e,t,r]of Et)if(n<e)return`${Math.floor(n/t)}${r} ago`;return new Date(t).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function Ot(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()}function kt(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function At(e,t){if(t.length===0)return 0;let n=e.toLowerCase(),r=t.toLowerCase(),i=0,a=0,o=0;for(let e of r){let t=n.indexOf(e,a);if(t===-1)return null;o=t===a?o+1:0,i+=10+o*6,(t===0||/[\s\-_/.]/.test(n[t-1]))&&(i+=8),i-=Math.min(t-a,12),a=t+1}return i-n.length*.05}async function jt(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function Mt(e,t=46){if(e.length<=t)return e;let n=e.split(`/`),r=[],i=1;for(let e=n.length-1;e>=0;--e){let a=i+n[e].length+1;if(a>t&&r.length>0)break;r.unshift(n[e]),i=a}return`…/${r.join(`/`)}`}var Nt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionCard.tsx`;function Pt(e){if(e.excerpt.length===0)return!1;let t=e.title.replace(/…$/,``).trim();return!e.excerpt.startsWith(t)}function Ft({session:e,focused:t,onOpen:n,onDragStart:r,onDragEnd:i}){return(0,j.jsxDEV)(`article`,{className:`card card--${e.status}${t?` is-focused`:``}`,tabIndex:-1,draggable:!0,onDragStart:t=>{t.dataTransfer.setData(`text/plain`,e.id),t.dataTransfer.effectAllowed=`move`,r()},onDragEnd:i,onClick:n,onKeyDown:e=>{e.key===`Enter`&&n()},role:`button`,"aria-label":`${e.title} — ${e.status}`,children:[(0,j.jsxDEV)(`header`,{className:`card__head`,children:[(0,j.jsxDEV)(Tt,{status:e.status},void 0,!1,{fileName:Nt,lineNumber:42,columnNumber:9},this),(0,j.jsxDEV)(`h3`,{className:`card__title`,children:e.title},void 0,!1,{fileName:Nt,lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:Nt,lineNumber:41,columnNumber:7},this),Pt(e)&&(0,j.jsxDEV)(`p`,{className:`card__excerpt`,children:e.excerpt},void 0,!1,{fileName:Nt,lineNumber:46,columnNumber:32},this),(0,j.jsxDEV)(`footer`,{className:`card__foot`,children:[(0,j.jsxDEV)(`span`,{className:`card__time`,title:e.updated,children:Dt(e.updated)},void 0,!1,{fileName:Nt,lineNumber:49,columnNumber:9},this),e.kind===`review`&&e.branch&&(0,j.jsxDEV)(`span`,{className:`chip chip--review`,title:e.reviewFile,children:e.branch},void 0,!1,{fileName:Nt,lineNumber:51,columnNumber:11},this),e.reviewSessionIds.length>0&&(0,j.jsxDEV)(`span`,{className:`chip chip--review`,title:`This session has been reviewed`,children:`⟲ review`},void 0,!1,{fileName:Nt,lineNumber:54,columnNumber:11},this),e.tags.slice(0,3).map(e=>(0,j.jsxDEV)(`span`,{className:`chip`,children:e},e,!1,{fileName:Nt,lineNumber:59,columnNumber:11},this)),e.needsMigration&&(0,j.jsxDEV)(`span`,{className:`chip chip--warning`,title:e.issues.join(`
|
|
245
|
-
`),children:`header`},void 0,!1,{fileName:Nt,lineNumber:62,columnNumber:11},this)]},void 0,!0,{fileName:Nt,lineNumber:48,columnNumber:7},this)]},void 0,!0,{fileName:Nt,lineNumber:26,columnNumber:5},this)}var It=[`in-progress`,`review`,`draft`,`planned`,`executed`],Lt={"in-progress":`In progress`,review:`Review`,draft:`Draft`,planned:`Planned`,executed:`Done`},Rt=It.filter(e=>e!==`review`),zt=[`blocker`,`major`,`minor`,`nit`,`praise`],Bt={blocker:`Blocker`,major:`Major`,minor:`Minor`,nit:`Nit`,praise:`Praise`},Vt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusPill.tsx`;function Ht({status:e,onChange:t,disabled:n}){let[r,i]=(0,A.useState)(!1),a=(0,A.useRef)(null);return(0,A.useEffect)(()=>{if(!r)return;let e=e=>{a.current?.contains(e.target)||i(!1)},t=e=>{e.key===`Escape`&&i(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[r]),t?(0,j.jsxDEV)(`div`,{className:`pill-menu`,ref:a,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`pill pill--${e} pill--interactive`,onClick:()=>i(e=>!e),disabled:n,"aria-haspopup":`menu`,"aria-expanded":r,children:[(0,j.jsxDEV)(Tt,{status:e},void 0,!1,{fileName:Vt,lineNumber:57,columnNumber:9},this),Lt[e],(0,j.jsxDEV)(`svg`,{className:`pill__caret`,viewBox:`0 0 10 10`,"aria-hidden":`true`,children:(0,j.jsxDEV)(`path`,{d:`M2.5 4 5 6.5 7.5 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:Vt,lineNumber:60,columnNumber:11},this)},void 0,!1,{fileName:Vt,lineNumber:59,columnNumber:9},this)]},void 0,!0,{fileName:Vt,lineNumber:49,columnNumber:7},this),r&&(0,j.jsxDEV)(`div`,{className:`pill-menu__list`,role:`menu`,children:Rt.map(n=>(0,j.jsxDEV)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":n===e,className:`pill-menu__item${n===e?` is-active`:``}`,onClick:()=>{i(!1),n!==e&&t(n)},children:[(0,j.jsxDEV)(Tt,{status:n},void 0,!1,{fileName:Vt,lineNumber:79,columnNumber:15},this),Lt[n]]},n,!0,{fileName:Vt,lineNumber:68,columnNumber:13},this))},void 0,!1,{fileName:Vt,lineNumber:66,columnNumber:9},this)]},void 0,!0,{fileName:Vt,lineNumber:48,columnNumber:5},this):(0,j.jsxDEV)(`span`,{className:`pill pill--${e}`,children:[(0,j.jsxDEV)(Tt,{status:e},void 0,!1,{fileName:Vt,lineNumber:41,columnNumber:9},this),Lt[e]]},void 0,!0,{fileName:Vt,lineNumber:40,columnNumber:7},this)}var M=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/Dashboard.tsx`;function Ut(e){return e.view===`board`?(0,j.jsxDEV)(Wt,{...e},void 0,!1,{fileName:M,lineNumber:24,columnNumber:35},this):(0,j.jsxDEV)(Gt,{...e},void 0,!1,{fileName:M,lineNumber:24,columnNumber:58},this)}function Wt({sessions:e,focusedId:t,onFocus:n,onOpen:r,onStatusChange:i,onNew:a,onRefuseDrop:o}){let[s,c]=(0,A.useState)(!1),[l,u]=(0,A.useState)(),[d,f]=(0,A.useState)(),p=(0,A.useMemo)(()=>It.map(t=>({status:t,items:e.filter(e=>e.status===t)})),[e]);return(0,j.jsxDEV)(`div`,{className:`board`,children:p.map(p=>{let m=p.status===`executed`,h=m&&!s;return(0,j.jsxDEV)(`section`,{className:`column column--${p.status}${h?` is-collapsed`:``}${d===p.status?` is-drop-target`:``}`,onDragOver:e=>{l&&(e.preventDefault(),f(p.status))},onDragLeave:()=>f(e=>e===p.status?void 0:e),onDrop:t=>{t.preventDefault();let n=t.dataTransfer.getData(`text/plain`);f(void 0),u(void 0);let r=e.find(e=>e.id===n);if(!(!r||r.status===p.status)){if(p.status===`review`||r.status===`review`){o(r.status===`review`?`Triage this review to move it on.`:`Reviews arrive here by being written, not by being dragged.`);return}i(n,p.status)}},children:[(0,j.jsxDEV)(`header`,{className:`column__head`,children:[(0,j.jsxDEV)(Tt,{status:p.status},void 0,!1,{fileName:M,lineNumber:87,columnNumber:15},this),(0,j.jsxDEV)(`h2`,{className:`column__title`,children:Lt[p.status]},void 0,!1,{fileName:M,lineNumber:88,columnNumber:15},this),(0,j.jsxDEV)(`span`,{className:`column__count`,children:p.items.length},void 0,!1,{fileName:M,lineNumber:89,columnNumber:15},this),m&&p.items.length>0&&(0,j.jsxDEV)(`button`,{type:`button`,className:`column__toggle`,onClick:()=>c(e=>!e),children:s?`Hide`:`Show`},void 0,!1,{fileName:M,lineNumber:91,columnNumber:17},this)]},void 0,!0,{fileName:M,lineNumber:86,columnNumber:13},this),!h&&(0,j.jsxDEV)(`div`,{className:`column__body`,children:[p.items.map(e=>(0,j.jsxDEV)(Ft,{session:e,focused:e.id===t,onOpen:()=>{n(e.id),r(e.id)},onDragStart:()=>u(e.id),onDragEnd:()=>{u(void 0),f(void 0)}},e.id,!1,{fileName:M,lineNumber:100,columnNumber:19},this)),p.items.length===0&&(0,j.jsxDEV)(`p`,{className:`column__empty`,children:p.status===`draft`?(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:a,children:`Start a session`},void 0,!1,{fileName:M,lineNumber:113,columnNumber:23},this):p.status===`review`?`Nothing awaiting triage`:`Nothing here`},void 0,!1,{fileName:M,lineNumber:111,columnNumber:19},this)]},void 0,!0,{fileName:M,lineNumber:98,columnNumber:15},this)]},p.status,!0,{fileName:M,lineNumber:56,columnNumber:11},this)})},void 0,!1,{fileName:M,lineNumber:50,columnNumber:5},this)}function Gt({sessions:e,focusedId:t,onFocus:n,onOpen:r,onStatusChange:i}){let a=(0,A.useRef)(null);return(0,A.useEffect)(()=>{a.current?.scrollIntoView({block:`nearest`})},[t]),(0,j.jsxDEV)(`div`,{className:`list`,children:(0,j.jsxDEV)(`table`,{className:`list__table`,children:[(0,j.jsxDEV)(`thead`,{children:(0,j.jsxDEV)(`tr`,{children:[(0,j.jsxDEV)(`th`,{scope:`col`,children:`Session`},void 0,!1,{fileName:M,lineNumber:139,columnNumber:13},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Status`},void 0,!1,{fileName:M,lineNumber:140,columnNumber:13},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:M,lineNumber:141,columnNumber:13},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Size`},void 0,!1,{fileName:M,lineNumber:142,columnNumber:13},this)]},void 0,!0,{fileName:M,lineNumber:138,columnNumber:11},this)},void 0,!1,{fileName:M,lineNumber:137,columnNumber:9},this),(0,j.jsxDEV)(`tbody`,{children:e.map(e=>(0,j.jsxDEV)(`tr`,{ref:e.id===t?a:void 0,className:e.id===t?`is-focused`:void 0,onClick:()=>{n(e.id),r(e.id)},children:[(0,j.jsxDEV)(`td`,{children:[(0,j.jsxDEV)(`div`,{className:`list__title`,children:e.title},void 0,!1,{fileName:M,lineNumber:154,columnNumber:17},this),!e.excerpt.startsWith(e.title.replace(/…$/,``).trim())&&(0,j.jsxDEV)(`div`,{className:`list__excerpt`,children:e.excerpt},void 0,!1,{fileName:M,lineNumber:156,columnNumber:19},this)]},void 0,!0,{fileName:M,lineNumber:153,columnNumber:15},this),(0,j.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,j.jsxDEV)(Ht,{status:e.status,onChange:t=>i(e.id,t)},void 0,!1,{fileName:M,lineNumber:160,columnNumber:17},this)},void 0,!1,{fileName:M,lineNumber:159,columnNumber:15},this),(0,j.jsxDEV)(`td`,{className:`list__meta`,title:e.updated,children:Dt(e.updated)},void 0,!1,{fileName:M,lineNumber:165,columnNumber:15},this),(0,j.jsxDEV)(`td`,{className:`list__meta`,children:kt(e.sizeBytes)},void 0,!1,{fileName:M,lineNumber:166,columnNumber:15},this)]},e.id,!0,{fileName:M,lineNumber:147,columnNumber:13},this))},void 0,!1,{fileName:M,lineNumber:145,columnNumber:9},this)]},void 0,!0,{fileName:M,lineNumber:136,columnNumber:7},this)},void 0,!1,{fileName:M,lineNumber:135,columnNumber:5},this)}var Kt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ConflictBanner.tsx`;function qt({onKeepMine:e,onTakeTheirs:t,onDismiss:n}){return(0,j.jsxDEV)(`div`,{className:`banner banner--conflict`,role:`alert`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:`This session changed on disk.`},void 0,!1,{fileName:Kt,lineNumber:15,columnNumber:9},this),` Your editor still holds the version you loaded.`]},void 0,!0,{fileName:Kt,lineNumber:14,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Take theirs`},void 0,!1,{fileName:Kt,lineNumber:18,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:e,children:`Keep mine`},void 0,!1,{fileName:Kt,lineNumber:19,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:n,children:`Later`},void 0,!1,{fileName:Kt,lineNumber:20,columnNumber:9},this)]},void 0,!0,{fileName:Kt,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:Kt,lineNumber:13,columnNumber:5},this)}function Jt(){let e=document.querySelector(`meta[name="invariant-ui-token"]`)?.content??``;return e.startsWith(`__`)?``:e}var Yt=Jt(),Xt=class extends Error{status;code;detail;constructor(e,t,n,r={code:t,message:n}){super(n),this.status=e,this.code=t,this.detail=r,this.name=`ApiError`}get isConflict(){return this.status===409&&this.code.endsWith(`CONFLICT`)}get isNotTriaged(){return this.code===`REVIEW_NOT_TRIAGED`}get openCount(){return this.detail.openCount??0}};async function Zt(e,t={}){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${Yt}`,...t.headers??{}}});if(!n.ok){let e=await n.json().catch(()=>void 0);throw new Xt(n.status,e?.error.code??`UNKNOWN`,e?.error.message??`Request failed with ${n.status}.`,e?.error)}if(n.status!==204)return await n.json()}var Qt={project:()=>Zt(`/api/project`),listSessions:()=>Zt(`/api/sessions`),getSession:e=>Zt(`/api/sessions/${e}`),saveSession:e=>Zt(`/api/sessions/${e.sessionId}`,{method:`PUT`,headers:e.force?{}:{"If-Match":e.etag},body:JSON.stringify({body:e.body,force:e.force===!0})}),setStatus:e=>Zt(`/api/sessions/${e.sessionId}/status`,{method:`PATCH`,body:JSON.stringify({status:e.status,summary:e.summary})}),createSession:e=>Zt(`/api/sessions`,{method:`POST`,body:JSON.stringify(e)}),archiveSession:e=>Zt(`/api/sessions/${e}`,{method:`DELETE`}),migrateHeader:e=>Zt(e?`/api/sessions/${e}/migrate-header`:`/api/sessions/migrate-header`,{method:`POST`}),shutdown:()=>Zt(`/api/shutdown`,{method:`POST`}),git:()=>Zt(`/api/git`),listReviews:()=>Zt(`/api/reviews`),getReview:e=>Zt(`/api/reviews/${e}`),requestReview:e=>Zt(e.sessionId?`/api/sessions/${e.sessionId}/review`:`/api/reviews`,{method:`POST`,body:JSON.stringify({base:e.base,sessionId:e.sessionId})}),updateComment:e=>Zt(`/api/reviews/${e.slug}/comments/${e.commentId}`,{method:`PATCH`,headers:{"If-Match":e.etag},body:JSON.stringify({status:e.status,severity:e.severity,category:e.category,title:e.title,body:e.body})}),bulkUpdateComments:e=>Zt(`/api/reviews/${e.slug}/comments/bulk`,{method:`POST`,headers:{"If-Match":e.etag},body:JSON.stringify({ids:e.ids,status:e.status})}),planReviewChanges:e=>Zt(`/api/reviews/${e}/plan-changes`,{method:`POST`}),publishReview:e=>Zt(`/api/reviews/${e}/publish`,{method:`POST`}),source:e=>{let t=new URLSearchParams({path:e.path});return e.line!==void 0&&t.set(`line`,String(e.line)),e.radius!==void 0&&t.set(`radius`,String(e.radius)),Zt(`/api/source?${t.toString()}`)},eventsUrl:()=>`/api/events?token=${encodeURIComponent(Yt)}`},$t={project:[`project`],sessions:[`sessions`],session:e=>[`session`,e],git:[`git`],reviews:[`reviews`],review:e=>[`review`,e]};function en(){return gt({queryKey:$t.project,queryFn:Qt.project,staleTime:6e4})}function tn(){return gt({queryKey:$t.sessions,queryFn:Qt.listSessions})}function nn(e){return gt({queryKey:$t.session(e??``),queryFn:()=>Qt.getSession(e),enabled:e!==void 0})}function rn(){let e=tt();return _t({mutationFn:Qt.setStatus,onSuccess:t=>{e.setQueryData($t.session(t.id),t),e.invalidateQueries({queryKey:$t.sessions})}})}function an(){let e=tt();return _t({mutationFn:Qt.saveSession,onSuccess:t=>{e.setQueryData($t.session(t.id),t),e.invalidateQueries({queryKey:$t.sessions})}})}function on(){let e=tt();return _t({mutationFn:Qt.createSession,onSuccess:()=>e.invalidateQueries({queryKey:$t.sessions})})}function sn(){let e=tt();return _t({mutationFn:Qt.archiveSession,onSuccess:()=>e.invalidateQueries({queryKey:$t.sessions})})}function cn(){let e=tt();return _t({mutationFn:e=>Qt.migrateHeader(e),onSuccess:()=>e.invalidateQueries({queryKey:$t.sessions})})}function ln(){return gt({queryKey:$t.git,queryFn:Qt.git,staleTime:15e3})}function un(){return gt({queryKey:$t.reviews,queryFn:Qt.listReviews})}function dn(e){return gt({queryKey:$t.review(e??``),queryFn:()=>Qt.getReview(e),enabled:e!==void 0})}function fn(e,t){e.setQueryData($t.review(t.slug),t),e.invalidateQueries({queryKey:$t.reviews}),t.sessionId&&e.invalidateQueries({queryKey:$t.session(t.sessionId)})}function pn(){let e=tt();return _t({mutationFn:Qt.updateComment,onSuccess:t=>fn(e,t)})}function mn(){let e=tt();return _t({mutationFn:e=>Qt.bulkUpdateComments(e),onSuccess:t=>fn(e,t)})}function hn(){let e=tt();return _t({mutationFn:Qt.requestReview,onSuccess:()=>{e.invalidateQueries({queryKey:$t.sessions}),e.invalidateQueries({queryKey:$t.reviews})}})}function gn(){let e=tt();return _t({mutationFn:e=>Qt.planReviewChanges(e),onSuccess:t=>{fn(e,t.review),e.setQueryData($t.session(t.session.id),t.session),e.invalidateQueries({queryKey:$t.sessions})}})}function _n(){let e=tt();return _t({mutationFn:e=>Qt.publishReview(e),onSuccess:()=>e.invalidateQueries({queryKey:$t.reviews})})}function vn(){let e=tt(),[t,n]=(0,A.useState)(`connecting`);return(0,A.useEffect)(()=>{let t=new EventSource(Qt.eventsUrl()),r=t=>{e.invalidateQueries({queryKey:$t.sessions});try{let n=JSON.parse(t.data);n.sessionId&&e.invalidateQueries({queryKey:$t.session(n.sessionId)})}catch{}},i=t=>{e.invalidateQueries({queryKey:$t.reviews}),e.invalidateQueries({queryKey:$t.sessions});try{let n=JSON.parse(t.data);n.slug&&e.invalidateQueries({queryKey:$t.review(n.slug)})}catch{}};t.onopen=()=>n(`live`),t.onerror=()=>n(`offline`);for(let e of[`session.created`,`session.updated`,`session.deleted`])t.addEventListener(e,r);for(let e of[`review.created`,`review.updated`,`review.deleted`])t.addEventListener(e,i);let a=()=>{e.invalidateQueries({queryKey:$t.sessions}),e.invalidateQueries({queryKey:$t.reviews})};return window.addEventListener(`focus`,a),()=>{t.close(),window.removeEventListener(`focus`,a)}},[e]),t}var yn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ReviewPanel.tsx`;function bn({session:e,onOpenSession:t,onToast:n}){let{data:r}=ln(),{data:i}=tn(),a=hn(),o=(i?.sessions??[]).filter(t=>t.parent===e.id);if(o.length>0)return(0,j.jsxDEV)(`div`,{className:`banner banner--review`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:`Reviewed.`},void 0,!1,{fileName:yn,lineNumber:30,columnNumber:11},this),` `,o.length===1?`One review session points at this work.`:`${o.length} review sessions point at this work.`]},void 0,!0,{fileName:yn,lineNumber:29,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:o.map(e=>(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>t(e.id),children:e.branch??`Open review`},e.id,!1,{fileName:yn,lineNumber:37,columnNumber:13},this))},void 0,!1,{fileName:yn,lineNumber:35,columnNumber:9},this)]},void 0,!0,{fileName:yn,lineNumber:28,columnNumber:7},this);let s=r!==void 0&&!r.canReview;return(0,j.jsxDEV)(`div`,{className:`banner banner--review`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:`No review yet.`},void 0,!1,{fileName:yn,lineNumber:56,columnNumber:9},this),` `,s?r?.reason:r?.branch?`A fresh agent can read the ${r.changedFileCount}-file diff on ${r.branch} without seeing this plan.`:`A fresh agent can read the diff without seeing this plan.`]},void 0,!0,{fileName:yn,lineNumber:55,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:s||a.isPending,title:s?r?.reason:void 0,onClick:()=>a.mutate({sessionId:e.id},{onSuccess:async e=>{await jt(e.executeLine),n(e.guidance,`success`),t(e.session.id)},onError:e=>n(e instanceof Error?e.message:`Could not create the review.`,`danger`)}),children:a.isPending?`Creating…`:`Request review`},void 0,!1,{fileName:yn,lineNumber:64,columnNumber:9},this)},void 0,!1,{fileName:yn,lineNumber:63,columnNumber:7},this)]},void 0,!0,{fileName:yn,lineNumber:54,columnNumber:5},this)}var xn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/SourcePeek.tsx`,Sn=12;function Cn({file:e,line:t,endLine:n}){let{data:r,isLoading:i,error:a}=gt({queryKey:[`source`,e,t??0],queryFn:()=>Qt.source({path:e,line:t,radius:Sn}),staleTime:3e4});if(i)return(0,j.jsxDEV)(`div`,{className:`peek peek--state`,children:`Loading…`},void 0,!1,{fileName:xn,lineNumber:26,columnNumber:25},this);if(a||!r)return(0,j.jsxDEV)(`div`,{className:`peek peek--state`,children:`This file is not readable from here — it may have moved since the review was written.`},void 0,!1,{fileName:xn,lineNumber:29,columnNumber:7},this);let o=t??r.startLine,s=n??o;return(0,j.jsxDEV)(`div`,{className:`peek`,children:[(0,j.jsxDEV)(`div`,{className:`peek__head`,children:[r.path,` · lines `,r.startLine,`–`,r.endLine,` of `,r.totalLines]},void 0,!0,{fileName:xn,lineNumber:40,columnNumber:7},this),(0,j.jsxDEV)(`pre`,{className:`peek__code`,children:r.lines.map((e,t)=>{let n=r.startLine+t;return(0,j.jsxDEV)(`div`,{className:`peek__line${n>=o&&n<=s?` is-highlighted`:``}`,children:[(0,j.jsxDEV)(`span`,{className:`peek__number`,children:n},void 0,!1,{fileName:xn,lineNumber:49,columnNumber:15},this),(0,j.jsxDEV)(`code`,{children:e.length>0?e:` `},void 0,!1,{fileName:xn,lineNumber:50,columnNumber:15},this)]},n,!0,{fileName:xn,lineNumber:48,columnNumber:13},this)})},void 0,!1,{fileName:xn,lineNumber:43,columnNumber:7},this)]},void 0,!0,{fileName:xn,lineNumber:39,columnNumber:5},this)}var wn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentEditor.tsx`;function Tn({title:e,body:t,busy:n,onCancel:r,onSave:i}){let[a,o]=(0,A.useState)(e),[s,c]=(0,A.useState)(t),l={title:a.trim(),body:s},u=l.title.length>0;return(0,j.jsxDEV)(`div`,{className:`comment-editor`,children:[(0,j.jsxDEV)(`label`,{className:`field`,children:[(0,j.jsxDEV)(`span`,{className:`field__label`,children:`Title`},void 0,!1,{fileName:wn,lineNumber:27,columnNumber:9},this),(0,j.jsxDEV)(`input`,{className:`field__input`,value:a,maxLength:120,autoFocus:!0,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r()}},void 0,!1,{fileName:wn,lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:wn,lineNumber:26,columnNumber:7},this),(0,j.jsxDEV)(`label`,{className:`field`,children:[(0,j.jsxDEV)(`span`,{className:`field__label`,children:`Detail`},void 0,!1,{fileName:wn,lineNumber:39,columnNumber:9},this),(0,j.jsxDEV)(`textarea`,{className:`field__input field__input--area`,value:s,rows:6,onChange:e=>c(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r()}},void 0,!1,{fileName:wn,lineNumber:40,columnNumber:9},this)]},void 0,!0,{fileName:wn,lineNumber:38,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`comment-editor__actions`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:r,children:`Cancel`},void 0,!1,{fileName:wn,lineNumber:50,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n||!u,onClick:()=>i(l,!1),children:`Save`},void 0,!1,{fileName:wn,lineNumber:51,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:n||!u,onClick:()=>i(l,!0),children:`Save & stage`},void 0,!1,{fileName:wn,lineNumber:59,columnNumber:9},this)]},void 0,!0,{fileName:wn,lineNumber:49,columnNumber:7},this)]},void 0,!0,{fileName:wn,lineNumber:25,columnNumber:5},this)}function En(e){let t=e.split(`/`).pop()??e;return t.endsWith(`.md`)?t.slice(0,-3):t}function Dn(e,t,n){return e.filter(e=>(t===`all`||e.status===t)&&(n===`all`||e.severity===n))}function On(e,t){let n=e.findIndex(e=>e.id===t);return(n===-1?e:[...e.slice(n+1),...e.slice(0,n)]).find(e=>e.id!==t&&e.status===`open`)}function kn(e){if(e.total===0)return{kind:`empty`,label:`This review has no comments.`};if(e.open>0)return{kind:`blocked`,openCount:e.open,label:`${e.open} still need${e.open===1?`s`:``} a decision`};let t=`Ready · ${e.staged} staged · ${e.discarded} discarded`;return e.staged===0?{kind:`ready`,action:`close`,label:t}:{kind:`ready`,action:`plan`,label:t}}function An(e,t,n,r){if(!(e===`none`||!t))return`${e}://file/${t}/${n}:${r??1}`}var jn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentCard.tsx`,Mn={open:`○`,staged:`✓`,discarded:`✗`};function Nn(e){let{comment:t}=e,[n,r]=(0,A.useState)(!1),[i,a]=(0,A.useState)(!1),o=t.status!==`open`;return(0,j.jsxDEV)(`article`,{className:`comment comment--${t.status} comment--${t.severity}${e.focused?` is-focused`:``}`,"aria-label":`${t.severity} — ${t.title}`,onClick:e.onFocus,children:[(0,j.jsxDEV)(`header`,{className:`comment__head`,onClick:e.onToggle,role:`button`,tabIndex:-1,children:[(0,j.jsxDEV)(`span`,{className:`comment__glyph`,"aria-hidden":`true`,children:Mn[t.status]},void 0,!1,{fileName:jn,lineNumber:54,columnNumber:9},this),(0,j.jsxDEV)(`span`,{className:`comment__severity comment__severity--${t.severity}`,children:Bt[t.severity]},void 0,!1,{fileName:jn,lineNumber:55,columnNumber:9},this),(0,j.jsxDEV)(`span`,{className:`comment__category`,children:t.category},void 0,!1,{fileName:jn,lineNumber:58,columnNumber:9},this),t.location&&(0,j.jsxDEV)(`span`,{className:`comment__location`,children:t.location},void 0,!1,{fileName:jn,lineNumber:59,columnNumber:30},this),(0,j.jsxDEV)(`h3`,{className:`comment__title`,children:t.title},void 0,!1,{fileName:jn,lineNumber:60,columnNumber:9},this),t.edited&&(0,j.jsxDEV)(`span`,{className:`chip`,title:`Edited ${t.edited}`,children:`edited`},void 0,!1,{fileName:jn,lineNumber:61,columnNumber:28},this)]},void 0,!0,{fileName:jn,lineNumber:53,columnNumber:7},this),e.expanded&&(0,j.jsxDEV)(`div`,{className:`comment__body`,children:n?(0,j.jsxDEV)(Tn,{title:t.title,body:t.body,busy:e.busy,onCancel:()=>r(!1),onSave:(t,n)=>{r(!1),e.onEdit(t,n)}},void 0,!1,{fileName:jn,lineNumber:67,columnNumber:13},this):(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`p`,{className:`comment__prose`,children:t.body},void 0,!1,{fileName:jn,lineNumber:79,columnNumber:15},this),t.suggestion&&(0,j.jsxDEV)(`pre`,{className:`comment__suggestion`,children:(0,j.jsxDEV)(`code`,{children:t.suggestion},void 0,!1,{fileName:jn,lineNumber:83,columnNumber:19},this)},void 0,!1,{fileName:jn,lineNumber:82,columnNumber:17},this),t.file&&(0,j.jsxDEV)(`div`,{className:`comment__location-row`,children:[(0,j.jsxDEV)(`span`,{className:`comment__path`,children:t.location},void 0,!1,{fileName:jn,lineNumber:89,columnNumber:19},this),An(e.editorScheme,e.projectDirectory,t.file,t.line)&&(0,j.jsxDEV)(`a`,{className:`link-button`,href:An(e.editorScheme,e.projectDirectory,t.file,t.line),children:`Open in editor`},void 0,!1,{fileName:jn,lineNumber:91,columnNumber:21},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{let n=await jt(t.location);e.onToast(n?`Location copied`:`Could not copy`,`success`)},children:`Copy`},void 0,!1,{fileName:jn,lineNumber:103,columnNumber:19},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a(e=>!e),children:i?`Hide code`:`Peek`},void 0,!1,{fileName:jn,lineNumber:113,columnNumber:19},this)]},void 0,!0,{fileName:jn,lineNumber:88,columnNumber:17},this),i&&t.file&&(0,j.jsxDEV)(Cn,{file:t.file,line:t.line,endLine:t.endLine},void 0,!1,{fileName:jn,lineNumber:124,columnNumber:17},this)]},void 0,!0,{fileName:jn,lineNumber:78,columnNumber:13},this)},void 0,!1,{fileName:jn,lineNumber:65,columnNumber:9},this),e.expanded&&!n&&(0,j.jsxDEV)(`footer`,{className:`comment__actions`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost${t.status===`discarded`?` is-active`:``}`,disabled:e.busy,onClick:()=>e.onDecide(`discarded`),children:`Discard`},void 0,!1,{fileName:jn,lineNumber:133,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:e.busy,onClick:()=>r(!0),children:`Edit`},void 0,!1,{fileName:jn,lineNumber:141,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid${t.status===`staged`?` is-active`:``}`,disabled:e.busy,onClick:()=>e.onDecide(`staged`),children:`Stage`},void 0,!1,{fileName:jn,lineNumber:149,columnNumber:11},this),o&&(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,disabled:e.busy,onClick:()=>e.onDecide(`open`),children:`Undo`},void 0,!1,{fileName:jn,lineNumber:158,columnNumber:13},this)]},void 0,!0,{fileName:jn,lineNumber:132,columnNumber:9},this)]},void 0,!0,{fileName:jn,lineNumber:46,columnNumber:5},this)}var Pn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Toasts.tsx`,Fn=(0,A.createContext)(()=>void 0);function In(){return(0,A.useContext)(Fn)}var Ln=3400;function Rn({children:e}){let[t,n]=(0,A.useState)([]),r=(0,A.useCallback)((e,t=`info`)=>{let r=Date.now()+Math.random();n(n=>[...n,{id:r,message:e,tone:t}]),setTimeout(()=>n(e=>e.filter(e=>e.id!==r)),Ln)},[]),i=(0,A.useMemo)(()=>r,[r]);return(0,j.jsxDEV)(Fn.Provider,{value:i,children:[e,(0,j.jsxDEV)(`div`,{className:`toasts`,role:`status`,"aria-live":`polite`,children:t.map(e=>(0,j.jsxDEV)(`div`,{className:`toast toast--${e.tone}`,children:e.message},e.id,!1,{fileName:Pn,lineNumber:35,columnNumber:11},this))},void 0,!1,{fileName:Pn,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:Pn,lineNumber:31,columnNumber:5},this)}var zn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPane.tsx`,Bn=[`all`,`open`,`staged`,`discarded`];function Vn({review:e,projectDirectory:t,editorScheme:n=`vscode`,onPlanned:r}){let i=In(),a=pn(),o=mn(),s=gn(),c=_n(),[l,u]=(0,A.useState)(`all`),[d,f]=(0,A.useState)(`all`),[p,m]=(0,A.useState)(),[h,g]=(0,A.useState)(),_=(0,A.useMemo)(()=>e.runs.flatMap(e=>e.comments),[e]),v=(0,A.useMemo)(()=>Dn(_,l,d),[_,l,d]);(0,A.useEffect)(()=>{if(v.length===0){m(void 0);return}(!p||!v.some(e=>e.id===p))&&m(v[0].id)},[v,p]);let y=a.isPending||o.isPending,b=(t,n)=>{a.mutate({slug:e.slug,commentId:t.id,etag:e.etag,status:n},{onError:e=>Un(e,i),onSuccess:()=>{if(n===`open`)return;let e=On(v,t.id);e&&(m(e.id),g(e.id))}})},x=(t,n,r)=>{a.mutate({slug:e.slug,commentId:t.id,etag:e.etag,title:n.title,body:n.body,status:r?`staged`:void 0},{onError:e=>Un(e,i)})},ee=()=>{let t=v.filter(e=>e.status!==`staged`).map(e=>e.id);t.length!==0&&o.mutate({slug:e.slug,ids:t,status:`staged`,etag:e.etag},{onSuccess:()=>i(`Staged ${t.length} comment(s)`,`success`),onError:e=>Un(e,i)})};Wn({enabled:!y,comments:v,focusedId:p,onFocus:m,onToggle:e=>g(t=>t===e?void 0:e),onDecide:(e,t)=>{let n=v.find(t=>t.id===e);n&&b(n,t)},onExpand:g,onStageAll:ee});let te=e.counts,S=kn(te),ne=S.kind===`ready`,re=S.kind===`ready`&&S.action===`close`;return(0,j.jsxDEV)(`div`,{className:`review`,children:[(0,j.jsxDEV)(`header`,{className:`review__toolbar`,children:[(0,j.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Filter by decision`,children:Bn.map(e=>(0,j.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":l===e,className:`segmented__item${l===e?` is-active`:``}`,onClick:()=>u(e),children:e===`all`?`All ${te.total}`:`${Hn(e)} ${te[e]}`},e,!1,{fileName:zn,lineNumber:131,columnNumber:13},this))},void 0,!1,{fileName:zn,lineNumber:129,columnNumber:9},this),(0,j.jsxDEV)(`select`,{className:`select`,value:d,"aria-label":`Filter by severity`,onChange:e=>f(e.target.value),children:[(0,j.jsxDEV)(`option`,{value:`all`,children:`Any severity`},void 0,!1,{fileName:zn,lineNumber:150,columnNumber:11},this),zt.map(e=>(0,j.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:zn,lineNumber:152,columnNumber:13},this))]},void 0,!0,{fileName:zn,lineNumber:144,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:y||v.every(e=>e.status===`staged`),onClick:ee,title:`Stage every comment matching the current filter (⇧S)`,children:`Stage all shown`},void 0,!1,{fileName:zn,lineNumber:156,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{i(await jt(e.path)?`Path copied`:`Could not copy`,`success`)},children:e.path},void 0,!1,{fileName:zn,lineNumber:166,columnNumber:9},this)]},void 0,!0,{fileName:zn,lineNumber:128,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`review__summary`,children:e.runs.map(e=>(0,j.jsxDEV)(`p`,{className:`review__run-summary`,children:[(0,j.jsxDEV)(`span`,{className:`chip`,children:e.headSha.slice(0,7)},void 0,!1,{fileName:zn,lineNumber:180,columnNumber:13},this),` `,e.summary]},e.id,!0,{fileName:zn,lineNumber:179,columnNumber:11},this))},void 0,!1,{fileName:zn,lineNumber:177,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`review__list`,children:v.length===0?(0,j.jsxDEV)(`p`,{className:`column__empty`,children:`Nothing matches this filter.`},void 0,!1,{fileName:zn,lineNumber:187,columnNumber:11},this):v.map(e=>(0,j.jsxDEV)(Nn,{comment:e,projectDirectory:t,editorScheme:n,focused:e.id===p,expanded:e.id===h,busy:y,onFocus:()=>m(e.id),onToggle:()=>g(t=>t===e.id?void 0:e.id),onDecide:t=>b(e,t),onEdit:(t,n)=>x(e,t,n),onToast:i},e.id,!1,{fileName:zn,lineNumber:190,columnNumber:13},this))},void 0,!1,{fileName:zn,lineNumber:185,columnNumber:7},this),(0,j.jsxDEV)(`footer`,{className:`review__foot`,children:[(0,j.jsxDEV)(`span`,{className:`review__gate${ne?` is-ready`:``}`,children:S.label},void 0,!1,{fileName:zn,lineNumber:209,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:!0,title:e.canPublish?`Coming soon — the review file already carries everything GitLab needs.`:`This review is missing the commit shas a discussion needs to anchor to.`,children:`Publish to GitLab ⋯`},void 0,!1,{fileName:zn,lineNumber:211,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:!ne||s.isPending,title:ne?void 0:`Stage or discard every comment first.`,onClick:()=>s.mutate(e.slug,{onSuccess:e=>{i(e.guidance,`success`),jt(e.executeLine),r?.(e.session.id)},onError:e=>Un(e,i)}),children:re?`Close review`:`Plan changes →`},void 0,!1,{fileName:zn,lineNumber:224,columnNumber:9},this)]},void 0,!0,{fileName:zn,lineNumber:208,columnNumber:7},this),c.isError&&(0,j.jsxDEV)(`p`,{className:`review__note`,children:c.error.message},void 0,!1,{fileName:zn,lineNumber:244,columnNumber:27},this)]},void 0,!0,{fileName:zn,lineNumber:127,columnNumber:5},this)}function Hn(e){return e[0].toUpperCase()+e.slice(1)}function Un(e,t){if(e instanceof Xt&&e.isNotTriaged){t(`${e.openCount} comment(s) still need a decision.`,`danger`);return}if(e instanceof Xt&&e.isConflict){t(`This review changed on disk — reload before deciding again.`,`danger`);return}t(e instanceof Error?e.message:`That did not work.`,`danger`)}function Wn(e){(0,A.useEffect)(()=>{let t=t=>{if(!e.enabled)return;let n=t.target;if(n&&(n.tagName===`INPUT`||n.tagName===`TEXTAREA`||n.isContentEditable))return;let r=e.comments.findIndex(t=>t.id===e.focusedId),i=t=>{if(e.comments.length===0)return;let n=Math.min(Math.max(r+t,0),e.comments.length-1);e.onFocus(e.comments[n].id)};if(t.shiftKey&&t.key.toLowerCase()===`s`){t.preventDefault(),e.onStageAll();return}if(!(t.metaKey||t.ctrlKey||t.altKey))switch(t.key){case`j`:i(1);return;case`k`:i(-1);return;case`Enter`:e.focusedId&&(t.preventDefault(),e.onToggle(e.focusedId));return;case`s`:e.focusedId&&(t.preventDefault(),e.onDecide(e.focusedId,`staged`));return;case`d`:e.focusedId&&(t.preventDefault(),e.onDecide(e.focusedId,`discarded`));return;case`e`:e.focusedId&&(t.preventDefault(),e.onExpand(e.focusedId));return}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var Gn=`modulepreload`,Kn=function(e){return`/`+e},qn={},Jn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Kn(t,n),t=s(t),t in qn)return;qn[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Gn,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},N=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionPage.tsx`,Yn=(0,A.lazy)(()=>Jn(()=>import(`./Editor-BacggN6k.js`).then(e=>({default:e.Editor})),[])),Xn=(0,A.lazy)(()=>Jn(()=>import(`./Preview-BNQ0QaKY.js`).then(e=>({default:e.Preview})),[])),Zn=1200;function Qn({sessionId:e,mode:t,onModeChange:n,onBack:r,onArchived:i,onOpenSession:a}){let o=In(),{data:s,isLoading:c,error:l}=nn(e),{data:u}=en(),d=an(),f=rn(),p=sn(),m=cn(),{data:h}=dn((0,A.useMemo)(()=>s?.reviewFile?En(s.reviewFile):void 0,[s?.reviewFile])),[g,_]=(0,A.useState)(`review`),[v,y]=(0,A.useState)(),[b,x]=(0,A.useState)(!1),ee=(0,A.useRef)(``),te=(0,A.useRef)(null),S=v!==void 0&&s!==void 0&&v!==s.body;(0,A.useEffect)(()=>{if(s&&ee.current!==s.etag){if(v===void 0||v===s.body||ee.current===``){ee.current=s.etag,y(s.body),x(!1);return}x(!0)}},[s,v]);let ne=(0,A.useCallback)((t,n=!1)=>{s&&d.mutate({sessionId:e,body:t,etag:ee.current,force:n},{onSuccess:e=>{ee.current=e.etag,y(e.body),x(!1)},onError:e=>{if(e instanceof Xt&&e.isConflict){x(!0);return}o(e instanceof Error?e.message:`Could not save.`,`danger`)}})},[d,s,e,o]),re=(0,A.useCallback)(()=>{v!==void 0&&S&&ne(v)},[v,S,ne]);(0,A.useEffect)(()=>{if(!(!S||v===void 0||b))return te.current&&clearTimeout(te.current),te.current=setTimeout(()=>ne(v),Zn),()=>{te.current&&clearTimeout(te.current)}},[v,S,b,ne]);let ie=(0,A.useMemo)(()=>s?`execute instructions from ${s.path}`:``,[s]);if((0,A.useEffect)(()=>{!s||s.kind!==`review`||_(s.status===`review`?`review`:`plan`)},[s?.id,s?.status,s?.kind]),c)return(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading session…`},void 0,!1,{fileName:N,lineNumber:134,columnNumber:25},this);if(l||!s)return(0,j.jsxDEV)(`div`,{className:`page-state`,children:[(0,j.jsxDEV)(`p`,{children:`This session could not be loaded.`},void 0,!1,{fileName:N,lineNumber:138,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:r,children:`Back to sessions`},void 0,!1,{fileName:N,lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:137,columnNumber:7},this);let C=v??s.body,w=s.kind===`review`,T=!w||g===`plan`;return(0,j.jsxDEV)(`div`,{className:`session`,children:[(0,j.jsxDEV)(`header`,{className:`session__head`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:r,title:`Back (Esc)`,"aria-label":`Back`,children:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,j.jsxDEV)(`path`,{d:`M9.5 3.5 5 8l4.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:N,lineNumber:153,columnNumber:13},this)},void 0,!1,{fileName:N,lineNumber:152,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:151,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`session__identity`,children:[(0,j.jsxDEV)(`h1`,{className:`session__title`,children:s.title},void 0,!1,{fileName:N,lineNumber:159,columnNumber:11},this),(0,j.jsxDEV)(`div`,{className:`session__meta`,children:[(0,j.jsxDEV)(`span`,{title:Ot(s.created),children:[`created `,Dt(s.created)]},void 0,!0,{fileName:N,lineNumber:161,columnNumber:13},this),(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:N,lineNumber:162,columnNumber:13},this),(0,j.jsxDEV)(`span`,{title:Ot(s.updated),children:[`updated `,Dt(s.updated)]},void 0,!0,{fileName:N,lineNumber:163,columnNumber:13},this),S&&(0,j.jsxDEV)(`span`,{className:`session__dirty`,children:`unsaved`},void 0,!1,{fileName:N,lineNumber:164,columnNumber:23},this),d.isPending&&(0,j.jsxDEV)(`span`,{className:`session__saving`,children:`saving…`},void 0,!1,{fileName:N,lineNumber:165,columnNumber:32},this)]},void 0,!0,{fileName:N,lineNumber:160,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:158,columnNumber:9},this),(0,j.jsxDEV)(Ht,{status:s.status,onChange:t=>f.mutate({sessionId:e,status:t},{onError:()=>o(`Could not change the status.`,`danger`)})},void 0,!1,{fileName:N,lineNumber:169,columnNumber:9},this),w&&(0,j.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Session view`,children:[`review`,`plan`].map(e=>(0,j.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":g===e,className:`segmented__item${g===e?` is-active`:``}`,onClick:()=>_(e),children:[e===`review`?`Review`:`Plan`,e===`review`&&h&&h.counts.open>0&&(0,j.jsxDEV)(`span`,{className:`segmented__badge`,children:h.counts.open},void 0,!1,{fileName:N,lineNumber:192,columnNumber:19},this)]},e,!0,{fileName:N,lineNumber:182,columnNumber:15},this))},void 0,!1,{fileName:N,lineNumber:180,columnNumber:11},this),T&&(0,j.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`View mode`,children:[`preview`,`edit`,`split`].map(e=>(0,j.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":t===e,className:`segmented__item${t===e?` is-active`:``}`,onClick:()=>n(e),title:e===`preview`?`Preview (⇧⌘V)`:e===`edit`?`Edit (⇧⌘V)`:`Split`,children:e[0].toUpperCase()+e.slice(1)},e,!1,{fileName:N,lineNumber:202,columnNumber:15},this))},void 0,!1,{fileName:N,lineNumber:200,columnNumber:11},this),(0,j.jsxDEV)(`div`,{className:`session__actions`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:async()=>{o(await jt(ie)?`Execute line copied`:`Could not copy`,`success`)},children:`Copy execute line`},void 0,!1,{fileName:N,lineNumber:218,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{window.confirm(`Archive this session? The file moves to .invariant/sessions/.archive/`)&&p.mutate(e,{onSuccess:()=>{o(`Session archived`,`success`),i()},onError:()=>o(`Could not archive the session.`,`danger`)})},children:`Archive`},void 0,!1,{fileName:N,lineNumber:227,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:217,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:150,columnNumber:7},this),b&&(0,j.jsxDEV)(qt,{onKeepMine:()=>{v!==void 0&&ne(v,!0)},onTakeTheirs:()=>{ee.current=s.etag,y(s.body),x(!1)},onDismiss:()=>x(!1)},void 0,!1,{fileName:N,lineNumber:244,columnNumber:9},this),s.needsMigration&&(0,j.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:`This session has no canonical header.`},void 0,!1,{fileName:N,lineNumber:254,columnNumber:13},this),` `,s.issues[0]]},void 0,!0,{fileName:N,lineNumber:253,columnNumber:11},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>m.mutate(e,{onSuccess:()=>o(`Header migrated`,`success`),onError:()=>o(`Could not migrate the header.`,`danger`)}),children:`Fix header`},void 0,!1,{fileName:N,lineNumber:257,columnNumber:13},this)},void 0,!1,{fileName:N,lineNumber:256,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:252,columnNumber:9},this),!w&&s.status===`executed`&&(0,j.jsxDEV)(bn,{session:s,onOpenSession:a,onToast:o},void 0,!1,{fileName:N,lineNumber:274,columnNumber:9},this),w&&g===`review`?h?(0,j.jsxDEV)(Vn,{review:h,projectDirectory:u?.directory,onPlanned:()=>_(`plan`)},void 0,!1,{fileName:N,lineNumber:283,columnNumber:11},this):(0,j.jsxDEV)(`div`,{className:`page-state`,children:`The review document has not been written yet. Paste the execute line into a new agent conversation, and the comments will appear here as soon as it saves them.`},void 0,!1,{fileName:N,lineNumber:289,columnNumber:11},this):(0,j.jsxDEV)(`div`,{className:`session__body session__body--${t}`,children:(0,j.jsxDEV)(A.Suspense,{fallback:(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:N,lineNumber:296,columnNumber:31},this),children:[t!==`preview`&&(0,j.jsxDEV)(Yn,{value:C,onChange:y,onSave:re},void 0,!1,{fileName:N,lineNumber:297,columnNumber:36},this),t!==`edit`&&(0,j.jsxDEV)(Xn,{body:C,withToc:t===`preview`},void 0,!1,{fileName:N,lineNumber:298,columnNumber:33},this)]},void 0,!0,{fileName:N,lineNumber:296,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:295,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:149,columnNumber:5},this)}var $n=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Modal.tsx`;function er({title:e,onClose:t,children:n,footer:r,width:i=560}){let a=(0,A.useRef)(null);return(0,A.useEffect)(()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),t())};return document.addEventListener(`keydown`,e),a.current?.querySelector(`input, textarea, button`)?.focus(),()=>document.removeEventListener(`keydown`,e)},[t]),(0,j.jsxDEV)(`div`,{className:`overlay`,onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,j.jsxDEV)(`div`,{className:`modal`,style:{maxWidth:i},role:`dialog`,"aria-modal":`true`,"aria-label":e,ref:a,children:[(0,j.jsxDEV)(`header`,{className:`modal__header`,children:[(0,j.jsxDEV)(`h2`,{className:`modal__title`,children:e},void 0,!1,{fileName:$n,lineNumber:28,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:t,"aria-label":`Close`,children:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 14 14`,"aria-hidden":`true`,children:(0,j.jsxDEV)(`path`,{d:`M3.5 3.5l7 7M10.5 3.5l-7 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`},void 0,!1,{fileName:$n,lineNumber:31,columnNumber:15},this)},void 0,!1,{fileName:$n,lineNumber:30,columnNumber:13},this)},void 0,!1,{fileName:$n,lineNumber:29,columnNumber:11},this)]},void 0,!0,{fileName:$n,lineNumber:27,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`modal__body`,children:n},void 0,!1,{fileName:$n,lineNumber:35,columnNumber:9},this),r&&(0,j.jsxDEV)(`footer`,{className:`modal__footer`,children:r},void 0,!1,{fileName:$n,lineNumber:36,columnNumber:20},this)]},void 0,!0,{fileName:$n,lineNumber:26,columnNumber:7},this)},void 0,!1,{fileName:$n,lineNumber:25,columnNumber:5},this)}var tr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/NewSessionModal.tsx`;function nr({busy:e,onClose:t,onSubmit:n}){let[r,i]=(0,A.useState)(``),[a,o]=(0,A.useState)(``),[s,c]=(0,A.useState)(!1),l=()=>{let t=r.trim();t.length===0||e||n({prompt:t,context:a.trim()||void 0,full:s||void 0})};return(0,j.jsxDEV)(er,{title:`New session`,onClose:t,width:620,footer:(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs `,(0,j.jsxDEV)(`code`,{children:`invariant plan`},void 0,!1,{fileName:tr,lineNumber:32,columnNumber:46},this),` in this project`]},void 0,!0,{fileName:tr,lineNumber:32,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:tr,lineNumber:33,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:l,disabled:e||r.trim().length===0,children:e?`Creating…`:`Create session ⌘↵`},void 0,!1,{fileName:tr,lineNumber:34,columnNumber:11},this)]},void 0,!0,{fileName:tr,lineNumber:31,columnNumber:9},this),children:[(0,j.jsxDEV)(`label`,{className:`field`,children:[(0,j.jsxDEV)(`span`,{className:`field__label`,children:`Task`},void 0,!1,{fileName:tr,lineNumber:41,columnNumber:9},this),(0,j.jsxDEV)(`textarea`,{className:`field__input field__input--area`,rows:6,value:r,placeholder:`Describe what should be planned and built…`,onChange:e=>i(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),l())}},void 0,!1,{fileName:tr,lineNumber:42,columnNumber:9},this)]},void 0,!0,{fileName:tr,lineNumber:40,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`field-row`,children:[(0,j.jsxDEV)(`label`,{className:`field`,children:[(0,j.jsxDEV)(`span`,{className:`field__label`,children:[`Context `,(0,j.jsxDEV)(`span`,{className:`field__optional`,children:`optional`},void 0,!1,{fileName:tr,lineNumber:56,columnNumber:50},this)]},void 0,!0,{fileName:tr,lineNumber:56,columnNumber:11},this),(0,j.jsxDEV)(`input`,{className:`field__input`,value:a,placeholder:`package/context-name`,onChange:e=>o(e.target.value)},void 0,!1,{fileName:tr,lineNumber:57,columnNumber:11},this)]},void 0,!0,{fileName:tr,lineNumber:55,columnNumber:9},this),(0,j.jsxDEV)(`label`,{className:`checkbox`,children:[(0,j.jsxDEV)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked)},void 0,!1,{fileName:tr,lineNumber:66,columnNumber:11},this),(0,j.jsxDEV)(`span`,{children:[`Inline full instructions (`,(0,j.jsxDEV)(`code`,{children:`--full`},void 0,!1,{fileName:tr,lineNumber:67,columnNumber:43},this),`)`]},void 0,!0,{fileName:tr,lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:tr,lineNumber:65,columnNumber:9},this)]},void 0,!0,{fileName:tr,lineNumber:54,columnNumber:7},this)]},void 0,!0,{fileName:tr,lineNumber:26,columnNumber:5},this)}var P=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewsPage.tsx`;function rr({onOpen:e,onOpenSession:t}){let{data:n,isLoading:r}=un(),{data:i}=en();if(r)return(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading reviews…`},void 0,!1,{fileName:P,lineNumber:20,columnNumber:25},this);let a=n?.reviews??[];return a.length===0?(0,j.jsxDEV)(`div`,{className:`empty`,children:[(0,j.jsxDEV)(`h2`,{className:`empty__title`,children:`No reviews yet`},void 0,!1,{fileName:P,lineNumber:27,columnNumber:9},this),(0,j.jsxDEV)(`p`,{className:`empty__text`,children:[`A review is a markdown file in `,(0,j.jsxDEV)(`code`,{children:n?.directory??`doc/review`},void 0,!1,{fileName:P,lineNumber:29,columnNumber:42},this),` holding one pass over a branch. Finish a session, then use `,(0,j.jsxDEV)(`strong`,{children:`Request review`},void 0,!1,{fileName:P,lineNumber:30,columnNumber:53},this),` to have a fresh agent read the diff without seeing the plan.`]},void 0,!0,{fileName:P,lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:26,columnNumber:7},this):(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`header`,{className:`topbar`,children:[(0,j.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,j.jsxDEV)(`h1`,{className:`topbar__title`,children:`Reviews`},void 0,!1,{fileName:P,lineNumber:41,columnNumber:11},this),(0,j.jsxDEV)(`span`,{className:`topbar__path`,children:i?.name??n?.directory},void 0,!1,{fileName:P,lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:40,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`topbar__counts`,children:[(0,j.jsxDEV)(`span`,{className:`count count--review`,children:[(0,j.jsxDEV)(`span`,{className:`count__value`,children:n?.awaitingTriage??0},void 0,!1,{fileName:P,lineNumber:46,columnNumber:13},this),(0,j.jsxDEV)(`span`,{className:`count__label`,children:`Awaiting triage`},void 0,!1,{fileName:P,lineNumber:47,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:45,columnNumber:11},this),(0,j.jsxDEV)(`span`,{className:`count count--planned`,children:[(0,j.jsxDEV)(`span`,{className:`count__value`,children:n?.counts.staged??0},void 0,!1,{fileName:P,lineNumber:50,columnNumber:13},this),(0,j.jsxDEV)(`span`,{className:`count__label`,children:`Staged`},void 0,!1,{fileName:P,lineNumber:51,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:49,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:39,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`list`,children:(0,j.jsxDEV)(`table`,{className:`list__table`,children:[(0,j.jsxDEV)(`thead`,{children:(0,j.jsxDEV)(`tr`,{children:[(0,j.jsxDEV)(`th`,{scope:`col`,children:`Branch`},void 0,!1,{fileName:P,lineNumber:60,columnNumber:15},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Triage`},void 0,!1,{fileName:P,lineNumber:61,columnNumber:15},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Runs`},void 0,!1,{fileName:P,lineNumber:62,columnNumber:15},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:P,lineNumber:63,columnNumber:15},this)]},void 0,!0,{fileName:P,lineNumber:59,columnNumber:13},this)},void 0,!1,{fileName:P,lineNumber:58,columnNumber:11},this),(0,j.jsxDEV)(`tbody`,{children:a.map(n=>(0,j.jsxDEV)(`tr`,{onClick:()=>e(n.slug),children:[(0,j.jsxDEV)(`td`,{children:[(0,j.jsxDEV)(`div`,{className:`list__title`,children:n.branch},void 0,!1,{fileName:P,lineNumber:70,columnNumber:19},this),(0,j.jsxDEV)(`div`,{className:`list__excerpt`,children:n.path},void 0,!1,{fileName:P,lineNumber:71,columnNumber:19},this)]},void 0,!0,{fileName:P,lineNumber:69,columnNumber:17},this),(0,j.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,j.jsxDEV)(ir,{review:n},void 0,!1,{fileName:P,lineNumber:74,columnNumber:19},this)},void 0,!1,{fileName:P,lineNumber:73,columnNumber:17},this),(0,j.jsxDEV)(`td`,{className:`list__meta`,children:[n.runCount,n.sessionId&&(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>t(n.sessionId),children:`session`},void 0,!1,{fileName:P,lineNumber:79,columnNumber:21},this)]},void 0,!0,{fileName:P,lineNumber:76,columnNumber:17},this),(0,j.jsxDEV)(`td`,{className:`list__meta`,title:n.updated,children:Dt(n.updated)},void 0,!1,{fileName:P,lineNumber:88,columnNumber:17},this)]},n.slug,!0,{fileName:P,lineNumber:68,columnNumber:15},this))},void 0,!1,{fileName:P,lineNumber:66,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:57,columnNumber:9},this)},void 0,!1,{fileName:P,lineNumber:56,columnNumber:7},this)]},void 0,!0,{fileName:P,lineNumber:38,columnNumber:5},this)}function ir({review:e}){return e.counts.open>0?(0,j.jsxDEV)(`span`,{className:`pill pill--review`,children:[e.counts.open,` awaiting`]},void 0,!0,{fileName:P,lineNumber:101,columnNumber:7},this):(0,j.jsxDEV)(`span`,{className:`pill pill--executed`,children:[e.counts.staged,` staged · `,e.counts.discarded,` discarded`]},void 0,!0,{fileName:P,lineNumber:107,columnNumber:5},this)}var ar=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPage.tsx`;function or({slug:e,onBack:t,onOpenSession:n}){let{data:r,isLoading:i,error:a}=dn(e),{data:o}=en();return i?(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading review…`},void 0,!1,{fileName:ar,lineNumber:21,columnNumber:25},this):a||!r?(0,j.jsxDEV)(`div`,{className:`page-state`,children:[(0,j.jsxDEV)(`p`,{children:`This review could not be loaded.`},void 0,!1,{fileName:ar,lineNumber:25,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Back to reviews`},void 0,!1,{fileName:ar,lineNumber:26,columnNumber:9},this)]},void 0,!0,{fileName:ar,lineNumber:24,columnNumber:7},this):(0,j.jsxDEV)(`div`,{className:`session`,children:[(0,j.jsxDEV)(`header`,{className:`session__head`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:t,title:`Back (Esc)`,"aria-label":`Back`,children:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,j.jsxDEV)(`path`,{d:`M9.5 3.5 5 8l4.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:ar,lineNumber:36,columnNumber:13},this)},void 0,!1,{fileName:ar,lineNumber:35,columnNumber:11},this)},void 0,!1,{fileName:ar,lineNumber:34,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`session__identity`,children:[(0,j.jsxDEV)(`h1`,{className:`session__title`,children:r.branch},void 0,!1,{fileName:ar,lineNumber:42,columnNumber:11},this),(0,j.jsxDEV)(sr,{review:r,project:o},void 0,!1,{fileName:ar,lineNumber:43,columnNumber:11},this)]},void 0,!0,{fileName:ar,lineNumber:41,columnNumber:9},this),r.sessionId&&(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>n(r.sessionId),children:`Open session`},void 0,!1,{fileName:ar,lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:ar,lineNumber:33,columnNumber:7},this),(0,j.jsxDEV)(Vn,{review:r,projectDirectory:o?.directory,onPlanned:n},void 0,!1,{fileName:ar,lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:ar,lineNumber:32,columnNumber:5},this)}function sr({review:e,project:t}){return(0,j.jsxDEV)(`div`,{className:`session__meta`,children:[(0,j.jsxDEV)(`span`,{children:[`base `,e.base]},void 0,!0,{fileName:ar,lineNumber:71,columnNumber:7},this),(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:ar,lineNumber:72,columnNumber:7},this),(0,j.jsxDEV)(`span`,{title:e.scope.baseSha,children:e.scope.baseSha.slice(0,7)},void 0,!1,{fileName:ar,lineNumber:73,columnNumber:7},this),(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`→`},void 0,!1,{fileName:ar,lineNumber:74,columnNumber:7},this),(0,j.jsxDEV)(`span`,{title:e.scope.headSha,children:e.scope.headSha.slice(0,7)},void 0,!1,{fileName:ar,lineNumber:75,columnNumber:7},this),e.runCount>1&&(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:ar,lineNumber:78,columnNumber:11},this),(0,j.jsxDEV)(`span`,{children:[e.runCount,` runs`]},void 0,!0,{fileName:ar,lineNumber:79,columnNumber:11},this)]},void 0,!0,{fileName:ar,lineNumber:77,columnNumber:9},this),t&&(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:ar,lineNumber:84,columnNumber:11},this),(0,j.jsxDEV)(`span`,{children:t.name},void 0,!1,{fileName:ar,lineNumber:85,columnNumber:11},this)]},void 0,!0,{fileName:ar,lineNumber:83,columnNumber:9},this)]},void 0,!0,{fileName:ar,lineNumber:70,columnNumber:5},this)}var cr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/CommandPalette.tsx`,lr=40;function ur({actions:e,onClose:t}){let[n,r]=(0,A.useState)(``),[i,a]=(0,A.useState)(0),o=(0,A.useRef)(null),s=(0,A.useMemo)(()=>n.trim().length===0?e.slice(0,lr):e.map(e=>({action:e,score:At(`${e.title} ${e.group} ${e.keywords??``}`,n.trim())})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).slice(0,lr).map(e=>e.action),[e,n]);(0,A.useEffect)(()=>{a(0)},[n]),(0,A.useEffect)(()=>{o.current?.querySelector(`[data-active="true"]`)?.scrollIntoView({block:`nearest`})},[i,s]);let c=e=>{if(e.key===`ArrowDown`||e.key===`n`&&e.ctrlKey){e.preventDefault(),a(e=>(e+1)%Math.max(s.length,1));return}if(e.key===`ArrowUp`||e.key===`p`&&e.ctrlKey){e.preventDefault(),a(e=>(e-1+Math.max(s.length,1))%Math.max(s.length,1));return}if(e.key===`Enter`){e.preventDefault();let n=s[i];n&&(t(),n.run());return}e.key===`Escape`&&(e.preventDefault(),t())},l=``;return(0,j.jsxDEV)(`div`,{className:`overlay overlay--top`,onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,j.jsxDEV)(`div`,{className:`palette`,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,j.jsxDEV)(`input`,{className:`palette__input`,autoFocus:!0,value:n,placeholder:`Search sessions and commands…`,onChange:e=>r(e.target.value),onKeyDown:c,"aria-label":`Search sessions and commands`},void 0,!1,{fileName:cr,lineNumber:79,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`palette__list`,ref:o,role:`listbox`,children:[s.length===0&&(0,j.jsxDEV)(`p`,{className:`palette__empty`,children:`No matches`},void 0,!1,{fileName:cr,lineNumber:90,columnNumber:36},this),s.map((e,n)=>{let r=e.group===l?void 0:e.group;return l=e.group,(0,j.jsxDEV)(`div`,{children:[r&&(0,j.jsxDEV)(`div`,{className:`palette__group`,children:r},void 0,!1,{fileName:cr,lineNumber:98,columnNumber:28},this),(0,j.jsxDEV)(`button`,{type:`button`,role:`option`,"aria-selected":n===i,"data-active":n===i,className:`palette__item${n===i?` is-active`:``}`,onMouseMove:()=>a(n),onClick:()=>{t(),e.run()},children:[e.status&&(0,j.jsxDEV)(Tt,{status:e.status},void 0,!1,{fileName:cr,lineNumber:108,columnNumber:37},this),(0,j.jsxDEV)(`span`,{className:`palette__title`,children:e.title},void 0,!1,{fileName:cr,lineNumber:109,columnNumber:19},this),e.hint&&(0,j.jsxDEV)(`span`,{className:`palette__hint`,children:e.hint},void 0,!1,{fileName:cr,lineNumber:110,columnNumber:35},this),e.shortcut&&(0,j.jsxDEV)(`kbd`,{className:`palette__shortcut`,children:e.shortcut},void 0,!1,{fileName:cr,lineNumber:111,columnNumber:39},this)]},void 0,!0,{fileName:cr,lineNumber:99,columnNumber:17},this)]},e.id,!0,{fileName:cr,lineNumber:97,columnNumber:15},this)})]},void 0,!0,{fileName:cr,lineNumber:89,columnNumber:9},this),(0,j.jsxDEV)(`footer`,{className:`palette__foot`,children:[(0,j.jsxDEV)(`kbd`,{children:`↑`},void 0,!1,{fileName:cr,lineNumber:119,columnNumber:11},this),(0,j.jsxDEV)(`kbd`,{children:`↓`},void 0,!1,{fileName:cr,lineNumber:119,columnNumber:23},this),` navigate `,(0,j.jsxDEV)(`kbd`,{children:`↵`},void 0,!1,{fileName:cr,lineNumber:119,columnNumber:45},this),` run `,(0,j.jsxDEV)(`kbd`,{children:`esc`},void 0,!1,{fileName:cr,lineNumber:119,columnNumber:62},this),` close`]},void 0,!0,{fileName:cr,lineNumber:118,columnNumber:9},this)]},void 0,!0,{fileName:cr,lineNumber:78,columnNumber:7},this)},void 0,!1,{fileName:cr,lineNumber:77,columnNumber:5},this)}var dr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/ShortcutSheet.tsx`,fr=[{title:`Global`,rows:[[`⌘K`,`Command palette`],[`N`,`New session`],[`⌘B`,`Toggle board / list`],[`/`,`Focus the filter`],[`?`,`This sheet`]]},{title:`Dashboard`,rows:[[`J / K`,`Move between sessions`],[`↵`,`Open the focused session`],[`1 – 4`,`Set status on the focused session (Review is not settable by hand)`]]},{title:`Review triage`,rows:[[`J / K`,`Move between comments`],[`↵`,`Expand the focused comment`],[`S`,`Stage it`],[`D`,`Discard it`],[`E`,`Edit its wording`],[`⇧S`,`Stage everything matching the filter`]]},{title:`Session`,rows:[[`⇧⌘V`,`Toggle preview / edit`],[`S`,`Split view`],[`⌘S`,`Save now`],[`⌘⇧C`,`Copy the execute line`],[`Esc`,`Back to the dashboard`]]}];function pr({onClose:e}){return(0,j.jsxDEV)(er,{title:`Keyboard shortcuts`,onClose:e,width:520,children:(0,j.jsxDEV)(`div`,{className:`shortcuts`,children:fr.map(e=>(0,j.jsxDEV)(`section`,{className:`shortcuts__group`,children:[(0,j.jsxDEV)(`h3`,{className:`shortcuts__title`,children:e.title},void 0,!1,{fileName:dr,lineNumber:51,columnNumber:13},this),e.rows.map(([e,t])=>(0,j.jsxDEV)(`div`,{className:`shortcuts__row`,children:[(0,j.jsxDEV)(`kbd`,{children:e},void 0,!1,{fileName:dr,lineNumber:54,columnNumber:17},this),(0,j.jsxDEV)(`span`,{children:t},void 0,!1,{fileName:dr,lineNumber:55,columnNumber:17},this)]},e,!0,{fileName:dr,lineNumber:53,columnNumber:15},this))]},e.title,!0,{fileName:dr,lineNumber:50,columnNumber:11},this))},void 0,!1,{fileName:dr,lineNumber:48,columnNumber:7},this)},void 0,!1,{fileName:dr,lineNumber:47,columnNumber:5},this)}function mr(e){if(e===`/`||e===`/sessions`)return{name:`sessions`};let t=e.match(/^\/sessions\/([^/]+)$/);if(t)return{name:`session`,sessionId:decodeURIComponent(t[1])};if(e===`/reviews`)return{name:`reviews`};let n=e.match(/^\/reviews\/([^/]+)$/);return n?{name:`review`,slug:decodeURIComponent(n[1])}:e===`/packages`?{name:`packages`}:{name:`not-found`,path:e}}function hr(e){switch(e.name){case`sessions`:return`/sessions`;case`session`:return`/sessions/${e.sessionId}`;case`reviews`:return`/reviews`;case`review`:return`/reviews/${e.slug}`;case`packages`:return`/packages`;default:return`/`}}function gr(){let[e,t]=(0,A.useState)(()=>mr(window.location.pathname));return(0,A.useEffect)(()=>{let e=()=>t(mr(window.location.pathname));return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),{route:e,navigate:(0,A.useCallback)(e=>{let n=hr(e);n!==window.location.pathname&&window.history.pushState({},``,n),t(e)},[]),back:(0,A.useCallback)(()=>window.history.back(),[])}}var F=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/App.tsx`;function _r(){let e=In(),t=vn(),{route:n,navigate:r}=gr(),{data:i}=en(),{data:a,isLoading:o}=tn(),s=rn(),c=on(),l=cn(),u=hn(),{data:d}=un(),{data:f}=ln(),[p,m]=(0,A.useState)(`board`),[h,g]=(0,A.useState)(`preview`),[_,v]=(0,A.useState)(``),[y,b]=(0,A.useState)(),[x,ee]=(0,A.useState)(!1),[te,S]=(0,A.useState)(!1),[ne,re]=(0,A.useState)(!1),ie=(0,A.useMemo)(()=>a?.sessions??[],[a]),C=(0,A.useMemo)(()=>{let e=_.trim();return e.length===0?ie:ie.map(t=>({session:t,score:At(`${t.title} ${t.excerpt} ${t.tags.join(` `)}`,e)})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).map(e=>e.session)},[ie,_]),w=(0,A.useCallback)(e=>{b(e),r({name:`session`,sessionId:e})},[r]),T=(0,A.useCallback)(e=>r({name:`review`,slug:e}),[r]),ae=(0,A.useCallback)(t=>{u.mutate({sessionId:t},{onSuccess:async t=>{await jt(t.executeLine),e(t.guidance,`success`),w(t.session.id)},onError:t=>e(t instanceof Error?t.message:`Could not create the review.`,`danger`)})},[u,w,e]),oe=(0,A.useCallback)((t,n)=>{s.mutate({sessionId:t,status:n},{onError:()=>e(`Could not change the status.`,`danger`),onSuccess:t=>{t.status===`executed`&&t.kind!==`review`&&(t.reviewSessionIds.length>0||f&&!f.canReview||e(`Marked done — request a review from the session page.`,`info`))}})},[s,e,f]),E=(0,A.useCallback)(t=>{c.mutate(t,{onSuccess:async t=>{S(!1),await jt(t.executeLine),e(`Session created — execute line copied`,`success`),g(`edit`),w(t.session.id)},onError:t=>e(t instanceof Error?t.message:`Could not create the session.`,`danger`)})},[c,w,e]),se=yr({sessions:ie,route:n,view:p,project:i?.directory,onOpenSession:w,onChangeStatus:oe,onNew:()=>S(!0),onToggleView:()=>m(e=>e===`board`?`list`:`board`),onSetMode:g,onShortcuts:()=>re(!0),onMigrateAll:()=>l.mutate(void 0,{onSuccess:t=>e(`Migrated ${t.migrated.length} session(s)`,`success`),onError:()=>e(`Could not migrate headers.`,`danger`)}),onGoToSessions:()=>r({name:`sessions`}),onGoToReviews:()=>r({name:`reviews`}),onOpenReview:T,onRequestReview:ae,reviews:d?.reviews??[],canReview:f?.canReview??!1,onStop:async()=>{window.confirm(`Stop this UI server? The page will stop responding.`)&&(await Qt.shutdown().catch(()=>void 0),e(`UI stopping…`,`info`))},toast:e});return xr({enabled:!te&&!ne,paletteOpen:x,onPalette:()=>ee(e=>!e),onNew:()=>S(!0),onToggleView:()=>m(e=>e===`board`?`list`:`board`),onShortcuts:()=>re(!0),onFilter:()=>document.querySelector(`.filter__input`)?.focus(),onTogglePreview:()=>g(e=>e===`edit`?`preview`:`edit`),onSplit:()=>g(`split`),onEscape:()=>{n.name===`session`?r({name:`sessions`}):n.name===`review`&&r({name:`reviews`})},onMove:e=>{if(n.name!==`sessions`||C.length===0)return;let t=C.findIndex(e=>e.id===y),r=t===-1?0:Math.min(Math.max(t+e,0),C.length-1);b(C[r].id)},onOpenFocused:()=>{n.name===`sessions`&&y&&w(y)},onStatusDigit:e=>{let t=Rt[e],r=n.name===`session`?n.sessionId:y;t&&r&&oe(r,t)},isSessionRoute:n.name===`session`}),(0,j.jsxDEV)(`div`,{className:`app`,children:[(0,j.jsxDEV)(Ct,{route:n,onNavigate:r,onOpenPalette:()=>ee(!0),live:t},void 0,!1,{fileName:F,lineNumber:201,columnNumber:7},this),(0,j.jsxDEV)(`main`,{className:`main`,children:n.name===`session`?(0,j.jsxDEV)(Qn,{sessionId:n.sessionId,mode:h,onModeChange:g,onBack:()=>r({name:`sessions`}),onArchived:()=>r({name:`sessions`}),onOpenSession:w},void 0,!1,{fileName:F,lineNumber:205,columnNumber:11},this):n.name===`reviews`?(0,j.jsxDEV)(rr,{onOpen:T,onOpenSession:w},void 0,!1,{fileName:F,lineNumber:214,columnNumber:11},this):n.name===`review`?(0,j.jsxDEV)(or,{slug:n.slug,onBack:()=>r({name:`reviews`}),onOpenSession:w},void 0,!1,{fileName:F,lineNumber:216,columnNumber:11},this):n.name===`packages`?(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Packages management is coming soon.`},void 0,!1,{fileName:F,lineNumber:222,columnNumber:11},this):(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`header`,{className:`topbar`,children:[(0,j.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,j.jsxDEV)(`h1`,{className:`topbar__title`,children:i?.name??`Sessions`},void 0,!1,{fileName:F,lineNumber:227,columnNumber:17},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`topbar__path`,title:i?`${i.directory} — click to copy`:void 0,onClick:async()=>{i&&e(await jt(i.directory)?`Path copied`:`Could not copy`,`success`)},children:i?Mt(i.directory):``},void 0,!1,{fileName:F,lineNumber:228,columnNumber:17},this)]},void 0,!0,{fileName:F,lineNumber:226,columnNumber:15},this),(0,j.jsxDEV)(`div`,{className:`topbar__counts`,children:It.map(e=>(0,j.jsxDEV)(`span`,{className:`count count--${e}`,children:[(0,j.jsxDEV)(`span`,{className:`count__value`,children:a?.counts[e]??0},void 0,!1,{fileName:F,lineNumber:245,columnNumber:21},this),(0,j.jsxDEV)(`span`,{className:`count__label`,children:Lt[e]},void 0,!1,{fileName:F,lineNumber:246,columnNumber:21},this)]},e,!0,{fileName:F,lineNumber:244,columnNumber:19},this))},void 0,!1,{fileName:F,lineNumber:242,columnNumber:15},this),(0,j.jsxDEV)(`div`,{className:`filter`,children:(0,j.jsxDEV)(`input`,{className:`filter__input`,value:_,placeholder:`Filter… /`,onChange:e=>v(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(v(``),e.currentTarget.blur())},"aria-label":`Filter sessions`},void 0,!1,{fileName:F,lineNumber:252,columnNumber:17},this)},void 0,!1,{fileName:F,lineNumber:251,columnNumber:15},this),(0,j.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Layout`,children:[`board`,`list`].map(e=>(0,j.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":p===e,className:`segmented__item${p===e?` is-active`:``}`,onClick:()=>m(e),children:e===`board`?`Board`:`List`},e,!1,{fileName:F,lineNumber:264,columnNumber:19},this))},void 0,!1,{fileName:F,lineNumber:262,columnNumber:15},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>S(!0),children:`New session`},void 0,!1,{fileName:F,lineNumber:277,columnNumber:15},this)]},void 0,!0,{fileName:F,lineNumber:225,columnNumber:13},this),a&&a.needingMigration>0&&(0,j.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:[a.needingMigration,` session(s)`]},void 0,!0,{fileName:F,lineNumber:285,columnNumber:19},this),` have no canonical `,(0,j.jsxDEV)(`code`,{children:`<session-meta>`},void 0,!1,{fileName:F,lineNumber:285,columnNumber:89},this),` header.`]},void 0,!0,{fileName:F,lineNumber:284,columnNumber:17},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>l.mutate(void 0,{onSuccess:t=>e(`Migrated ${t.migrated.length} session(s)`,`success`),onError:()=>e(`Could not migrate headers.`,`danger`)}),children:`Migrate all`},void 0,!1,{fileName:F,lineNumber:288,columnNumber:19},this)},void 0,!1,{fileName:F,lineNumber:287,columnNumber:17},this)]},void 0,!0,{fileName:F,lineNumber:283,columnNumber:15},this),o?(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading sessions…`},void 0,!1,{fileName:F,lineNumber:305,columnNumber:15},this):ie.length===0?(0,j.jsxDEV)(vr,{onNew:()=>S(!0)},void 0,!1,{fileName:F,lineNumber:307,columnNumber:15},this):(0,j.jsxDEV)(Ut,{sessions:C,view:p,filter:_,focusedId:y,onFocus:b,onOpen:w,onStatusChange:oe,onNew:()=>S(!0),onRefuseDrop:t=>e(t,`info`)},void 0,!1,{fileName:F,lineNumber:309,columnNumber:15},this)]},void 0,!0,{fileName:F,lineNumber:224,columnNumber:11},this)},void 0,!1,{fileName:F,lineNumber:203,columnNumber:7},this),x&&(0,j.jsxDEV)(ur,{actions:se,onClose:()=>ee(!1)},void 0,!1,{fileName:F,lineNumber:325,columnNumber:23},this),te&&(0,j.jsxDEV)(nr,{busy:c.isPending,onClose:()=>S(!1),onSubmit:E},void 0,!1,{fileName:F,lineNumber:327,columnNumber:9},this),ne&&(0,j.jsxDEV)(pr,{onClose:()=>re(!1)},void 0,!1,{fileName:F,lineNumber:329,columnNumber:25},this)]},void 0,!0,{fileName:F,lineNumber:200,columnNumber:5},this)}function vr({onNew:e}){return(0,j.jsxDEV)(`div`,{className:`empty`,children:[(0,j.jsxDEV)(`h2`,{className:`empty__title`,children:`No sessions yet`},void 0,!1,{fileName:F,lineNumber:337,columnNumber:7},this),(0,j.jsxDEV)(`p`,{className:`empty__text`,children:[`A session is a markdown file in `,(0,j.jsxDEV)(`code`,{children:`.invariant/sessions`},void 0,!1,{fileName:F,lineNumber:339,columnNumber:41},this),` holding one task, its plan, and its status. Create one here, then paste its execute line into your agent.`]},void 0,!0,{fileName:F,lineNumber:338,columnNumber:7},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:e,children:`New session`},void 0,!1,{fileName:F,lineNumber:342,columnNumber:7},this)]},void 0,!0,{fileName:F,lineNumber:336,columnNumber:5},this)}function yr(e){return(0,A.useMemo)(()=>{let t=e.route,n=t.name===`session`?e.sessions.find(e=>e.id===t.sessionId):void 0,r=[{id:`new`,group:`Actions`,title:`New session…`,shortcut:`N`,run:e.onNew},{id:`view`,group:`Actions`,title:`Switch to ${e.view===`board`?`list`:`board`} view`,shortcut:`⌘B`,run:e.onToggleView},{id:`go-sessions`,group:`Actions`,title:`Go to sessions`,keywords:`dashboard home`,run:e.onGoToSessions},{id:`go-reviews`,group:`Actions`,title:`Go to reviews`,keywords:`review comments triage`,run:e.onGoToReviews},{id:`migrate`,group:`Actions`,title:`Migrate all session headers`,keywords:`fix header meta`,run:e.onMigrateAll},{id:`shortcuts`,group:`Actions`,title:`Keyboard shortcuts`,shortcut:`?`,run:e.onShortcuts},{id:`stop`,group:`Actions`,title:`Stop this UI server`,keywords:`quit shutdown exit`,run:e.onStop}];if(e.project&&r.push({id:`copy-project`,group:`Actions`,title:`Copy project path`,hint:e.project,run:async()=>{e.toast(await jt(e.project)?`Path copied`:`Could not copy`,`success`)}}),n){r.push({id:`mode-preview`,group:`This session`,title:`Preview`,shortcut:`⇧⌘V`,run:()=>e.onSetMode(`preview`)},{id:`mode-edit`,group:`This session`,title:`Edit`,shortcut:`⇧⌘V`,run:()=>e.onSetMode(`edit`)},{id:`mode-split`,group:`This session`,title:`Split`,shortcut:`S`,run:()=>e.onSetMode(`split`)}),n.kind===`plan`&&n.status===`executed`&&e.canReview&&r.push({id:`request-review`,group:`This session`,title:`Request review`,keywords:`diff branch code review`,run:()=>e.onRequestReview(n.id)}),n.reviewFile&&r.push({id:`open-review-file`,group:`This session`,title:`Open the review document`,hint:n.reviewFile,run:()=>e.onOpenReview(En(n.reviewFile))});for(let t of Rt)t!==n.status&&r.push({id:`status-${t}`,group:`This session`,title:`Set status: ${Lt[t]}`,status:t,run:()=>e.onChangeStatus(n.id,t)})}for(let t of e.reviews)r.push({id:`open-review-${t.slug}`,group:`Go to review`,title:t.branch,hint:t.counts.open>0?`${t.counts.open} awaiting triage`:`${t.counts.staged} staged`,keywords:`${t.path} review comments`,run:()=>e.onOpenReview(t.slug)});for(let t of e.sessions)r.push({id:`open-${t.id}`,group:`Go to session`,title:t.title,hint:Lt[t.status],status:t.status,keywords:`${t.excerpt} ${t.tags.join(` `)}`,run:()=>e.onOpenSession(t.id)});return r},[e])}function br(e){let t=e;return t?t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable||t.closest(`.cm-editor`)!==null:!1}function xr(e){(0,A.useEffect)(()=>{let t=t=>{let n=t.metaKey||t.ctrlKey;if(n&&t.key.toLowerCase()===`k`){t.preventDefault(),e.onPalette();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`v`){t.preventDefault(),e.onTogglePreview();return}if(!(!e.enabled||e.paletteOpen)){if(n&&t.key.toLowerCase()===`b`){t.preventDefault(),e.onToggleView();return}if(t.key===`Escape`&&!br(t.target)){e.onEscape();return}if(!br(t.target))switch(t.key){case`n`:t.preventDefault(),e.onNew();return;case`/`:t.preventDefault(),e.onFilter();return;case`?`:t.preventDefault(),e.onShortcuts();return;case`j`:e.onMove(1);return;case`k`:e.onMove(-1);return;case`ArrowDown`:e.isSessionRoute||(t.preventDefault(),e.onMove(1));return;case`ArrowUp`:e.isSessionRoute||(t.preventDefault(),e.onMove(-1));return;case`Enter`:e.isSessionRoute||e.onOpenFocused();return;case`e`:e.isSessionRoute&&e.onTogglePreview();return;case`p`:e.isSessionRoute&&e.onTogglePreview();return;case`s`:e.isSessionRoute&&e.onSplit();return;case`1`:case`2`:case`3`:case`4`:e.onStatusDigit(Number(t.key)-1);return}}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var Sr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/main.tsx`,Cr=new Xe({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:5e3}}});(0,bt.createRoot)(document.getElementById(`root`)).render((0,j.jsxDEV)(A.StrictMode,{children:(0,j.jsxDEV)(nt,{client:Cr,children:(0,j.jsxDEV)(Rn,{children:(0,j.jsxDEV)(_r,{},void 0,!1,{fileName:Sr,lineNumber:26,columnNumber:9},void 0)},void 0,!1,{fileName:Sr,lineNumber:25,columnNumber:7},void 0)},void 0,!1,{fileName:Sr,lineNumber:24,columnNumber:5},void 0)},void 0,!1,{fileName:Sr,lineNumber:23,columnNumber:3},void 0));export{l as a,s as i,d as n,o as r,yt as t};
|
|
245
|
+
`),children:`header`},void 0,!1,{fileName:Nt,lineNumber:62,columnNumber:11},this)]},void 0,!0,{fileName:Nt,lineNumber:48,columnNumber:7},this)]},void 0,!0,{fileName:Nt,lineNumber:26,columnNumber:5},this)}var It=[`in-progress`,`review`,`draft`,`planned`,`executed`],Lt={"in-progress":`In progress`,review:`Review`,draft:`Draft`,planned:`Planned`,executed:`Done`},Rt=It.filter(e=>e!==`review`),zt=[`blocker`,`major`,`minor`,`nit`,`praise`],Bt={blocker:`Blocker`,major:`Major`,minor:`Minor`,nit:`Nit`,praise:`Praise`},Vt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusPill.tsx`;function Ht({status:e,onChange:t,disabled:n}){let[r,i]=(0,A.useState)(!1),a=(0,A.useRef)(null);return(0,A.useEffect)(()=>{if(!r)return;let e=e=>{a.current?.contains(e.target)||i(!1)},t=e=>{e.key===`Escape`&&i(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[r]),t?(0,j.jsxDEV)(`div`,{className:`pill-menu`,ref:a,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`pill pill--${e} pill--interactive`,onClick:()=>i(e=>!e),disabled:n,"aria-haspopup":`menu`,"aria-expanded":r,children:[(0,j.jsxDEV)(Tt,{status:e},void 0,!1,{fileName:Vt,lineNumber:57,columnNumber:9},this),Lt[e],(0,j.jsxDEV)(`svg`,{className:`pill__caret`,viewBox:`0 0 10 10`,"aria-hidden":`true`,children:(0,j.jsxDEV)(`path`,{d:`M2.5 4 5 6.5 7.5 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:Vt,lineNumber:60,columnNumber:11},this)},void 0,!1,{fileName:Vt,lineNumber:59,columnNumber:9},this)]},void 0,!0,{fileName:Vt,lineNumber:49,columnNumber:7},this),r&&(0,j.jsxDEV)(`div`,{className:`pill-menu__list`,role:`menu`,children:Rt.map(n=>(0,j.jsxDEV)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":n===e,className:`pill-menu__item${n===e?` is-active`:``}`,onClick:()=>{i(!1),n!==e&&t(n)},children:[(0,j.jsxDEV)(Tt,{status:n},void 0,!1,{fileName:Vt,lineNumber:79,columnNumber:15},this),Lt[n]]},n,!0,{fileName:Vt,lineNumber:68,columnNumber:13},this))},void 0,!1,{fileName:Vt,lineNumber:66,columnNumber:9},this)]},void 0,!0,{fileName:Vt,lineNumber:48,columnNumber:5},this):(0,j.jsxDEV)(`span`,{className:`pill pill--${e}`,children:[(0,j.jsxDEV)(Tt,{status:e},void 0,!1,{fileName:Vt,lineNumber:41,columnNumber:9},this),Lt[e]]},void 0,!0,{fileName:Vt,lineNumber:40,columnNumber:7},this)}var M=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/Dashboard.tsx`;function Ut(e){return e.view===`board`?(0,j.jsxDEV)(Wt,{...e},void 0,!1,{fileName:M,lineNumber:24,columnNumber:35},this):(0,j.jsxDEV)(Gt,{...e},void 0,!1,{fileName:M,lineNumber:24,columnNumber:58},this)}function Wt({sessions:e,focusedId:t,onFocus:n,onOpen:r,onStatusChange:i,onNew:a,onRefuseDrop:o}){let[s,c]=(0,A.useState)(!1),[l,u]=(0,A.useState)(),[d,f]=(0,A.useState)(),p=(0,A.useMemo)(()=>It.map(t=>({status:t,items:e.filter(e=>e.status===t)})),[e]);return(0,j.jsxDEV)(`div`,{className:`board`,children:p.map(p=>{let m=p.status===`executed`,h=m&&!s;return(0,j.jsxDEV)(`section`,{className:`column column--${p.status}${h?` is-collapsed`:``}${d===p.status?` is-drop-target`:``}`,onDragOver:e=>{l&&(e.preventDefault(),f(p.status))},onDragLeave:()=>f(e=>e===p.status?void 0:e),onDrop:t=>{t.preventDefault();let n=t.dataTransfer.getData(`text/plain`);f(void 0),u(void 0);let r=e.find(e=>e.id===n);if(!(!r||r.status===p.status)){if(p.status===`review`||r.status===`review`){o(r.status===`review`?`Triage this review to move it on.`:`Reviews arrive here by being written, not by being dragged.`);return}i(n,p.status)}},children:[(0,j.jsxDEV)(`header`,{className:`column__head`,children:[(0,j.jsxDEV)(Tt,{status:p.status},void 0,!1,{fileName:M,lineNumber:87,columnNumber:15},this),(0,j.jsxDEV)(`h2`,{className:`column__title`,children:Lt[p.status]},void 0,!1,{fileName:M,lineNumber:88,columnNumber:15},this),(0,j.jsxDEV)(`span`,{className:`column__count`,children:p.items.length},void 0,!1,{fileName:M,lineNumber:89,columnNumber:15},this),m&&p.items.length>0&&(0,j.jsxDEV)(`button`,{type:`button`,className:`column__toggle`,onClick:()=>c(e=>!e),children:s?`Hide`:`Show`},void 0,!1,{fileName:M,lineNumber:91,columnNumber:17},this)]},void 0,!0,{fileName:M,lineNumber:86,columnNumber:13},this),!h&&(0,j.jsxDEV)(`div`,{className:`column__body`,children:[p.items.map(e=>(0,j.jsxDEV)(Ft,{session:e,focused:e.id===t,onOpen:()=>{n(e.id),r(e.id)},onDragStart:()=>u(e.id),onDragEnd:()=>{u(void 0),f(void 0)}},e.id,!1,{fileName:M,lineNumber:100,columnNumber:19},this)),p.items.length===0&&(0,j.jsxDEV)(`p`,{className:`column__empty`,children:p.status===`draft`?(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:a,children:`Start a session`},void 0,!1,{fileName:M,lineNumber:113,columnNumber:23},this):p.status===`review`?`Nothing awaiting triage`:`Nothing here`},void 0,!1,{fileName:M,lineNumber:111,columnNumber:19},this)]},void 0,!0,{fileName:M,lineNumber:98,columnNumber:15},this)]},p.status,!0,{fileName:M,lineNumber:56,columnNumber:11},this)})},void 0,!1,{fileName:M,lineNumber:50,columnNumber:5},this)}function Gt({sessions:e,focusedId:t,onFocus:n,onOpen:r,onStatusChange:i}){let a=(0,A.useRef)(null);return(0,A.useEffect)(()=>{a.current?.scrollIntoView({block:`nearest`})},[t]),(0,j.jsxDEV)(`div`,{className:`list`,children:(0,j.jsxDEV)(`table`,{className:`list__table`,children:[(0,j.jsxDEV)(`thead`,{children:(0,j.jsxDEV)(`tr`,{children:[(0,j.jsxDEV)(`th`,{scope:`col`,children:`Session`},void 0,!1,{fileName:M,lineNumber:139,columnNumber:13},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Status`},void 0,!1,{fileName:M,lineNumber:140,columnNumber:13},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:M,lineNumber:141,columnNumber:13},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Size`},void 0,!1,{fileName:M,lineNumber:142,columnNumber:13},this)]},void 0,!0,{fileName:M,lineNumber:138,columnNumber:11},this)},void 0,!1,{fileName:M,lineNumber:137,columnNumber:9},this),(0,j.jsxDEV)(`tbody`,{children:e.map(e=>(0,j.jsxDEV)(`tr`,{ref:e.id===t?a:void 0,className:e.id===t?`is-focused`:void 0,onClick:()=>{n(e.id),r(e.id)},children:[(0,j.jsxDEV)(`td`,{children:[(0,j.jsxDEV)(`div`,{className:`list__title`,children:e.title},void 0,!1,{fileName:M,lineNumber:154,columnNumber:17},this),!e.excerpt.startsWith(e.title.replace(/…$/,``).trim())&&(0,j.jsxDEV)(`div`,{className:`list__excerpt`,children:e.excerpt},void 0,!1,{fileName:M,lineNumber:156,columnNumber:19},this)]},void 0,!0,{fileName:M,lineNumber:153,columnNumber:15},this),(0,j.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,j.jsxDEV)(Ht,{status:e.status,onChange:t=>i(e.id,t)},void 0,!1,{fileName:M,lineNumber:160,columnNumber:17},this)},void 0,!1,{fileName:M,lineNumber:159,columnNumber:15},this),(0,j.jsxDEV)(`td`,{className:`list__meta`,title:e.updated,children:Dt(e.updated)},void 0,!1,{fileName:M,lineNumber:165,columnNumber:15},this),(0,j.jsxDEV)(`td`,{className:`list__meta`,children:kt(e.sizeBytes)},void 0,!1,{fileName:M,lineNumber:166,columnNumber:15},this)]},e.id,!0,{fileName:M,lineNumber:147,columnNumber:13},this))},void 0,!1,{fileName:M,lineNumber:145,columnNumber:9},this)]},void 0,!0,{fileName:M,lineNumber:136,columnNumber:7},this)},void 0,!1,{fileName:M,lineNumber:135,columnNumber:5},this)}var Kt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ConflictBanner.tsx`;function qt({onKeepMine:e,onTakeTheirs:t,onDismiss:n}){return(0,j.jsxDEV)(`div`,{className:`banner banner--conflict`,role:`alert`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:`This session changed on disk.`},void 0,!1,{fileName:Kt,lineNumber:15,columnNumber:9},this),` Your editor still holds the version you loaded.`]},void 0,!0,{fileName:Kt,lineNumber:14,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Take theirs`},void 0,!1,{fileName:Kt,lineNumber:18,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:e,children:`Keep mine`},void 0,!1,{fileName:Kt,lineNumber:19,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:n,children:`Later`},void 0,!1,{fileName:Kt,lineNumber:20,columnNumber:9},this)]},void 0,!0,{fileName:Kt,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:Kt,lineNumber:13,columnNumber:5},this)}function Jt(){let e=document.querySelector(`meta[name="invariant-ui-token"]`)?.content??``;return e.startsWith(`__`)?``:e}var Yt=Jt(),Xt=class extends Error{status;code;detail;constructor(e,t,n,r={code:t,message:n}){super(n),this.status=e,this.code=t,this.detail=r,this.name=`ApiError`}get isConflict(){return this.status===409&&this.code.endsWith(`CONFLICT`)}get isNotTriaged(){return this.code===`REVIEW_NOT_TRIAGED`}get openCount(){return this.detail.openCount??0}};async function Zt(e,t={}){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${Yt}`,...t.headers??{}}});if(!n.ok){let e=await n.json().catch(()=>void 0);throw new Xt(n.status,e?.error.code??`UNKNOWN`,e?.error.message??`Request failed with ${n.status}.`,e?.error)}if(n.status!==204)return await n.json()}function Qt(e){return{...e,tags:e.tags??[],issues:e.issues??[],reviewSessionIds:e.reviewSessionIds??[]}}var $t={project:()=>Zt(`/api/project`),listSessions:async()=>{let e=await Zt(`/api/sessions`);return{...e,sessions:(e.sessions??[]).map(Qt)}},getSession:async e=>Qt(await Zt(`/api/sessions/${e}`)),saveSession:async e=>Qt(await Zt(`/api/sessions/${e.sessionId}`,{method:`PUT`,headers:e.force?{}:{"If-Match":e.etag},body:JSON.stringify({body:e.body,force:e.force===!0})})),setStatus:async e=>Qt(await Zt(`/api/sessions/${e.sessionId}/status`,{method:`PATCH`,body:JSON.stringify({status:e.status,summary:e.summary})})),createSession:async e=>{let t=await Zt(`/api/sessions`,{method:`POST`,body:JSON.stringify(e)});return{...t,session:Qt(t.session)}},archiveSession:e=>Zt(`/api/sessions/${e}`,{method:`DELETE`}),migrateHeader:async e=>({migrated:((await Zt(e?`/api/sessions/${e}/migrate-header`:`/api/sessions/migrate-header`,{method:`POST`})).migrated??[]).map(Qt)}),shutdown:()=>Zt(`/api/shutdown`,{method:`POST`}),git:()=>Zt(`/api/git`),listReviews:()=>Zt(`/api/reviews`),getReview:e=>Zt(`/api/reviews/${e}`),requestReview:async e=>{let t=await Zt(e.sessionId?`/api/sessions/${e.sessionId}/review`:`/api/reviews`,{method:`POST`,body:JSON.stringify({base:e.base,sessionId:e.sessionId})});return{...t,session:Qt(t.session)}},updateComment:e=>Zt(`/api/reviews/${e.slug}/comments/${e.commentId}`,{method:`PATCH`,headers:{"If-Match":e.etag},body:JSON.stringify({status:e.status,severity:e.severity,category:e.category,title:e.title,body:e.body})}),bulkUpdateComments:e=>Zt(`/api/reviews/${e.slug}/comments/bulk`,{method:`POST`,headers:{"If-Match":e.etag},body:JSON.stringify({ids:e.ids,status:e.status})}),planReviewChanges:async e=>{let t=await Zt(`/api/reviews/${e}/plan-changes`,{method:`POST`});return{...t,session:Qt(t.session)}},publishReview:e=>Zt(`/api/reviews/${e}/publish`,{method:`POST`}),source:e=>{let t=new URLSearchParams({path:e.path});return e.line!==void 0&&t.set(`line`,String(e.line)),e.radius!==void 0&&t.set(`radius`,String(e.radius)),Zt(`/api/source?${t.toString()}`)},eventsUrl:()=>`/api/events?token=${encodeURIComponent(Yt)}`},en={project:[`project`],sessions:[`sessions`],session:e=>[`session`,e],git:[`git`],reviews:[`reviews`],review:e=>[`review`,e]};function tn(){return gt({queryKey:en.project,queryFn:$t.project,staleTime:6e4})}function nn(){return gt({queryKey:en.sessions,queryFn:$t.listSessions})}function rn(e){return gt({queryKey:en.session(e??``),queryFn:()=>$t.getSession(e),enabled:e!==void 0})}function an(){let e=tt();return _t({mutationFn:$t.setStatus,onSuccess:t=>{e.setQueryData(en.session(t.id),t),e.invalidateQueries({queryKey:en.sessions})}})}function on(){let e=tt();return _t({mutationFn:$t.saveSession,onSuccess:t=>{e.setQueryData(en.session(t.id),t),e.invalidateQueries({queryKey:en.sessions})}})}function sn(){let e=tt();return _t({mutationFn:$t.createSession,onSuccess:()=>e.invalidateQueries({queryKey:en.sessions})})}function cn(){let e=tt();return _t({mutationFn:$t.archiveSession,onSuccess:()=>e.invalidateQueries({queryKey:en.sessions})})}function ln(){let e=tt();return _t({mutationFn:e=>$t.migrateHeader(e),onSuccess:()=>e.invalidateQueries({queryKey:en.sessions})})}function un(){return gt({queryKey:en.git,queryFn:$t.git,staleTime:15e3})}function dn(){return gt({queryKey:en.reviews,queryFn:$t.listReviews})}function fn(e){return gt({queryKey:en.review(e??``),queryFn:()=>$t.getReview(e),enabled:e!==void 0})}function pn(e,t){e.setQueryData(en.review(t.slug),t),e.invalidateQueries({queryKey:en.reviews}),t.sessionId&&e.invalidateQueries({queryKey:en.session(t.sessionId)})}function mn(){let e=tt();return _t({mutationFn:$t.updateComment,onSuccess:t=>pn(e,t)})}function hn(){let e=tt();return _t({mutationFn:e=>$t.bulkUpdateComments(e),onSuccess:t=>pn(e,t)})}function gn(){let e=tt();return _t({mutationFn:$t.requestReview,onSuccess:()=>{e.invalidateQueries({queryKey:en.sessions}),e.invalidateQueries({queryKey:en.reviews})}})}function _n(){let e=tt();return _t({mutationFn:e=>$t.planReviewChanges(e),onSuccess:t=>{pn(e,t.review),e.setQueryData(en.session(t.session.id),t.session),e.invalidateQueries({queryKey:en.sessions})}})}function vn(){let e=tt();return _t({mutationFn:e=>$t.publishReview(e),onSuccess:()=>e.invalidateQueries({queryKey:en.reviews})})}function yn(){let e=tt(),[t,n]=(0,A.useState)(`connecting`);return(0,A.useEffect)(()=>{let t=new EventSource($t.eventsUrl()),r=t=>{e.invalidateQueries({queryKey:en.sessions});try{let n=JSON.parse(t.data);n.sessionId&&e.invalidateQueries({queryKey:en.session(n.sessionId)})}catch{}},i=t=>{e.invalidateQueries({queryKey:en.reviews}),e.invalidateQueries({queryKey:en.sessions});try{let n=JSON.parse(t.data);n.slug&&e.invalidateQueries({queryKey:en.review(n.slug)})}catch{}};t.onopen=()=>n(`live`),t.onerror=()=>n(`offline`);for(let e of[`session.created`,`session.updated`,`session.deleted`])t.addEventListener(e,r);for(let e of[`review.created`,`review.updated`,`review.deleted`])t.addEventListener(e,i);let a=()=>{e.invalidateQueries({queryKey:en.sessions}),e.invalidateQueries({queryKey:en.reviews})};return window.addEventListener(`focus`,a),()=>{t.close(),window.removeEventListener(`focus`,a)}},[e]),t}var bn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ReviewPanel.tsx`;function xn({session:e,onOpenSession:t,onToast:n}){let{data:r}=un(),{data:i}=nn(),a=gn(),o=(i?.sessions??[]).filter(t=>t.parent===e.id);if(o.length>0)return(0,j.jsxDEV)(`div`,{className:`banner banner--review`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:`Reviewed.`},void 0,!1,{fileName:bn,lineNumber:30,columnNumber:11},this),` `,o.length===1?`One review session points at this work.`:`${o.length} review sessions point at this work.`]},void 0,!0,{fileName:bn,lineNumber:29,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:o.map(e=>(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>t(e.id),children:e.branch??`Open review`},e.id,!1,{fileName:bn,lineNumber:37,columnNumber:13},this))},void 0,!1,{fileName:bn,lineNumber:35,columnNumber:9},this)]},void 0,!0,{fileName:bn,lineNumber:28,columnNumber:7},this);let s=r!==void 0&&!r.canReview;return(0,j.jsxDEV)(`div`,{className:`banner banner--review`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:`No review yet.`},void 0,!1,{fileName:bn,lineNumber:56,columnNumber:9},this),` `,s?r?.reason:r?.branch?`A fresh agent can read the ${r.changedFileCount}-file diff on ${r.branch} without seeing this plan.`:`A fresh agent can read the diff without seeing this plan.`]},void 0,!0,{fileName:bn,lineNumber:55,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:s||a.isPending,title:s?r?.reason:void 0,onClick:()=>a.mutate({sessionId:e.id},{onSuccess:async e=>{await jt(e.executeLine),n(e.guidance,`success`),t(e.session.id)},onError:e=>n(e instanceof Error?e.message:`Could not create the review.`,`danger`)}),children:a.isPending?`Creating…`:`Request review`},void 0,!1,{fileName:bn,lineNumber:64,columnNumber:9},this)},void 0,!1,{fileName:bn,lineNumber:63,columnNumber:7},this)]},void 0,!0,{fileName:bn,lineNumber:54,columnNumber:5},this)}var Sn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/SourcePeek.tsx`,Cn=12;function wn({file:e,line:t,endLine:n}){let{data:r,isLoading:i,error:a}=gt({queryKey:[`source`,e,t??0],queryFn:()=>$t.source({path:e,line:t,radius:Cn}),staleTime:3e4});if(i)return(0,j.jsxDEV)(`div`,{className:`peek peek--state`,children:`Loading…`},void 0,!1,{fileName:Sn,lineNumber:26,columnNumber:25},this);if(a||!r)return(0,j.jsxDEV)(`div`,{className:`peek peek--state`,children:`This file is not readable from here — it may have moved since the review was written.`},void 0,!1,{fileName:Sn,lineNumber:29,columnNumber:7},this);let o=t??r.startLine,s=n??o;return(0,j.jsxDEV)(`div`,{className:`peek`,children:[(0,j.jsxDEV)(`div`,{className:`peek__head`,children:[r.path,` · lines `,r.startLine,`–`,r.endLine,` of `,r.totalLines]},void 0,!0,{fileName:Sn,lineNumber:40,columnNumber:7},this),(0,j.jsxDEV)(`pre`,{className:`peek__code`,children:r.lines.map((e,t)=>{let n=r.startLine+t;return(0,j.jsxDEV)(`div`,{className:`peek__line${n>=o&&n<=s?` is-highlighted`:``}`,children:[(0,j.jsxDEV)(`span`,{className:`peek__number`,children:n},void 0,!1,{fileName:Sn,lineNumber:49,columnNumber:15},this),(0,j.jsxDEV)(`code`,{children:e.length>0?e:` `},void 0,!1,{fileName:Sn,lineNumber:50,columnNumber:15},this)]},n,!0,{fileName:Sn,lineNumber:48,columnNumber:13},this)})},void 0,!1,{fileName:Sn,lineNumber:43,columnNumber:7},this)]},void 0,!0,{fileName:Sn,lineNumber:39,columnNumber:5},this)}var Tn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentEditor.tsx`;function En({title:e,body:t,busy:n,onCancel:r,onSave:i}){let[a,o]=(0,A.useState)(e),[s,c]=(0,A.useState)(t),l={title:a.trim(),body:s},u=l.title.length>0;return(0,j.jsxDEV)(`div`,{className:`comment-editor`,children:[(0,j.jsxDEV)(`label`,{className:`field`,children:[(0,j.jsxDEV)(`span`,{className:`field__label`,children:`Title`},void 0,!1,{fileName:Tn,lineNumber:27,columnNumber:9},this),(0,j.jsxDEV)(`input`,{className:`field__input`,value:a,maxLength:120,autoFocus:!0,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r()}},void 0,!1,{fileName:Tn,lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:Tn,lineNumber:26,columnNumber:7},this),(0,j.jsxDEV)(`label`,{className:`field`,children:[(0,j.jsxDEV)(`span`,{className:`field__label`,children:`Detail`},void 0,!1,{fileName:Tn,lineNumber:39,columnNumber:9},this),(0,j.jsxDEV)(`textarea`,{className:`field__input field__input--area`,value:s,rows:6,onChange:e=>c(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r()}},void 0,!1,{fileName:Tn,lineNumber:40,columnNumber:9},this)]},void 0,!0,{fileName:Tn,lineNumber:38,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`comment-editor__actions`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:r,children:`Cancel`},void 0,!1,{fileName:Tn,lineNumber:50,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n||!u,onClick:()=>i(l,!1),children:`Save`},void 0,!1,{fileName:Tn,lineNumber:51,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:n||!u,onClick:()=>i(l,!0),children:`Save & stage`},void 0,!1,{fileName:Tn,lineNumber:59,columnNumber:9},this)]},void 0,!0,{fileName:Tn,lineNumber:49,columnNumber:7},this)]},void 0,!0,{fileName:Tn,lineNumber:25,columnNumber:5},this)}var Dn=[`.xml`,`.md`];function On(e){let t=e.split(`/`).pop()??e,n=Dn.find(e=>t.toLowerCase().endsWith(e));return n?t.slice(0,-n.length):t}function kn(e,t,n){return e.filter(e=>(t===`all`||e.status===t)&&(n===`all`||e.severity===n))}function An(e,t){let n=e.findIndex(e=>e.id===t);return(n===-1?e:[...e.slice(n+1),...e.slice(0,n)]).find(e=>e.id!==t&&e.status===`open`)}function jn(e){if(e.total===0)return{kind:`empty`,label:`This review has no comments.`};if(e.open>0)return{kind:`blocked`,openCount:e.open,label:`${e.open} still need${e.open===1?`s`:``} a decision`};let t=`Ready · ${e.staged} staged · ${e.discarded} discarded`;return e.staged===0?{kind:`ready`,action:`close`,label:t}:{kind:`ready`,action:`plan`,label:t}}function Mn(e,t,n,r){if(!(e===`none`||!t))return`${e}://file/${t}/${n}:${r??1}`}var Nn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentCard.tsx`,Pn={open:`○`,staged:`✓`,discarded:`✗`};function Fn(e){let{comment:t}=e,[n,r]=(0,A.useState)(!1),[i,a]=(0,A.useState)(!1),o=t.status!==`open`;return(0,j.jsxDEV)(`article`,{className:`comment comment--${t.status} comment--${t.severity}${e.focused?` is-focused`:``}`,"aria-label":`${t.severity} — ${t.title}`,onClick:e.onFocus,children:[(0,j.jsxDEV)(`header`,{className:`comment__head`,onClick:e.onToggle,role:`button`,tabIndex:-1,children:[(0,j.jsxDEV)(`span`,{className:`comment__glyph`,"aria-hidden":`true`,children:Pn[t.status]},void 0,!1,{fileName:Nn,lineNumber:54,columnNumber:9},this),(0,j.jsxDEV)(`span`,{className:`comment__severity comment__severity--${t.severity}`,children:Bt[t.severity]},void 0,!1,{fileName:Nn,lineNumber:55,columnNumber:9},this),(0,j.jsxDEV)(`span`,{className:`comment__category`,children:t.category},void 0,!1,{fileName:Nn,lineNumber:58,columnNumber:9},this),t.location&&(0,j.jsxDEV)(`span`,{className:`comment__location`,children:t.location},void 0,!1,{fileName:Nn,lineNumber:59,columnNumber:30},this),(0,j.jsxDEV)(`h3`,{className:`comment__title`,children:t.title},void 0,!1,{fileName:Nn,lineNumber:60,columnNumber:9},this),t.edited&&(0,j.jsxDEV)(`span`,{className:`chip`,title:`Edited ${t.edited}`,children:`edited`},void 0,!1,{fileName:Nn,lineNumber:61,columnNumber:28},this)]},void 0,!0,{fileName:Nn,lineNumber:53,columnNumber:7},this),e.expanded&&(0,j.jsxDEV)(`div`,{className:`comment__body`,children:n?(0,j.jsxDEV)(En,{title:t.title,body:t.body,busy:e.busy,onCancel:()=>r(!1),onSave:(t,n)=>{r(!1),e.onEdit(t,n)}},void 0,!1,{fileName:Nn,lineNumber:67,columnNumber:13},this):(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`p`,{className:`comment__prose`,children:t.body},void 0,!1,{fileName:Nn,lineNumber:79,columnNumber:15},this),t.suggestion&&(0,j.jsxDEV)(`pre`,{className:`comment__suggestion`,children:(0,j.jsxDEV)(`code`,{children:t.suggestion},void 0,!1,{fileName:Nn,lineNumber:83,columnNumber:19},this)},void 0,!1,{fileName:Nn,lineNumber:82,columnNumber:17},this),t.file&&(0,j.jsxDEV)(`div`,{className:`comment__location-row`,children:[(0,j.jsxDEV)(`span`,{className:`comment__path`,children:t.location},void 0,!1,{fileName:Nn,lineNumber:89,columnNumber:19},this),Mn(e.editorScheme,e.projectDirectory,t.file,t.line)&&(0,j.jsxDEV)(`a`,{className:`link-button`,href:Mn(e.editorScheme,e.projectDirectory,t.file,t.line),children:`Open in editor`},void 0,!1,{fileName:Nn,lineNumber:91,columnNumber:21},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{let n=await jt(t.location);e.onToast(n?`Location copied`:`Could not copy`,`success`)},children:`Copy`},void 0,!1,{fileName:Nn,lineNumber:103,columnNumber:19},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a(e=>!e),children:i?`Hide code`:`Peek`},void 0,!1,{fileName:Nn,lineNumber:113,columnNumber:19},this)]},void 0,!0,{fileName:Nn,lineNumber:88,columnNumber:17},this),i&&t.file&&(0,j.jsxDEV)(wn,{file:t.file,line:t.line,endLine:t.endLine},void 0,!1,{fileName:Nn,lineNumber:124,columnNumber:17},this)]},void 0,!0,{fileName:Nn,lineNumber:78,columnNumber:13},this)},void 0,!1,{fileName:Nn,lineNumber:65,columnNumber:9},this),e.expanded&&!n&&(0,j.jsxDEV)(`footer`,{className:`comment__actions`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost${t.status===`discarded`?` is-active`:``}`,disabled:e.busy,onClick:()=>e.onDecide(`discarded`),children:`Discard`},void 0,!1,{fileName:Nn,lineNumber:133,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:e.busy,onClick:()=>r(!0),children:`Edit`},void 0,!1,{fileName:Nn,lineNumber:141,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid${t.status===`staged`?` is-active`:``}`,disabled:e.busy,onClick:()=>e.onDecide(`staged`),children:`Stage`},void 0,!1,{fileName:Nn,lineNumber:149,columnNumber:11},this),o&&(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,disabled:e.busy,onClick:()=>e.onDecide(`open`),children:`Undo`},void 0,!1,{fileName:Nn,lineNumber:158,columnNumber:13},this)]},void 0,!0,{fileName:Nn,lineNumber:132,columnNumber:9},this)]},void 0,!0,{fileName:Nn,lineNumber:46,columnNumber:5},this)}var In=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Toasts.tsx`,Ln=(0,A.createContext)(()=>void 0);function Rn(){return(0,A.useContext)(Ln)}var zn=3400;function Bn({children:e}){let[t,n]=(0,A.useState)([]),r=(0,A.useCallback)((e,t=`info`)=>{let r=Date.now()+Math.random();n(n=>[...n,{id:r,message:e,tone:t}]),setTimeout(()=>n(e=>e.filter(e=>e.id!==r)),zn)},[]),i=(0,A.useMemo)(()=>r,[r]);return(0,j.jsxDEV)(Ln.Provider,{value:i,children:[e,(0,j.jsxDEV)(`div`,{className:`toasts`,role:`status`,"aria-live":`polite`,children:t.map(e=>(0,j.jsxDEV)(`div`,{className:`toast toast--${e.tone}`,children:e.message},e.id,!1,{fileName:In,lineNumber:35,columnNumber:11},this))},void 0,!1,{fileName:In,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:In,lineNumber:31,columnNumber:5},this)}var Vn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPane.tsx`,Hn=[`all`,`open`,`staged`,`discarded`];function Un({review:e,projectDirectory:t,editorScheme:n=`vscode`,onPlanned:r}){let i=Rn(),a=mn(),o=hn(),s=_n(),c=vn(),[l,u]=(0,A.useState)(`all`),[d,f]=(0,A.useState)(`all`),[p,m]=(0,A.useState)(),[h,g]=(0,A.useState)(),_=(0,A.useMemo)(()=>e.runs.flatMap(e=>e.comments),[e]),v=(0,A.useMemo)(()=>kn(_,l,d),[_,l,d]);(0,A.useEffect)(()=>{if(v.length===0){m(void 0);return}(!p||!v.some(e=>e.id===p))&&m(v[0].id)},[v,p]);let y=a.isPending||o.isPending,b=(t,n)=>{a.mutate({slug:e.slug,commentId:t.id,etag:e.etag,status:n},{onError:e=>Gn(e,i),onSuccess:()=>{if(n===`open`)return;let e=An(v,t.id);e&&(m(e.id),g(e.id))}})},x=(t,n,r)=>{a.mutate({slug:e.slug,commentId:t.id,etag:e.etag,title:n.title,body:n.body,status:r?`staged`:void 0},{onError:e=>Gn(e,i)})},ee=()=>{let t=v.filter(e=>e.status!==`staged`).map(e=>e.id);t.length!==0&&o.mutate({slug:e.slug,ids:t,status:`staged`,etag:e.etag},{onSuccess:()=>i(`Staged ${t.length} comment(s)`,`success`),onError:e=>Gn(e,i)})};Kn({enabled:!y,comments:v,focusedId:p,onFocus:m,onToggle:e=>g(t=>t===e?void 0:e),onDecide:(e,t)=>{let n=v.find(t=>t.id===e);n&&b(n,t)},onExpand:g,onStageAll:ee});let te=e.counts,S=jn(te),ne=S.kind===`ready`,re=S.kind===`ready`&&S.action===`close`;return(0,j.jsxDEV)(`div`,{className:`review`,children:[(0,j.jsxDEV)(`header`,{className:`review__toolbar`,children:[(0,j.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Filter by decision`,children:Hn.map(e=>(0,j.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":l===e,className:`segmented__item${l===e?` is-active`:``}`,onClick:()=>u(e),children:e===`all`?`All ${te.total}`:`${Wn(e)} ${te[e]}`},e,!1,{fileName:Vn,lineNumber:131,columnNumber:13},this))},void 0,!1,{fileName:Vn,lineNumber:129,columnNumber:9},this),(0,j.jsxDEV)(`select`,{className:`select`,value:d,"aria-label":`Filter by severity`,onChange:e=>f(e.target.value),children:[(0,j.jsxDEV)(`option`,{value:`all`,children:`Any severity`},void 0,!1,{fileName:Vn,lineNumber:150,columnNumber:11},this),zt.map(e=>(0,j.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:Vn,lineNumber:152,columnNumber:13},this))]},void 0,!0,{fileName:Vn,lineNumber:144,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:y||v.every(e=>e.status===`staged`),onClick:ee,title:`Stage every comment matching the current filter (⇧S)`,children:`Stage all shown`},void 0,!1,{fileName:Vn,lineNumber:156,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{i(await jt(e.path)?`Path copied`:`Could not copy`,`success`)},children:e.path},void 0,!1,{fileName:Vn,lineNumber:166,columnNumber:9},this)]},void 0,!0,{fileName:Vn,lineNumber:128,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`review__summary`,children:e.runs.map(e=>(0,j.jsxDEV)(`p`,{className:`review__run-summary`,children:[(0,j.jsxDEV)(`span`,{className:`chip`,children:e.headSha.slice(0,7)},void 0,!1,{fileName:Vn,lineNumber:180,columnNumber:13},this),` `,e.summary]},e.id,!0,{fileName:Vn,lineNumber:179,columnNumber:11},this))},void 0,!1,{fileName:Vn,lineNumber:177,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`review__list`,children:v.length===0?(0,j.jsxDEV)(`p`,{className:`column__empty`,children:`Nothing matches this filter.`},void 0,!1,{fileName:Vn,lineNumber:187,columnNumber:11},this):v.map(e=>(0,j.jsxDEV)(Fn,{comment:e,projectDirectory:t,editorScheme:n,focused:e.id===p,expanded:e.id===h,busy:y,onFocus:()=>m(e.id),onToggle:()=>g(t=>t===e.id?void 0:e.id),onDecide:t=>b(e,t),onEdit:(t,n)=>x(e,t,n),onToast:i},e.id,!1,{fileName:Vn,lineNumber:190,columnNumber:13},this))},void 0,!1,{fileName:Vn,lineNumber:185,columnNumber:7},this),(0,j.jsxDEV)(`footer`,{className:`review__foot`,children:[(0,j.jsxDEV)(`span`,{className:`review__gate${ne?` is-ready`:``}`,children:S.label},void 0,!1,{fileName:Vn,lineNumber:209,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:!0,title:e.canPublish?`Coming soon — the review file already carries everything GitLab needs.`:`This review is missing the commit shas a discussion needs to anchor to.`,children:`Publish to GitLab ⋯`},void 0,!1,{fileName:Vn,lineNumber:211,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:!ne||s.isPending,title:ne?void 0:`Stage or discard every comment first.`,onClick:()=>s.mutate(e.slug,{onSuccess:e=>{i(e.guidance,`success`),jt(e.executeLine),r?.(e.session.id)},onError:e=>Gn(e,i)}),children:re?`Close review`:`Plan changes →`},void 0,!1,{fileName:Vn,lineNumber:224,columnNumber:9},this)]},void 0,!0,{fileName:Vn,lineNumber:208,columnNumber:7},this),c.isError&&(0,j.jsxDEV)(`p`,{className:`review__note`,children:c.error.message},void 0,!1,{fileName:Vn,lineNumber:244,columnNumber:27},this)]},void 0,!0,{fileName:Vn,lineNumber:127,columnNumber:5},this)}function Wn(e){return e[0].toUpperCase()+e.slice(1)}function Gn(e,t){if(e instanceof Xt&&e.isNotTriaged){t(`${e.openCount} comment(s) still need a decision.`,`danger`);return}if(e instanceof Xt&&e.isConflict){t(`This review changed on disk — reload before deciding again.`,`danger`);return}t(e instanceof Error?e.message:`That did not work.`,`danger`)}function Kn(e){(0,A.useEffect)(()=>{let t=t=>{if(!e.enabled)return;let n=t.target;if(n&&(n.tagName===`INPUT`||n.tagName===`TEXTAREA`||n.isContentEditable))return;let r=e.comments.findIndex(t=>t.id===e.focusedId),i=t=>{if(e.comments.length===0)return;let n=Math.min(Math.max(r+t,0),e.comments.length-1);e.onFocus(e.comments[n].id)};if(t.shiftKey&&t.key.toLowerCase()===`s`){t.preventDefault(),e.onStageAll();return}if(!(t.metaKey||t.ctrlKey||t.altKey))switch(t.key){case`j`:i(1);return;case`k`:i(-1);return;case`Enter`:e.focusedId&&(t.preventDefault(),e.onToggle(e.focusedId));return;case`s`:e.focusedId&&(t.preventDefault(),e.onDecide(e.focusedId,`staged`));return;case`d`:e.focusedId&&(t.preventDefault(),e.onDecide(e.focusedId,`discarded`));return;case`e`:e.focusedId&&(t.preventDefault(),e.onExpand(e.focusedId));return}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var qn=`modulepreload`,Jn=function(e){return`/`+e},Yn={},Xn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Jn(t,n),t=s(t),t in Yn)return;Yn[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:qn,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},N=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionPage.tsx`,Zn=(0,A.lazy)(()=>Xn(()=>import(`./Editor-B3P_TPOi.js`).then(e=>({default:e.Editor})),[])),Qn=(0,A.lazy)(()=>Xn(()=>import(`./Preview-Co8EGMAS.js`).then(e=>({default:e.Preview})),[])),$n=1200;function er({sessionId:e,mode:t,onModeChange:n,onBack:r,onArchived:i,onOpenSession:a}){let o=Rn(),{data:s,isLoading:c,error:l}=rn(e),{data:u}=tn(),d=on(),f=an(),p=cn(),m=ln(),{data:h}=fn((0,A.useMemo)(()=>s?.reviewFile?On(s.reviewFile):void 0,[s?.reviewFile])),[g,_]=(0,A.useState)(`review`),[v,y]=(0,A.useState)(),[b,x]=(0,A.useState)(!1),ee=(0,A.useRef)(``),te=(0,A.useRef)(null),S=v!==void 0&&s!==void 0&&v!==s.body;(0,A.useEffect)(()=>{if(s&&ee.current!==s.etag){if(v===void 0||v===s.body||ee.current===``){ee.current=s.etag,y(s.body),x(!1);return}x(!0)}},[s,v]);let ne=(0,A.useCallback)((t,n=!1)=>{s&&d.mutate({sessionId:e,body:t,etag:ee.current,force:n},{onSuccess:e=>{ee.current=e.etag,y(e.body),x(!1)},onError:e=>{if(e instanceof Xt&&e.isConflict){x(!0);return}o(e instanceof Error?e.message:`Could not save.`,`danger`)}})},[d,s,e,o]),re=(0,A.useCallback)(()=>{v!==void 0&&S&&ne(v)},[v,S,ne]);(0,A.useEffect)(()=>{if(!(!S||v===void 0||b))return te.current&&clearTimeout(te.current),te.current=setTimeout(()=>ne(v),$n),()=>{te.current&&clearTimeout(te.current)}},[v,S,b,ne]);let ie=(0,A.useMemo)(()=>s?`execute instructions from ${s.path}`:``,[s]);if((0,A.useEffect)(()=>{!s||s.kind!==`review`||_(s.status===`review`?`review`:`plan`)},[s?.id,s?.status,s?.kind]),c)return(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading session…`},void 0,!1,{fileName:N,lineNumber:134,columnNumber:25},this);if(l||!s)return(0,j.jsxDEV)(`div`,{className:`page-state`,children:[(0,j.jsxDEV)(`p`,{children:`This session could not be loaded.`},void 0,!1,{fileName:N,lineNumber:138,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:r,children:`Back to sessions`},void 0,!1,{fileName:N,lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:137,columnNumber:7},this);let C=v??s.body,w=s.kind===`review`,T=!w||g===`plan`;return(0,j.jsxDEV)(`div`,{className:`session`,children:[(0,j.jsxDEV)(`header`,{className:`session__head`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:r,title:`Back (Esc)`,"aria-label":`Back`,children:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,j.jsxDEV)(`path`,{d:`M9.5 3.5 5 8l4.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:N,lineNumber:153,columnNumber:13},this)},void 0,!1,{fileName:N,lineNumber:152,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:151,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`session__identity`,children:[(0,j.jsxDEV)(`h1`,{className:`session__title`,children:s.title},void 0,!1,{fileName:N,lineNumber:159,columnNumber:11},this),(0,j.jsxDEV)(`div`,{className:`session__meta`,children:[(0,j.jsxDEV)(`span`,{title:Ot(s.created),children:[`created `,Dt(s.created)]},void 0,!0,{fileName:N,lineNumber:161,columnNumber:13},this),(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:N,lineNumber:162,columnNumber:13},this),(0,j.jsxDEV)(`span`,{title:Ot(s.updated),children:[`updated `,Dt(s.updated)]},void 0,!0,{fileName:N,lineNumber:163,columnNumber:13},this),S&&(0,j.jsxDEV)(`span`,{className:`session__dirty`,children:`unsaved`},void 0,!1,{fileName:N,lineNumber:164,columnNumber:23},this),d.isPending&&(0,j.jsxDEV)(`span`,{className:`session__saving`,children:`saving…`},void 0,!1,{fileName:N,lineNumber:165,columnNumber:32},this)]},void 0,!0,{fileName:N,lineNumber:160,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:158,columnNumber:9},this),(0,j.jsxDEV)(Ht,{status:s.status,onChange:t=>f.mutate({sessionId:e,status:t},{onError:()=>o(`Could not change the status.`,`danger`)})},void 0,!1,{fileName:N,lineNumber:169,columnNumber:9},this),w&&(0,j.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Session view`,children:[`review`,`plan`].map(e=>(0,j.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":g===e,className:`segmented__item${g===e?` is-active`:``}`,onClick:()=>_(e),children:[e===`review`?`Review`:`Plan`,e===`review`&&h&&h.counts.open>0&&(0,j.jsxDEV)(`span`,{className:`segmented__badge`,children:h.counts.open},void 0,!1,{fileName:N,lineNumber:192,columnNumber:19},this)]},e,!0,{fileName:N,lineNumber:182,columnNumber:15},this))},void 0,!1,{fileName:N,lineNumber:180,columnNumber:11},this),T&&(0,j.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`View mode`,children:[`preview`,`edit`,`split`].map(e=>(0,j.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":t===e,className:`segmented__item${t===e?` is-active`:``}`,onClick:()=>n(e),title:e===`preview`?`Preview (⇧⌘V)`:e===`edit`?`Edit (⇧⌘V)`:`Split`,children:e[0].toUpperCase()+e.slice(1)},e,!1,{fileName:N,lineNumber:202,columnNumber:15},this))},void 0,!1,{fileName:N,lineNumber:200,columnNumber:11},this),(0,j.jsxDEV)(`div`,{className:`session__actions`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:async()=>{o(await jt(ie)?`Execute line copied`:`Could not copy`,`success`)},children:`Copy execute line`},void 0,!1,{fileName:N,lineNumber:218,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{window.confirm(`Archive this session? The file moves to .invariant/sessions/.archive/`)&&p.mutate(e,{onSuccess:()=>{o(`Session archived`,`success`),i()},onError:()=>o(`Could not archive the session.`,`danger`)})},children:`Archive`},void 0,!1,{fileName:N,lineNumber:227,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:217,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:150,columnNumber:7},this),b&&(0,j.jsxDEV)(qt,{onKeepMine:()=>{v!==void 0&&ne(v,!0)},onTakeTheirs:()=>{ee.current=s.etag,y(s.body),x(!1)},onDismiss:()=>x(!1)},void 0,!1,{fileName:N,lineNumber:244,columnNumber:9},this),s.needsMigration&&(0,j.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:`This session has no canonical header.`},void 0,!1,{fileName:N,lineNumber:254,columnNumber:13},this),` `,s.issues[0]]},void 0,!0,{fileName:N,lineNumber:253,columnNumber:11},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>m.mutate(e,{onSuccess:()=>o(`Header migrated`,`success`),onError:()=>o(`Could not migrate the header.`,`danger`)}),children:`Fix header`},void 0,!1,{fileName:N,lineNumber:257,columnNumber:13},this)},void 0,!1,{fileName:N,lineNumber:256,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:252,columnNumber:9},this),!w&&s.status===`executed`&&(0,j.jsxDEV)(xn,{session:s,onOpenSession:a,onToast:o},void 0,!1,{fileName:N,lineNumber:274,columnNumber:9},this),w&&g===`review`?h?(0,j.jsxDEV)(Un,{review:h,projectDirectory:u?.directory,onPlanned:()=>_(`plan`)},void 0,!1,{fileName:N,lineNumber:283,columnNumber:11},this):(0,j.jsxDEV)(`div`,{className:`page-state`,children:`The review document has not been written yet. Paste the execute line into a new agent conversation, and the comments will appear here as soon as it saves them.`},void 0,!1,{fileName:N,lineNumber:289,columnNumber:11},this):(0,j.jsxDEV)(`div`,{className:`session__body session__body--${t}`,children:(0,j.jsxDEV)(A.Suspense,{fallback:(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:N,lineNumber:296,columnNumber:31},this),children:[t!==`preview`&&(0,j.jsxDEV)(Zn,{value:C,onChange:y,onSave:re},void 0,!1,{fileName:N,lineNumber:297,columnNumber:36},this),t!==`edit`&&(0,j.jsxDEV)(Qn,{body:C,withToc:t===`preview`},void 0,!1,{fileName:N,lineNumber:298,columnNumber:33},this)]},void 0,!0,{fileName:N,lineNumber:296,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:295,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:149,columnNumber:5},this)}var tr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Modal.tsx`;function nr({title:e,onClose:t,children:n,footer:r,width:i=560}){let a=(0,A.useRef)(null);return(0,A.useEffect)(()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),t())};return document.addEventListener(`keydown`,e),a.current?.querySelector(`input, textarea, button`)?.focus(),()=>document.removeEventListener(`keydown`,e)},[t]),(0,j.jsxDEV)(`div`,{className:`overlay`,onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,j.jsxDEV)(`div`,{className:`modal`,style:{maxWidth:i},role:`dialog`,"aria-modal":`true`,"aria-label":e,ref:a,children:[(0,j.jsxDEV)(`header`,{className:`modal__header`,children:[(0,j.jsxDEV)(`h2`,{className:`modal__title`,children:e},void 0,!1,{fileName:tr,lineNumber:28,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:t,"aria-label":`Close`,children:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 14 14`,"aria-hidden":`true`,children:(0,j.jsxDEV)(`path`,{d:`M3.5 3.5l7 7M10.5 3.5l-7 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`},void 0,!1,{fileName:tr,lineNumber:31,columnNumber:15},this)},void 0,!1,{fileName:tr,lineNumber:30,columnNumber:13},this)},void 0,!1,{fileName:tr,lineNumber:29,columnNumber:11},this)]},void 0,!0,{fileName:tr,lineNumber:27,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`modal__body`,children:n},void 0,!1,{fileName:tr,lineNumber:35,columnNumber:9},this),r&&(0,j.jsxDEV)(`footer`,{className:`modal__footer`,children:r},void 0,!1,{fileName:tr,lineNumber:36,columnNumber:20},this)]},void 0,!0,{fileName:tr,lineNumber:26,columnNumber:7},this)},void 0,!1,{fileName:tr,lineNumber:25,columnNumber:5},this)}var rr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/NewSessionModal.tsx`;function ir({busy:e,onClose:t,onSubmit:n}){let[r,i]=(0,A.useState)(``),[a,o]=(0,A.useState)(``),[s,c]=(0,A.useState)(!1),l=()=>{let t=r.trim();t.length===0||e||n({prompt:t,context:a.trim()||void 0,full:s||void 0})};return(0,j.jsxDEV)(nr,{title:`New session`,onClose:t,width:620,footer:(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs `,(0,j.jsxDEV)(`code`,{children:`invariant plan`},void 0,!1,{fileName:rr,lineNumber:32,columnNumber:46},this),` in this project`]},void 0,!0,{fileName:rr,lineNumber:32,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:rr,lineNumber:33,columnNumber:11},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:l,disabled:e||r.trim().length===0,children:e?`Creating…`:`Create session ⌘↵`},void 0,!1,{fileName:rr,lineNumber:34,columnNumber:11},this)]},void 0,!0,{fileName:rr,lineNumber:31,columnNumber:9},this),children:[(0,j.jsxDEV)(`label`,{className:`field`,children:[(0,j.jsxDEV)(`span`,{className:`field__label`,children:`Task`},void 0,!1,{fileName:rr,lineNumber:41,columnNumber:9},this),(0,j.jsxDEV)(`textarea`,{className:`field__input field__input--area`,rows:6,value:r,placeholder:`Describe what should be planned and built…`,onChange:e=>i(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),l())}},void 0,!1,{fileName:rr,lineNumber:42,columnNumber:9},this)]},void 0,!0,{fileName:rr,lineNumber:40,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`field-row`,children:[(0,j.jsxDEV)(`label`,{className:`field`,children:[(0,j.jsxDEV)(`span`,{className:`field__label`,children:[`Context `,(0,j.jsxDEV)(`span`,{className:`field__optional`,children:`optional`},void 0,!1,{fileName:rr,lineNumber:56,columnNumber:50},this)]},void 0,!0,{fileName:rr,lineNumber:56,columnNumber:11},this),(0,j.jsxDEV)(`input`,{className:`field__input`,value:a,placeholder:`package/context-name`,onChange:e=>o(e.target.value)},void 0,!1,{fileName:rr,lineNumber:57,columnNumber:11},this)]},void 0,!0,{fileName:rr,lineNumber:55,columnNumber:9},this),(0,j.jsxDEV)(`label`,{className:`checkbox`,children:[(0,j.jsxDEV)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked)},void 0,!1,{fileName:rr,lineNumber:66,columnNumber:11},this),(0,j.jsxDEV)(`span`,{children:[`Inline full instructions (`,(0,j.jsxDEV)(`code`,{children:`--full`},void 0,!1,{fileName:rr,lineNumber:67,columnNumber:43},this),`)`]},void 0,!0,{fileName:rr,lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:rr,lineNumber:65,columnNumber:9},this)]},void 0,!0,{fileName:rr,lineNumber:54,columnNumber:7},this)]},void 0,!0,{fileName:rr,lineNumber:26,columnNumber:5},this)}var P=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewsPage.tsx`;function ar({onOpen:e,onOpenSession:t}){let{data:n,isLoading:r}=dn(),{data:i}=tn();if(r)return(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading reviews…`},void 0,!1,{fileName:P,lineNumber:20,columnNumber:25},this);let a=n?.reviews??[];return a.length===0?(0,j.jsxDEV)(`div`,{className:`empty`,children:[(0,j.jsxDEV)(`h2`,{className:`empty__title`,children:`No reviews yet`},void 0,!1,{fileName:P,lineNumber:27,columnNumber:9},this),(0,j.jsxDEV)(`p`,{className:`empty__text`,children:[`A review is an XML file in `,(0,j.jsxDEV)(`code`,{children:n?.directory??`doc/review`},void 0,!1,{fileName:P,lineNumber:29,columnNumber:38},this),` holding one pass over a branch. Finish a session, then use `,(0,j.jsxDEV)(`strong`,{children:`Request review`},void 0,!1,{fileName:P,lineNumber:30,columnNumber:53},this),` to have a fresh agent read the diff without seeing the plan.`]},void 0,!0,{fileName:P,lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:26,columnNumber:7},this):(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`header`,{className:`topbar`,children:[(0,j.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,j.jsxDEV)(`h1`,{className:`topbar__title`,children:`Reviews`},void 0,!1,{fileName:P,lineNumber:41,columnNumber:11},this),(0,j.jsxDEV)(`span`,{className:`topbar__path`,children:i?.name??n?.directory},void 0,!1,{fileName:P,lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:40,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`topbar__counts`,children:[(0,j.jsxDEV)(`span`,{className:`count count--review`,children:[(0,j.jsxDEV)(`span`,{className:`count__value`,children:n?.awaitingTriage??0},void 0,!1,{fileName:P,lineNumber:46,columnNumber:13},this),(0,j.jsxDEV)(`span`,{className:`count__label`,children:`Awaiting triage`},void 0,!1,{fileName:P,lineNumber:47,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:45,columnNumber:11},this),(0,j.jsxDEV)(`span`,{className:`count count--planned`,children:[(0,j.jsxDEV)(`span`,{className:`count__value`,children:n?.counts.staged??0},void 0,!1,{fileName:P,lineNumber:50,columnNumber:13},this),(0,j.jsxDEV)(`span`,{className:`count__label`,children:`Staged`},void 0,!1,{fileName:P,lineNumber:51,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:49,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:39,columnNumber:7},this),(0,j.jsxDEV)(`div`,{className:`list`,children:(0,j.jsxDEV)(`table`,{className:`list__table`,children:[(0,j.jsxDEV)(`thead`,{children:(0,j.jsxDEV)(`tr`,{children:[(0,j.jsxDEV)(`th`,{scope:`col`,children:`Branch`},void 0,!1,{fileName:P,lineNumber:60,columnNumber:15},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Triage`},void 0,!1,{fileName:P,lineNumber:61,columnNumber:15},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Runs`},void 0,!1,{fileName:P,lineNumber:62,columnNumber:15},this),(0,j.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:P,lineNumber:63,columnNumber:15},this)]},void 0,!0,{fileName:P,lineNumber:59,columnNumber:13},this)},void 0,!1,{fileName:P,lineNumber:58,columnNumber:11},this),(0,j.jsxDEV)(`tbody`,{children:a.map(n=>(0,j.jsxDEV)(`tr`,{onClick:()=>e(n.slug),children:[(0,j.jsxDEV)(`td`,{children:[(0,j.jsxDEV)(`div`,{className:`list__title`,children:n.branch},void 0,!1,{fileName:P,lineNumber:70,columnNumber:19},this),(0,j.jsxDEV)(`div`,{className:`list__excerpt`,children:n.path},void 0,!1,{fileName:P,lineNumber:71,columnNumber:19},this)]},void 0,!0,{fileName:P,lineNumber:69,columnNumber:17},this),(0,j.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,j.jsxDEV)(or,{review:n},void 0,!1,{fileName:P,lineNumber:74,columnNumber:19},this)},void 0,!1,{fileName:P,lineNumber:73,columnNumber:17},this),(0,j.jsxDEV)(`td`,{className:`list__meta`,children:[n.runCount,n.sessionId&&(0,j.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>t(n.sessionId),children:`session`},void 0,!1,{fileName:P,lineNumber:79,columnNumber:21},this)]},void 0,!0,{fileName:P,lineNumber:76,columnNumber:17},this),(0,j.jsxDEV)(`td`,{className:`list__meta`,title:n.updated,children:Dt(n.updated)},void 0,!1,{fileName:P,lineNumber:88,columnNumber:17},this)]},n.slug,!0,{fileName:P,lineNumber:68,columnNumber:15},this))},void 0,!1,{fileName:P,lineNumber:66,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:57,columnNumber:9},this)},void 0,!1,{fileName:P,lineNumber:56,columnNumber:7},this)]},void 0,!0,{fileName:P,lineNumber:38,columnNumber:5},this)}function or({review:e}){return e.counts.open>0?(0,j.jsxDEV)(`span`,{className:`pill pill--review`,children:[e.counts.open,` awaiting`]},void 0,!0,{fileName:P,lineNumber:101,columnNumber:7},this):(0,j.jsxDEV)(`span`,{className:`pill pill--executed`,children:[e.counts.staged,` staged · `,e.counts.discarded,` discarded`]},void 0,!0,{fileName:P,lineNumber:107,columnNumber:5},this)}var sr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPage.tsx`;function cr({slug:e,onBack:t,onOpenSession:n}){let{data:r,isLoading:i,error:a}=fn(e),{data:o}=tn();return i?(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading review…`},void 0,!1,{fileName:sr,lineNumber:21,columnNumber:25},this):a||!r?(0,j.jsxDEV)(`div`,{className:`page-state`,children:[(0,j.jsxDEV)(`p`,{children:`This review could not be loaded.`},void 0,!1,{fileName:sr,lineNumber:25,columnNumber:9},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Back to reviews`},void 0,!1,{fileName:sr,lineNumber:26,columnNumber:9},this)]},void 0,!0,{fileName:sr,lineNumber:24,columnNumber:7},this):(0,j.jsxDEV)(`div`,{className:`session`,children:[(0,j.jsxDEV)(`header`,{className:`session__head`,children:[(0,j.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:t,title:`Back (Esc)`,"aria-label":`Back`,children:(0,j.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,j.jsxDEV)(`path`,{d:`M9.5 3.5 5 8l4.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:sr,lineNumber:36,columnNumber:13},this)},void 0,!1,{fileName:sr,lineNumber:35,columnNumber:11},this)},void 0,!1,{fileName:sr,lineNumber:34,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`session__identity`,children:[(0,j.jsxDEV)(`h1`,{className:`session__title`,children:r.branch},void 0,!1,{fileName:sr,lineNumber:42,columnNumber:11},this),(0,j.jsxDEV)(lr,{review:r,project:o},void 0,!1,{fileName:sr,lineNumber:43,columnNumber:11},this)]},void 0,!0,{fileName:sr,lineNumber:41,columnNumber:9},this),r.sessionId&&(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>n(r.sessionId),children:`Open session`},void 0,!1,{fileName:sr,lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:sr,lineNumber:33,columnNumber:7},this),(0,j.jsxDEV)(Un,{review:r,projectDirectory:o?.directory,onPlanned:n},void 0,!1,{fileName:sr,lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:sr,lineNumber:32,columnNumber:5},this)}function lr({review:e,project:t}){return(0,j.jsxDEV)(`div`,{className:`session__meta`,children:[(0,j.jsxDEV)(`span`,{children:[`base `,e.base]},void 0,!0,{fileName:sr,lineNumber:71,columnNumber:7},this),(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:sr,lineNumber:72,columnNumber:7},this),(0,j.jsxDEV)(`span`,{title:e.scope.baseSha,children:e.scope.baseSha.slice(0,7)},void 0,!1,{fileName:sr,lineNumber:73,columnNumber:7},this),(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`→`},void 0,!1,{fileName:sr,lineNumber:74,columnNumber:7},this),(0,j.jsxDEV)(`span`,{title:e.scope.headSha,children:e.scope.headSha.slice(0,7)},void 0,!1,{fileName:sr,lineNumber:75,columnNumber:7},this),e.runCount>1&&(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:sr,lineNumber:78,columnNumber:11},this),(0,j.jsxDEV)(`span`,{children:[e.runCount,` runs`]},void 0,!0,{fileName:sr,lineNumber:79,columnNumber:11},this)]},void 0,!0,{fileName:sr,lineNumber:77,columnNumber:9},this),t&&(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:sr,lineNumber:84,columnNumber:11},this),(0,j.jsxDEV)(`span`,{children:t.name},void 0,!1,{fileName:sr,lineNumber:85,columnNumber:11},this)]},void 0,!0,{fileName:sr,lineNumber:83,columnNumber:9},this)]},void 0,!0,{fileName:sr,lineNumber:70,columnNumber:5},this)}var ur=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/CommandPalette.tsx`,dr=40;function fr({actions:e,onClose:t}){let[n,r]=(0,A.useState)(``),[i,a]=(0,A.useState)(0),o=(0,A.useRef)(null),s=(0,A.useMemo)(()=>n.trim().length===0?e.slice(0,dr):e.map(e=>({action:e,score:At(`${e.title} ${e.group} ${e.keywords??``}`,n.trim())})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).slice(0,dr).map(e=>e.action),[e,n]);(0,A.useEffect)(()=>{a(0)},[n]),(0,A.useEffect)(()=>{o.current?.querySelector(`[data-active="true"]`)?.scrollIntoView({block:`nearest`})},[i,s]);let c=e=>{if(e.key===`ArrowDown`||e.key===`n`&&e.ctrlKey){e.preventDefault(),a(e=>(e+1)%Math.max(s.length,1));return}if(e.key===`ArrowUp`||e.key===`p`&&e.ctrlKey){e.preventDefault(),a(e=>(e-1+Math.max(s.length,1))%Math.max(s.length,1));return}if(e.key===`Enter`){e.preventDefault();let n=s[i];n&&(t(),n.run());return}e.key===`Escape`&&(e.preventDefault(),t())},l=``;return(0,j.jsxDEV)(`div`,{className:`overlay overlay--top`,onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,j.jsxDEV)(`div`,{className:`palette`,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,j.jsxDEV)(`input`,{className:`palette__input`,autoFocus:!0,value:n,placeholder:`Search sessions and commands…`,onChange:e=>r(e.target.value),onKeyDown:c,"aria-label":`Search sessions and commands`},void 0,!1,{fileName:ur,lineNumber:79,columnNumber:9},this),(0,j.jsxDEV)(`div`,{className:`palette__list`,ref:o,role:`listbox`,children:[s.length===0&&(0,j.jsxDEV)(`p`,{className:`palette__empty`,children:`No matches`},void 0,!1,{fileName:ur,lineNumber:90,columnNumber:36},this),s.map((e,n)=>{let r=e.group===l?void 0:e.group;return l=e.group,(0,j.jsxDEV)(`div`,{children:[r&&(0,j.jsxDEV)(`div`,{className:`palette__group`,children:r},void 0,!1,{fileName:ur,lineNumber:98,columnNumber:28},this),(0,j.jsxDEV)(`button`,{type:`button`,role:`option`,"aria-selected":n===i,"data-active":n===i,className:`palette__item${n===i?` is-active`:``}`,onMouseMove:()=>a(n),onClick:()=>{t(),e.run()},children:[e.status&&(0,j.jsxDEV)(Tt,{status:e.status},void 0,!1,{fileName:ur,lineNumber:108,columnNumber:37},this),(0,j.jsxDEV)(`span`,{className:`palette__title`,children:e.title},void 0,!1,{fileName:ur,lineNumber:109,columnNumber:19},this),e.hint&&(0,j.jsxDEV)(`span`,{className:`palette__hint`,children:e.hint},void 0,!1,{fileName:ur,lineNumber:110,columnNumber:35},this),e.shortcut&&(0,j.jsxDEV)(`kbd`,{className:`palette__shortcut`,children:e.shortcut},void 0,!1,{fileName:ur,lineNumber:111,columnNumber:39},this)]},void 0,!0,{fileName:ur,lineNumber:99,columnNumber:17},this)]},e.id,!0,{fileName:ur,lineNumber:97,columnNumber:15},this)})]},void 0,!0,{fileName:ur,lineNumber:89,columnNumber:9},this),(0,j.jsxDEV)(`footer`,{className:`palette__foot`,children:[(0,j.jsxDEV)(`kbd`,{children:`↑`},void 0,!1,{fileName:ur,lineNumber:119,columnNumber:11},this),(0,j.jsxDEV)(`kbd`,{children:`↓`},void 0,!1,{fileName:ur,lineNumber:119,columnNumber:23},this),` navigate `,(0,j.jsxDEV)(`kbd`,{children:`↵`},void 0,!1,{fileName:ur,lineNumber:119,columnNumber:45},this),` run `,(0,j.jsxDEV)(`kbd`,{children:`esc`},void 0,!1,{fileName:ur,lineNumber:119,columnNumber:62},this),` close`]},void 0,!0,{fileName:ur,lineNumber:118,columnNumber:9},this)]},void 0,!0,{fileName:ur,lineNumber:78,columnNumber:7},this)},void 0,!1,{fileName:ur,lineNumber:77,columnNumber:5},this)}var pr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/ShortcutSheet.tsx`,mr=[{title:`Global`,rows:[[`⌘K`,`Command palette`],[`N`,`New session`],[`⌘B`,`Toggle board / list`],[`/`,`Focus the filter`],[`?`,`This sheet`]]},{title:`Dashboard`,rows:[[`J / K`,`Move between sessions`],[`↵`,`Open the focused session`],[`1 – 4`,`Set status on the focused session (Review is not settable by hand)`]]},{title:`Review triage`,rows:[[`J / K`,`Move between comments`],[`↵`,`Expand the focused comment`],[`S`,`Stage it`],[`D`,`Discard it`],[`E`,`Edit its wording`],[`⇧S`,`Stage everything matching the filter`]]},{title:`Session`,rows:[[`⇧⌘V`,`Toggle preview / edit`],[`S`,`Split view`],[`⌘S`,`Save now`],[`⌘⇧C`,`Copy the execute line`],[`Esc`,`Back to the dashboard`]]}];function hr({onClose:e}){return(0,j.jsxDEV)(nr,{title:`Keyboard shortcuts`,onClose:e,width:520,children:(0,j.jsxDEV)(`div`,{className:`shortcuts`,children:mr.map(e=>(0,j.jsxDEV)(`section`,{className:`shortcuts__group`,children:[(0,j.jsxDEV)(`h3`,{className:`shortcuts__title`,children:e.title},void 0,!1,{fileName:pr,lineNumber:51,columnNumber:13},this),e.rows.map(([e,t])=>(0,j.jsxDEV)(`div`,{className:`shortcuts__row`,children:[(0,j.jsxDEV)(`kbd`,{children:e},void 0,!1,{fileName:pr,lineNumber:54,columnNumber:17},this),(0,j.jsxDEV)(`span`,{children:t},void 0,!1,{fileName:pr,lineNumber:55,columnNumber:17},this)]},e,!0,{fileName:pr,lineNumber:53,columnNumber:15},this))]},e.title,!0,{fileName:pr,lineNumber:50,columnNumber:11},this))},void 0,!1,{fileName:pr,lineNumber:48,columnNumber:7},this)},void 0,!1,{fileName:pr,lineNumber:47,columnNumber:5},this)}function gr(e){if(e===`/`||e===`/sessions`)return{name:`sessions`};let t=e.match(/^\/sessions\/([^/]+)$/);if(t)return{name:`session`,sessionId:decodeURIComponent(t[1])};if(e===`/reviews`)return{name:`reviews`};let n=e.match(/^\/reviews\/([^/]+)$/);return n?{name:`review`,slug:decodeURIComponent(n[1])}:e===`/packages`?{name:`packages`}:{name:`not-found`,path:e}}function _r(e){switch(e.name){case`sessions`:return`/sessions`;case`session`:return`/sessions/${e.sessionId}`;case`reviews`:return`/reviews`;case`review`:return`/reviews/${e.slug}`;case`packages`:return`/packages`;default:return`/`}}function vr(){let[e,t]=(0,A.useState)(()=>gr(window.location.pathname));return(0,A.useEffect)(()=>{let e=()=>t(gr(window.location.pathname));return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),{route:e,navigate:(0,A.useCallback)(e=>{let n=_r(e);n!==window.location.pathname&&window.history.pushState({},``,n),t(e)},[]),back:(0,A.useCallback)(()=>window.history.back(),[])}}var F=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/App.tsx`;function yr(){let e=Rn(),t=yn(),{route:n,navigate:r}=vr(),{data:i}=tn(),{data:a,isLoading:o}=nn(),s=an(),c=sn(),l=ln(),u=gn(),{data:d}=dn(),{data:f}=un(),[p,m]=(0,A.useState)(`board`),[h,g]=(0,A.useState)(`preview`),[_,v]=(0,A.useState)(``),[y,b]=(0,A.useState)(),[x,ee]=(0,A.useState)(!1),[te,S]=(0,A.useState)(!1),[ne,re]=(0,A.useState)(!1),ie=(0,A.useMemo)(()=>a?.sessions??[],[a]),C=(0,A.useMemo)(()=>{let e=_.trim();return e.length===0?ie:ie.map(t=>({session:t,score:At(`${t.title} ${t.excerpt} ${t.tags.join(` `)}`,e)})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).map(e=>e.session)},[ie,_]),w=(0,A.useCallback)(e=>{b(e),r({name:`session`,sessionId:e})},[r]),T=(0,A.useCallback)(e=>r({name:`review`,slug:e}),[r]),ae=(0,A.useCallback)(t=>{u.mutate({sessionId:t},{onSuccess:async t=>{await jt(t.executeLine),e(t.guidance,`success`),w(t.session.id)},onError:t=>e(t instanceof Error?t.message:`Could not create the review.`,`danger`)})},[u,w,e]),oe=(0,A.useCallback)((t,n)=>{s.mutate({sessionId:t,status:n},{onError:()=>e(`Could not change the status.`,`danger`),onSuccess:t=>{t.status===`executed`&&t.kind!==`review`&&(t.reviewSessionIds.length>0||f&&!f.canReview||e(`Marked done — request a review from the session page.`,`info`))}})},[s,e,f]),E=(0,A.useCallback)(t=>{c.mutate(t,{onSuccess:async t=>{S(!1),await jt(t.executeLine),e(`Session created — execute line copied`,`success`),g(`edit`),w(t.session.id)},onError:t=>e(t instanceof Error?t.message:`Could not create the session.`,`danger`)})},[c,w,e]),se=xr({sessions:ie,route:n,view:p,project:i?.directory,onOpenSession:w,onChangeStatus:oe,onNew:()=>S(!0),onToggleView:()=>m(e=>e===`board`?`list`:`board`),onSetMode:g,onShortcuts:()=>re(!0),onMigrateAll:()=>l.mutate(void 0,{onSuccess:t=>e(`Migrated ${t.migrated.length} session(s)`,`success`),onError:()=>e(`Could not migrate headers.`,`danger`)}),onGoToSessions:()=>r({name:`sessions`}),onGoToReviews:()=>r({name:`reviews`}),onOpenReview:T,onRequestReview:ae,reviews:d?.reviews??[],canReview:f?.canReview??!1,onStop:async()=>{window.confirm(`Stop this UI server? The page will stop responding.`)&&(await $t.shutdown().catch(()=>void 0),e(`UI stopping…`,`info`))},toast:e});return Cr({enabled:!te&&!ne,paletteOpen:x,onPalette:()=>ee(e=>!e),onNew:()=>S(!0),onToggleView:()=>m(e=>e===`board`?`list`:`board`),onShortcuts:()=>re(!0),onFilter:()=>document.querySelector(`.filter__input`)?.focus(),onTogglePreview:()=>g(e=>e===`edit`?`preview`:`edit`),onSplit:()=>g(`split`),onEscape:()=>{n.name===`session`?r({name:`sessions`}):n.name===`review`&&r({name:`reviews`})},onMove:e=>{if(n.name!==`sessions`||C.length===0)return;let t=C.findIndex(e=>e.id===y),r=t===-1?0:Math.min(Math.max(t+e,0),C.length-1);b(C[r].id)},onOpenFocused:()=>{n.name===`sessions`&&y&&w(y)},onStatusDigit:e=>{let t=Rt[e],r=n.name===`session`?n.sessionId:y;t&&r&&oe(r,t)},isSessionRoute:n.name===`session`}),(0,j.jsxDEV)(`div`,{className:`app`,children:[(0,j.jsxDEV)(Ct,{route:n,onNavigate:r,onOpenPalette:()=>ee(!0),live:t},void 0,!1,{fileName:F,lineNumber:201,columnNumber:7},this),(0,j.jsxDEV)(`main`,{className:`main`,children:n.name===`session`?(0,j.jsxDEV)(er,{sessionId:n.sessionId,mode:h,onModeChange:g,onBack:()=>r({name:`sessions`}),onArchived:()=>r({name:`sessions`}),onOpenSession:w},void 0,!1,{fileName:F,lineNumber:205,columnNumber:11},this):n.name===`reviews`?(0,j.jsxDEV)(ar,{onOpen:T,onOpenSession:w},void 0,!1,{fileName:F,lineNumber:214,columnNumber:11},this):n.name===`review`?(0,j.jsxDEV)(cr,{slug:n.slug,onBack:()=>r({name:`reviews`}),onOpenSession:w},void 0,!1,{fileName:F,lineNumber:216,columnNumber:11},this):n.name===`packages`?(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Packages management is coming soon.`},void 0,!1,{fileName:F,lineNumber:222,columnNumber:11},this):(0,j.jsxDEV)(j.Fragment,{children:[(0,j.jsxDEV)(`header`,{className:`topbar`,children:[(0,j.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,j.jsxDEV)(`h1`,{className:`topbar__title`,children:i?.name??`Sessions`},void 0,!1,{fileName:F,lineNumber:227,columnNumber:17},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`topbar__path`,title:i?`${i.directory} — click to copy`:void 0,onClick:async()=>{i&&e(await jt(i.directory)?`Path copied`:`Could not copy`,`success`)},children:i?Mt(i.directory):``},void 0,!1,{fileName:F,lineNumber:228,columnNumber:17},this)]},void 0,!0,{fileName:F,lineNumber:226,columnNumber:15},this),(0,j.jsxDEV)(`div`,{className:`topbar__counts`,children:It.map(e=>(0,j.jsxDEV)(`span`,{className:`count count--${e}`,children:[(0,j.jsxDEV)(`span`,{className:`count__value`,children:a?.counts[e]??0},void 0,!1,{fileName:F,lineNumber:245,columnNumber:21},this),(0,j.jsxDEV)(`span`,{className:`count__label`,children:Lt[e]},void 0,!1,{fileName:F,lineNumber:246,columnNumber:21},this)]},e,!0,{fileName:F,lineNumber:244,columnNumber:19},this))},void 0,!1,{fileName:F,lineNumber:242,columnNumber:15},this),(0,j.jsxDEV)(`div`,{className:`filter`,children:(0,j.jsxDEV)(`input`,{className:`filter__input`,value:_,placeholder:`Filter… /`,onChange:e=>v(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(v(``),e.currentTarget.blur())},"aria-label":`Filter sessions`},void 0,!1,{fileName:F,lineNumber:252,columnNumber:17},this)},void 0,!1,{fileName:F,lineNumber:251,columnNumber:15},this),(0,j.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Layout`,children:[`board`,`list`].map(e=>(0,j.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":p===e,className:`segmented__item${p===e?` is-active`:``}`,onClick:()=>m(e),children:e===`board`?`Board`:`List`},e,!1,{fileName:F,lineNumber:264,columnNumber:19},this))},void 0,!1,{fileName:F,lineNumber:262,columnNumber:15},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>S(!0),children:`New session`},void 0,!1,{fileName:F,lineNumber:277,columnNumber:15},this)]},void 0,!0,{fileName:F,lineNumber:225,columnNumber:13},this),a&&a.needingMigration>0&&(0,j.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,j.jsxDEV)(`div`,{className:`banner__text`,children:[(0,j.jsxDEV)(`strong`,{children:[a.needingMigration,` session(s)`]},void 0,!0,{fileName:F,lineNumber:285,columnNumber:19},this),` have no canonical `,(0,j.jsxDEV)(`code`,{children:`<session-meta>`},void 0,!1,{fileName:F,lineNumber:285,columnNumber:89},this),` header.`]},void 0,!0,{fileName:F,lineNumber:284,columnNumber:17},this),(0,j.jsxDEV)(`div`,{className:`banner__actions`,children:(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>l.mutate(void 0,{onSuccess:t=>e(`Migrated ${t.migrated.length} session(s)`,`success`),onError:()=>e(`Could not migrate headers.`,`danger`)}),children:`Migrate all`},void 0,!1,{fileName:F,lineNumber:288,columnNumber:19},this)},void 0,!1,{fileName:F,lineNumber:287,columnNumber:17},this)]},void 0,!0,{fileName:F,lineNumber:283,columnNumber:15},this),o?(0,j.jsxDEV)(`div`,{className:`page-state`,children:`Loading sessions…`},void 0,!1,{fileName:F,lineNumber:305,columnNumber:15},this):ie.length===0?(0,j.jsxDEV)(br,{onNew:()=>S(!0)},void 0,!1,{fileName:F,lineNumber:307,columnNumber:15},this):(0,j.jsxDEV)(Ut,{sessions:C,view:p,filter:_,focusedId:y,onFocus:b,onOpen:w,onStatusChange:oe,onNew:()=>S(!0),onRefuseDrop:t=>e(t,`info`)},void 0,!1,{fileName:F,lineNumber:309,columnNumber:15},this)]},void 0,!0,{fileName:F,lineNumber:224,columnNumber:11},this)},void 0,!1,{fileName:F,lineNumber:203,columnNumber:7},this),x&&(0,j.jsxDEV)(fr,{actions:se,onClose:()=>ee(!1)},void 0,!1,{fileName:F,lineNumber:325,columnNumber:23},this),te&&(0,j.jsxDEV)(ir,{busy:c.isPending,onClose:()=>S(!1),onSubmit:E},void 0,!1,{fileName:F,lineNumber:327,columnNumber:9},this),ne&&(0,j.jsxDEV)(hr,{onClose:()=>re(!1)},void 0,!1,{fileName:F,lineNumber:329,columnNumber:25},this)]},void 0,!0,{fileName:F,lineNumber:200,columnNumber:5},this)}function br({onNew:e}){return(0,j.jsxDEV)(`div`,{className:`empty`,children:[(0,j.jsxDEV)(`h2`,{className:`empty__title`,children:`No sessions yet`},void 0,!1,{fileName:F,lineNumber:337,columnNumber:7},this),(0,j.jsxDEV)(`p`,{className:`empty__text`,children:[`A session is a markdown file in `,(0,j.jsxDEV)(`code`,{children:`.invariant/sessions`},void 0,!1,{fileName:F,lineNumber:339,columnNumber:41},this),` holding one task, its plan, and its status. Create one here, then paste its execute line into your agent.`]},void 0,!0,{fileName:F,lineNumber:338,columnNumber:7},this),(0,j.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:e,children:`New session`},void 0,!1,{fileName:F,lineNumber:342,columnNumber:7},this)]},void 0,!0,{fileName:F,lineNumber:336,columnNumber:5},this)}function xr(e){return(0,A.useMemo)(()=>{let t=e.route,n=t.name===`session`?e.sessions.find(e=>e.id===t.sessionId):void 0,r=[{id:`new`,group:`Actions`,title:`New session…`,shortcut:`N`,run:e.onNew},{id:`view`,group:`Actions`,title:`Switch to ${e.view===`board`?`list`:`board`} view`,shortcut:`⌘B`,run:e.onToggleView},{id:`go-sessions`,group:`Actions`,title:`Go to sessions`,keywords:`dashboard home`,run:e.onGoToSessions},{id:`go-reviews`,group:`Actions`,title:`Go to reviews`,keywords:`review comments triage`,run:e.onGoToReviews},{id:`migrate`,group:`Actions`,title:`Migrate all session headers`,keywords:`fix header meta`,run:e.onMigrateAll},{id:`shortcuts`,group:`Actions`,title:`Keyboard shortcuts`,shortcut:`?`,run:e.onShortcuts},{id:`stop`,group:`Actions`,title:`Stop this UI server`,keywords:`quit shutdown exit`,run:e.onStop}];if(e.project&&r.push({id:`copy-project`,group:`Actions`,title:`Copy project path`,hint:e.project,run:async()=>{e.toast(await jt(e.project)?`Path copied`:`Could not copy`,`success`)}}),n){r.push({id:`mode-preview`,group:`This session`,title:`Preview`,shortcut:`⇧⌘V`,run:()=>e.onSetMode(`preview`)},{id:`mode-edit`,group:`This session`,title:`Edit`,shortcut:`⇧⌘V`,run:()=>e.onSetMode(`edit`)},{id:`mode-split`,group:`This session`,title:`Split`,shortcut:`S`,run:()=>e.onSetMode(`split`)}),n.kind===`plan`&&n.status===`executed`&&e.canReview&&r.push({id:`request-review`,group:`This session`,title:`Request review`,keywords:`diff branch code review`,run:()=>e.onRequestReview(n.id)}),n.reviewFile&&r.push({id:`open-review-file`,group:`This session`,title:`Open the review document`,hint:n.reviewFile,run:()=>e.onOpenReview(On(n.reviewFile))});for(let t of Rt)t!==n.status&&r.push({id:`status-${t}`,group:`This session`,title:`Set status: ${Lt[t]}`,status:t,run:()=>e.onChangeStatus(n.id,t)})}for(let t of e.reviews)r.push({id:`open-review-${t.slug}`,group:`Go to review`,title:t.branch,hint:t.counts.open>0?`${t.counts.open} awaiting triage`:`${t.counts.staged} staged`,keywords:`${t.path} review comments`,run:()=>e.onOpenReview(t.slug)});for(let t of e.sessions)r.push({id:`open-${t.id}`,group:`Go to session`,title:t.title,hint:Lt[t.status],status:t.status,keywords:`${t.excerpt} ${t.tags.join(` `)}`,run:()=>e.onOpenSession(t.id)});return r},[e])}function Sr(e){let t=e;return t?t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable||t.closest(`.cm-editor`)!==null:!1}function Cr(e){(0,A.useEffect)(()=>{let t=t=>{let n=t.metaKey||t.ctrlKey;if(n&&t.key.toLowerCase()===`k`){t.preventDefault(),e.onPalette();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`v`){t.preventDefault(),e.onTogglePreview();return}if(!(!e.enabled||e.paletteOpen)){if(n&&t.key.toLowerCase()===`b`){t.preventDefault(),e.onToggleView();return}if(t.key===`Escape`&&!Sr(t.target)){e.onEscape();return}if(!Sr(t.target))switch(t.key){case`n`:t.preventDefault(),e.onNew();return;case`/`:t.preventDefault(),e.onFilter();return;case`?`:t.preventDefault(),e.onShortcuts();return;case`j`:e.onMove(1);return;case`k`:e.onMove(-1);return;case`ArrowDown`:e.isSessionRoute||(t.preventDefault(),e.onMove(1));return;case`ArrowUp`:e.isSessionRoute||(t.preventDefault(),e.onMove(-1));return;case`Enter`:e.isSessionRoute||e.onOpenFocused();return;case`e`:e.isSessionRoute&&e.onTogglePreview();return;case`p`:e.isSessionRoute&&e.onTogglePreview();return;case`s`:e.isSessionRoute&&e.onSplit();return;case`1`:case`2`:case`3`:case`4`:e.onStatusDigit(Number(t.key)-1);return}}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var wr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/main.tsx`,Tr=new Xe({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:5e3}}});(0,bt.createRoot)(document.getElementById(`root`)).render((0,j.jsxDEV)(A.StrictMode,{children:(0,j.jsxDEV)(nt,{client:Tr,children:(0,j.jsxDEV)(Bn,{children:(0,j.jsxDEV)(yr,{},void 0,!1,{fileName:wr,lineNumber:26,columnNumber:9},void 0)},void 0,!1,{fileName:wr,lineNumber:25,columnNumber:7},void 0)},void 0,!1,{fileName:wr,lineNumber:24,columnNumber:5},void 0)},void 0,!1,{fileName:wr,lineNumber:23,columnNumber:3},void 0));export{l as a,s as i,d as n,o as r,yt as t};
|