@invariant.guru/cli 0.8.0 → 0.8.1

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.
@@ -1,253 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o(((e,t)=>{(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=Se&&e[Se]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;Ce[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),Ce[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=Te,this.updater=n||we}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=Te,this.updater=n||we}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Oe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case de:return`Fragment`;case pe:return`Profiler`;case fe:return`StrictMode`;case _e:return`Suspense`;case ve:return`SuspenseList`;case xe: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 ue:return`Portal`;case he:return e.displayName||`Context`;case me:return(e._context.displayName||`Context`)+`.Consumer`;case ge:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ye:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case be:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===de)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===be)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=D.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(ke.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){je||(je=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function _(){var e=d(this.type);return Ne[e]||(Ne[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:le,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===be&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===le}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function te(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),ee(``+e.key)):t.toString(36)}function ne(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function re(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case le:case ue:s=!0;break;case be:return s=e._init,re(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+te(s,0):i;return De(a)?(n=``,c!=null&&(n=c.replace(Le,`$&/`)+`/`),re(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(Le,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,De(e))for(var l=0;l<e.length;l++)i=e[l],o=c+te(i,l),s+=re(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(Ie||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Ie=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+te(i,l++),s+=re(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return re(ne(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function ie(e,t,n){if(e==null)return e;var r=[],i=0;return re(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
-
3
- Your code should look like:
4
- const MyComponent = lazy(() => import('./MyComponent'))
5
-
6
- Did you accidentally put curly braces around the import?`,t),`default`in t||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
-
8
- Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,t),t.default;throw e._result}function S(){var e=D.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
- 2. You might be breaking the Rules of Hooks
12
- 3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function oe(){D.asyncTransitions--}function C(e){if(Be===null)try{var n=(`require`+Math.random()).slice(0,7);Be=(t&&t[n]).call(t,`timers`).setImmediate}catch{Be=function(e){!1===ze&&(ze=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Be(e)}function w(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function se(e,t){t!==Ve-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Ve=t}function T(e,t,n){var r=D.actQueue;if(r!==null){if(r.length!==0)try{ce(r),C(function(){return T(e,t,n)});return}catch(e){D.thrownErrors.push(e)}else D.actQueue=null}0<D.thrownErrors.length?(r=w(D.thrownErrors),D.thrownErrors.length=0,n(r)):t(e)}function ce(e){if(!Ue){Ue=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{D.didUsePromise=!1;var r=n(!1);if(r!==null){if(D.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),D.thrownErrors.push(n)}finally{Ue=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var le=Symbol.for(`react.transitional.element`),ue=Symbol.for(`react.portal`),de=Symbol.for(`react.fragment`),fe=Symbol.for(`react.strict_mode`),pe=Symbol.for(`react.profiler`),me=Symbol.for(`react.consumer`),he=Symbol.for(`react.context`),ge=Symbol.for(`react.forward_ref`),_e=Symbol.for(`react.suspense`),ve=Symbol.for(`react.suspense_list`),ye=Symbol.for(`react.memo`),be=Symbol.for(`react.lazy`),xe=Symbol.for(`react.activity`),Se=Symbol.iterator,Ce={},we={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},E=Object.assign,Te={};Object.freeze(Te),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var Ee={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(Ge in Ee)Ee.hasOwnProperty(Ge)&&n(Ge,Ee[Ge]);o.prototype=a.prototype,Ee=s.prototype=new o,Ee.constructor=s,E(Ee,a.prototype),Ee.isPureReactComponent=!0;var De=Array.isArray,Oe=Symbol.for(`react.client.reference`),D={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ke=Object.prototype.hasOwnProperty,Ae=console.createTask?console.createTask:function(){return null};Ee={react_stack_bottom_frame:function(e){return e()}};var je,Me,Ne={},Pe=Ee.react_stack_bottom_frame.bind(Ee,m)(),Fe=Ae(f(m)),Ie=!1,Le=/\/+/g,Re=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ze=!1,Be=null,Ve=0,He=!1,Ue=!1,We=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:C;Ee=Object.freeze({__proto__:null,c:function(e){return S().useMemoCache(e)}});var Ge={map:ie,forEach:function(e,t,n){ie(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ie(e,function(){t++}),t},toArray:function(e){return ie(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=xe,e.Children=Ge,e.Component=a,e.Fragment=de,e.Profiler=pe,e.PureComponent=s,e.StrictMode=fe,e.Suspense=_e,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,e.__COMPILER_RUNTIME=Ee,e.act=function(e){var t=D.actQueue,n=Ve;Ve++;var r=D.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){D.thrownErrors.push(e)}if(0<D.thrownErrors.length)throw se(t,n),e=w(D.thrownErrors),D.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return We(function(){i||He||(He=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(se(t,n),n===0){try{ce(r),C(function(){return T(i,e,a)})}catch(e){D.thrownErrors.push(e)}if(0<D.thrownErrors.length){var o=w(D.thrownErrors);D.thrownErrors.length=0,a(o)}}else e(i)},function(e){se(t,n),0<D.thrownErrors.length?(e=w(D.thrownErrors),D.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(se(t,n),n===0&&(ce(r),r.length!==0&&We(function(){i||He||(He=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),D.actQueue=null),0<D.thrownErrors.length)throw e=w(D.thrownErrors),D.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(D.actQueue=r,C(function(){return T(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=D.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=E({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(ke.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!ke.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:he,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:me,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in Me||!(`__self`in t)||`key`in t||(Me=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)ke.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>D.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):Pe,c?Ae(f(e)):Fe)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===ye?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:ge,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:be,_payload:e,_init:ae},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:ye,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=D.T,n={};n._updatedFibers=new Set,D.T=n;try{var r=e(),i=D.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(D.asyncTransitions++,r.then(oe,oe),r.then(c,Re))}catch(e){Re(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),D.T=t}},e.unstable_useCacheRefresh=function(){return S().useCacheRefresh()},e.use=function(e){return S().use(e)},e.useActionState=function(e,t,n){return S().useActionState(e,t,n)},e.useCallback=function(e,t){return S().useCallback(e,t)},e.useContext=function(e){var t=S();return e.$$typeof===me&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return S().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return S().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),S().useEffect(e,t)},e.useEffectEvent=function(e){return S().useEffectEvent(e)},e.useId=function(){return S().useId()},e.useImperativeHandle=function(e,t,n){return S().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),S().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),S().useLayoutEffect(e,t)},e.useMemo=function(e,t){return S().useMemo(e,t)},e.useOptimistic=function(e,t){return S().useOptimistic(e,t)},e.useReducer=function(e,t,n){return S().useReducer(e,t,n)},e.useRef=function(e){return S().useRef(e)},e.useState=function(e){return S().useState(e)},e.useSyncExternalStore=function(e,t,n){return S().useSyncExternalStore(e,t,n)},e.useTransition=function(){return S().useTransition()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{(function(){function t(){if(x=!1,re){var t=e.unstable_now();S=t;var n=!0;try{a:{y=!1,b&&(b=!1,te(ie),ie=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?oe():re=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y){if(r(p)!==null)y=!0,re||(re=!0,oe());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}}function c(){return x?!0:!(e.unstable_now()-S<ae)}function l(t,n){ie=ee(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,x=!1,ee=typeof setTimeout==`function`?setTimeout:null,te=typeof clearTimeout==`function`?clearTimeout:null,ne=typeof setImmediate<`u`?setImmediate:null,re=!1,ie=-1,ae=5,S=-1;if(typeof ne==`function`)var oe=function(){ne(t)};else if(typeof MessageChannel<`u`){var C=new MessageChannel,w=C.port2;C.port1.onmessage=t,oe=function(){w.postMessage(null)}}else oe=function(){ee(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ae=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(te(ie),ie=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,re||(re=!0,oe()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=f.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
- 2. You might be breaking the Rules of Hooks
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=Wf(e)?e.slice():Ef({},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=Wf(e)?e.slice():Ef({},e);return r+1===t.length?(o[n[r]]=o[a],Wf(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=Wf(e)?e.slice():Ef({},e);return n+1===t.length?(Wf(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 yr(e,t,n,r)}function _(e,t){e.context===Ng&&(Xd(e.current,2,t,e,null,null),el())}function v(e,t){if(Pg!==null){var n=t.staleFamilies;t=t.updatedFamilies,El(),vr(e.current,t,n),el()}}function y(e){Pg=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 ne(e){if(x(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function re(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 ne(i),e;if(a===r)return ne(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 ie(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ie(e),t!==null)return t;e=e.sibling}return null}function ae(e){return typeof e!=`object`||!e?null:(e=Hf&&e[Hf]||e[`@@iterator`],typeof e==`function`?e:null)}function S(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Uf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Af:return`Fragment`;case Mf:return`Profiler`;case jf:return`StrictMode`;case If:return`Suspense`;case Lf:return`SuspenseList`;case Bf: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 kf:return`Portal`;case Pf:return e.displayName||`Context`;case Nf:return(e._context.displayName||`Context`)+`.Consumer`;case Ff:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Rf:return t=e.displayName||null,t===null?S(e.type)||`Memo`:t;case zf:t=e._payload,e=e._init;try{return S(e(t))}catch{}}return null}function oe(e){return typeof e.tag==`number`?C(e):typeof e.name==`string`?e.name:null}function C(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 S(t);case 8:return t===jf?`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 C(e.return)}return null}function w(e){return{current:e}}function se(e,t){0>Yf?console.error(`Unexpected pop.`):(t!==Jf[Yf]&&console.error(`Unexpected Fiber popped.`),e.current=qf[Yf],qf[Yf]=null,Jf[Yf]=null,Yf--)}function T(e,t,n){Yf++,qf[Yf]=e.current,Jf[Yf]=n,e.current=t}function ce(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 le(e,t){T(Qf,t,e),T(Zf,e,e),T(Xf,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Iu(t):US;break;default:if(n=t.tagName,t=t.namespaceURI)t=Iu(t),t=Lu(t,n);else switch(n){case`svg`:t=WS;break;case`math`:t=GS;break;default:t=US}}n=n.toLowerCase(),n=Ut(null,n),n={context:t,ancestorInfo:n},se(Xf,e),T(Xf,n,e)}function ue(e){se(Xf,e),se(Zf,e),se(Qf,e)}function de(){return ce(Xf.current)}function fe(e){e.memoizedState!==null&&T($f,e,e);var t=ce(Xf.current),n=e.type,r=Lu(t.context,n);n=Ut(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(T(Zf,e,e),T(Xf,r,e))}function pe(e){Zf.current===e&&(se(Xf,e),se(Zf,e)),$f.current===e&&(se($f,e),bC._currentValue=yC)}function me(){}function he(){if(ep===0){tp=console.log,np=console.info,rp=console.warn,ip=console.error,ap=console.group,op=console.groupCollapsed,sp=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ep++}function ge(){if(ep--,ep===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ef({},e,{value:tp}),info:Ef({},e,{value:np}),warn:Ef({},e,{value:rp}),error:Ef({},e,{value:ip}),group:Ef({},e,{value:ap}),groupCollapsed:Ef({},e,{value:op}),groupEnd:Ef({},e,{value:sp})})}0>ep&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function _e(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
18
- `)&&(e=e.slice(29)),t=e.indexOf(`
19
- `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
20
- `,t)),t!==-1)e=e.slice(0,t);else return``;return e}function ve(e){if(cp===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);cp=t&&t[1]||``,lp=-1<e.stack.indexOf(`
21
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
22
- `+cp+e+lp}function ye(e,t){if(!e||up)return``;var n=dp.get(e);if(n!==void 0)return n;up=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=W.H,W.H=null,he();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
23
- `),u=c.split(`
24
- `);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
25
- `+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&dp.set(e,d),d}while(1<=a&&0<=o);break}}}finally{up=!1,W.H=r,ge(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?ve(l):``,typeof e==`function`&&dp.set(e,l),l}function be(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve(`Lazy`);case 13:return e.child!==t&&t!==null?ve(`Suspense Fallback`):ve(`Suspense`);case 19:return ve(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return ve(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do{t+=be(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=_e(l),d=u.lastIndexOf(`
26
- `),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
27
- `+f;break a}}p=ve(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
28
- Error generating stack: `+e.message+`
29
- `+e.stack}}function Se(e){return(e=e?e.displayName||e.name:``)?ve(e):``}function Ce(){if(fp===null)return null;var e=fp._debugOwner;return e==null?null:oe(e)}function we(){if(fp===null)return``;var e=fp;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=ve(e.type);break;case 13:t+=ve(`Suspense`);break;case 19:t+=ve(`SuspenseList`);break;case 31:t+=ve(`Activity`);break;case 30:case 0:case 15:case 1:e._debugOwner||t!==``||(t+=Se(e.type));break;case 11:e._debugOwner||t!==``||(t+=Se(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=_e(r);i!==``&&(t+=`
30
- `+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
31
- `+_e(a))}else break;var o=t}catch(e){o=`
32
- Error generating stack: `+e.message+`
33
- `+e.stack}return o}function E(e,t,n,r,i,a,o){var s=fp;Te(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{Te(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function Te(e){W.getCurrentStack=e===null?null:we,pp=!1,fp=e}function Ee(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function De(e){try{return Oe(e),!1}catch{return!0}}function Oe(e){return``+e}function D(e,t){if(De(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ee(e)),Oe(e)}function ke(e,t){if(De(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ee(e)),Oe(e)}function Ae(e){if(De(e))return console.error(`Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.`,Ee(e)),Oe(e)}function je(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Op=t.inject(e),kp=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function Me(e){if(typeof Ep==`function`&&Dp(e),kp&&typeof kp.setStrictMode==`function`)try{kp.setStrictMode(Op,e)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function Ne(e){return e>>>=0,e===0?32:31-(Np(e)/Pp|0)|0}function Pe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(`Should have found matching lanes. This is a bug in React.`),e}}function Fe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Pe(n))):i=Pe(o):i=Pe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Pe(n))):i=Pe(o)):i=Pe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ie(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Le(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function Re(){var e=Lp;return Lp<<=1,!(Lp&62914560)&&(Lp=4194304),e}function ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Be(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ve(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Mp(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&He(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function He(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Mp(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mp(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function We(e,t){var n=t&-t;return n=n&42?1:Ge(n),(n&(e.suspendedLanes|t))===0?n:0}function Ge(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ke(e,t,n){if(jp)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Mp(n),i=1<<r;e[r].add(t),n&=~i}}function qe(e,t){if(jp)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Mp(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function Je(e){return e&=-e,Rp!==0&&Rp<e?zp!==0&&zp<e?e&134217727?Bp:Vp:zp:Rp}function Ye(){var e=Gf.p;return e===0?(e=window.event,e===void 0?Bp:cf(e.type)):e}function Xe(e,t){var n=Gf.p;try{return Gf.p=e,t()}finally{Gf.p=n}}function Ze(e){delete e[Up],delete e[Wp],delete e[Kp],delete e[qp],delete e[Jp]}function Qe(e){var t=e[Up];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gp]||n[Up]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_d(e);e!==null;){if(n=e[Up])return n;e=_d(e)}return t}e=n,n=e.parentNode}return null}function $e(e){if(e=e[Up]||e[Gp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function O(e){var t=e[Yp];return t||=e[Yp]={hoistableStyles:new Map,hoistableScripts:new Map},t}function tt(e){e[Xp]=!0}function nt(e,t){k(e,t),k(e+`Capture`,t)}function k(e,t){Qp[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Qp[e]=t;var n=e.toLowerCase();for($p[n]=e,e===`onDoubleClick`&&($p.ondblclick=e),e=0;e<t.length;e++)Zp.add(t[e])}function rt(e,t){em[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function it(e){return mp.call(rm,e)?!0:mp.call(nm,e)?!1:tm.test(e)?rm[e]=!0:(nm[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function at(e,t,n){if(it(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===``&&!0===n||(D(n,t),e===``+n?n:e)}}function ot(e,t,n){if(it(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}D(n,t),e.setAttribute(t,``+n)}}}function st(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}D(n,t),e.setAttribute(t,``+n)}}function ct(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}D(r,n),e.setAttributeNS(t,n,``+r)}}function lt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return Ae(e),e;default:return``}}function ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function dt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){Ae(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){Ae(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ft(e){if(!e._valueTracker){var t=ut(e)?`checked`:`value`;e._valueTracker=dt(e,t,``+e[t])}}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ut(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function mt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ht(e){return e.replace(im,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function gt(e,t){t.checked===void 0||t.defaultChecked===void 0||om||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,Ce()||`A component`,t.type),om=!0),t.value===void 0||t.defaultValue===void 0||am||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,Ce()||`A component`,t.type),am=!0)}function _t(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(D(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+lt(t)):e.value!==``+lt(t)&&(e.value=``+lt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):yt(e,o,lt(n)):yt(e,o,lt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(D(s,`name`),e.name=``+lt(s)):e.removeAttribute(`name`)}function vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(D(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){ft(e);return}n=n==null?``:``+lt(n),t=t==null?n:``+lt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(D(o,`name`),e.name=o),ft(e)}function yt(e,t,n){t===`number`&&mt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function bt(e,t){t.value??(typeof t.children==`object`&&t.children!==null?wf.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||cm||(cm=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||lm||(lm=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||sm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),sm=!0)}function xt(){var e=Ce();return e?`
34
-
35
- Check the render method of \``+e+"`.":``}function St(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ct(e,t){for(e=0;e<dm.length;e++){var n=dm[e];if(t[n]!=null){var r=Wf(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,xt()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,xt())}}t.value===void 0||t.defaultValue===void 0||um||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),um=!0)}function A(e,t){t.value===void 0||t.defaultValue===void 0||fm||(console.error(`%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`,Ce()||`A component`),fm=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function wt(e,t,n){if(t!=null&&(t=``+lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+lt(n)}function Tt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Wf(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=lt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),ft(e)}function Et(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Et(e.children[0],t):e}function Dt(e){return` `+` `.repeat(e)}function Ot(e){return`+ `+` `.repeat(e)}function kt(e){return`- `+` `.repeat(e)}function At(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function jt(e,t){return pm.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function Mt(e,t,n){var r=120-2*n;if(t===null)return Ot(n)+jt(e,r)+`
36
- `;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),Ot(n)+jt(e,r)+`
37
- `+kt(n)+jt(t,r)+`
38
- `}return Dt(n)+jt(e,r)+`
39
- `}function Nt(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function Pt(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Wf(e))return`[...]`;if(e.$$typeof===Of)return(t=S(e.type))?`<`+t+`>`:`<...>`;var n=Nt(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=Pt(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function Ft(e,t){return typeof e!=`string`||pm.test(e)?`{`+Pt(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function It(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=Ft(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
40
- `:0<r?n+`<`+e+` `+i.join(` `)+`>
41
- `:n+`<`+e+`
42
- `+n+` `+i.join(`
43
- `+n+` `)+`
44
- `+n+`>
45
- `}function Lt(e,t,n){var r=``,i=Ef({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=Pt(e[a],o);t.hasOwnProperty(a)?(o=Pt(t[a],o),r+=Ot(n)+a+`: `+s+`
46
- `,r+=kt(n)+a+`: `+o+`
47
- `):r+=Ot(n)+a+`: `+s+`
48
- `}for(var c in i)i.hasOwnProperty(c)&&(e=Pt(i[c],120-2*n-c.length-2),r+=kt(n)+c+`: `+e+`
49
- `);return r}function Rt(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=It(e,t,Dt(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=Ft(l,s);s=Ft(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&Nt(l)===`Object`&&Nt(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=Dt(r+1)+o+`={{
50
- `+Lt(l,c,r+2)+Dt(r+1)+`}}
51
- `:(i+=Ot(r+1)+o+`=`+u+`
52
- `,i+=kt(r+1)+o+`=`+s+`
53
- `)}else i+=Dt(r+1)+o+`=`+Ft(t[o],s)+`
54
- `}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=kt(r+1)+e+`=`+Ft(n[e],t)+`
55
- `}}),i=i===``?Dt(r)+`<`+e+`>
56
- `:Dt(r)+`<`+e+`
57
- `+i+Dt(r)+`>
58
- `}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=Mt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+Mt(``+t,null,r+1):i+Mt(``+t,void 0,r+1)),i}function zt(e,t){var n=At(e);if(n===null){for(n=``,e=e.child;e;)n+=zt(e,t),e=e.sibling;return n}return Dt(t)+`<`+n+`>
59
- `}function Bt(e,t){var n=Et(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return Dt(t)+`...
60
- `+Bt(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=Dt(t)+`<`+a+`>
61
- `,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=Mt(i,e.serverProps,t),t++;else if(a=At(e.fiber),a!==null){if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=Ft(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=Dt(r)+`<`+a+s+`>
62
- `,t++}else e.serverProps===null?(r=It(a,i,Ot(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=Rt(a,i,e.serverProps,t),t++)}var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=Bt(o,t),a++):l+=zt(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=Dt(t)+`...
63
- `),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(kt(t)+jt(a,120-2*t)+`
64
- `):l+It(a.type,a.props,kt(t));return n+r+l}function Vt(e){try{return`
65
-
66
- `+Bt(e,0)}catch{return``}}function Ht(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:Vt(i).replaceAll(/^[+-]/gm,`>`)}function Ut(e,t){var n=Ef({},e||vm),r={tag:t};return hm.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),gm.indexOf(t)!==-1&&(n.pTagInButtonScope=null),mm.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Wt(e,t,n){switch(t){case`select`:return e===`hr`||e===`option`||e===`optgroup`||e===`script`||e===`template`||e===`#text`;case`optgroup`:return e===`option`||e===`#text`;case`option`:return e===`#text`;case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return _m.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function Gt(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function Kt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function qt(e,t){t||=vm;var n=t.current;if(t=(n=Wt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:Gt(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,ym[t])return!1;ym[t]=!0;var i=(t=fp)?Kt(t.return,r):null,a=t!==null&&i!==null?Ht(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.`),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
- This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||E(i,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,r,o)})),!1}function Jt(e,t,n){if(n||Wt(`#text`,t,!1))return!0;if(n=`#text|`+t,ym[n])return!1;ym[n]=!0;var r=(n=fp)?Kt(n,t):null;return n=n!==null&&r!==null?Ht(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
- This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
- This will cause a hydration error.%s`,t,n),!1}function Yt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function Xt(e){return e.replace(Tm,function(e,t){return t.toUpperCase()})}function Zt(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?Dm.hasOwnProperty(t)&&Dm[t]||(Dm[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,Xt(t.replace(wm,`ms-`)))):Cm.test(t)?Dm.hasOwnProperty(t)&&Dm[t]||(Dm[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!Em.test(n)||Om.hasOwnProperty(n)&&Om[n]||(Om[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Em,``))),typeof n==`number`&&(isNaN(n)?km||(km=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Am||(Am=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||jm.has(t)?t===`float`?e.cssFloat=n:(ke(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function Qt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=bm[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=bm[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=bm[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&Zt(e,f,l)}else for(r in t)t.hasOwnProperty(r)&&Zt(e,r,t[r])}function $t(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function en(e){return Pm.get(e)||e}function tn(e,t){if(mp.call(Lm,t)&&Lm[t])return!0;if(zm.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Im.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Lm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Lm[t]=!0}if(Rm.test(t)){if(e=t.toLowerCase(),e=Im.hasOwnProperty(e)?e:null,e==null)return Lm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Lm[t]=!0)}return!0}function nn(e,t){var n=[],r;for(r in t)tn(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function rn(e,t,n,r){if(mp.call(Vm,t)&&Vm[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Vm[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Vm[t]=!0;if(Hm.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Vm[t]=!0}else if(Hm.test(t))return Um.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Vm[t]=!0;if(Wm.test(t)||Gm.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Vm[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Vm[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Vm[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Vm[t]=!0;if(Fm.hasOwnProperty(i)){if(i=Fm[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Vm[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Vm[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`: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`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`||(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
72
-
73
- If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
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),Vm[t]=!0)}case`function`:case`symbol`:return Vm[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),Vm[t]=!0}}return!0}function an(e,t,n){var r=[],i;for(i in t)rn(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 on(e){return Km.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function sn(){}function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function ln(e){var t=$e(e);if(t&&(e=t.stateNode)){var n=e[Wp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(_t(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(D(t,`name`),n=n.querySelectorAll(`input[name="`+ht(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Wp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");_t(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&&pt(r)}break a;case`textarea`:wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&St(e,!!n.multiple,t,!1)}}}function un(e,t,n){if(Xm)return e(t,n);Xm=!0;try{return e(t)}finally{if(Xm=!1,(Jm!==null||Ym!==null)&&(el(),Jm&&(t=Jm,e=Ym,Ym=Jm=null,ln(t),e)))for(t=0;t<e.length;t++)ln(e[t])}}function dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Wp]||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 fn(){if(nh)return nh;var e,t=th,n=t.length,r,i=`value`in eh?eh.value:eh.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 nh=i.slice(e,1<r?1-r:void 0)}function pn(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 mn(){return!0}function hn(){return!1}function gn(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)?mn:hn,this.isPropagationStopped=hn,this}return Ef(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=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bh[e])?!!t[e]:!1}function vn(){return _n}function yn(e,t){switch(e){case`keyup`:return Dh.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Oh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function bn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function xn(e,t){switch(e){case`compositionend`:return bn(t);case`keypress`:return t.which===Nh?(Fh=!0,Ph):null;case`textInput`:return e=t.data,e===Ph&&Fh?null:e;default:return null}}function Sn(e,t){if(Ih)return e===`compositionend`||!kh&&yn(e,t)?(e=fn(),nh=th=eh=null,Ih=!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 Mh&&t.locale!==`ko`?null:t.data;default:return null}}function Cn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Lh[e.type]:t===`textarea`}function wn(e){if(!Zm)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 Tn(e,t,n,r){Jm?Ym?Ym.push(r):Ym=[r]:Jm=r,t=lu(t,`onChange`),0<t.length&&(n=new ih(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function En(e){nu(e,0)}function Dn(e){if(pt(et(e)))return e}function On(e,t){if(e===`change`)return t}function kn(){Rh&&(Rh.detachEvent(`onpropertychange`,An),zh=Rh=null)}function An(e){if(e.propertyName===`value`&&Dn(zh)){var t=[];Tn(t,zh,e,cn(e)),un(En,t)}}function jn(e,t,n){e===`focusin`?(kn(),Rh=t,zh=n,Rh.attachEvent(`onpropertychange`,An)):e===`focusout`&&kn()}function Mn(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Dn(zh)}function Nn(e,t){if(e===`click`)return Dn(t)}function Pn(e,t){if(e===`input`||e===`change`)return Dn(t)}function Fn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function In(e,t){if(Vh(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(!mp.call(t,i)||!Vh(e[i],t[i]))return!1}return!0}function Ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rn(e,t){var n=Ln(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=Ln(n)}}function zn(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zn(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=mt(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=mt(e.document)}return t}function Vn(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 Hn(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kh||Uh==null||Uh!==mt(r)||(r=Uh,`selectionStart`in r&&Vn(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}),Gh&&In(Gh,r)||(Gh=r,r=lu(Wh,`onSelect`),0<r.length&&(t=new ih(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Uh)))}function Un(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function Wn(e){if(Jh[e])return Jh[e];if(!qh[e])return e;var t=qh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yh)return Jh[e]=t[n];return e}function Gn(e,t){rg.set(e,t),nt(t,[e])}function Kn(e){for(var t=dg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r){if(Wf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==dg&&t!==mg)return fg;t=mg}else return fg}else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==dg&&t!==pg)return fg;t=pg}}return t}function qn(e,t,n,r){for(var i in e)mp.call(e,i)&&i[0]!==`_`&&Jn(i,e[i],t,n,r)}function Jn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}if(t.$$typeof===Of){var a=S(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&&Jn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Wf(t.children)||0<t.children.length)&&(e=!0):mp.call(t,l)&&l[0]!==`_`&&Jn(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=Kn(t),l===pg||l===dg){t=JSON.stringify(t);break}if(l===mg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Jn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Jn(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,Jn(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&&qn(t,n,r+1,i);return;case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===ug?`…`: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 Yn(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([hg+`\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([hg+i,`…`],[gg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof){if(s.$$typeof===Of){if(o.type===s.type&&o.key===s.key){o=S(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([hg+i,o],[gg+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=[_g+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,Yn(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([_g+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Jn(a,o,n,r,hg),Jn(a,s,n,r,gg)}i=!1}}else n.push([gg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function j(e){xg=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function Xn(e,t,n,r){vg&&(wg.start=t,wg.end=n,Cg.color=`warning`,Cg.tooltipText=r,Cg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,wg)):performance.measure(r,wg))}function Zn(e,t,n){Xn(e,t,n,`Reconnect`)}function Qn(e,t,n,r,i){var a=C(e);if(a!==null&&vg){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=[Tg],l=Yn(o.memoizedProps,l,c,0),1<c.length&&(l&&!Sg&&(o.lanes&i)===0&&100<e.actualDuration?(Sg=!0,c[0]=Dg,Cg.color=`warning`,Cg.tooltipText=Eg):(Cg.color=r,Cg.tooltipText=a),Cg.properties=c,wg.start=t,wg.end=n,s==null?performance.measure(`​`+a,wg):s.run(performance.measure.bind(performance,`​`+a,wg)))):s==null?console.timeStamp(a,t,n,yg,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,yg,void 0,r))}}function M(e,t,n,r){if(vg){var i=C(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&&Jn(`key`,e.key,o,0,``),e.memoizedProps!==null&&qn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:yg,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 $n(e,t,n,r,i){if(i!==null){if(vg){var a=C(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&&Jn(`key`,e.key,r,0,``),e.memoizedProps!==null&&qn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:yg,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=C(e),a!==null&&vg&&(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,yg,void 0,i)):console.timeStamp(a,t,n,yg,void 0,i))}function er(e,t,n,r){if(vg&&!(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,xg,bg,i)):console.timeStamp(n,e,t,xg,bg,i)}}function tr(e,t,n,r){!vg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,xg,bg,n)):console.timeStamp(`Prewarm`,e,t,xg,bg,n))}function nr(e,t,n,r){!vg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,xg,bg,n)):console.timeStamp(`Suspended`,e,t,xg,bg,n))}function rr(e,t,n,r,i,a){if(vg&&!(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:xg,trackGroup:bg,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function ir(e,t,n,r){!vg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,xg,bg,`error`)):console.timeStamp(`Errored`,e,t,xg,bg,`error`))}function ar(e,t,n,r){!vg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,xg,bg,`secondary-light`)):console.timeStamp(n,e,t,xg,bg,`secondary-light`))}function or(e,t,n,r,i){if(vg&&!(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:xg,trackGroup:bg,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function sr(e,t,n){!vg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,xg,bg,`secondary-dark`)):console.timeStamp(`Animating`,e,t,xg,bg,`secondary-dark`))}function cr(){for(var e=jg,t=Mg=jg=0;t<e;){var n=Ag[t];Ag[t++]=null;var r=Ag[t];Ag[t++]=null;var i=Ag[t];Ag[t++]=null;var a=Ag[t];if(Ag[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&&fr(n,i,a)}}function lr(e,t,n,r){Ag[jg++]=e,Ag[jg++]=t,Ag[jg++]=n,Ag[jg++]=r,Mg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ur(e,t,n,r){return lr(e,t,n,r),pr(e)}function dr(e,t){return lr(e,null,null,t),pr(e)}function fr(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&Og||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Mp(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function pr(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&&Rl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Rl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function mr(e){if(Pg===null)return e;var t=Pg(e);return t===void 0?e:t.current}function hr(e){if(Pg===null)return e;var t=Pg(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=mr(e.render),e.render!==t)?(t={$$typeof:Ff,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function gr(e,t){if(Pg===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===zf)&&(r=!0);break;case 11:(i===Ff||i===zf)&&(r=!0);break;case 14:case 15:(i===Rf||i===zf)&&(r=!0);break;default:return!1}return!!(r&&(e=Pg(n),e!==void 0&&e===Pg(t)))}function _r(e){Pg!==null&&typeof WeakSet==`function`&&(Fg===null&&(Fg=new WeakSet),Fg.add(e))}function vr(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(Pg===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Pg(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Fg!==null&&(Fg.has(e)||i!==null&&Fg.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=dr(e,2),i!==null&&Yc(i,e,2)),a===null||r||vr(a,t,n),o===null)break;e=o}while(1)}function yr(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,Bg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function br(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xr(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=mr(e.type);break;case 1:n.type=mr(e.type);break;case 11:n.type=hr(e.type)}return n}function Sr(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 Cr(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)br(e)&&(o=1),s=mr(s);else if(typeof e==`string`)o=de(),o=Bd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Bf:return t=g(31,n,t,i),t.elementType=Bf,t.lanes=a,t;case Af:return Tr(n.children,i,a,t);case jf:o=8,i|=Lg,i|=Rg;break;case Mf: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|K),t.elementType=Mf,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case If:return t=g(13,n,t,i),t.elementType=If,t.lanes=a,t;case Lf:return t=g(19,n,t,i),t.elementType=Lf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Pf:o=10;break a;case Nf:o=9;break a;case Ff:o=11,s=hr(s);break a;case Rf:o=14;break a;case zf: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`:Wf(e)?n=`array`:e!==void 0&&e.$$typeof===Of?(n=`<`+(S(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?oe(r):null)&&(s+=`
76
-
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 wr(e,t,n){return t=Cr(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Tr(e,t,n,r){return e=g(7,e,r,t),e.lanes=n,e}function Er(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function Dr(e){var t=g(18,null,null,G);return t.stateNode=e,t}function Or(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 kr(e,t){if(typeof e==`object`&&e){var n=Vg.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},Vg.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}function Ar(e,t){Ir(),Hg[Ug++]=Gg,Hg[Ug++]=Wg,Wg=e,Gg=t}function jr(e,t,n){Ir(),Kg[qg++]=Yg,Kg[qg++]=Xg,Kg[qg++]=Jg,Jg=e;var r=Yg;e=Xg;var i=32-Mp(r)-1;r&=~(1<<i),n+=1;var a=32-Mp(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yg=1<<32-Mp(t)+i|n<<i|r,Xg=a+e}else Yg=1<<a|n<<i|r,Xg=e}function Mr(e){Ir(),e.return!==null&&(Ar(e,1),jr(e,1,0))}function Nr(e){for(;e===Wg;)Wg=Hg[--Ug],Hg[Ug]=null,Gg=Hg[--Ug],Hg[Ug]=null;for(;e===Jg;)Jg=Kg[--qg],Kg[qg]=null,Xg=Kg[--qg],Kg[qg]=null,Yg=Kg[--qg],Kg[qg]=null}function Pr(){return Ir(),Jg===null?null:{id:Yg,overflow:Xg}}function Fr(e,t){Ir(),Kg[qg++]=Yg,Kg[qg++]=Xg,Kg[qg++]=Jg,Yg=t.id,Xg=t.overflow,Jg=e}function Ir(){$g||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Lr(e,t){if(e.return===null){if(t_===null)t_={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(t_.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);t_.distanceFromLeaf>t&&(t_.distanceFromLeaf=t)}return t_}var n=Lr(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 Rr(){$g&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function zr(e,t){e_||(e=Lr(e,0),e.serverProps=null,t!==null&&(t=md(t),e.serverTail.push(t)))}function Br(e){var t=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=``,r=t_;throw r!==null&&(t_=null,n=Vt(r)),Kr(kr(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
-
79
- - A server/client branch \`if (typeof window !== 'undefined')\`.
80
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
81
- - Date formatting in a user's locale which doesn't match the server.
82
- - External changing data without sending a snapshot of it along with the HTML.
83
- - Invalid HTML tag nesting.
84
-
85
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
86
-
87
- https://react.dev/link/hydration-mismatch`+n),e)),i_}function Vr(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Up]=e,t[Wp]=r,fu(n,r),n){case`dialog`:ru(`cancel`,t),ru(`close`,t);break;case`iframe`:case`object`:case`embed`:ru(`load`,t);break;case`video`:case`audio`:for(n=0;n<fS.length;n++)ru(fS[n],t);break;case`source`:ru(`error`,t);break;case`img`:case`image`:case`link`:ru(`error`,t),ru(`load`,t);break;case`details`:ru(`toggle`,t);break;case`input`:rt(`input`,r),ru(`invalid`,t),gt(t,r),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:bt(t,r);break;case`select`:rt(`select`,r),ru(`invalid`,t),Ct(t,r);break;case`textarea`:rt(`textarea`,r),ru(`invalid`,t),A(t,r),Tt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||vu(t.textContent,n)?(r.popover!=null&&(ru(`beforetoggle`,t),ru(`toggle`,t)),r.onScroll!=null&&ru(`scroll`,t),r.onScrollEnd!=null&&ru(`scrollend`,t),r.onClick!=null&&(t.onclick=sn),t=!0):t=!1,t||Br(e,!0)}function Hr(e){for(Zg=e.return;Zg;)switch(Zg.tag){case 5:case 31:case 13:r_=!1;return;case 27:case 3:r_=!0;return;default:Zg=Zg.return}}function Ur(e){if(e!==Zg)return!1;if(!$g)return Hr(e),$g=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ru(e.type,e.memoizedProps)),n=!n),n&&Qg){for(n=Qg;n;){var r=Lr(e,0),i=md(n);r.serverTail.push(i),n=i.type===`Suspense`?gd(n):pd(n.nextSibling)}Br(e)}if(Hr(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Qg=gd(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Qg=gd(e)}else t===27?(t=Qg,Yu(e.type)?(e=nC,nC=null,Qg=e):Qg=t):Qg=Zg?pd(e.stateNode.nextSibling):null;return!0}function Wr(){Qg=Zg=null,e_=$g=!1}function Gr(){var e=n_;return e!==null&&(mx===null?mx=e:mx.push.apply(mx,e),n_=null),e}function Kr(e){n_===null?n_=[e]:n_.push(e)}function qr(){var e=t_;if(e!==null){t_=null;for(var t=Vt(e);0<e.children.length;)e=e.children[0];E(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
88
-
89
- - A server/client branch \`if (typeof window !== 'undefined')\`.
90
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
91
- - Date formatting in a user's locale which doesn't match the server.
92
- - External changing data without sending a snapshot of it along with the HTML.
93
- - Invalid HTML tag nesting.
94
-
95
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
96
-
97
- %s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Jr(){l_=c_=null,u_=!1}function Yr(e,t,n){T(a_,t._currentValue,e),t._currentValue=n,T(o_,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==s_&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=s_}function Xr(e,t){e._currentValue=a_.current;var n=o_.current;se(o_,t),e._currentRenderer=n,se(a_,t)}function Zr(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function Qr(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Zr(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Zr(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function $r(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;Vh(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===$f.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[bC]:e.push(bC))}i=i.return}e!==null&&Qr(t,e,n,r),t.flags|=262144}function ei(e){for(e=e.firstContext;e!==null;){if(!Vh(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ti(e){c_=e,l_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ni(e){return u_&&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().`),ii(c_,e)}function ri(e,t){return c_===null&&ti(e),ii(e,t)}function ii(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},l_===null){if(e===null)throw 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().`);l_=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else l_=l_.next=t;return n}function ai(){return{controller:new d_,data:new Map,refCount:0}}function oi(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function si(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&f_(p_,function(){e.controller.abort()})}function ci(e,t,n){e&127?0>k_&&(k_=h_(),A_=g_(t),M_=t,n!=null&&(N_=C(n)),(Ub&(Pb|Fb))!==Nb&&(D_=!0,j_=__),e=Vu(),t=Bu(),e!==I_||t!==F_?I_=-1.1:t!==null&&(j_=__),P_=e,F_=t):e&4194048&&0>B_&&(B_=h_(),H_=g_(t),U_=t,n!=null&&(W_=C(n)),0>z_)&&(e=Vu(),t=Bu(),(e!==q_||t!==K_)&&(q_=-1.1),G_=e,K_=t)}function li(e){if(0>k_){k_=h_(),A_=e._debugTask==null?null:e._debugTask,(Ub&(Pb|Fb))!==Nb&&(j_=__);var t=Vu(),n=Bu();t!==I_||n!==F_?I_=-1.1:n!==null&&(j_=__),P_=t,F_=n}0>B_&&(B_=h_(),H_=e._debugTask==null?null:e._debugTask,0>z_)&&(e=Vu(),t=Bu(),(e!==q_||t!==K_)&&(q_=-1.1),G_=e,K_=t)}function ui(){var e=w_;return w_=0,e}function di(e){var t=w_;return w_=e,t}function fi(e){var t=w_;return w_+=e,t}function pi(){J=q=-1.1}function mi(){var e=q;return q=-1.1,e}function hi(e){0<=e&&(q=e)}function gi(){var e=T_;return T_=-0,e}function _i(e){0<=e&&(T_=e)}function vi(){var e=E_;return E_=null,e}function yi(){var e=D_;return D_=!1,e}function bi(e){C_=h_(),0>e.actualStartTime&&(e.actualStartTime=C_)}function xi(e){if(0<=C_){var t=h_()-C_;e.actualDuration+=t,e.selfBaseDuration=t,C_=-1}}function Si(e){if(0<=C_){var t=h_()-C_;e.actualDuration+=t,C_=-1}}function Ci(){if(0<=C_){var e=h_(),t=e-C_;C_=-1,w_+=t,T_+=t,J=e}}function wi(e){E_===null&&(E_=[]),E_.push(e),S_===null&&(S_=[]),S_.push(e)}function Ti(){C_=h_(),0>q&&(q=C_)}function Ei(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Di(e,t){if(rv===null){var n=rv=[];iv=0,av=Zl(),ov={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return iv++,t.then(Oi,Oi),t}function Oi(){if(--iv===0&&(-1<B_||(z_=-1.1),rv!==null)){ov!==null&&(ov.status=`fulfilled`);var e=rv;rv=null,av=0,ov=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ki(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Ai(){var e=cv.current;return e===null?Wb.pooledCache:e}function ji(e,t){t===null?T(cv,cv.current,e):T(cv,t.pool,e)}function Mi(){var e=Ai();return e===null?null:{parent:m_._currentValue,pool:e}}function N(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Ni(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Pi(e,t,n){W.actQueue!==null&&(W.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(sn,sn),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Li(e),e;default:if(typeof t.status==`string`)t.then(sn,sn);else{if(e=Wb,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Li(e),e}throw Vv=t,Hv=!0,Lv}}function Fi(e){try{return Iv(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Vv=e,Hv=!0,Lv):e}}function Ii(){if(Vv===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Vv;return Vv=null,Hv=!1,e}function Li(e){if(e===Lv||e===zv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ri(e){var t=Y;return e!=null&&(Y=t===null?e:t.concat(e)),t}function zi(){var e=Y;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Bi(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=wr(e,n.mode,0),t._debugInfo=Y,t.return=n),E(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function Vi(e){var t=Wv;return Wv+=1,Uv===null&&(Uv=N()),Pi(Uv,e,t)}function Hi(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ui(e,t){throw t.$$typeof===Df?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
98
- - Multiple copies of the "react" package is used.
99
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
100
- - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function Wi(e,t){var n=zi();n===null?Ui(e,t):n.run(Ui.bind(null,e,t))}function Gi(e,t){var n=C(e)||`Component`;Jv[n]||(Jv[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?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.
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
- <%s>{%s}</%s>`,t,t,n,t,n))}function Ki(e,t){var n=zi();n===null?Gi(e,t):n.run(Gi.bind(null,e,t))}function qi(e,t){var n=C(e)||`Component`;Yv[n]||(Yv[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
103
- root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
104
- <%s>%s</%s>`,n,t,n))}function Ji(e,t){var n=zi();n===null?qi(e,t):n.run(qi.bind(null,e,t))}function Yi(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=xr(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=Er(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function c(e,t,n,r){var a=n.type;return a===Af?(t=u(e,t,n.props.children,r,n.key),Bi(n,t,e),t):t!==null&&(t.elementType===a||gr(t,n)||typeof a==`object`&&a&&a.$$typeof===zf&&Fi(a)===t.type)?(t=i(t,n.props),Hi(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Y,t):(t=wr(n,e.mode,r),Hi(t,n),t.return=e,t._debugInfo=Y,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Or(n,e.mode,r),t.return=e,t._debugInfo=Y,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Y,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=Tr(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function d(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Er(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Of:return n=wr(t,e.mode,n),Hi(n,t),n.return=e,e=Ri(t._debugInfo),n._debugInfo=Y,Y=e,n;case kf:return t=Or(t,e.mode,n),t.return=e,t._debugInfo=Y,t;case zf:var r=Ri(t._debugInfo);return t=Fi(t),e=d(e,t,n),Y=r,e}if(Wf(t)||ae(t))return n=Tr(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Ri(t._debugInfo),n._debugInfo=Y,Y=e,n;if(typeof t.then==`function`)return r=Ri(t._debugInfo),e=d(e,Vi(t),n),Y=r,e;if(t.$$typeof===Pf)return d(e,ri(e,t),n);Wi(e,t)}return typeof t==`function`&&Ki(e,t),typeof t==`symbol`&&Ji(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 Of:return n.key===i?(i=Ri(n._debugInfo),e=c(e,t,n,r),Y=i,e):null;case kf:return n.key===i?l(e,t,n,r):null;case zf:return i=Ri(n._debugInfo),n=Fi(n),e=p(e,t,n,r),Y=i,e}if(Wf(n)||ae(n))return i===null?(i=Ri(n._debugInfo),e=u(e,t,n,r,null),Y=i,e):null;if(typeof n.then==`function`)return i=Ri(n._debugInfo),e=p(e,t,Vi(n),r),Y=i,e;if(n.$$typeof===Pf)return p(e,t,ri(e,n),r);Wi(e,n)}return typeof n==`function`&&Ki(e,n),typeof n==`symbol`&&Ji(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 Of:return n=e.get(r.key===null?n:r.key)||null,e=Ri(r._debugInfo),t=c(t,n,r,i),Y=e,t;case kf:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case zf:var a=Ri(r._debugInfo);return r=Fi(r),t=m(e,t,n,r,i),Y=a,t}if(Wf(r)||ae(r))return n=e.get(n)||null,e=Ri(r._debugInfo),t=u(t,n,r,i,null),Y=e,t;if(typeof r.then==`function`)return a=Ri(r._debugInfo),t=m(e,t,n,Vi(r),i),Y=a,t;if(r.$$typeof===Pf)return m(e,t,n,ri(t,r),i);Wi(t,r)}return typeof r==`function`&&Ki(t,r),typeof r==`symbol`&&Ji(t,r),null}function h(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Of:case kf: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}E(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 zf:n=Fi(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&&Ar(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&&Ar(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&&Ar(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&&Ar(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&&Ar(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&&Ar(i,g),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Af&&a.key===null&&(Bi(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Of:var c=Ri(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Af){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,Bi(a,s,e),e=s;break a}}else if(r.elementType===l||gr(r,a)||typeof l==`object`&&l&&l.$$typeof===zf&&Fi(l)===r.type){n(e,r.sibling),s=i(r,a.props),Hi(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===Af?(s=Tr(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,Bi(a,s,e),e=s):(s=wr(a,e.mode,s),Hi(s,a),s.return=e,s._debugInfo=Y,e=s)}return e=o(e),Y=c,e;case kf: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=Or(c,e.mode,s),s.return=e,e=s}return o(e);case zf:return c=Ri(a._debugInfo),a=Fi(a),e=y(e,r,a,s),Y=c,e}if(Wf(a))return c=Ri(a._debugInfo),e=_(e,r,a,s),Y=c,e;if(ae(a)){if(c=Ri(a._debugInfo),l=ae(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]`)&&(Kv||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."),Kv=!0):a.entries!==l||Gv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Gv=!0),e=v(e,r,u,s),Y=c,e}if(typeof a.then==`function`)return c=Ri(a._debugInfo),e=y(e,r,Vi(a),s),Y=c,e;if(a.$$typeof===Pf)return y(e,r,ri(e,a),s);Wi(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=Er(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,e=s),o(e)):(typeof a==`function`&&Ki(e,a),typeof a==`symbol`&&Ji(e,a),n(e,r))}return function(e,t,n,r){var i=Y;Y=null;try{Wv=0;var a=y(e,t,n,r);return Uv=null,a}catch(t){if(t===Lv||t===zv)throw t;var o=g(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Y;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{Y=i}}}function Xi(e,t){var n=Wf(e);return e=!n&&typeof ae(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 Zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qi(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 $i(e){return{lane:e,tag:Qv,payload:null,callback:null,next:null}}function ea(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,iy===r&&!ry){var i=C(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
-
106
- Please update the following component: %s`,i),ry=!0}return(Ub&Pb)===Nb?(lr(e,r,t,n),pr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=pr(e),fr(e,null,n),t)}function ta(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,Ue(e,n)}}function na(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 P(){if(ay){var e=ov;if(e!==null)throw e}}function ra(e,t,n,r){ay=!1;var i=e.updateQueue;ny=!1,iy=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===av&&(ay=!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 $v:if(m=m.payload,typeof m==`function`){u_=!0;var _=m.call(g,d,h);if(f.mode&Lg){Me(!0);try{m.call(g,d,h)}finally{Me(!1)}}u_=!1,d=_;break a}d=m;break a;case ty:f.flags=f.flags&-65537|128;case Qv:if(_=m.payload,typeof _==`function`){if(u_=!0,m=_.call(g,d,h),f.mode&Lg){Me(!0);try{_.call(g,d,h)}finally{Me(!1)}}u_=!1}else m=_;if(m==null)break a;d=Ef({},d,m);break a;case ey:ny=!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}iy=null}function ia(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function aa(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)ia(n[e],t)}function oa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ia(n[e],t)}function sa(e,t){var n=ox;T(sy,n,e),T(oy,t,e),ox=n|t.baseLanes}function ca(e){T(sy,ox,e),T(oy,oy.current,e)}function la(e){ox=sy.current,se(oy,e),se(sy,e)}function ua(e){var t=e.alternate;T(fy,fy.current&uy,e),T(cy,e,e),ly===null&&(t===null||oy.current!==null||t.memoizedState!==null)&&(ly=e)}function da(e){T(fy,fy.current,e),T(cy,e,e),ly===null&&(ly=e)}function fa(e){e.tag===22?(T(fy,fy.current,e),T(cy,e,e),ly===null&&(ly=e)):pa(e)}function pa(e){T(fy,fy.current,e),T(cy,cy.current,e)}function ma(e){se(cy,e),ly===e&&(ly=null),se(fy,e)}function ha(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ud(n)||dd(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 ga(){var e=Z;Py===null?Py=[e]:Py.push(e)}function F(){var e=Z;if(Py!==null&&(Fy++,Py[Fy]!==e)){var t=C(X);if(!yy.has(t)&&(yy.add(t),Py!==null)){for(var n=``,r=0;r<=Fy;r++){var i=Py[r],a=r===Fy?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
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
108
-
109
- Previous render Next render
110
- ------------------------------------------------------
111
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112
- `,t,n)}}}function _a(e){e==null||Wf(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Z,typeof e)}function va(){var e=C(X);Sy.has(e)||(Sy.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function I(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
113
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
114
- 2. You might be breaking the Rules of Hooks
115
- 3. You might have more than one copy of React in the same app
116
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ya(e,t){if(Iy)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,Z),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
117
-
118
- Previous: %s
119
- Incoming: %s`,Z,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Vh(e[n],t[n]))return!1;return!0}function ba(e,t,n,r,i,a){Cy=a,X=t,Py=e===null?null:e._debugHookTypes,Fy=-1,Iy=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=C(X),xy.has(a)||(xy.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,W.H=e!==null&&e.memoizedState!==null?By:Py===null?Ry:zy,Oy=a=(t.mode&Lg)!==G;var o=bv(n,r,i);if(Oy=!1,Dy&&(o=Sa(t,n,r,i)),a){Me(!0);try{o=Sa(t,n,r,i)}finally{Me(!1)}}return xa(e,t),o}function xa(e,t){t._debugHookTypes=Py,t.dependencies===null?jy!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:jy}):t.dependencies._debugThenableState=jy,W.H=Ly;var n=wy!==null&&wy.next!==null;if(Cy=0,Py=Z=Ty=wy=X=null,Fy=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),Ey=!1,Ay=0,jy=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||ob||(e=e.dependencies,e!==null&&ei(e)&&(ob=!0)),Hv?(Hv=!1,e=!0):e=!1,e&&(t=C(t)||`Unknown`,by.has(t)||xy.has(t)||(by.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Sa(e,t,n,r){X=e;var i=0;do{if(Dy&&(jy=null),Ay=0,Dy=!1,i>=Ny)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Iy=!1,Ty=wy=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Fy=-1,W.H=Vy,a=bv(t,n,r)}while(Dy);return a}function Ca(){var e=W.H,t=e.useState()[0];return t=typeof t.then==`function`?Aa(t):t,e=e.useState()[0],(wy===null?null:wy.memoizedState)!==e&&(X.flags|=1024),t}function wa(){var e=ky!==0;return ky=0,e}function Ta(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Rg)===G?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function Ea(e){if(Ey){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ey=!1}Cy=0,Py=Ty=wy=X=null,Fy=-1,Z=null,Dy=!1,Ay=ky=0,jy=null}function Da(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ty===null?X.memoizedState=Ty=e:Ty=Ty.next=e,Ty}function Oa(){if(wy===null){var e=X.alternate;e=e===null?null:e.memoizedState}else e=wy.next;var t=Ty===null?X.memoizedState:Ty.next;if(t!==null)Ty=t,wy=e;else{if(e===null)throw X.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);wy=e,e={memoizedState:wy.memoizedState,baseState:wy.baseState,baseQueue:wy.baseQueue,queue:wy.queue,next:null},Ty===null?X.memoizedState=Ty=e:Ty=Ty.next=e}return Ty}function ka(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Aa(e){var t=Ay;return Ay+=1,jy===null&&(jy=N()),e=Pi(jy,e,t),t=X,(Ty===null?t.memoizedState:Ty.next)===null&&(t=t.alternate,W.H=t!==null&&t.memoizedState!==null?By:Ry),e}function ja(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Aa(e);if(e.$$typeof===Pf)return ni(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function Ma(e){var t=null,n=X.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=X.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ka(),X.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Iy)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Vf;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function Na(e,t){return typeof t==`function`?t(e):t}function Pa(e,t,n){var r=Da();if(n!==void 0){var i=n(t);if(Oy){Me(!0);try{n(t)}finally{Me(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ho.bind(null,X,e),[r.memoizedState,e]}function Fa(e){return Ia(Oa(),wy,e)}function Ia(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Cy&d)===d:($&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===av&&(u=!0);else if((Cy&f)===f){l=l.next,f===av&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,X.lanes|=f,cx|=f;d=l.action,Oy&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,X.lanes|=d,cx|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!Vh(a,e.memoizedState)&&(ob=!0,u&&(n=ov,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function La(e){var t=Oa(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Vh(a,t.memoizedState)||(ob=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ra(e,t,n){var r=X,i=Da();if($g){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();vy||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),vy=!0)}else{if(a=t(),vy||(n=t(),Vh(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),vy=!0)),Wb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);$&127||Ba(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,po(Ha.bind(null,r,n,e),[e]),r.flags|=2048,co(my|_y,{destroy:void 0},Va.bind(null,r,n,a,t),null),a}function za(e,t,n){var r=X,i=Oa(),a=$g;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!vy){var o=t();Vh(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),vy=!0)}if((o=!Vh((wy||i).memoizedState,n))&&(i.memoizedState=n,ob=!0),i=i.queue,fo(2048,_y,Ha.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||Ty!==null&&Ty.memoizedState.tag&my){if(r.flags|=2048,co(my|_y,{destroy:void 0},Va.bind(null,r,i,n,t),null),Wb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Cy&127||Ba(r,t,n)}return n}function Ba(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t=ka(),X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Va(e,t,n,r){t.value=n,t.getSnapshot=r,Ua(t)&&Wa(e)}function Ha(e,t,n){return n(function(){Ua(t)&&(ci(2,`updateSyncExternalStore()`,e),Wa(e))})}function Ua(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vh(e,n)}catch{return!0}}function Wa(e){var t=dr(e,2);t!==null&&Yc(t,e,2)}function Ga(e){var t=Da();if(typeof e==`function`){var n=e;if(e=n(),Oy){Me(!0);try{n()}finally{Me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t}function Ka(e){e=Ga(e);var t=e.queue,n=Uo.bind(null,X,t);return t.dispatch=n,[e.memoizedState,n]}function qa(e){var t=Da();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Go.bind(null,X,!0,n),n.dispatch=t,[e,t]}function Ja(e,t){return Ya(Oa(),wy,e,t)}function Ya(e,t,n,r){return e.baseState=n,Ia(e,wy,typeof r==`function`?r:Na)}function L(e,t){var n=Oa();return wy===null?(n.baseState=e,[e,n.queue.dispatch]):Ya(n,wy,e,t)}function Xa(e,t,n,r,i){if(Ko(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};W.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Za(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Za(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=W.T,o={};o._updatedFibers=new Set,W.T=o;try{var s=n(i,r),c=W.S;c!==null&&c(o,s),Qa(e,t,s)}catch(n){eo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),W.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),Qa(e,t,o)}catch(n){eo(e,t,n)}}function Qa(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(W.asyncTransitions++,n.then(Ao,Ao),n.then(function(n){$a(e,t,n)},function(n){return eo(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):$a(e,t,n)}function $a(e,t,n){t.status=`fulfilled`,t.value=n,to(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Za(e,n)))}function eo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,to(t),t=t.next;while(t!==r)}e.action=null}function to(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function no(e,t){return t}function ro(e,t){if($g){var n=Wb.formState;if(n!==null){a:{var r=X;if($g){if(Qg){b:{for(var i=Qg,a=r_;i.nodeType!==8;){if(!a){i=null;break b}if(i=pd(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===zS||a===BS?i:null}if(i){Qg=pd(i.nextSibling),r=i.data===zS;break a}}Br(r)}r=!1}r&&(t=n[0])}}return n=Da(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:t},n.queue=r,n=Uo.bind(null,X,r),r.dispatch=n,r=Ga(!1),a=Go.bind(null,X,!1,r.queue),r=Da(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xa.bind(null,X,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function io(e){return ao(Oa(),wy,e)}function ao(e,t,n){if(t=Ia(e,t,no)[0],e=Fa(Na)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Aa(t)}catch(e){throw e===Lv?zv:e}else r=t;t=Oa();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(X.flags|=2048,co(my|_y,{destroy:void 0},oo.bind(null,i,n),null)),[r,a,e]}function oo(e,t){e.action=t}function so(e){var t=Oa(),n=wy;if(n!==null)return ao(t,n,e);Oa(),t=t.memoizedState,n=Oa();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function co(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=X.updateQueue,t===null&&(t=ka(),X.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function lo(e){var t=Da();return e={current:e},t.memoizedState=e}function uo(e,t,n,r){var i=Da();X.flags|=e,i.memoizedState=co(my|t,{destroy:void 0},n,r===void 0?null:r)}function fo(e,t,n,r){var i=Oa();r=r===void 0?null:r;var a=i.memoizedState.inst;wy!==null&&r!==null&&ya(r,wy.memoizedState.deps)?i.memoizedState=co(t,a,n,r):(X.flags|=e,i.memoizedState=co(my|t,a,n,r))}function po(e,t){(X.mode&Rg)===G?uo(8390656,_y,e,t):uo(276826112,_y,e,t)}function mo(e){X.flags|=4;var t=X.updateQueue;if(t===null)t=ka(),X.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ho(e){var t=Da(),n={impl:e};return t.memoizedState=n,function(){if((Ub&Pb)!==Nb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function go(e){var t=Oa().memoizedState;return mo({ref:t,nextImpl:e}),function(){if((Ub&Pb)!==Nb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function _o(e,t){var n=4194308;return(X.mode&Rg)!==G&&(n|=134217728),uo(n,gy,e,t)}function vo(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function yo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(X.mode&Rg)!==G&&(r|=134217728),uo(r,gy,vo.bind(null,t,e),n)}function bo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),fo(4,gy,vo.bind(null,t,e),n)}function xo(e,t){return Da().memoizedState=[e,t===void 0?null:t],e}function So(e,t){var n=Oa();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ya(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=Da();t=t===void 0?null:t;var r=e();if(Oy){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function wo(e,t){var n=Oa();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ya(t,r[1]))return r[0];if(r=e(),Oy){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function To(e,t){return Oo(Da(),e,t)}function Eo(e,t){return ko(Oa(),wy.memoizedState,e,t)}function Do(e,t){var n=Oa();return wy===null?Oo(n,e,t):ko(n,wy.memoizedState,e,t)}function Oo(e,t,n){return n===void 0||Cy&1073741824&&!($&261930)?e.memoizedState=t:(e.memoizedState=n,e=Jc(),X.lanes|=e,cx|=e,n)}function ko(e,t,n,r){return Vh(n,t)?n:oy.current===null?!(Cy&42)||Cy&1073741824&&!($&261930)?(ob=!0,e.memoizedState=n):(e=Jc(),X.lanes|=e,cx|=e,t):(e=Oo(e,n,r),Vh(e,t)||(ob=!0),e)}function Ao(){W.asyncTransitions--}function jo(e,t,n,r,i){var a=Gf.p;Gf.p=a!==0&&a<zp?a:zp;var o=W.T,s={};s._updatedFibers=new Set,W.T=s,Go(e,!1,t,n);try{var c=i(),l=W.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){W.asyncTransitions++,c.then(Ao,Ao);var u=ki(c,r);Wo(e,t,u,qc(e))}else Wo(e,t,r,qc(e))}catch(n){Wo(e,t,{then:function(){},status:`rejected`,reason:n},qc(e))}finally{Gf.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),W.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function Mo(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=No(e).queue;li(e),jo(e,i,t,yC,n===null?u:function(){return Po(e),n(r)})}function No(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:yC,baseState:yC,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:yC},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Po(e){W.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=No(e);t.next===null&&(t=e.alternate.memoizedState),Wo(e,t.next.queue,{},qc(e))}function Fo(){var e=Ga(!1);return e=jo.bind(null,X,e.queue,!0,!1),Da().memoizedState=e,[!1,e]}function Io(){var e=Fa(Na)[0],t=Oa().memoizedState;return[typeof e==`boolean`?e:Aa(e),t]}function Lo(){var e=La(Na)[0],t=Oa().memoizedState;return[typeof e==`boolean`?e:Aa(e),t]}function Ro(){return ni(bC)}function zo(){var e=Da(),t=Wb.identifierPrefix;if($g){var n=Xg,r=Yg;n=(r&~(1<<32-Mp(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ky++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=My++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function Bo(){return Da().memoizedState=Vo.bind(null,X)}function Vo(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=qc(n),i=$i(r),a=ea(n,i,r);a!==null&&(ci(r,`refresh()`,e),Yc(a,n,r),ta(a,n,r)),e=ai(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Ho(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=qc(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Ko(e)?qo(t,i):(i=ur(e,t,i,r),i!==null&&(ci(r,`dispatch()`,e),Yc(i,e,r),Jo(i,t,r)))}function Uo(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=qc(e),Wo(e,t,n,r)&&ci(r,`setState()`,e)}function Wo(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))qo(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=W.H;W.H=Uy;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,Vh(c,s))return lr(e,t,i,0),Wb===null&&cr(),!1}catch{}finally{W.H=o}}if(n=ur(e,t,i,r),n!==null)return Yc(n,e,r),Jo(n,t,r),!0}return!1}function Go(e,t,n,r){if(W.T===null&&av===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:Zl(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ko(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=ur(e,n,r,2),t!==null&&(ci(2,`setOptimistic()`,e),Yc(t,e,2))}function Ko(e){var t=e.alternate;return e===X||t!==null&&t===X}function qo(e,t){Dy=Ey=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jo(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ue(e,n)}}function Yo(e){if(e!==null&&typeof e!=`function`){var t=String(e);tb.has(t)||(tb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Xo(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Lg){Me(!0);try{a=n(r,i)}finally{Me(!1)}}a===void 0&&(t=S(t)||`Component`,Zy.has(t)||(Zy.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:Ef({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Zo(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Lg){Me(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{Me(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,S(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!In(n,r)||!In(i,a):!0}function Qo(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=C(e)||`Component`,Ky.has(e)||(Ky.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),nb.enqueueReplaceState(t,t.state,null))}function $o(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=Ef({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function R(e){lg(e),console.warn(`%s
120
-
121
- %s
122
- `,rb?`An error occurred in the <`+rb+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
123
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function es(e){var t=rb?`The above error occurred in the <`+rb+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((ib||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
124
-
125
- %s
126
-
127
- %s
128
- `,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,xC+` `+e[0],SC,wC+r+wC,CC):e.splice(0,0,xC,SC,wC+r+wC,CC),e.unshift(console),r=TC.apply(console.error,e),r()}else console.error(`%o
129
-
130
- %s
131
-
132
- %s
133
- `,e,t,n)}function ts(e){lg(e)}function ns(e,t){try{rb=t.source?C(t.source):null,ib=null;var n=t.value;if(W.actQueue!==null)W.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function rs(e,t,n){try{rb=n.source?C(n.source):null,ib=C(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 is(e,t,n){return n=$i(n),n.tag=ty,n.payload={element:null},n.callback=function(){E(t.source,ns,e,t)},n}function as(e){return e=$i(e),e.tag=ty,e}function os(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(){_r(n),E(r.source,rs,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){_r(n),E(r.source,rs,t,n,r),typeof i!=`function`&&(Cx===null?Cx=new Set([this]):Cx.add(this)),Ov(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.`,C(n)||`Unknown`)})}function ss(e,t,n,r,i){if(n.flags|=32768,jp&&zl(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&$r(t,n,i,!0),$g&&(e_=!0),n=cy.current,n!==null){switch(n.tag){case 31:case 13:return ly===null?ll():n.alternate===null&&sx===Ib&&(sx=zb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Bv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Al(e,r,i)),!1;case 22:return n.flags|=65536,r===Bv?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)),Al(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Al(e,r,i),ll(),!1}if($g)return e_=!0,t=cy.current,t===null?(r!==i_&&Kr(kr(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=kr(r,n),i=is(e.stateNode,r,i),na(e,i),sx!==Bb&&(sx=Rb)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==i_&&Kr(kr(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=kr(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!==Bb&&(sx=Rb),t===null)return!0;r=kr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=is(n.stateNode,r,e),na(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=as(i),os(i,e,n,r),na(n,i),!1}n=n.return}while(n!==null);return!1}function cs(e,t,n,r){t.child=e===null?Zv(t,null,n,r):Xv(t,e.child,n,r)}function ls(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 ti(t),r=ba(e,t,n,o,a,i),s=wa(),e!==null&&!ob?(Ta(e,t,i),Ms(e,t,i)):($g&&s&&Mr(t),t.flags|=1,cs(e,t,r,i),t.child)}function us(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!br(a)&&a.defaultProps===void 0&&n.compare===null?(n=mr(a),t.tag=15,t.type=n,Ss(t,a),ds(e,t,n,r,i)):(e=Cr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ns(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?In:n,n(o,r)&&e.ref===t.ref)return Ms(e,t,i)}return t.flags|=1,e=xr(a,r),e.ref=t.ref,e.return=t,t.child=e}function ds(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(In(a,r)&&e.ref===t.ref&&t.type===e.type){if(ob=!1,t.pendingProps=r=a,Ns(e,i))e.flags&131072&&(ob=!0);else return t.lanes=e.lanes,Ms(e,t,i)}}return vs(e,t,n,r,i)}function fs(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Og,_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 ms(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ji(t,a===null?null:a.cachePool),a===null?ca(t):sa(t,a),fa(t);else return r=t.lanes=536870912,ms(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ji(t,null),ca(t),pa(t)):(ji(t,a.cachePool),sa(t,a),pa(t),t.memoizedState=null);return cs(e,t,i,n),t.child}function ps(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Og,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ms(e,t,n,r,i){var a=Ai();return a=a===null?null:{parent:m_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ji(t,null),ca(t),fa(t),e!==null&&$r(e,t,r,!0),t.childLanes=i,null}function hs(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
134
- - <Activity %s>
135
- + <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Ds({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gs(e,t,n){return Xv(t,e.child,null,n),e=hs(t,t.pendingProps),e.flags|=2,ma(t),t.memoizedState=null,e}function z(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=hs(t,r),t.lanes=536870912,ps(null,e);if(da(t),(e=Qg)?(n=ld(e,r_),n=n!==null&&n.data===kS?n:null,n!==null&&(r={dehydrated:n,treeContext:Pr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Dr(n),r.return=t,t.child=r,Zg=t,Qg=null)):n=null,n===null)throw zr(t,e),Br(t);return t.lanes=536870912,null}return hs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(da(t),i){if(t.flags&256)t.flags&=-257,t=gs(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(Rr(),n&536870912&&cl(t),ob||$r(e,t,n,!1),i=(n&e.childLanes)!==0,ob||i){if(r=Wb,r!==null&&(o=We(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,dr(e,o),Yc(r,e,o),ab;ll(),t=gs(e,t,n)}else e=a.treeContext,Qg=pd(o.nextSibling),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!1,e!==null&&Fr(t,e),t=hs(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&cl(t),e=xr(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function _s(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 vs(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=S(n)||`Unknown`;sb[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),sb[a]=!0)}return t.mode&Lg&&lv.recordLegacyContextWarning(t,null),e===null&&(Ss(t,t.type),n.contextTypes&&(a=S(n)||`Unknown`,lb[a]||(lb[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)))),ti(t),n=ba(e,t,n,r,void 0,i),r=wa(),e!==null&&!ob?(Ta(e,t,i),Ms(e,t,i)):($g&&r&&Mr(t),t.flags|=1,cs(e,t,n,i),t.child)}function ys(e,t,n,r,i,a){return ti(t),Fy=-1,Iy=e!==null&&e.type!==t.type,t.updateQueue=null,n=Sa(t,r,n,i),xa(e,t),r=wa(),e!==null&&!ob?(Ta(e,t,a),Ms(e,t,a)):($g&&r&&Mr(t),t.flags|=1,cs(e,t,n,a),t.child)}function bs(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=as(c),os(c,o,t,kr(a,t)),na(t,c)}if(ti(t),t.stateNode===null){if(o=Ng,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Pf)&&!eb.has(n)&&(eb.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===Nf?` 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`,S(n)||`Component`,c)),typeof a==`object`&&a&&(o=ni(a)),a=new n(r,o),t.mode&Lg){Me(!0);try{a=new n(r,o)}finally{Me(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=nb,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=Gy,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=S(n)||`Component`,qy.has(o)||(qy.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=S(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;Yy.has(a)||(Yy.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
136
-
137
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
138
-
139
- The above lifecycles should be removed. Learn more about this warning here:
140
- https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
141
- `+o,c===null?``:`
142
- `+c,l===null?``:`
143
- `+l))}}a=t.stateNode,o=S(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&&!$y.has(n)&&($y.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&&!Qy.has(n)&&(Qy.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.`,S(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`||Jy.has(n)||(Jy.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,S(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`||Wf(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={},Zi(t),o=n.contextType,a.context=typeof o==`object`&&o?ni(o):Ng,a.state===r&&(o=S(n)||`Component`,Xy.has(o)||(Xy.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&Lg&&lv.recordLegacyContextWarning(t,a),lv.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.`,C(t)||`Component`),nb.enqueueReplaceState(a,a.state,null)),ra(t,r,a,i),P(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(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=Ng,typeof l==`object`&&l&&(o=ni(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),ny=!1;var p=t.memoizedState;a.state=p,ra(t,r,a,i),P(),f=t.memoizedState,d||p!==f||ny?(typeof u==`function`&&(Xo(t,n,u,r),f=t.memoizedState),(c=ny||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&Rg)!==G&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(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&Rg)!==G&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,Qi(e,t),o=t.memoizedProps,l=$o(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=Ng,typeof f==`object`&&f&&(c=ni(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),ny=!1,p=t.memoizedState,a.state=p,ra(t,r,a,i),P();var m=t.memoizedState;o!==u||p!==m||ny||e!==null&&e.dependencies!==null&&ei(e.dependencies)?(typeof d==`function`&&(Xo(t,n,d,r),m=t.memoizedState),(l=ny||Zo(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&ei(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,_s(e,t),o=!!(t.flags&128),c||o){if(c=t.stateNode,Te(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,C_=-1;else if(n=Sv(c),t.mode&Lg){Me(!0);try{Sv(c)}finally{Me(!1)}}t.flags|=1,e!==null&&o?(t.child=Xv(t,e.child,null,i),t.child=Xv(t,null,n,i)):cs(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=Ms(e,t,i);return i=t.stateNode,a&&i.props!==r&&(db||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",C(t)||`a component`),db=!0),e}function xs(e,t,n,r){return Wr(),t.flags|=256,cs(e,t,n,r),t.child}function Ss(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=S(t)||`Unknown`,ub[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),ub[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=S(t)||`Unknown`,cb[t]||(console.error(`%s: Function components do not support contextType.`,t),cb[t]=!0))}function Cs(e){return{baseLanes:e,cachePool:Mi()}}function ws(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dx),e}function Ts(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:(fy.current&dy)!==0),r&&(a=!0,t.flags&=-129),r=!!(t.flags&32),t.flags&=-33,e===null){if($g){if(a?ua(t):pa(t),(e=Qg)?(n=ld(e,r_),n=n!==null&&n.data!==kS?n:null,n!==null&&(r={dehydrated:n,treeContext:Pr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Dr(n),r.return=t,t.child=r,Zg=t,Qg=null)):n=null,n===null)throw zr(t,e),Br(t);return dd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){pa(t);var l=t.mode;return c=Ds({mode:`hidden`,children:c},l),i=Tr(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=Cs(n),i.childLanes=ws(e,r,n),t.memoizedState=mb,ps(null,i)}return ua(t),Es(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(ua(t),t.flags&=-257,t=Os(e,t,n)):t.memoizedState===null?(pa(t),c=i.fallback,l=t.mode,i=Ds({mode:`visible`,children:i.children},l),c=Tr(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Xv(t,e.child,null,n),i=t.child,i.memoizedState=Cs(n),i.childLanes=ws(e,r,n),t.memoizedState=mb,t=ps(null,i)):(pa(t),t.child=e.child,t.flags|=128,t=null);else if(ua(t),Rr(),n&536870912&&cl(t),dd(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`&&Vg.set(c,i),Kr(i),t=Os(e,t,n)}else if(ob||$r(e,t,n,!1),r=(n&e.childLanes)!==0,ob||r){if(r=Wb,r!==null&&(i=We(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,dr(e,i),Yc(r,e,i),ab;ud(d)||ll(),t=Os(e,t,n)}else ud(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Qg=pd(d.nextSibling),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!1,e!==null&&Fr(t,e),t=Es(t,i.children),t.flags|=4096);return t}}return a?(pa(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=xr(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=Tr(c,l,n,null),c.flags|=2):c=xr(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,ps(null,i),i=t.child,c=e.child.memoizedState,c===null?c=Cs(n):(l=c.cachePool,l===null?l=Mi():(p=m_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=ws(e,r,n),t.memoizedState=mb,ps(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&cl(t),ua(t),n=e.child,e=n.sibling,n=xr(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 Es(e,t){return t=Ds({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ds(e,t){return e=g(22,e,null,t),e.lanes=0,e}function Os(e,t,n){return Xv(t,e.child,null,n),e=Es(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ks(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zr(e.return,t,n)}function As(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 js(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=fy.current;if((r=(s&dy)!==0)?(s=s&uy|dy,t.flags|=128):s&=uy,T(fy,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!fb[s]){if(fb[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`,pb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(pb[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`?(pb[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`&&(pb[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(Wf(o)){for(s=0;s<o.length;s++)if(!Xi(o[s],s))break a}else if(s=ae(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Xi(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(cs(e,t,o,n),$g?(Ir(),o=Gg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ks(e,n,t);else if(e.tag===19)ks(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&&ha(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),As(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&&ha(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}As(t,!0,n,null,a,o);break;case`together`:As(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Ms(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),C_=-1,cx|=t.lanes,(n&t.childLanes)===0){if(e!==null){if($r(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=xr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ns(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ei(e)))}function Ps(e,t,n){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),Yr(t,m_,e.memoizedState.cache),Wr();break;case 27:case 5:fe(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:Yr(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,da(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ua(t),e=Ms(e,t,n),e===null?null:e.sibling):Ts(e,t,n):(ua(t),t.flags|=128,null);ua(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=($r(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return js(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),T(fy,fy.current,t),r)break;return null;case 22:return t.lanes=0,fs(e,t,n,t.pendingProps);case 24:Yr(t,m_,e.memoizedState.cache)}return Ms(e,t,n)}function Fs(e,t,n){if(t._debugNeedsRemount&&e!==null){n=Cr(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)ob=!0;else{if(!Ns(e,n)&&!(t.flags&128))return ob=!1,Ps(e,t,n);ob=!!(e.flags&131072)}}else ob=!1,(r=$g)&&(Ir(),r=!!(t.flags&1048576)),r&&(r=t.index,Ir(),jr(t,Gg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=Fi(t.elementType),t.type=e,typeof e==`function`)br(e)?(r=$o(e,r),t.tag=1,t.type=e=mr(e),t=bs(null,t,e,r,n)):(t.tag=0,Ss(t,e),t.type=e=mr(e),t=vs(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Ff){t.tag=11,t.type=e=hr(e),t=ls(null,t,e,r,n);break a}if(i===Rf){t.tag=14,t=us(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===zf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=S(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 vs(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=$o(r,t.pendingProps),bs(e,t,r,i,n);case 3:a:{if(le(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,Qi(e,t),ra(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Yr(t,m_,r),r!==a.cache&&Qr(t,[m_],n,!0),P(),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=xs(e,t,r,n);break a}if(r!==i){i=kr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Kr(i),t=xs(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(Qg=pd(e.firstChild),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!0,n=Zv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wr(),r===i){t=Ms(e,t,n);break a}cs(e,t,r,n)}t=t.child}return t;case 26:return _s(e,t),e===null?(n=Ed(t.type,null,t.pendingProps,null))?t.memoizedState=n:$g||(n=t.type,e=t.pendingProps,r=ce(Qf.current),r=Fu(r).createElement(n),r[Up]=t,r[Wp]=e,xu(r,n,e),tt(r),t.stateNode=r):t.memoizedState=Ed(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&$g&&(r=ce(Qf.current),i=de(),r=t.stateNode=xd(t.type,t.pendingProps,r,i,!1),e_||(i=ju(r,t.type,t.pendingProps,i),i!==null&&(Lr(t,0).serverProps=i)),Zg=t,r_=!0,i=Qg,Yu(t.type)?(nC=i,Qg=pd(r.firstChild)):Qg=i),cs(e,t,t.pendingProps.children,n),_s(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$g&&(a=de(),r=qt(t.type,a.ancestorInfo),i=Qg,(o=!i)||(o=sd(i,t.type,t.pendingProps,r_),o===null?a=!1:(t.stateNode=o,e_||(a=ju(o,t.type,t.pendingProps,a),a!==null&&(Lr(t,0).serverProps=a)),Zg=t,Qg=pd(o.firstChild),r_=!1,a=!0),o=!a),o&&(r&&zr(t,i),Br(t))),fe(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Ru(i,a)?r=null:o!==null&&Ru(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=ba(e,t,Ca,null,null,n),bC._currentValue=i),_s(e,t),cs(e,t,r,n),t.child;case 6:return e===null&&$g&&(n=t.pendingProps,e=de(),r=e.ancestorInfo.current,n=r==null||Jt(n,r.tag,e.ancestorInfo.implicitRootScope),e=Qg,(r=!e)||(r=cd(e,t.pendingProps,r_),r===null?r=!1:(t.stateNode=r,Zg=t,Qg=null,r=!0),r=!r),r&&(n&&zr(t,e),Br(t))),null;case 13:return Ts(e,t,n);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xv(t,null,r,n):cs(e,t,r,n),t.child;case 11:return ls(e,t,t.type,t.pendingProps,n);case 7:return cs(e,t,t.pendingProps,n),t.child;case 8:return cs(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,cs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||hb||(hb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Yr(t,r,a),cs(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.`),ti(t),i=ni(i),r=bv(r,i,void 0),t.flags|=1,cs(e,t,r,n),t.child;case 14:return us(e,t,t.type,t.pendingProps,n);case 15:return ds(e,t,t.type,t.pendingProps,n);case 19:return js(e,t,n);case 31:return z(e,t,n);case 22:return fs(e,t,n,t.pendingProps);case 24:return ti(t),r=ni(m_),e===null?(i=Ai(),i===null&&(i=Wb,a=ai(),i.pooledCache=a,oi(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Zi(t),Yr(t,m_,i)):((e.lanes&n)!==0&&(Qi(e,t),ra(t,null,null,n),P()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Yr(t,m_,r),r!==i.cache&&Qr(t,[m_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Yr(t,m_,r))),cs(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 Is(e){e.flags|=4}function Ls(e,t,n,r,i){if((t=(e.mode&zg)!==G)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(al())e.flags|=8192;else throw Vv=Bv,Rv}}else e.flags&=-16777217}function Rs(e,t){if(t.type!==`stylesheet`||(t.state.loading&sC)!==rC)e.flags&=-16777217;else if(e.flags|=16777216,!Vd(t)){if(al())e.flags|=8192;else throw Vv=Bv,Rv}}function zs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Re(),e.lanes|=t,fx|=t)}function Bs(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 Vs(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t){if((e.mode&K)!==G){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&K)!==G){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 Hs(e,t,n){var r=t.pendingProps;switch(Nr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:return Vs(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xr(m_,t),ue(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ur(t)?(qr(),Is(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gr())),Vs(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Is(t),a===null?(Vs(t),Ls(t,i,null,r,n)):(Vs(t),Rs(t,a))):a?a===e.memoizedState?(Vs(t),t.flags&=-16777217):(Is(t),Vs(t),Rs(t,a)):(e=e.memoizedProps,e!==r&&Is(t),Vs(t),Ls(t,i,e,r,n)),null;case 27:if(pe(t),n=ce(Qf.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Is(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 Vs(t),null}e=de(),Ur(t)?Vr(t,e):(e=xd(i,r,n,e,!0),t.stateNode=e,Is(t))}return Vs(t),null;case 5:if(pe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Is(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 Vs(t),null}var o=de();if(Ur(t))Vr(t,o);else{switch(a=ce(Qf.current),qt(i,o.ancestorInfo),o=o.context,a=Fu(a),o){case WS:a=a.createElementNS(Nm,i);break;case GS:a=a.createElementNS(Mm,i);break;default:switch(i){case`svg`:a=a.createElementNS(Nm,i);break;case`math`:a=a.createElementNS(Mm,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]`||mp.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[Up]=t,a[Wp]=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(xu(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&&Is(t)}}return Vs(t),Ls(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Is(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=ce(Qf.current),n=de(),Ur(t)){if(e=t.stateNode,n=t.memoizedProps,i=!e_,r=null,a=Zg,a!==null)switch(a.tag){case 3:i&&(i=hd(e,n,r),i!==null&&(Lr(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=hd(e,n,r),i!==null&&(Lr(t,0).serverProps=i))}e[Up]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||vu(e.nodeValue,n)),e||Br(t,!0)}else i=n.ancestorInfo.current,i!=null&&Jt(r,i.tag,n.ancestorInfo.implicitRootScope),e=Fu(e).createTextNode(r),e[Up]=t,t.stateNode=e}return Vs(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ur(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[Up]=t,Vs(t),(t.mode&K)!==G&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else qr(),Wr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Vs(t),(t.mode&K)!==G&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Gr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ma(t),t):(ma(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Vs(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Ur(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[Up]=t,Vs(t),(t.mode&K)!==G&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else qr(),Wr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Vs(t),(t.mode&K)!==G&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Gr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ma(t),t):(ma(t),null)}return ma(t),t.flags&128?(t.lanes=n,(t.mode&K)!==G&&Ei(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),zs(t,t.updateQueue),Vs(t),(t.mode&K)!==G&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return ue(t),e===null&&au(t.stateNode.containerInfo),Vs(t),null;case 10:return Xr(t.type,t),Vs(t),null;case 19:if(se(fy,t),r=t.memoizedState,r===null)return Vs(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)Bs(r,!1);else{if(sx!==Ib||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ha(e),a!==null){for(t.flags|=128,Bs(r,!1),e=a.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Sr(n,e),n=n.sibling;return T(fy,fy.current&uy|dy,t),$g&&Ar(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&yp()>yx&&(t.flags|=128,i=!0,Bs(r,!1),t.lanes=4194304)}}else{if(!i){if(e=ha(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),Bs(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!$g)return Vs(t),null}else 2*yp()-r.renderingStartTime>yx&&n!==536870912&&(t.flags|=128,i=!0,Bs(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?(Vs(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=yp(),e.sibling=null,n=fy.current,n=i?n&uy|dy:n&uy,T(fy,n,t),$g&&Ar(t,r.treeForkCount),e);case 22:case 23:return ma(t),la(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Vs(t),t.subtreeFlags&6&&(t.flags|=8192)):Vs(t),n=t.updateQueue,n!==null&&zs(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&&se(cv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xr(m_,t),Vs(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 Us(e,t){switch(Nr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Ei(t),t):null;case 3:return Xr(m_,t),ue(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(ma(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Ei(t),t):null;case 13:if(ma(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.`);Wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Ei(t),t):null;case 19:return se(fy,t),null;case 4:return ue(t),null;case 10:return Xr(t.type,t),null;case 22:case 23:return ma(t),la(t),e!==null&&se(cv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Ei(t),t):null;case 24:return Xr(m_,t),null;case 25:return null;default:return null}}function Ws(e,t){switch(Nr(t),t.tag){case 3:Xr(m_,t),ue(t);break;case 26:case 27:case 5:pe(t);break;case 4:ue(t);break;case 31:t.memoizedState!==null&&ma(t);break;case 13:ma(t);break;case 19:se(fy,t);break;case 10:Xr(t.type,t);break;case 22:case 23:ma(t),la(t),e!==null&&se(cv,t);break;case 24:Xr(m_,t)}}function Gs(e){return(e.mode&K)!==G}function Ks(e,t){Gs(e)?(Ti(),B(t,e),Ci()):B(t,e)}function qs(e,t,n){Gs(e)?(Ti(),Js(n,e,t),Ci()):Js(n,e,t)}function B(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&hy)!==py&&($x=!0),r=E(t,Mv,n),(e&hy)!==py&&($x=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&gy)===0?(n.tag&hy)===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
-
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
-
148
- `+a+`(() => {
149
- async function fetchData() {
150
- // You can await here
151
- const response = await MyAPI.getData(someId);
152
- // ...
153
- }
154
- fetchData();
155
- }, [someId]); // Or [] if effect doesn't need props or state
156
-
157
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,E(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){kl(t,t.return,e)}}function Js(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&hy)!==py&&($x=!0),i=t,E(i,Pv,i,n,s),(e&hy)!==py&&($x=!1))}r=r.next}while(r!==a)}}catch(e){kl(t,t.return,e)}}function Ys(e,t){Gs(e)?(Ti(),B(t,e),Ci()):B(t,e)}function Xs(e,t,n){Gs(e)?(Ti(),Js(n,e,t),Ci()):Js(n,e,t)}function Zs(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||db||(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.",C(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.",C(e)||`instance`));try{E(e,oa,t,n)}catch(t){kl(e,e.return,t)}}}function Qs(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function $s(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||db||(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.",C(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.",C(e)||`instance`));try{var i=$o(e.type,n),a=E(e,Qs,t,i,r);n=gb,a!==void 0||n.has(e.type)||(n.add(e.type),E(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,C(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){kl(e,e.return,t)}}function ec(e,t,n){n.props=$o(e.type,e.memoizedProps),n.state=e.memoizedState,Gs(e)?(Ti(),E(e,Av,e,t,n),Ci()):E(e,Av,e,t,n)}function tc(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(Gs(e))try{Ti(),e.refCleanup=t(n)}finally{Ci()}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().`,C(e)),t.current=n}}function nc(e,t){try{E(e,tc,e)}catch(n){kl(e,t,n)}}function rc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{if(Gs(e))try{Ti(),E(e,r)}finally{Ci(e)}else E(e,r)}catch(n){kl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Gs(e))try{Ti(),E(e,n,null)}finally{Ci(e)}else E(e,n,null)}catch(n){kl(e,t,n)}else n.current=null}}function ic(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,tv&&(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 V(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function ac(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{E(e,Uu,r,t,n,e)}catch(t){kl(e,e.return,t)}}function H(e,t,n){try{E(e,Gu,e.stateNode,e.type,n,t,e)}catch(t){kl(e,e.return,t)}}function oc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yu(e.type)||e.tag===4}function sc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||oc(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&&Yu(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 cc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Ju(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Ju(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=sn));else if(r!==4&&(r===27&&Yu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}function lc(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&&Yu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}function uc(e){for(var t,n=e.return;n!==null;){if(oc(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=sc(e),lc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Ku(n),t.flags&=-33),t=sc(e),lc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=sc(e),cc(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 dc(e){var t=e.stateNode,n=e.memoizedProps;try{E(e,Sd,e.type,n,t,e)}catch(t){kl(e,e.return,t)}}function fc(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 pc(e,t){if(e=e.containerInfo,KS=LC,e=Bn(e),Vn(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,xb=t;xb!==null;)if(t=xb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,xb=e;else for(;xb!==null;){switch(e=t=xb,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&&$s(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)od(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:od(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,xb=e;break}xb=t.return}}function mc(e,t,n){var r=mi(),i=gi(),a=vi(),o=yi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Ec(e,n),s&4&&Ks(n,gy|my);break;case 1:if(Ec(e,n),s&4){if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||db||(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.",C(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.",C(n)||`instance`)),Gs(n)?(Ti(),E(n,wv,n,e),Ci()):E(n,wv,n,e);else{var c=$o(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||db||(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.",C(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.",C(n)||`instance`)),Gs(n)?(Ti(),E(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),Ci()):E(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}}s&64&&Zs(n),s&512&&nc(n,n.return);break;case 3:if(t=ui(),Ec(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{E(n,oa,s,c)}catch(e){kl(n,n.return,e)}}e.effectDuration+=di(t);break;case 27:t===null&&s&4&&dc(n);case 26:case 5:if(Ec(e,n),t===null){if(s&4)ac(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{E(n,Wu,c,e,t,n)}catch(e){kl(n,n.return,e)}}}s&512&&nc(n,n.return);break;case 12:if(s&4){s=ui(),Ec(e,n),e=n.stateNode,e.effectDuration+=fi(s);try{E(n,ic,n,t,b_,e.effectDuration)}catch(e){kl(n,n.return,e)}}else Ec(e,n);break;case 31:Ec(e,n),s&4&&vc(e,n);break;case 13:Ec(e,n),s&4&&yc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Nl.bind(null,n),fd(e,s))));break;case 22:if(s=n.memoizedState!==null||_b,!s){t=t!==null&&t.memoizedState!==null||vb,c=_b;var l=vb;_b=s,(vb=t)&&!l?(Ac(e,n,!!(n.subtreeFlags&8772)),(n.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Zn(n,q,J)):Ec(e,n),_b=c,vb=l}break;case 30:break;default:Ec(e,n)}(n.mode&K)!==G&&0<=q&&0<=J&&((D_||.05<T_)&&$n(n,q,J,T_,E_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<J-q&&(fc(n.return.alternate,n.return)||Xn(n,q,J,`Mount`))),hi(r),_i(i),E_=a,D_=o}function hc(e){var t=e.alternate;t!==null&&(e.alternate=null,hc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ze(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 gc(e,t,n){for(n=n.child;n!==null;)_c(e,t,n),n=n.sibling}function _c(e,t,n){if(kp&&typeof kp.onCommitFiberUnmount==`function`)try{kp.onCommitFiberUnmount(Op,n)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=mi(),i=gi(),a=vi(),o=yi();switch(n.tag){case 26:vb||rc(n,t),gc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:vb||rc(n,t);var s=wb,c=Tb;Yu(n.type)&&(wb=n.stateNode,Tb=!1),gc(e,t,n),E(n,Cd,n.stateNode),wb=s,Tb=c;break;case 5:vb||rc(n,t);case 6:if(s=wb,c=Tb,wb=null,gc(e,t,n),wb=s,Tb=c,wb!==null){if(Tb)try{E(n,Zu,wb,n.stateNode)}catch(e){kl(n,t,e)}else try{E(n,Xu,wb,n.stateNode)}catch(e){kl(n,t,e)}}break;case 18:wb!==null&&(Tb?(e=wb,Qu(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),vf(e)):Qu(wb,n.stateNode));break;case 4:s=wb,c=Tb,wb=n.stateNode.containerInfo,Tb=!0,gc(e,t,n),wb=s,Tb=c;break;case 0:case 11:case 14:case 15:Js(hy,n,t),vb||qs(n,t,gy),gc(e,t,n);break;case 1:vb||(rc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&ec(n,t,s)),gc(e,t,n);break;case 21:gc(e,t,n);break;case 22:vb=(s=vb)||n.memoizedState!==null,gc(e,t,n),vb=s;break;default:gc(e,t,n)}(n.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(n,q,J,T_,E_),hi(r),_i(i),E_=a,D_=o}function vc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{E(t,yd,e)}catch(e){kl(t,t.return,e)}}}function yc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{E(t,bd,e)}catch(e){kl(t,t.return,e)}}function bc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function xc(e,t){var n=bc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),jp){if(Sb!==null&&Cb!==null)zl(Cb,Sb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`)}var r=Pl.bind(null,e,t);t.then(r,r)}})}function Sc(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=mi(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(Yu(c.type)){wb=c.stateNode,Tb=!1;break a}break;case 5:wb=c.stateNode,Tb=!1;break a;case 3:case 4:wb=c.stateNode.containerInfo,Tb=!0;break a}c=c.return}if(wb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);_c(i,a,o),wb=null,Tb=!1,(o.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(o,q,J,`Unmount`),hi(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cc(t,e),t=t.sibling}function Cc(e,t){var n=mi(),r=gi(),i=vi(),a=yi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Sc(t,e),wc(e),s&4&&(Js(hy|my,e,e.return),B(hy|my,e),qs(e,e.return,gy|my));break;case 1:if(Sc(t,e),wc(e),s&512&&(vb||o===null||rc(o,o.return)),s&64&&_b&&(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=Eb,Sc(t,e),wc(e),s&512&&(vb||o===null||rc(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[Xp]||l[Up]||l.namespaceURI===Nm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),xu(l,s,o),l[Up]=e,tt(l),s=l;break a;case`link`:var u=Rd(`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),xu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Rd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],D(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),xu(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[Up]=e,tt(l),s=l}e.stateNode=s}else zd(c,e.type,e.stateNode)}else e.stateNode=Pd(c,s,e.memoizedProps)}else l===s?s===null&&e.stateNode!==null&&H(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?zd(c,e.type,e.stateNode):Pd(c,s,e.memoizedProps))}break;case 27:Sc(t,e),wc(e),s&512&&(vb||o===null||rc(o,o.return)),o!==null&&s&4&&H(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Sc(t,e),wc(e),s&512&&(vb||o===null||rc(o,o.return)),e.flags&32){c=e.stateNode;try{E(e,Ku,c)}catch(t){kl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,H(e,c,o===null?c:o.memoizedProps)),s&1024&&(yb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(Sc(t,e),wc(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{E(e,qu,c,o,s)}catch(t){kl(e,e.return,t)}}break;case 3:if(c=ui(),fC=null,l=Eb,Eb=wd(t.containerInfo),Sc(t,e),Eb=l,wc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{E(e,vd,t.containerInfo)}catch(t){kl(e,e.return,t)}yb&&(yb=!1,Tc(e)),t.effectDuration+=di(c);break;case 4:s=Eb,Eb=wd(e.stateNode.containerInfo),Sc(t,e),wc(e),Eb=s;break;case 12:s=ui(),Sc(t,e),wc(e),e.stateNode.effectDuration+=fi(s);break;case 31:Sc(t,e),wc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,xc(e,s)));break;case 13:Sc(t,e),wc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(gx=yp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,xc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=_b,m=vb;if(_b=p||c,vb=m||f,Sc(t,e),vb=m,_b=p,f&&!c&&!p&&!m&&(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Zn(e,q,J),wc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Og:t._visibility|Og,!c||o===null||f||_b||vb||(Oc(e),(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(e,q,J,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?E(f,td,l):E(f,id,f.stateNode,f.memoizedProps)}catch(e){kl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?E(f,nd,u):E(f,ad,u,f.memoizedProps)}catch(e){kl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?E(f,ed,d):E(f,rd,f.stateNode)}catch(e){kl(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,xc(e,o))));break;case 19:Sc(t,e),wc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,xc(e,s)));break;case 30:break;case 21:break;default:Sc(t,e),wc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&((D_||.05<T_)&&$n(e,q,J,T_,E_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<J-q&&(fc(e.return.alternate,e.return)||Xn(e,q,J,`Mount`))),hi(n),_i(r),E_=i,D_=a}function wc(e){var t=e.flags;if(t&2){try{E(e,uc,e)}catch(t){kl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tc(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ec(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mc(e,t.alternate,t),t=t.sibling}function Dc(e){var t=mi(),n=gi(),r=vi(),i=yi();switch(e.tag){case 0:case 11:case 14:case 15:qs(e,e.return,gy),Oc(e);break;case 1:rc(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&ec(e,e.return,a),Oc(e);break;case 27:E(e,Cd,e.stateNode);case 26:case 5:rc(e,e.return),Oc(e);break;case 22:e.memoizedState===null&&Oc(e);break;case 30:Oc(e);break;default:Oc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(e,q,J,T_,E_),hi(t),_i(n),E_=r,D_=i}function Oc(e){for(e=e.child;e!==null;)Dc(e),e=e.sibling}function kc(e,t,n,r){var i=mi(),a=gi(),o=vi(),s=yi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Ac(e,n,r),Ks(n,gy);break;case 1:if(Ac(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&E(n,wv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{E(n,aa,t,e)}catch(e){kl(n,n.return,e)}}r&&c&64&&Zs(n),nc(n,n.return);break;case 27:dc(n);case 26:case 5:Ac(e,n,r),r&&t===null&&c&4&&ac(n),nc(n,n.return);break;case 12:if(r&&c&4){c=ui(),Ac(e,n,r),r=n.stateNode,r.effectDuration+=fi(c);try{E(n,ic,n,t,b_,r.effectDuration)}catch(e){kl(n,n.return,e)}}else Ac(e,n,r);break;case 31:Ac(e,n,r),r&&c&4&&vc(e,n);break;case 13:Ac(e,n,r),r&&c&4&&yc(e,n);break;case 22:n.memoizedState===null&&Ac(e,n,r),nc(n,n.return);break;case 30:break;default:Ac(e,n,r)}(n.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(n,q,J,T_,E_),hi(i),_i(a),E_=o,D_=s}function Ac(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;)kc(e,t.alternate,t,n),t=t.sibling}function jc(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&&oi(e),n!=null&&si(n))}function Mc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(oi(t),e!=null&&si(e))}function Nc(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;Pc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Pc(e,t,n,r,i){var a=mi(),o=gi(),s=vi(),c=yi(),l=Sg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&K)!==G&&0<t.actualStartTime&&t.flags&1&&Qn(t,t.actualStartTime,i,Db,n),Nc(e,t,n,r,i),u&2048&&Ys(t,_y|my);break;case 1:(t.mode&K)!==G&&0<t.actualStartTime&&(t.flags&128?M(t,t.actualStartTime,i,[]):t.flags&1&&Qn(t,t.actualStartTime,i,Db,n)),Nc(e,t,n,r,i);break;case 3:var d=ui(),f=Db;Db=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!(t.flags&256),Nc(e,t,n,r,i),Db=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(oi(r),n!=null&&si(n))),e.passiveEffectDuration+=di(d);break;case 12:if(u&2048){u=ui(),Nc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=fi(u);try{E(t,V,t,t.alternate,b_,e.passiveEffectDuration)}catch(e){kl(t,t.return,e)}}else Nc(e,t,n,r,i);break;case 31:u=Db,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?(Db=!1,d=d.hydrationErrors,d!==null&&M(t,t.actualStartTime,i,d)):Db=!0):Db=!1,Nc(e,t,n,r,i),Db=u;break;case 13:u=Db,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?Db=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Db=!1,d=d.hydrationErrors,d!==null&&M(t,t.actualStartTime,i,d)):Db=!0),Nc(e,t,n,r,i),Db=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&kg?Nc(e,t,n,r,i):(f._visibility|=kg,Fc(e,t,n,r,!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&K)===G||Db||(e=t.actualStartTime,0<=e&&.05<i-e&&Zn(t,e,i),0<=q&&0<=J&&.05<J-q&&Zn(t,q,J))):f._visibility&kg?Nc(e,t,n,r,i):Lc(e,t,n,r,i),u&2048&&jc(d,t);break;case 24:Nc(e,t,n,r,i),u&2048&&Mc(t.alternate,t);break;default:Nc(e,t,n,r,i)}(t.mode&K)!==G&&((e=!Db&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&Xn(t,n,i,`Mount`)),0<=q&&0<=J&&((D_||.05<T_)&&$n(t,q,J,T_,E_),e&&.05<J-q&&Xn(t,q,J,`Mount`))),hi(a),_i(o),E_=s,D_=c,Sg=l}function Fc(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;Ic(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Ic(e,t,n,r,i,a){var o=mi(),s=gi(),c=vi(),l=yi(),u=Sg;i&&(t.mode&K)!==G&&0<t.actualStartTime&&t.flags&1&&Qn(t,t.actualStartTime,a,Db,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Fc(e,t,n,r,i,a),Ys(t,_y);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=kg,Fc(e,t,n,r,i,a)):f._visibility&kg?Fc(e,t,n,r,i,a):Lc(e,t,n,r,a),i&&d&2048&&jc(t.alternate,t);break;case 24:Fc(e,t,n,r,i,a),i&&d&2048&&Mc(t.alternate,t);break;default:Fc(e,t,n,r,i,a)}(t.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(t,q,J,T_,E_),hi(o),_i(s),E_=c,D_=l,Sg=u}function Lc(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=Sg;(a.mode&K)!==G&&0<a.actualStartTime&&a.flags&1&&Qn(a,a.actualStartTime,l,Db,s);var d=a.flags;switch(a.tag){case 22:Lc(o,a,s,c,l),d&2048&&jc(a.alternate,a);break;case 24:Lc(o,a,s,c,l),d&2048&&Mc(a.alternate,a);break;default:Lc(o,a,s,c,l)}Sg=u,a=t}}function Rc(e,t,n){if(e.subtreeFlags&Ob)for(e=e.child;e!==null;)zc(e,t,n),e=e.sibling}function zc(e,t,n){switch(e.tag){case 26:Rc(e,t,n),e.flags&Ob&&e.memoizedState!==null&&Hd(n,Eb,e.memoizedState,e.memoizedProps);break;case 5:Rc(e,t,n);break;case 3:case 4:var r=Eb;Eb=wd(e.stateNode.containerInfo),Rc(e,t,n),Eb=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ob,Ob=16777216,Rc(e,t,n),Ob=r):Rc(e,t,n));break;default:Rc(e,t,n)}}function Bc(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 Vc(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=mi();xb=r,U(r,e),(r.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(r,q,J,`Unmount`),hi(i)}Bc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hc(e),e=e.sibling}function Hc(e){var t=mi(),n=gi(),r=vi(),i=yi();switch(e.tag){case 0:case 11:case 15:Vc(e),e.flags&2048&&Xs(e,e.return,_y|my);break;case 3:var a=ui();Vc(e),e.stateNode.passiveEffectDuration+=di(a);break;case 12:a=ui(),Vc(e),e.stateNode.passiveEffectDuration+=fi(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&kg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~kg,Uc(e),(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(e,q,J,`Disconnect`)):Vc(e);break;default:Vc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(e,q,J,T_,E_),hi(t),_i(n),D_=i,E_=r}function Uc(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=mi();xb=r,U(r,e),(r.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(r,q,J,`Unmount`),hi(i)}Bc(e)}for(e=e.child;e!==null;)Wc(e),e=e.sibling}function Wc(e){var t=mi(),n=gi(),r=vi(),i=yi();switch(e.tag){case 0:case 11:case 15:Xs(e,e.return,_y),Uc(e);break;case 22:var a=e.stateNode;a._visibility&kg&&(a._visibility&=~kg,Uc(e));break;default:Uc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(e,q,J,T_,E_),hi(t),_i(n),D_=i,E_=r}function U(e,t){for(;xb!==null;){var n=xb,r=n,i=t,a=mi(),o=gi(),s=vi(),c=yi();switch(r.tag){case 0:case 11:case 15:Xs(r,i,_y);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&oi(i));break;case 24:si(r.memoizedState.cache)}if((r.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(r,q,J,T_,E_),hi(a),_i(o),D_=c,E_=s,r=n.child,r!==null)r.return=n,xb=r;else a:for(n=e;xb!==null;){if(r=xb,a=r.sibling,o=r.return,hc(r),r===n){xb=null;break a}if(a!==null){a.return=o,xb=a;break a}xb=o}}}function Gc(){jb.forEach(function(e){return e()})}function Kc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||W.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function qc(e){if((Ub&Pb)!==Nb&&$!==0)return $&-$;var t=W.T;return t===null?Ye():(t._updatedFibers||=new Set,t._updatedFibers.add(e),Zl())}function Jc(){if(dx===0){if(!($&536870912)||$g){var e=Ip;Ip<<=1,!(Ip&3932160)&&(Ip=262144),dx=e}else dx=536870912}return e=cy.current,e!==null&&(e.flags|=32),dx}function Yc(e,t,n){if($x&&console.error(`useInsertionEffect must not schedule updates.`),Jx&&(Yx=!0),(e===Wb&&(tx===qb||tx===ex)||e.cancelPendingCommit!==null)&&(rl(e,0),$c(e,$,dx,!1)),Be(e,n),(Ub&Pb)!==Nb&&e===Wb){if(pp)switch(t.tag){case 0:case 11:case 15:e=Q&&C(Q)||`Unknown`,nS.has(e)||(nS.add(e),t=C(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 jp&&Ke(e,t,n),Vl(t),e===Wb&&((Ub&Pb)===Nb&&(lx|=n),sx===Bb&&$c(e,$,dx,!1)),Hl(e)}function Xc(e,t,n){if((Ub&(Pb|Fb))!==Nb)throw Error(`Should not already be working.`);if($!==0&&Q!==null){var r=Q,i=yp();switch($_){case Jb:case qb:var a=ev;vg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,yg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,yg,void 0,`primary-light`));break;case ex:a=ev,vg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,yg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,yg,void 0,`primary-light`));break;default:vg&&(r=i-ev,3>r||console.timeStamp(`Blocked`,ev,i,yg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ie(e,t))?fl(e,t):ul(e,t,!0);var o=n;do{if(a===Ib){ix&&!n&&$c(e,t,0,!1),t=tx,ev=h_(),$_=t;break}if(r=yp(),i=e.current.alternate,o&&!Qc(i)){j(t),i=y_,a=r,!vg||a<=i||(Sx?Sx.run(console.timeStamp.bind(console,`Teared Render`,i,a,xg,bg,`error`)):console.timeStamp(`Teared Render`,i,a,xg,bg,`error`)),nl(t,r),a=ul(e,t,!1),o=!1;continue}if(a===Rb){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){j(t),ir(y_,r,t,Sx),nl(t,r),t=s;a:{r=e,a=o,o=px;var c=r.current.memoizedState.isDehydrated;if(c&&(rl(r,s).flags|=256),s=ul(r,s,!1),s!==Rb){if(ax&&!c){r.errorRecoveryDisabledLanes|=a,lx|=a,a=Bb;break a}r=mx,mx=o,r!==null&&(mx===null?mx=r:mx.push.apply(mx,r))}a=s}if(o=!1,a!==Rb)continue;r=yp()}}if(a===Lb){j(t),ir(y_,r,t,Sx),nl(t,r),rl(e,0),$c(e,t,0,!0);break}a:{switch(n=e,a){case Ib:case Lb:throw Error(`Root did not complete. This is a bug in React.`);case Bb:if((t&4194048)!==t)break;case Vb:j(t),tr(y_,r,t,Sx),nl(t,r),i=t,i&127?L_=r:i&4194048&&(J_=r),$c(n,t,dx,!rx);break a;case Rb:mx=null;break;case zb:case Hb:break;default:throw Error(`Unknown root exit status.`)}if(W.actQueue!==null)bl(n,i,t,mx,xx,hx,dx,lx,fx,a,null,null,y_,r);else{if((t&62914560)===t&&(o=gx+vx-yp(),10<o)){if($c(n,t,dx,!rx),Fe(n,0,!0)!==0)break a;Lx=t,n.timeoutHandle=ZS(Zc.bind(null,n,i,mx,xx,hx,t,dx,lx,fx,rx,a,`Throttled`,y_,r),o);break a}Zc(n,i,mx,xx,hx,t,dx,lx,fx,rx,a,null,y_,r)}}break}while(1);Hl(e)}function Zc(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:sn},zc(t,a,h),m=(a&62914560)===a?gx-yp():(a&4194048)===a?_x-yp():0,m=Ud(h,m),m!==null)){Lx=a,e.cancelPendingCommit=m(bl.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)),$c(e,a,o,!l);return}bl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function Qc(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(!Vh(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 $c(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-Mp(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&He(e,n,t)}function el(){return(Ub&(Pb|Fb))!==Nb||(Ul(0,!1),!1)}function tl(){if(Q!==null){if(tx===Gb)var e=Q.return;else e=Q,Jr(),Ea(e),Uv=null,Wv=0,e=Q;for(;e!==null;)Ws(e.alternate,e),e=e.return;Q=null}}function nl(e,t){e&127&&(O_=t),e&4194048&&(R_=t),e&62914560&&(Y_=t),e&2080374784&&(X_=t)}function rl(e,t){vg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,bg,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,bg,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,bg,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,bg,`primary-light`));var n=y_;if(y_=h_(),$!==0&&0<n){if(j($),sx===zb||sx===Bb)tr(n,y_,t,Sx);else{var r=y_,i=Sx;if(vg&&!(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,xg,bg,a)):console.timeStamp(o,n,r,xg,bg,a)}}nl($,y_)}if(n=Sx,Sx=null,t&127){Sx=A_,i=0<=k_&&k_<O_?O_:k_,r=0<=P_&&P_<O_?O_:P_,a=0<=r?r:0<=i?i:y_,0<=L_?(j(2),nr(L_,a,t,n)):Z_&127&&(j(2),sr(O_,a,Q_)),n=i;var s=r,c=F_,l=0<I_,u=j_===__,d=j_===v_;if(i=y_,r=A_,a=M_,o=N_,vg){if(xg=`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,xg,bg,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,xg,bg,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:xg,trackGroup:bg,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}k_=-1.1,j_=0,N_=M_=null,L_=-1.1,I_=P_,P_=-1.1,O_=h_()}if(t&4194048&&(Sx=H_,i=0<=z_&&z_<R_?R_:z_,n=0<=B_&&B_<R_?R_:B_,r=0<=G_&&G_<R_?R_:G_,a=0<=r?r:0<=n?n:y_,0<=J_?(j(256),nr(J_,a,t,Sx)):Z_&4194048&&(j(256),sr(R_,a,Q_)),d=r,s=K_,c=0<q_,l=V_===v_,a=y_,r=H_,o=U_,u=W_,vg&&(xg=`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,xg,bg,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,xg,bg,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,xg,bg,`primary-dark`)):console.timeStamp(`Action`,i,n,xg,bg,`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:xg,trackGroup:bg,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),B_=z_=-1.1,V_=0,J_=-1.1,q_=G_,G_=-1.1,R_=h_()),t&62914560&&Z_&62914560&&(j(4194304),sr(Y_,y_,Q_)),t&2080374784&&Z_&2080374784&&(j(268435456),sr(X_,y_,Q_)),n=e.timeoutHandle,n!==$S&&(e.timeoutHandle=$S,QS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lx=0,tl(),Wb=e,Q=n=xr(e.current,null),$=t,tx=Gb,nx=null,rx=!1,ix=Ie(e,t),ax=!1,sx=Ib,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-Mp(r),a=1<<i,t|=e[i],r&=~a;return ox=t,cr(),e=sg(),1e3<e-ag&&(W.recentlyCreatedOwnerStacks=0,ag=e),lv.discardPendingWarnings(),n}function il(e,t){X=null,W.H=Ly,W.getCurrentStack=null,pp=!1,fp=null,t===Lv||t===zv?(t=Ii(),tx=Jb):t===Rv?(t=Ii(),tx=Yb):tx=t===ab?$b:typeof t==`object`&&t&&typeof t.then==`function`?Zb:Kb,nx=t;var n=Q;n===null?(sx=Lb,ns(e,kr(t,e.current))):n.mode&K&&xi(n)}function al(){var e=cy.current;return e===null?!0:($&4194048)===$?ly===null:($&62914560)===$||$&536870912?e===ly:!1}function ol(){var e=W.H;return W.H=Ly,e===null?Ly:e}function sl(){var e=W.A;return W.A=kb,e}function cl(e){Sx===null&&(Sx=e._debugTask==null?null:e._debugTask)}function ll(){sx=Bb,rx||($&4194048)!==$&&cy.current!==null||(ix=!0),!(cx&134217727)&&!(lx&134217727)||Wb===null||$c(Wb,$,dx,!1)}function ul(e,t,n){var r=Ub;Ub|=Pb;var i=ol(),a=sl();if(Wb!==e||$!==t){if(jp){var o=e.memoizedUpdaters;0<o.size&&(zl(e,$),o.clear()),qe(e,t)}xx=null,rl(e,t)}t=!1,o=sx;a:do try{if(tx!==Gb&&Q!==null){var s=Q,c=nx;switch(tx){case $b:tl(),o=Vb;break a;case Jb:case qb:case ex:case Zb:cy.current===null&&(t=!0);var l=tx;if(tx=Gb,nx=null,_l(e,s,c,l),n&&ix){o=Ib;break a}break;default:l=tx,tx=Gb,nx=null,_l(e,s,c,l)}}dl(),o=sx;break}catch(t){il(e,t)}while(1);return t&&e.shellSuspendCounter++,Jr(),Ub=r,W.H=i,W.A=a,Q===null&&(Wb=null,$=0,cr()),o}function dl(){for(;Q!==null;)ml(Q)}function fl(e,t){var n=Ub;Ub|=Pb;var r=ol(),i=sl();if(Wb!==e||$!==t){if(jp){var a=e.memoizedUpdaters;0<a.size&&(zl(e,$),a.clear()),qe(e,t)}xx=null,yx=yp()+bx,rl(e,t)}else ix=Ie(e,t);a:do try{if(tx!==Gb&&Q!==null)b:switch(t=Q,a=nx,tx){case Kb:tx=Gb,nx=null,_l(e,t,a,Kb);break;case qb:case ex:if(Ni(a)){tx=Gb,nx=null,hl(t);break}t=function(){tx!==qb&&tx!==ex||Wb!==e||(tx=Qb),Hl(e)},a.then(t,t);break a;case Jb:tx=Qb;break a;case Yb:tx=Xb;break a;case Qb:Ni(a)?(tx=Gb,nx=null,hl(t)):(tx=Gb,nx=null,_l(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?Vd(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,vl(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,_l(e,t,a,Xb);break;case Zb:tx=Gb,nx=null,_l(e,t,a,Zb);break;case $b:tl(),sx=Vb;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}W.actQueue===null?pl():dl();break}catch(t){il(e,t)}while(1);return Jr(),W.H=r,W.A=i,Ub=n,Q===null?(Wb=null,$=0,cr(),sx):Ib}function pl(){for(;Q!==null&&!_p();)ml(Q)}function ml(e){var t=e.alternate;(e.mode&K)===G?t=E(e,Fs,t,e,ox):(bi(e),t=E(e,Fs,t,e,ox),xi(e)),e.memoizedProps=e.pendingProps,t===null?vl(e):Q=t}function hl(e){var t=E(e,gl,e);e.memoizedProps=e.pendingProps,t===null?vl(e):Q=t}function gl(e){var t=e.alternate,n=(e.mode&K)!==G;switch(n&&bi(e),e.tag){case 15:case 0:t=ys(t,e,e.pendingProps,e.type,void 0,$);break;case 11:t=ys(t,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:Ea(e);default:Ws(t,e),e=Q=Sr(e,ox),t=Fs(t,e,ox)}return n&&xi(e),t}function _l(e,t,n,r){Jr(),Ea(t),Uv=null,Wv=0;var i=t.return;try{if(ss(e,i,t,n,$)){sx=Lb,ns(e,kr(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;sx=Lb,ns(e,kr(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=cy.current,r!==null&&r.tag===13&&(r.flags|=16384))),yl(t,e)):vl(t)}function vl(e){var t=e;do{if(t.flags&32768){yl(t,rx);return}var n=t.alternate;if(e=t.return,bi(t),n=E(t,Hs,n,t,ox),(t.mode&K)!==G&&Si(t),n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);sx===Ib&&(sx=Hb)}function yl(e,t){do{var n=Us(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if((e.mode&K)!==G){Si(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=Vb,Q=null}function bl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do El();while(Px!==Ox);if(lv.flushLegacyContextWarning(),lv.flushPendingUnsafeLifecycleWarnings(),(Ub&(Pb|Fb))!==Nb)throw Error(`Should not already be working.`);if(j(n),l===Rb?ir(f,p,n,Sx):r===null?er(f,p,n,Sx):rr(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|=Mg,Ve(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,Bl(Cp,function(){return XS=window.event,Ux===wx&&(Ux=Ex),Dl(),null})):(e.callbackNode=null,e.callbackPriority=0),S_=null,b_=h_(),d!==null&&ar(p,b_,d,Sx),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=W.T,W.T=null,i=Gf.p,Gf.p=Rp,o=Ub,Ub|=Fb;try{pc(e,t,n)}finally{Ub=o,Gf.p=i,W.T=r}}Px=kx,xl(),Sl(),Cl()}}function xl(){if(Px===kx){Px=Ox;var e=Fx,t=Ix,n=Lx,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=W.T,W.T=null;var i=Gf.p;Gf.p=Rp;var a=Ub;Ub|=Fb;try{Sb=n,Cb=e,pi(),Cc(t,e),Cb=Sb=null,n=qS;var o=Bn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&zn(s.ownerDocument.documentElement,s)){if(c!==null&&Vn(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 _=Rn(s,h),v=Rn(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{Ub=a,Gf.p=i,W.T=r}}e.current=t,Px=Ax}}function Sl(){if(Px===Ax){Px=Ox;var e=Wx;if(e!==null){b_=h_();var t=x_,n=b_;!vg||n<=t||(Q_?Q_.run(console.timeStamp.bind(console,e,t,n,xg,bg,`secondary-light`)):console.timeStamp(e,t,n,xg,bg,`secondary-light`))}e=Fx,t=Ix,n=Lx;var r=!!(t.flags&8772);if(t.subtreeFlags&8772||r){r=W.T,W.T=null;var i=Gf.p;Gf.p=Rp;var a=Ub;Ub|=Fb;try{Sb=n,Cb=e,pi(),mc(e,t.alternate,t),Cb=Sb=null}finally{Ub=a,Gf.p=i,W.T=r}}e=zx,t=Hx,x_=h_(),e=t===null?e:b_,t=x_,n=Ux===Tx,r=Sx,S_===null?!vg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,xg,bg,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,xg,bg,n?`error`:`secondary-dark`)):or(e,t,S_,!1,r),Px=jx}}function Cl(){if(Px===Mx||Px===jx){if(Px===Mx){var e=x_;x_=h_();var t=x_,n=Ux===Tx;!vg||t<=e||(Q_?Q_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,xg,bg,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,xg,bg,n?` error`:`secondary-light`)),Ux!==Tx&&(Ux=Dx)}Px=Ox,vp(),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,Tl(e,e.pendingLanes),Zx=0,Qx=null);var a=e.pendingLanes;if(a===0&&(Cx=null),i||Ll(e),a=Je(t),r=r.stateNode,kp&&typeof kp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Rp:var s=xp;break;case zp:s=Sp;break;case Bp:s=Cp;break;case Vp:s=Tp;break;default:s=Cp}kp.onCommitFiberRoot(Op,r,s,o)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(jp&&e.memoizedUpdaters.clear(),Gc(),n!==null){o=W.T,s=Gf.p,Gf.p=Rp,W.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=wl(l.stack);E(l.source,c,l.value,u)}}finally{W.T=o,Gf.p=s}}Lx&3&&El(),Hl(e),a=e.pendingLanes,t&261930&&a&42?(nv=!0,e===qx?Kx++:(Kx=0,qx=e)):Kx=0,i||nl(t,x_),Ul(0,!1)}}function wl(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 Tl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,si(t)))}function El(){return xl(),Sl(),Cl(),Dl()}function Dl(){if(Px!==Nx)return!1;var e=Fx,t=Rx;Rx=0;var n=Je(Lx),r=Bp===0||Bp>n?Bp:n;n=W.T;var i=Gf.p;try{Gf.p=r,W.T=null;var a=Bx;Bx=null,r=Fx;var o=Lx;if(Px=Ox,Ix=Fx=null,Lx=0,(Ub&(Pb|Fb))!==Nb)throw Error(`Cannot flush passive effects while already rendering.`);j(o),Jx=!0,Yx=!1;var s=0;if(S_=null,s=yp(),Ux===Dx)sr(x_,s,Q_);else{var c=x_,l=s,u=Ux===Ex;!vg||l<=c||(Sx?Sx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,xg,bg,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,xg,bg,`secondary-light`))}c=Ub,Ub|=Fb;var d=r.current;pi(),Hc(d);var f=r.current;d=zx,pi(),Pc(r,f,o,a,d),Ll(r),Ub=c;var p=yp();if(f=s,d=Sx,S_===null?!vg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,xg,bg,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,xg,bg,`secondary-dark`)):or(f,p,S_,!0,d),nl(o,p),Ul(0,!1),Yx?r===Qx?Zx++:(Zx=0,Qx=r):Zx=0,Yx=Jx=!1,kp&&typeof kp.onPostCommitFiberRoot==`function`)try{kp.onPostCommitFiberRoot(Op,r)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Gf.p=i,W.T=n,Tl(e,t)}}function Ol(e,t,n){t=kr(n,t),wi(t),t=is(e.stateNode,t,2),e=ea(e,t,2),e!==null&&(Be(e,2),Hl(e))}function kl(e,t,n){if($x=!1,e.tag===3)Ol(e,e,n);else{for(;t!==null;){if(t.tag===3){Ol(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=kr(n,e),wi(e),n=as(2),r=ea(t,n,2),r!==null&&(os(n,r,t,e),Be(r,2),Hl(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
-
159
- Error message:
160
-
161
- %s`,n)}}function Al(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Mb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ax=!0,i.add(n),r=jl.bind(null,e,t,n),jp&&zl(e,n),t.then(r,r))}function jl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>k_&&(O_=k_=h_(),A_=g_(`Promise Resolved`),j_=v_):n&4194048&&0>B_&&(R_=B_=h_(),H_=g_(`Promise Resolved`),V_=v_),Kc()&&W.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
162
-
163
- When testing, code that resolves suspended data should be wrapped into act(...):
164
-
165
- act(() => {
166
- /* finish loading suspended data */
167
- });
168
- /* assert on the output */
169
-
170
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Wb===e&&($&n)===n&&(sx===Bb||sx===zb&&($&62914560)===$&&yp()-gx<vx?(Ub&Pb)===Nb&&rl(e,0):ux|=n,fx===$&&(fx=0)),Hl(e)}function Ml(e,t){t===0&&(t=Re()),e=dr(e,t),e!==null&&(Be(e,t),Hl(e))}function Nl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ml(e,n)}function Pl(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Ml(e,n)}function Fl(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===jf;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?E(i,Il,r,i):i.subtreeFlags&67108864&&E(i,Fl,r,i,a)):i.flags&67108864?a&&E(i,Il,r,i):Fl(r,i,a),t=t.sibling}}function Il(e,t){Me(!0);try{Dc(t),Wc(t),kc(e,t.alternate,t,!1),Ic(e,t,0,null,!1,0)}finally{Me(!1)}}function Ll(e){var t=!0;e.current.mode&(Lg|Rg)||(t=!1),Fl(e,e.current,t)}function Rl(e){if((Ub&Pb)===Nb){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=C(e)||`ReactComponent`,eS!==null){if(eS.has(t))return;eS.add(t)}else eS=new Set([t]);E(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function zl(e,t){jp&&e.memoizedUpdaters.forEach(function(n){Ke(e,n,t)})}function Bl(e,t){var n=W.actQueue;return n===null?hp(e,t):(n.push(t),rS)}function Vl(e){Kc()&&W.actQueue===null&&E(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
171
-
172
- When testing, code that causes React state updates should be wrapped into act(...):
173
-
174
- act(() => {
175
- /* fire events that update state */
176
- });
177
- /* assert on the output */
178
-
179
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,C(e))})}function Hl(e){e!==aS&&e.next===null&&(aS===null?iS=aS=e:aS=aS.next=e),cS=!0,W.actQueue===null?oS||(oS=!0,Xl()):sS||(sS=!0,Xl())}function Ul(e,t){if(!lS&&cS){lS=!0;do for(var n=!1,r=iS;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Mp(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Jl(r,a))}else a=$,a=Fe(r,r===Wb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==$S),!(a&3)||Ie(r,a)||(n=!0,Jl(r,a))}r=r.next}while(n);lS=!1}}function Wl(){XS=window.event,Gl()}function Gl(){cS=sS=oS=!1;var e=0;uS!==0&&zu()&&(e=uS);for(var t=yp(),n=null,r=iS;r!==null;){var i=r.next,a=Kl(r,t);a===0?(r.next=null,n===null?iS=i:n.next=i,i===null&&(aS=n)):(n=r,(e!==0||a&3)&&(cS=!0)),r=i}Px!==Ox&&Px!==Nx||Ul(e,!1),uS!==0&&(uS=0)}function Kl(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Mp(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Le(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Wb,n=$,n=Fe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==$S),r=e.callbackNode,n===0||e===t&&(tx===qb||tx===ex)||e.cancelPendingCommit!==null)return r!==null&&Yl(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ie(e,n)){if(t=n&-n,t!==e.callbackPriority||W.actQueue!==null&&r!==dS)Yl(r);else return t;switch(Je(n)){case Rp:case zp:n=Sp;break;case Bp:n=Cp;break;case Vp:n=Tp;break;default:n=Cp}return r=ql.bind(null,e),W.actQueue===null?n=hp(n,r):(W.actQueue.push(r),n=dS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&Yl(r),e.callbackPriority=2,e.callbackNode=null,2}function ql(e,t){if(nv=tv=!1,XS=window.event,Px!==Ox&&Px!==Nx)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ux===wx&&(Ux=Ex),El()&&e.callbackNode!==n)return null;var r=$;return r=Fe(e,e===Wb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==$S),r===0?null:(Xc(e,r,t),Kl(e,yp()),e.callbackNode!=null&&e.callbackNode===n?ql.bind(null,e):null)}function Jl(e,t){if(El())return null;tv=nv,nv=!1,Xc(e,t,!0)}function Yl(e){e!==dS&&e!==null&&gp(e)}function Xl(){W.actQueue!==null&&W.actQueue.push(function(){return Gl(),null}),tC(function(){(Ub&(Pb|Fb))===Nb?Gl():hp(xp,Wl)})}function Zl(){if(uS===0){var e=av;e===0&&(e=Fp,Fp<<=1,!(Fp&261888)&&(Fp=256)),uS=e}return uS}function Ql(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(D(e,`action`),on(``+e))}function $l(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function eu(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ql((i[Wp]||null).action),o=r.submitter;o&&(t=(t=o[Wp]||null)?Ql(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ih(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(uS!==0){var e=o?$l(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),Mo(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?$l(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),Mo(n,t,a,e))},currentTarget:i}]})}}function tu(e,t,n){e.currentTarget=n;try{t(e)}catch(e){lg(e)}e.currentTarget=null}function nu(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?tu(a,s,l):E(c,tu,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?tu(a,s,l):E(c,tu,a,s,l),i=c}}}}function ru(e,t){pS.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Kp];n===void 0&&(n=t[Kp]=new Set);var r=e+`__bubble`;n.has(r)||(ou(t,e,2,!1),n.add(r))}function iu(e,t,n){pS.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),ou(n,e,r,t)}function au(e){if(!e[mS]){e[mS]=!0,Zp.forEach(function(t){t!==`selectionchange`&&(pS.has(t)||iu(t,!1,e),iu(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mS]||(t[mS]=!0,iu(`selectionchange`,!1,t))}}function ou(e,t,n,r){switch(cf(t)){case Rp:var i=nf;break;case zp:i=rf;break;default:i=af}n=i.bind(null,t,n,e),i=void 0,!Qm||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function su(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Qe(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}un(function(){var r=a,i=cn(n),o=[];a:{var s=rg.get(e);if(s!==void 0){var c=ih,l=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:c=xh;break;case`focusin`:l=`focus`,c=ph;break;case`focusout`:l=`blur`,c=ph;break;case`beforeblur`:case`afterblur`:c=ph;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=dh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=fh;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Ch;break;case Xh:case Zh:case Qh:c=mh;break;case ng:c=wh;break;case`scroll`:case`scrollend`:c=oh;break;case`wheel`:c=Th;break;case`copy`:case`cut`:case`paste`:c=hh;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Sh;break;case`toggle`:case`beforetoggle`:c=Eh}var u=!!(t&4),d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=dn(p,f),h!=null&&u.push(cu(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==qm&&(l=n.relatedTarget||n.fromElement)&&(Qe(l)||l[Gp]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Qe(l):null,l!==null&&(d=x(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=dh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Sh,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:et(c),m=l==null?s:et(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Qe(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=uu,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&du(o,s,c,u,!1),l!==null&&d!==null&&du(o,d,l,u,!0)}}a:{if(s=r?et(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=On;else if(Cn(s)){if(Bh)_=Pn;else{_=Mn;var v=jn}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&$t(r.elementType)&&(_=On):_=Nn;if(_&&=_(e,r)){Tn(o,_,n,i);break a}v&&v(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&yt(s,`number`,s.value)}switch(v=r?et(r):window,e){case`focusin`:(Cn(v)||v.contentEditable===`true`)&&(Uh=v,Wh=r,Gh=null);break;case`focusout`:Gh=Wh=Uh=null;break;case`mousedown`:Kh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kh=!1,Hn(o,n,i);break;case`selectionchange`:if(Hh)break;case`keydown`:case`keyup`:Hn(o,n,i)}var y;if(kh)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Ih?yn(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===Oh&&(b=`onCompositionStart`);b&&(Mh&&n.locale!==`ko`&&(Ih||b!==`onCompositionStart`?b===`onCompositionEnd`&&Ih&&(y=fn()):(eh=i,th=`value`in eh?eh.value:eh.textContent,Ih=!0)),v=lu(r,b),0<v.length&&(b=new gh(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=bn(n),y!==null&&(b.data=y)))),(y=jh?xn(e,n):Sn(e,n))&&(b=lu(r,`onBeforeInput`),0<b.length&&(v=new _h(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),eu(o,e,r,n,i)}nu(o,t)})}function cu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lu(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=dn(e,n),i!=null&&r.unshift(cu(e,i,a)),i=dn(e,t),i!=null&&r.push(cu(e,i,a))),e.tag===3)return r;e=e.return}return[]}function uu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function du(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=dn(n,a),l!=null&&o.unshift(cu(n,l,c))):i||(l=dn(n,a),l!=null&&o.push(cu(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function fu(e,t){nn(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Bm||(Bm=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Qp,possibleRegistrationNames:$p};$t(e)||typeof t.is==`string`||an(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function pu(e,t,n,r){t!==n&&(n=_u(n),_u(t)!==n&&(r[e]=t))}function mu(e,t,n){t.forEach(function(t){n[Cu(t)]=t===`style`?wu(e):e.getAttribute(t)})}function hu(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function gu(e,t){return e=e.namespaceURI===Mm||e.namespaceURI===Nm?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function _u(e){return De(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,Ee(e)),Oe(e)),(typeof e==`string`?e:``+e).replace(CS,`
180
- `).replace(wS,``)}function vu(e,t){return t=_u(t),_u(e)===t}function yu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(Jt(r,t,!1),t===`body`||t===`textarea`&&r===``||Yt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(Jt(``+r,t,!1),t!==`body`&&Yt(e,``+r));break;case`className`:st(e,`class`,r);break;case`tabIndex`:st(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:st(e,n,r);break;case`style`:Qt(e,r,a);break;case`data`:if(t!==`object`){st(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}D(r,n),r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||bS||(bS=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||yS||(yS=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||_S?t!==`button`||i.type==null||i.type===`submit`||_S?typeof r==`function`&&(i.name==null||vS||(vS=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||bS||(bS=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||yS||(yS=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(_S=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(_S=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&yu(e,t,`name`,i.name,i,null),yu(e,t,`formEncType`,i.formEncType,i,null),yu(e,t,`formMethod`,i.formMethod,i,null),yu(e,t,`formTarget`,i.formTarget,i,null)):(yu(e,t,`encType`,i.encType,i,null),yu(e,t,`method`,i.method,i,null),yu(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}D(r,n),r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&hu(n,r),e.onclick=sn);break;case`onScroll`:r!=null&&(typeof r!=`function`&&hu(n,r),ru(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&hu(n,r),ru(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}D(r,n),n=on(``+r),e.setAttributeNS(TS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(D(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||SS[n]||(SS[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(D(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(D(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(D(r,n),e.setAttribute(n,r));break;case`popover`:ru(`beforetoggle`,e),ru(`toggle`,e),ot(e,`popover`,r);break;case`xlinkActuate`:ct(e,TS,`xlink:actuate`,r);break;case`xlinkArcrole`:ct(e,TS,`xlink:arcrole`,r);break;case`xlinkRole`:ct(e,TS,`xlink:role`,r);break;case`xlinkShow`:ct(e,TS,`xlink:show`,r);break;case`xlinkTitle`:ct(e,TS,`xlink:title`,r);break;case`xlinkType`:ct(e,TS,`xlink:type`,r);break;case`xmlBase`:ct(e,ES,`xml:base`,r);break;case`xmlLang`:ct(e,ES,`xml:lang`,r);break;case`xmlSpace`:ct(e,ES,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),ot(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:xS||typeof r!=`object`||!r||(xS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=en(n),ot(e,n,r)):Qp.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&hu(n,r)}}function bu(e,t,n,r,i,a){switch(n){case`style`:Qt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Yt(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&hu(n,r),ru(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&hu(n,r),ru(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&hu(n,r),e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(Qp.hasOwnProperty(n))r!=null&&typeof r!=`function`&&hu(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[Wp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):ot(e,n,r)}}}function xu(e,t,n){switch(fu(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:ru(`error`,e),ru(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:yu(e,t,a,o,n,null)}}i&&yu(e,t,`srcSet`,n.srcSet,n,null),r&&yu(e,t,`src`,n.src,n,null);return;case`input`:rt(`input`,n),ru(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:yu(e,t,r,u,n,null)}}gt(e,n),vt(e,a,s,c,l,o,i,!1);return;case`select`:for(i in rt(`select`,n),ru(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:yu(e,t,i,s,n,null)}Ct(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&St(e,!!r,n,!0):St(e,!!r,t,!1);return;case`textarea`:for(o in rt(`textarea`,n),ru(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:yu(e,t,o,s,n,null)}A(e,n),Tt(e,r,i,a);return;case`option`:for(c in bt(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:yu(e,t,c,r,n,null)}return;case`dialog`:ru(`beforetoggle`,e),ru(`toggle`,e),ru(`cancel`,e),ru(`close`,e);break;case`iframe`:case`object`:ru(`load`,e);break;case`video`:case`audio`:for(r=0;r<fS.length;r++)ru(fS[r],e);break;case`image`:ru(`error`,e),ru(`load`,e);break;case`details`:ru(`toggle`,e);break;case`embed`:case`source`:case`link`:ru(`error`,e),ru(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:yu(e,t,l,r,n,null)}return;default:if($t(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&bu(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&yu(e,t,s,r,n,null))}function Su(e,t,n,r){switch(fu(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||yu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&yu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||gS||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),gS=!0),!t||r||hS||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),hS=!0),_t(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||yu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&yu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?St(e,!!t,t?[]:``,!1):St(e,!!t,r,!0)):St(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:yu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&yu(e,t,o,i,r,a)}wt(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:yu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:yu(e,t,c,f,r,p)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&yu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:yu(e,t,l,f,r,p)}return;default:if($t(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&bu(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||bu(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&yu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||yu(e,t,d,f,r,p)}function Cu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function wu(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Tu(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(ke(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||jm.has(a)?(ke(o,a),r+=i+a.replace(xm,`-$1`).toLowerCase().replace(Sm,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(xm,`-$1`).toLowerCase().replace(Sm,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=_u(r),_u(t)!==r&&(n.style=wu(e)))}}function Eu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(D(r,t),e===``+r)return}pu(t,e,r,a)}function Du(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}pu(t,e,r,a)}function Ou(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(D(r,n),e===``+r)return}pu(t,e,r,a)}function ku(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(D(r,t),e===``+r))return}pu(t,e,r,a)}function Au(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(D(r,t),n=on(``+r),e===n)return}pu(t,e,r,a)}function ju(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if($t(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(Qp.hasOwnProperty(c))typeof l!=`function`&&hu(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||pu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=gu(e,l),pu(c,o,l,i));continue;case`style`:a.delete(c),Tu(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=at(e,`class`,l),pu(`className`,o,l,i);continue;default:r.context===US&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=at(e,c,l),pu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(Qp.hasOwnProperty(l))typeof c!=`function`&&hu(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||pu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=gu(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Eu(e,l,`class`,c,a,i);continue;case`tabIndex`:Eu(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),Tu(e,c,i);continue;case`multiple`:a.delete(l),pu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),pu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),pu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),pu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Au(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}if(o===DS){a.delete(l.toLowerCase()),pu(l,`function`,c,i);continue}Au(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Au(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Ou(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Ou(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Ou(e,l,l,c,a,i);continue;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`:Du(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(D(c,o),s===``+c)break a}pu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(D(c,o),s===``+c))break a}pu(o,s,c,d)}continue;case`rowSpan`:ku(e,l,`rowspan`,c,a,i);continue;case`start`:ku(e,l,l,c,a,i);continue;case`xHeight`:Eu(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Eu(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Eu(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Eu(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Eu(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Eu(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Eu(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Eu(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Eu(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Eu(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||SS[l]||(SS[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),Du(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=en(l),o=!1,r.context===US&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Fm.hasOwnProperty(u)&&Fm[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,it(d)){if(u.hasAttribute(d))u=u.getAttribute(d),D(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}}else s=void 0;o||pu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&mu(e,a,i),Object.keys(i).length===0?null:i}function Mu(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function Nu(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Pu(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Nu(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Nu(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Fu(e){return e.nodeType===9?e:e.ownerDocument}function Iu(e){switch(e){case Nm:return WS;case Mm:return GS;default:return US}}function Lu(e,t){if(e===US)switch(t){case`svg`:return WS;case`math`:return GS;default:return US}return e===WS&&t===`foreignObject`?US:e}function Ru(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function zu(){var e=window.event;return e&&e.type===`popstate`?e!==YS&&(YS=e,!0):(YS=null,!1)}function Bu(){var e=window.event;return e&&e!==XS?e.type:null}function Vu(){var e=window.event;return e&&e!==XS?e.timeStamp:-1.1}function Hu(e){setTimeout(function(){throw e})}function Uu(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Wu(){}function Gu(e,t,n,r){Su(e,t,n,r),e[Wp]=r}function Ku(e){Yt(e,``)}function qu(e,t,n){e.nodeValue=n}function Ju(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Wp]||null;if(t!==null){var n=$e(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,E(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,E(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Yu(e){return e===`head`}function Xu(e,t){e.removeChild(t)}function Zu(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function Qu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===MS||n===AS){if(r===0){e.removeChild(i),vf(t);return}r--}else if(n===jS||n===NS||n===PS||n===FS||n===kS)r++;else if(n===IS)Cd(e.ownerDocument.documentElement);else if(n===RS){n=e.ownerDocument.head,Cd(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Xp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===LS&&Cd(e.ownerDocument.body)}n=i}while(n);vf(t)}function $u(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===MS){if(e===0)break;e--}else n!==jS&&n!==NS&&n!==PS&&n!==FS||e++}n=r}while(n)}function ed(e){$u(e,!0)}function td(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function nd(e){e.nodeValue=``}function rd(e){$u(e,!1)}function id(e,t){t=t[HS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function ad(e,t){e.nodeValue=t}function od(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:od(n),Ze(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){D(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Xp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=pd(e.nextSibling),e===null)break}return null}function cd(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pd(e.nextSibling),e===null))return null;return e}function ld(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pd(e.nextSibling),e===null))return null;return e}function ud(e){return e.data===NS||e.data===PS}function dd(e){return e.data===FS||e.data===NS&&e.ownerDocument.readyState!==VS}function fd(e,t){var n=e.ownerDocument;if(e.data===PS)e._reactRetry=t;else if(e.data!==NS||n.readyState!==VS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function pd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===jS||t===FS||t===NS||t===PS||t===kS||t===zS||t===BS)break;if(t===MS||t===AS)return null}}return e}function md(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[Cu(a.name)]=a.name.toLowerCase()===`style`?wu(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===kS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function hd(e,t,n){return n===null||!0!==n[OS]?(e.nodeValue===t?e=null:(t=_u(t),e=_u(e.nodeValue)===t?null:e.nodeValue),e):null}function gd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===MS||n===AS){if(t===0)return pd(e.nextSibling);t--}else n!==jS&&n!==FS&&n!==NS&&n!==PS&&n!==kS||t++}e=e.nextSibling}return null}function _d(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===jS||n===FS||n===NS||n===PS||n===kS){if(t===0)return e;t--}else n!==MS&&n!==AS||t++}e=e.previousSibling}return null}function vd(e){vf(e)}function yd(e){vf(e)}function bd(e){vf(e)}function xd(e,t,n,r,i){switch(i&&qt(e,r.ancestorInfo),t=Fu(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function Sd(e,t,n,r){if(!n[Gp]&&$e(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);xu(n,e,t),n[Up]=r,n[Wp]=t}function Cd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}function wd(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Td(e,t,n){var r=dC;if(r&&typeof t==`string`&&t){var i=ht(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),lC.has(i)||(lC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),xu(t,`link`,e),tt(t),r.head.appendChild(t)))}}function Ed(e,t,n,r){var i=(i=Qf.current)?wd(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Od(n.href),t=O(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Od(n.href);var a=O(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:rC,preload:null}},a.set(e,o),(a=i.querySelector(kd(e)))&&!a._p&&(o.instance=a,o.state.loading=iC|sC),!cC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};cC.set(e,s),a||jd(i,e,s,o.state)}if(t&&r===null)throw n=`
181
-
182
- - `+Dd(t)+`
183
- + `+Dd(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
184
-
185
- - `+Dd(t)+`
186
- + `+Dd(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Md(n),t=O(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function Dd(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):mp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):mp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):mp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Od(e){return`href="`+ht(e)+`"`}function kd(e){return`link[rel="stylesheet"][`+e+`]`}function Ad(e){return Ef({},e,{"data-precedence":e.precedence,precedence:null})}function jd(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=iC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=iC}),t.addEventListener(`error`,function(){return r.loading|=aC}),xu(t,`link`,n),tt(t),e.head.appendChild(t))}function Md(e){return`[src="`+ht(e)+`"]`}function Nd(e){return`script[async]`+e}function Pd(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+ht(n.href)+`"]`);if(r)return t.instance=r,tt(r),r;var i=Ef({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),tt(r),xu(r,`style`,i),Fd(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Od(n.href);var a=e.querySelector(kd(i));if(a)return t.state.loading|=sC,t.instance=a,tt(a),a;r=Ad(n),(i=cC.get(i))&&Id(r,i),a=(e.ownerDocument||e).createElement(`link`),tt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),xu(a,`link`,r),t.state.loading|=sC,Fd(a,n.precedence,e),t.instance=a;case`script`:return a=Md(n.src),(i=e.querySelector(Nd(a)))?(t.instance=i,tt(i),i):(r=n,(i=cC.get(a))&&(r=Ef({},n),Ld(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),tt(i),xu(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&sC)===rC&&(r=t.instance,t.state.loading|=sC,Fd(r,n.precedence,e));return t.instance}function Fd(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Id(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Ld(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Rd(e,t,n){if(fC===null){var r=new Map,i=fC=new Map;i.set(n,r)}else i=fC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Xp]||a[Up]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Nm){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function zd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Bd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===WS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Mu(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Vd(e){return e.type!==`stylesheet`||(e.state.loading&oC)!==rC}function Hd(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&sC)===rC){if(n.instance===null){var i=Od(r.href),a=t.querySelector(kd(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Wd.bind(e),t.then(e,e)),n.state.loading|=sC,n.instance=a,tt(a);return}a=t.ownerDocument||t,r=Ad(r),(i=cC.get(i))&&Id(r,i),a=a.createElement(`link`),tt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),xu(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&oC)===rC&&(e.count++,n=Wd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Ud(e,t){return e.stylesheets&&e.count===0&&Gd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Gd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},pC+t);0<e.imgBytes&&gC===0&&(gC=125*Pu()*hC);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>gC?50:mC)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Wd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Gd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vC=new Map,t.forEach(Kd,e),vC=null,Wd.call(e))}function Kd(e,t){if(!(t.state.loading&sC)){var n=vC.get(e);if(n)var r=n.get(_C);else{n=new Map,vC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(_C,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(_C,i),n.set(o,i),this.count++,r=Wd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=sC}}function qd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=$S,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ze(0),this.hiddenUpdates=ze(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Jd(e,t,n,r,i,a,o,s,c,l,u,d){return e=new qd(e,t,n,o,c,l,u,d,s),t=Ig,!0===a&&(t|=Lg|Rg),t|=K,a=g(3,null,null,t),e.current=a,a.stateNode=e,t=ai(),oi(t),e.pooledCache=t,oi(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Zi(a),e}function Yd(e){return e?(e=Ng,e):Ng}function Xd(e,t,n,r,i,a){if(kp&&typeof kp.onScheduleFiberRoot==`function`)try{kp.onScheduleFiberRoot(Op,r,n)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Yd(i),r.context===null?r.context=i:r.pendingContext=i,pp&&fp!==null&&!EC&&(EC=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
187
-
188
- Check the render method of %s.`,C(fp)||`Unknown`)),r=$i(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=ea(e,r,t),n!==null&&(ci(t,`root.render()`,null),Yc(n,e,t),ta(n,e,t))}function Zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qd(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function $d(e){if(e.tag===13||e.tag===31){var t=dr(e,67108864);t!==null&&Yc(t,e,67108864),Qd(e,67108864)}}function ef(e){if(e.tag===13||e.tag===31){var t=qc(e);t=Ge(t);var n=dr(e,t);n!==null&&Yc(n,e,t),Qd(e,t)}}function tf(){return fp}function nf(e,t,n,r){var i=W.T;W.T=null;var a=Gf.p;try{Gf.p=Rp,af(e,t,n,r)}finally{Gf.p=a,W.T=i}}function rf(e,t,n,r){var i=W.T;W.T=null;var a=Gf.p;try{Gf.p=zp,af(e,t,n,r)}finally{Gf.p=a,W.T=i}}function af(e,t,n,r){if(LC){var i=of(r);if(i===null)su(e,t,r,RC,n),lf(e,r);else if(df(i,e,t,n,r))r.stopPropagation();else if(lf(e,r),t&4&&-1<KC.indexOf(e)){for(;i!==null;){var a=$e(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Pe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Mp(o);s.entanglements[1]|=c,o&=~c}Hl(a),(Ub&(Pb|Fb))===Nb&&(yx=yp()+bx,Ul(0,!1))}}break;case 31:case 13:s=dr(a,2),s!==null&&Yc(s,a,2),el(),Qd(a,2)}if(a=of(r),a===null&&su(e,t,r,RC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else su(e,t,r,null,n)}}function of(e){return e=cn(e),sf(e)}function sf(e){if(RC=null,e=Qe(e),e!==null){var t=x(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ee(t),e!==null)return e;e=null}else if(n===31){if(e=te(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return RC=e,null}function cf(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return Rp;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return zp;case`message`:switch(bp()){case xp:return Rp;case Sp:return zp;case Cp:case wp:return Bp;case Tp:return Vp;default:return Bp}default:return Bp}}function lf(e,t){switch(e){case`focusin`:case`focusout`:BC=null;break;case`dragenter`:case`dragleave`:VC=null;break;case`mouseover`:case`mouseout`:HC=null;break;case`pointerover`:case`pointerout`:UC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:WC.delete(t.pointerId)}}function uf(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=$e(t),t!==null&&$d(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function df(e,t,n,r,i){switch(t){case`focusin`:return BC=uf(BC,e,t,n,r,i),!0;case`dragenter`:return VC=uf(VC,e,t,n,r,i),!0;case`mouseover`:return HC=uf(HC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return UC.set(a,uf(UC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,WC.set(a,uf(WC.get(a)||null,e,t,n,r,i)),!0}return!1}function ff(e){var t=Qe(e.target);if(t!==null){var n=x(t);if(n!==null){if(t=n.tag,t===13){if(t=ee(n),t!==null){e.blockedOn=t,Xe(e.priority,function(){ef(n)});return}}else if(t===31){if(t=te(n),t!==null){e.blockedOn=t,Xe(e.priority,function(){ef(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=of(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;qm!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),qm=i,n.target.dispatchEvent(r),qm===null&&console.error(`Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.`),qm=null}else return t=$e(n),t!==null&&$d(t),e.blockedOn=n,!1;t.shift()}return!0}function mf(e,t,n){pf(e)&&n.delete(t)}function hf(){zC=!1,BC!==null&&pf(BC)&&(BC=null),VC!==null&&pf(VC)&&(VC=null),HC!==null&&pf(HC)&&(HC=null),UC.forEach(mf),WC.forEach(mf)}function gf(e,t){e.blockedOn===t&&(e.blockedOn=null,zC||(zC=!0,Cf.unstable_scheduleCallback(Cf.unstable_NormalPriority,hf)))}function _f(e){qC!==e&&(qC=e,Cf.unstable_scheduleCallback(Cf.unstable_NormalPriority,function(){qC===e&&(qC=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(sf(r||n)===null)continue;break}var a=$e(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),Mo(a,n,r,i))}}))}function vf(e){function t(t){return gf(t,e)}BC!==null&&gf(BC,e),VC!==null&&gf(VC,e),HC!==null&&gf(HC,e),UC.forEach(t),WC.forEach(t);for(var n=0;n<GC.length;n++){var r=GC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<GC.length&&(n=GC[0],n.blockedOn===null);)ff(n),n.blockedOn===null&&GC.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Wp]||null;if(typeof a==`function`)o||_f(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Wp]||null)s=o.formAction;else if(sf(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),_f(n)}}}function yf(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function bf(e){this._internalRoot=e}function xf(e){this._internalRoot=e}function Sf(e){e[Gp]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Cf=p(),wf=d(),Tf=h(),Ef=Object.assign,Df=Symbol.for(`react.element`),Of=Symbol.for(`react.transitional.element`),kf=Symbol.for(`react.portal`),Af=Symbol.for(`react.fragment`),jf=Symbol.for(`react.strict_mode`),Mf=Symbol.for(`react.profiler`),Nf=Symbol.for(`react.consumer`),Pf=Symbol.for(`react.context`),Ff=Symbol.for(`react.forward_ref`),If=Symbol.for(`react.suspense`),Lf=Symbol.for(`react.suspense_list`),Rf=Symbol.for(`react.memo`),zf=Symbol.for(`react.lazy`),Bf=Symbol.for(`react.activity`),Vf=Symbol.for(`react.memo_cache_sentinel`),Hf=Symbol.iterator,Uf=Symbol.for(`react.client.reference`),Wf=Array.isArray,W=wf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Gf=Tf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kf=Object.freeze({pending:!1,data:null,method:null,action:null}),qf=[],Jf=[],Yf=-1,Xf=w(null),Zf=w(null),Qf=w(null),$f=w(null),ep=0,tp,np,rp,ip,ap,op,sp;me.__reactDisabledLog=!0;var cp,lp,up=!1,dp=new(typeof WeakMap==`function`?WeakMap:Map),fp=null,pp=!1,mp=Object.prototype.hasOwnProperty,hp=Cf.unstable_scheduleCallback,gp=Cf.unstable_cancelCallback,_p=Cf.unstable_shouldYield,vp=Cf.unstable_requestPaint,yp=Cf.unstable_now,bp=Cf.unstable_getCurrentPriorityLevel,xp=Cf.unstable_ImmediatePriority,Sp=Cf.unstable_UserBlockingPriority,Cp=Cf.unstable_NormalPriority,wp=Cf.unstable_LowPriority,Tp=Cf.unstable_IdlePriority,Ep=Cf.log,Dp=Cf.unstable_setDisableYieldValue,Op=null,kp=null,Ap=!1,jp=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Mp=Math.clz32?Math.clz32:Ne,Np=Math.log,Pp=Math.LN2,Fp=256,Ip=262144,Lp=4194304,Rp=2,zp=8,Bp=32,Vp=268435456,Hp=Math.random().toString(36).slice(2),Up=`__reactFiber$`+Hp,Wp=`__reactProps$`+Hp,Gp=`__reactContainer$`+Hp,Kp=`__reactEvents$`+Hp,qp=`__reactListeners$`+Hp,Jp=`__reactHandles$`+Hp,Yp=`__reactResources$`+Hp,Xp=`__reactMarker$`+Hp,Zp=new Set,Qp={},$p={},em={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},tm=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),nm={},rm={},im=/[\n"\\]/g,am=!1,om=!1,sm=!1,cm=!1,lm=!1,um=!1,dm=[`value`,`defaultValue`],fm=!1,pm=/["'&<>\n\t]|^\s|\s$/,mm=`address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp`.split(` `),hm=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),gm=hm.concat([`button`]),_m=`dd dt li option optgroup p rp rt`.split(` `),vm={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ym={},bm={animation:`animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction`.split(` `),background:`backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize`.split(` `),backgroundPosition:[`backgroundPositionX`,`backgroundPositionY`],border:`borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth`.split(` `),borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderLeft:[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`],borderRadius:[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`],borderRight:[`borderRightColor`,`borderRightStyle`,`borderRightWidth`],borderStyle:[`borderBottomStyle`,`borderLeftStyle`,`borderRightStyle`,`borderTopStyle`],borderTop:[`borderTopColor`,`borderTopStyle`,`borderTopWidth`],borderWidth:[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],flex:[`flexBasis`,`flexGrow`,`flexShrink`],flexFlow:[`flexDirection`,`flexWrap`],font:`fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight`.split(` `),fontVariant:`fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition`.split(` `),gap:[`columnGap`,`rowGap`],grid:`gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows`.split(` `),gridArea:[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`],gridColumn:[`gridColumnEnd`,`gridColumnStart`],gridColumnGap:[`columnGap`],gridGap:[`columnGap`,`rowGap`],gridRow:[`gridRowEnd`,`gridRowStart`],gridRowGap:[`rowGap`],gridTemplate:[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],transition:[`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],wordWrap:[`overflowWrap`]},xm=/([A-Z])/g,Sm=/^ms-/,Cm=/^(?:webkit|moz|o)[A-Z]/,wm=/^-ms-/,Tm=/-(.)/g,Em=/;\s*$/,Dm={},Om={},km=!1,Am=!1,jm=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),Mm=`http://www.w3.org/1998/Math/MathML`,Nm=`http://www.w3.org/2000/svg`,Pm=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Fm={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},Im={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Lm={},Rm=RegExp(`^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),zm=RegExp(`^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Bm=!1,Vm={},Hm=/^on./,Um=/^on[^A-Z]/,Wm=RegExp(`^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Gm=RegExp(`^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Km=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,qm=null,Jm=null,Ym=null,Xm=!1,Zm=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Qm=!1;if(Zm)try{var $m={};Object.defineProperty($m,"passive",{get:function(){Qm=!0}}),window.addEventListener(`test`,$m,$m),window.removeEventListener(`test`,$m,$m)}catch{Qm=!1}var eh=null,th=null,nh=null,rh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ih=gn(rh),ah=Ef({},rh,{view:0,detail:0}),oh=gn(ah),sh,ch,lh,uh=Ef({},ah,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==lh&&(lh&&e.type===`mousemove`?(sh=e.screenX-lh.screenX,ch=e.screenY-lh.screenY):ch=sh=0,lh=e),sh)},movementY:function(e){return`movementY`in e?e.movementY:ch}}),dh=gn(uh),fh=gn(Ef({},uh,{dataTransfer:0})),ph=gn(Ef({},ah,{relatedTarget:0})),mh=gn(Ef({},rh,{animationName:0,elapsedTime:0,pseudoElement:0})),hh=gn(Ef({},rh,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),gh=gn(Ef({},rh,{data:0})),_h=gh,vh={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},yh={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},bh={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},xh=gn(Ef({},ah,{key:function(e){if(e.key){var t=vh[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?yh[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Sh=gn(Ef({},uh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ch=gn(Ef({},ah,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),wh=gn(Ef({},rh,{propertyName:0,elapsedTime:0,pseudoElement:0})),Th=gn(Ef({},uh,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Eh=gn(Ef({},rh,{newState:0,oldState:0})),Dh=[9,13,27,32],Oh=229,kh=Zm&&`CompositionEvent`in window,Ah=null;Zm&&`documentMode`in document&&(Ah=document.documentMode);var jh=Zm&&`TextEvent`in window&&!Ah,Mh=Zm&&(!kh||Ah&&8<Ah&&11>=Ah),Nh=32,Ph=String.fromCharCode(Nh),Fh=!1,Ih=!1,Lh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Rh=null,zh=null,Bh=!1;Zm&&(Bh=wn(`input`)&&(!document.documentMode||9<document.documentMode));var Vh=typeof Object.is==`function`?Object.is:Fn,Hh=Zm&&`documentMode`in document&&11>=document.documentMode,Uh=null,Wh=null,Gh=null,Kh=!1,qh={animationend:Un(`Animation`,`AnimationEnd`),animationiteration:Un(`Animation`,`AnimationIteration`),animationstart:Un(`Animation`,`AnimationStart`),transitionrun:Un(`Transition`,`TransitionRun`),transitionstart:Un(`Transition`,`TransitionStart`),transitioncancel:Un(`Transition`,`TransitionCancel`),transitionend:Un(`Transition`,`TransitionEnd`)},Jh={},Yh={};Zm&&(Yh=document.createElement(`div`).style,`AnimationEvent`in window||(delete qh.animationend.animation,delete qh.animationiteration.animation,delete qh.animationstart.animation),`TransitionEvent`in window||delete qh.transitionend.transition);var Xh=Wn(`animationend`),Zh=Wn(`animationiteration`),Qh=Wn(`animationstart`),$h=Wn(`transitionrun`),eg=Wn(`transitionstart`),tg=Wn(`transitioncancel`),ng=Wn(`transitionend`),rg=new Map,ig=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ig.push(`scrollEnd`);var ag=0;if(typeof performance==`object`&&typeof performance.now==`function`)var og=performance,sg=function(){return og.now()};else{var cg=Date;sg=function(){return cg.now()}}var lg=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ug=`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`,dg=0,fg=1,pg=2,mg=3,hg=`–\xA0`,gg=`+\xA0`,_g=` \xA0`,vg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,yg=`Components ⚛`,bg=`Scheduler ⚛`,xg=`Blocking`,Sg=!1,Cg={color:`primary`,properties:null,tooltipText:``,track:yg},wg={start:-0,end:-0,detail:{devtools:Cg}},Tg=[`Changed Props`,``],Eg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Dg=[`Changed Props`,Eg],Og=1,kg=2,Ag=[],jg=0,Mg=0,Ng={};Object.freeze(Ng);var Pg=null,Fg=null,G=0,Ig=1,K=2,Lg=8,Rg=16,zg=32,Bg=!1;try{Object.preventExtensions({})}catch{Bg=!0}var Vg=new WeakMap,Hg=[],Ug=0,Wg=null,Gg=0,Kg=[],qg=0,Jg=null,Yg=1,Xg=``,Zg=null,Qg=null,$g=!1,e_=!1,t_=null,n_=null,r_=!1,i_=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),a_=w(null),o_=w(null),s_={},c_=null,l_=null,u_=!1,d_=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},f_=Cf.unstable_scheduleCallback,p_=Cf.unstable_NormalPriority,m_={$$typeof:Pf,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},h_=Cf.unstable_now,g_=console.createTask?console.createTask:function(){return null},__=1,v_=2,y_=-0,b_=-0,x_=-0,S_=null,C_=-1.1,w_=-0,T_=-0,q=-1.1,J=-1.1,E_=null,D_=!1,O_=-0,k_=-1.1,A_=null,j_=0,M_=null,N_=null,P_=-1.1,F_=null,I_=-1.1,L_=-1.1,R_=-0,z_=-1.1,B_=-1.1,V_=0,H_=null,U_=null,W_=null,G_=-1.1,K_=null,q_=-1.1,J_=-1.1,Y_=-0,X_=-0,Z_=0,Q_=null,$_=0,ev=-1.1,tv=!1,nv=!1,rv=null,iv=0,av=0,ov=null,sv=W.S;W.S=function(e,t){if(_x=yp(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>z_&&0>B_){z_=h_();var n=Vu(),r=Bu();(n!==q_||r!==K_)&&(q_=-1.1),G_=n,K_=r}Di(e,t)}sv!==null&&sv(e,t)};var cv=w(null),lv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],gv=new Set;lv.recordUnsafeLifecycleWarnings=function(e,t){gv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&uv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillMount==`function`&&dv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&fv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&pv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&mv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillUpdate==`function`&&hv.push(e))},lv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<uv.length&&(uv.forEach(function(t){e.add(C(t)||`Component`),gv.add(t.type)}),uv=[]);var t=new Set;0<dv.length&&(dv.forEach(function(e){t.add(C(e)||`Component`),gv.add(e.type)}),dv=[]);var n=new Set;0<fv.length&&(fv.forEach(function(e){n.add(C(e)||`Component`),gv.add(e.type)}),fv=[]);var r=new Set;0<pv.length&&(pv.forEach(function(e){r.add(C(e)||`Component`),gv.add(e.type)}),pv=[]);var i=new Set;0<mv.length&&(mv.forEach(function(e){i.add(C(e)||`Component`),gv.add(e.type)}),mv=[]);var a=new Set;if(0<hv.length&&(hv.forEach(function(e){a.add(C(e)||`Component`),gv.add(e.type)}),hv=[]),0<t.size){var o=m(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
-
190
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
191
-
192
- Please update the following components: %s`,o)}0<r.size&&(o=m(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
193
-
194
- * Move data fetching code or side effects to componentDidUpdate.
195
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
196
-
197
- Please update the following components: %s`,o)),0<a.size&&(o=m(a),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
198
-
199
- * Move data fetching code or side effects to componentDidUpdate.
200
-
201
- Please update the following components: %s`,o)),0<e.size&&(o=m(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
-
203
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
204
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
205
-
206
- Please update the following components: %s`,o)),0<n.size&&(o=m(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
207
-
208
- * Move data fetching code or side effects to componentDidUpdate.
209
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
210
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
211
-
212
- Please update the following components: %s`,o)),0<i.size&&(o=m(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
213
-
214
- * Move data fetching code or side effects to componentDidUpdate.
215
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
216
-
217
- Please update the following components: %s`,o))};var _v=new Map,vv=new Set;lv.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Lg&&(n=r),r=r.return;n===null?console.error(`Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.`):!vv.has(e.type)&&(r=_v.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],_v.set(n,r)),r.push(e))},lv.flushLegacyContextWarning=function(){_v.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(C(e)||`Component`),vv.add(e.type)});var r=m(n);E(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
218
-
219
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
220
-
221
- Please update the following components: %s
222
-
223
- Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},lv.discardPendingWarnings=function(){uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],_v=new Map};var yv={react_stack_bottom_frame:function(e,t,n){var r=pp;pp=!0;try{return e(t,n)}finally{pp=r}}},bv=yv.react_stack_bottom_frame.bind(yv),xv={react_stack_bottom_frame:function(e){var t=pp;pp=!0;try{return e.render()}finally{pp=t}}},Sv=xv.react_stack_bottom_frame.bind(xv),Cv={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){kl(e,e.return,t)}}},wv=Cv.react_stack_bottom_frame.bind(Cv),Tv={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){kl(e,e.return,t)}}},Ev=Tv.react_stack_bottom_frame.bind(Tv),Dv={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},Ov=Dv.react_stack_bottom_frame.bind(Dv),kv={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){kl(e,t,n)}}},Av=kv.react_stack_bottom_frame.bind(kv),jv={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Mv=jv.react_stack_bottom_frame.bind(jv),Nv={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){kl(e,t,n)}}},Pv=Nv.react_stack_bottom_frame.bind(Nv),Fv={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},Iv=Fv.react_stack_bottom_frame.bind(Fv),Lv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Rv=Error(`Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),zv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Bv={then:function(){console.error(`Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.`)}},Vv=null,Hv=!1,Uv=null,Wv=0,Y=null,Gv,Kv=Gv=!1,qv={},Jv={},Yv={};f=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=C(e),i=r||`null`;if(!qv[i]){qv[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=C(e))&&(a=`
224
-
225
- Check the render method of \``+i+"`."),a||r&&(a=`
226
-
227
- Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=C(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),E(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Xv=Yi(!0),Zv=Yi(!1),Qv=0,$v=1,ey=2,ty=3,ny=!1,ry=!1,iy=null,ay=!1,oy=w(null),sy=w(0),cy=w(null),ly=null,uy=1,dy=2,fy=w(0),py=0,my=1,hy=2,gy=4,_y=8,vy,yy=new Set,by=new Set,xy=new Set,Sy=new Set,Cy=0,X=null,wy=null,Ty=null,Ey=!1,Dy=!1,Oy=!1,ky=0,Ay=0,jy=null,My=0,Ny=25,Z=null,Py=null,Fy=-1,Iy=!1,Ly={readContext:ni,use:ja,useCallback:I,useContext:I,useEffect:I,useImperativeHandle:I,useLayoutEffect:I,useInsertionEffect:I,useMemo:I,useReducer:I,useRef:I,useState:I,useDebugValue:I,useDeferredValue:I,useTransition:I,useSyncExternalStore:I,useId:I,useHostTransitionStatus:I,useFormState:I,useActionState:I,useOptimistic:I,useMemoCache:I,useCacheRefresh:I};Ly.useEffectEvent=I;var Ry=null,zy=null,By=null,Vy=null,Hy=null,Uy=null,Wy=null;Ry={readContext:function(e){return ni(e)},use:ja,useCallback:function(e,t){return Z=`useCallback`,ga(),_a(t),xo(e,t)},useContext:function(e){return Z=`useContext`,ga(),ni(e)},useEffect:function(e,t){return Z=`useEffect`,ga(),_a(t),po(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,ga(),_a(n),yo(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,ga(),_a(t),uo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,ga(),_a(t),_o(e,t)},useMemo:function(e,t){Z=`useMemo`,ga(),_a(t);var n=W.H;W.H=Hy;try{return Co(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,ga();var r=W.H;W.H=Hy;try{return Pa(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,ga(),lo(e)},useState:function(e){Z=`useState`,ga();var t=W.H;W.H=Hy;try{return Ka(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,ga()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,ga(),To(e,t)},useTransition:function(){return Z=`useTransition`,ga(),Fo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,ga(),Ra(e,t,n)},useId:function(){return Z=`useId`,ga(),zo()},useFormState:function(e,t){return Z=`useFormState`,ga(),va(),ro(e,t)},useActionState:function(e,t){return Z=`useActionState`,ga(),ro(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,ga(),qa(e)},useHostTransitionStatus:Ro,useMemoCache:Ma,useCacheRefresh:function(){return Z=`useCacheRefresh`,ga(),Bo()},useEffectEvent:function(e){return Z=`useEffectEvent`,ga(),ho(e)}},zy={readContext:function(e){return ni(e)},use:ja,useCallback:function(e,t){return Z=`useCallback`,F(),xo(e,t)},useContext:function(e){return Z=`useContext`,F(),ni(e)},useEffect:function(e,t){return Z=`useEffect`,F(),po(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,F(),yo(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,F(),uo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,F(),_o(e,t)},useMemo:function(e,t){Z=`useMemo`,F();var n=W.H;W.H=Hy;try{return Co(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,F();var r=W.H;W.H=Hy;try{return Pa(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,F(),lo(e)},useState:function(e){Z=`useState`,F();var t=W.H;W.H=Hy;try{return Ka(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,F()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,F(),To(e,t)},useTransition:function(){return Z=`useTransition`,F(),Fo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,F(),Ra(e,t,n)},useId:function(){return Z=`useId`,F(),zo()},useActionState:function(e,t){return Z=`useActionState`,F(),ro(e,t)},useFormState:function(e,t){return Z=`useFormState`,F(),va(),ro(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,F(),qa(e)},useHostTransitionStatus:Ro,useMemoCache:Ma,useCacheRefresh:function(){return Z=`useCacheRefresh`,F(),Bo()},useEffectEvent:function(e){return Z=`useEffectEvent`,F(),ho(e)}},By={readContext:function(e){return ni(e)},use:ja,useCallback:function(e,t){return Z=`useCallback`,F(),So(e,t)},useContext:function(e){return Z=`useContext`,F(),ni(e)},useEffect:function(e,t){Z=`useEffect`,F(),fo(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,F(),bo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,F(),fo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,F(),fo(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,F();var n=W.H;W.H=Uy;try{return wo(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,F();var r=W.H;W.H=Uy;try{return Fa(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,F(),Oa().memoizedState},useState:function(){Z=`useState`,F();var e=W.H;W.H=Uy;try{return Fa(Na)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,F()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,F(),Eo(e,t)},useTransition:function(){return Z=`useTransition`,F(),Io()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,F(),za(e,t,n)},useId:function(){return Z=`useId`,F(),Oa().memoizedState},useFormState:function(e){return Z=`useFormState`,F(),va(),io(e)},useActionState:function(e){return Z=`useActionState`,F(),io(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,F(),Ja(e,t)},useHostTransitionStatus:Ro,useMemoCache:Ma,useCacheRefresh:function(){return Z=`useCacheRefresh`,F(),Oa().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,F(),go(e)}},Vy={readContext:function(e){return ni(e)},use:ja,useCallback:function(e,t){return Z=`useCallback`,F(),So(e,t)},useContext:function(e){return Z=`useContext`,F(),ni(e)},useEffect:function(e,t){Z=`useEffect`,F(),fo(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,F(),bo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,F(),fo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,F(),fo(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,F();var n=W.H;W.H=Wy;try{return wo(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,F();var r=W.H;W.H=Wy;try{return La(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,F(),Oa().memoizedState},useState:function(){Z=`useState`,F();var e=W.H;W.H=Wy;try{return La(Na)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,F()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,F(),Do(e,t)},useTransition:function(){return Z=`useTransition`,F(),Lo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,F(),za(e,t,n)},useId:function(){return Z=`useId`,F(),Oa().memoizedState},useFormState:function(e){return Z=`useFormState`,F(),va(),so(e)},useActionState:function(e){return Z=`useActionState`,F(),so(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,F(),L(e,t)},useHostTransitionStatus:Ro,useMemoCache:Ma,useCacheRefresh:function(){return Z=`useCacheRefresh`,F(),Oa().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,F(),go(e)}},Hy={readContext:function(e){return l(),ni(e)},use:function(e){return c(),ja(e)},useCallback:function(e,t){return Z=`useCallback`,c(),ga(),xo(e,t)},useContext:function(e){return Z=`useContext`,c(),ga(),ni(e)},useEffect:function(e,t){return Z=`useEffect`,c(),ga(),po(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),ga(),yo(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,c(),ga(),uo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),ga(),_o(e,t)},useMemo:function(e,t){Z=`useMemo`,c(),ga();var n=W.H;W.H=Hy;try{return Co(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),ga();var r=W.H;W.H=Hy;try{return Pa(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,c(),ga(),lo(e)},useState:function(e){Z=`useState`,c(),ga();var t=W.H;W.H=Hy;try{return Ka(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,c(),ga()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),ga(),To(e,t)},useTransition:function(){return Z=`useTransition`,c(),ga(),Fo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),ga(),Ra(e,t,n)},useId:function(){return Z=`useId`,c(),ga(),zo()},useFormState:function(e,t){return Z=`useFormState`,c(),ga(),ro(e,t)},useActionState:function(e,t){return Z=`useActionState`,c(),ga(),ro(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,c(),ga(),qa(e)},useMemoCache:function(e){return c(),Ma(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return Z=`useCacheRefresh`,ga(),Bo()},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),ga(),ho(e)}},Uy={readContext:function(e){return l(),ni(e)},use:function(e){return c(),ja(e)},useCallback:function(e,t){return Z=`useCallback`,c(),F(),So(e,t)},useContext:function(e){return Z=`useContext`,c(),F(),ni(e)},useEffect:function(e,t){Z=`useEffect`,c(),F(),fo(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),F(),bo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,c(),F(),fo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),F(),fo(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,c(),F();var n=W.H;W.H=Uy;try{return wo(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),F();var r=W.H;W.H=Uy;try{return Fa(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,c(),F(),Oa().memoizedState},useState:function(){Z=`useState`,c(),F();var e=W.H;W.H=Uy;try{return Fa(Na)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,c(),F()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),F(),Eo(e,t)},useTransition:function(){return Z=`useTransition`,c(),F(),Io()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),F(),za(e,t,n)},useId:function(){return Z=`useId`,c(),F(),Oa().memoizedState},useFormState:function(e){return Z=`useFormState`,c(),F(),io(e)},useActionState:function(e){return Z=`useActionState`,c(),F(),io(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,c(),F(),Ja(e,t)},useMemoCache:function(e){return c(),Ma(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return Z=`useCacheRefresh`,F(),Oa().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),F(),go(e)}},Wy={readContext:function(e){return l(),ni(e)},use:function(e){return c(),ja(e)},useCallback:function(e,t){return Z=`useCallback`,c(),F(),So(e,t)},useContext:function(e){return Z=`useContext`,c(),F(),ni(e)},useEffect:function(e,t){Z=`useEffect`,c(),F(),fo(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),F(),bo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,c(),F(),fo(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),F(),fo(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,c(),F();var n=W.H;W.H=Uy;try{return wo(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),F();var r=W.H;W.H=Uy;try{return La(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,c(),F(),Oa().memoizedState},useState:function(){Z=`useState`,c(),F();var e=W.H;W.H=Uy;try{return La(Na)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,c(),F()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),F(),Do(e,t)},useTransition:function(){return Z=`useTransition`,c(),F(),Lo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),F(),za(e,t,n)},useId:function(){return Z=`useId`,c(),F(),Oa().memoizedState},useFormState:function(e){return Z=`useFormState`,c(),F(),so(e)},useActionState:function(e){return Z=`useActionState`,c(),F(),so(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,c(),F(),L(e,t)},useMemoCache:function(e){return c(),Ma(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return Z=`useCacheRefresh`,F(),Oa().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),F(),go(e)}};var Gy={},Ky=new Set,qy=new Set,Jy=new Set,Yy=new Set,Xy=new Set,Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set;Object.freeze(Gy);var nb={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qc(e),i=$i(r);i.payload=t,n!=null&&(Yo(n),i.callback=n),t=ea(e,i,r),t!==null&&(ci(r,`this.setState()`,e),Yc(t,e,r),ta(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qc(e),i=$i(r);i.tag=$v,i.payload=t,n!=null&&(Yo(n),i.callback=n),t=ea(e,i,r),t!==null&&(ci(r,`this.replaceState()`,e),Yc(t,e,r),ta(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qc(e),r=$i(n);r.tag=ey,t!=null&&(Yo(t),r.callback=t),t=ea(e,r,n),t!==null&&(ci(n,`this.forceUpdate()`,e),Yc(t,e,n),ta(t,e,n))}},rb=null,ib=null,ab=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),ob=!1,sb={},cb={},lb={},ub={},db=!1,fb={},pb={},mb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},hb=!1,gb=null;gb=new Set;var _b=!1,vb=!1,yb=!1,bb=typeof WeakSet==`function`?WeakSet:Set,xb=null,Sb=null,Cb=null,wb=null,Tb=!1,Eb=null,Db=!1,Ob=8192,kb={getCacheForType:function(e){var t=ni(m_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ni(m_).controller.signal},getOwner:function(){return fp}};if(typeof Symbol==`function`&&Symbol.for){var Ab=Symbol.for;Ab(`selector.component`),Ab(`selector.has_pseudo_class`),Ab(`selector.role`),Ab(`selector.test_id`),Ab(`selector.text`)}var jb=[],Mb=typeof WeakMap==`function`?WeakMap:Map,Nb=0,Pb=2,Fb=4,Ib=0,Lb=1,Rb=2,zb=3,Bb=4,Vb=6,Hb=5,Ub=Nb,Wb=null,Q=null,$=0,Gb=0,Kb=1,qb=2,Jb=3,Yb=4,Xb=5,Zb=6,Qb=7,$b=8,ex=9,tx=Gb,nx=null,rx=!1,ix=!1,ax=!1,ox=0,sx=Ib,cx=0,lx=0,ux=0,dx=0,fx=0,px=null,mx=null,hx=!1,gx=0,_x=0,vx=300,yx=1/0,bx=500,xx=null,Sx=null,Cx=null,wx=0,Tx=1,Ex=2,Dx=3,Ox=0,kx=1,Ax=2,jx=3,Mx=4,Nx=5,Px=0,Fx=null,Ix=null,Lx=0,Rx=0,zx=-0,Bx=null,Vx=null,Hx=null,Ux=wx,Wx=null,Gx=50,Kx=0,qx=null,Jx=!1,Yx=!1,Xx=50,Zx=0,Qx=null,$x=!1,eS=null,tS=!1,nS=new Set,rS={},iS=null,aS=null,oS=!1,sS=!1,cS=!1,lS=!1,uS=0,dS={};(function(){for(var e=0;e<ig.length;e++){var t=ig[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Gn(n,`on`+t)}Gn(Xh,`onAnimationEnd`),Gn(Zh,`onAnimationIteration`),Gn(Qh,`onAnimationStart`),Gn(`dblclick`,`onDoubleClick`),Gn(`focusin`,`onFocus`),Gn(`focusout`,`onBlur`),Gn($h,`onTransitionRun`),Gn(eg,`onTransitionStart`),Gn(tg,`onTransitionCancel`),Gn(ng,`onTransitionEnd`)})(),k(`onMouseEnter`,[`mouseout`,`mouseover`]),k(`onMouseLeave`,[`mouseout`,`mouseover`]),k(`onPointerEnter`,[`pointerout`,`pointerover`]),k(`onPointerLeave`,[`pointerout`,`pointerover`]),nt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),nt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),nt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),nt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),nt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),nt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var fS=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),pS=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(fS)),mS=`_reactListening`+Math.random().toString(36).slice(2),hS=!1,gS=!1,_S=!1,vS=!1,yS=!1,bS=!1,xS=!1,SS={},CS=/\r\n?/g,wS=/\u0000|\uFFFD/g,TS=`http://www.w3.org/1999/xlink`,ES=`http://www.w3.org/XML/1998/namespace`,DS=`javascript:throw new Error('React form unexpectedly submitted.')`,OS=`suppressHydrationWarning`,kS=`&`,AS=`/&`,jS=`$`,MS=`/$`,NS=`$?`,PS=`$~`,FS=`$!`,IS=`html`,LS=`body`,RS=`head`,zS=`F!`,BS=`F`,VS=`loading`,HS=`style`,US=0,WS=1,GS=2,KS=null,qS=null,JS={dialog:!0,webview:!0},YS=null,XS=void 0,ZS=typeof setTimeout==`function`?setTimeout:void 0,QS=typeof clearTimeout==`function`?clearTimeout:void 0,$S=-1,eC=typeof Promise==`function`?Promise:void 0,tC=typeof queueMicrotask==`function`?queueMicrotask:eC===void 0?ZS:function(e){return eC.resolve(null).then(e).catch(Hu)},nC=null,rC=0,iC=1,aC=2,oC=3,sC=4,cC=new Map,lC=new Set,uC=Gf.d;Gf.d={f:function(){var e=uC.f(),t=el();return e||t},r:function(e){var t=$e(e);t!==null&&t.tag===5&&t.type===`form`?Po(t):uC.r(e)},D:function(e){uC.D(e),Td(`dns-prefetch`,e,null)},C:function(e,t){uC.C(e,t),Td(`preconnect`,e,t)},L:function(e,t,n){uC.L(e,t,n);var r=dC;if(r&&e&&t){var i=`link[rel="preload"][as="`+ht(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+ht(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+ht(n.imageSizes)+`"]`)):i+=`[href="`+ht(e)+`"]`;var a=i;switch(t){case`style`:a=Od(e);break;case`script`:a=Md(e)}cC.has(a)||(e=Ef({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),cC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(kd(a))||t===`script`&&r.querySelector(Nd(a))||(t=r.createElement(`link`),xu(t,`link`,e),tt(t),r.head.appendChild(t)))}},m:function(e,t){uC.m(e,t);var n=dC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+ht(r)+`"][href="`+ht(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Md(e)}if(!cC.has(a)&&(e=Ef({rel:`modulepreload`,href:e},t),cC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Nd(a)))return}r=n.createElement(`link`),xu(r,`link`,e),tt(r),n.head.appendChild(r)}}},X:function(e,t){uC.X(e,t);var n=dC;if(n&&e){var r=O(n).hoistableScripts,i=Md(e),a=r.get(i);a||(a=n.querySelector(Nd(i)),a||(e=Ef({src:e,async:!0},t),(t=cC.get(i))&&Ld(e,t),a=n.createElement(`script`),tt(a),xu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){uC.S(e,t,n);var r=dC;if(r&&e){var i=O(r).hoistableStyles,a=Od(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:rC,preload:null};if(o=r.querySelector(kd(a)))s.loading=iC|sC;else{e=Ef({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=cC.get(a))&&Id(e,n);var c=o=r.createElement(`link`);tt(c),xu(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=iC}),c.addEventListener(`error`,function(){s.loading|=aC}),s.loading|=sC,Fd(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){uC.M(e,t);var n=dC;if(n&&e){var r=O(n).hoistableScripts,i=Md(e),a=r.get(i);a||(a=n.querySelector(Nd(i)),a||(e=Ef({src:e,async:!0,type:`module`},t),(t=cC.get(i))&&Ld(e,t),a=n.createElement(`script`),tt(a),xu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var dC=typeof document>`u`?null:document,fC=null,pC=6e4,mC=800,hC=500,gC=0,_C=null,vC=null,yC=Kf,bC={$$typeof:Pf,Provider:null,Consumer:null,_currentValue:yC,_currentValue2:yC,_threadCount:0},xC=`%c%s%c`,SC=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,CC=``,wC=` `,TC=Function.prototype.bind,EC=!1,DC=null,OC=null,kC=null,AC=null,jC=null,MC=null,NC=null,PC=null,FC=null,IC=null;DC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=Ef({},e.memoizedProps),i=dr(e,2),i!==null&&Yc(i,e,2))},OC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=Ef({},e.memoizedProps),r=dr(e,2),r!==null&&Yc(r,e,2))},kC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=Ef({},e.memoizedProps),i=dr(e,2),i!==null&&Yc(i,e,2))},AC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dr(e,2),t!==null&&Yc(t,e,2)},jC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dr(e,2),t!==null&&Yc(t,e,2)},MC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dr(e,2),t!==null&&Yc(t,e,2)},NC=function(e){var t=dr(e,2);t!==null&&Yc(t,e,2)},PC=function(e){var t=Re(),n=dr(e,t);n!==null&&Yc(n,e,t)},FC=function(e){s=e},IC=function(e){o=e};var LC=!0,RC=null,zC=!1,BC=null,VC=null,HC=null,UC=new Map,WC=new Map,GC=[],KC=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `),qC=null;if(xf.prototype.render=bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):b(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Xd(r,qc(r),n,t,null,null)},xf.prototype.unmount=bf.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Ub&(Pb|Fb))!==Nb&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),Xd(e.current,2,null,e,null,null),el(),t[Gp]=null}},xf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ye();e={blockedOn:null,target:e,priority:t};for(var n=0;n<GC.length&&t!==0&&t<GC[n].priority;n++);GC.splice(n,0,e),n===0&&ff(e)}},(function(){var e=wf.version;if(e!==`19.2.8`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
228
- - react: `+(e+`
229
- - react-dom: 19.2.8
230
- Learn more: https://react.dev/warnings/version-mismatch`))})(),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://react.dev/link/react-polyfills`),Gf.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=re(t),e=e===null?null:ie(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:W,reconcilerVersion:`19.2.8`};return e.overrideHookState=DC,e.overrideHookStateDeletePath=OC,e.overrideHookStateRenamePath=kC,e.overrideProps=AC,e.overridePropsDeletePath=jC,e.overridePropsRenamePath=MC,e.scheduleUpdate=NC,e.scheduleRetry=PC,e.setErrorHandler=FC,e.setSuspenseHandler=IC,e.scheduleRefresh=v,e.scheduleRoot=_,e.setRefreshHandler=y,e.getCurrentFiber=tf,je(e)})()&&Zm&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var JC=window.location.protocol;/^(https?|file):$/.test(JC)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(JC===`file:`?`
231
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!b(e))throw Error(`Target container is not a DOM element.`);Sf(e);var n=!1,r=``,i=R,a=es,o=ts;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===Of&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
232
-
233
- let root = createRoot(domContainer);
234
- root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Jd(e,1,!1,null,null,n,r,null,i,a,o,yf),e[Gp]=t.current,au(e),new bf(t)},e.hydrateRoot=function(e,t,n){if(!b(e))throw Error(`Target container is not a DOM element.`);Sf(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=R,o=es,s=ts,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Jd(e,1,!0,t,n??null,r,i,c,a,o,s,yf),t.context=Yd(null),n=t.current,r=qc(n),r=Ge(r),i=$i(r),i.callback=null,ea(n,i,r),ci(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,Be(t,n),Hl(t),e[Gp]=t.current,au(e),new xf(t)},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),_=o(((e,t)=>{t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},y=new class extends v{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},b={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},x=new class{#e=b;#t=!1;setTimeoutProvider(e){this.#t&&e!==this.#e&&console.error(`[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`,{previous:this.#e,provider:e}),this.#e=e,this.#t=!1}setTimeout(e,t){return this.#t=!0,this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#t=!0,this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ee(e){setTimeout(e,0)}var te=typeof window>`u`||`Deno`in globalThis;function ne(){}function re(e,t){return typeof e==`function`?e(t):e}function ie(e){return typeof e==`number`&&e>=0&&e!==1/0}function ae(e,t){return Math.max(e+(t||0)-Date.now(),0)}function S(e,t){return typeof e==`function`?e(t):e}function oe(e,t){return typeof e==`function`?e(t):e}function C(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==se(o,t.options))return!1}else if(!ce(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function w(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(T(t.options.mutationKey)!==T(a))return!1}else if(!ce(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function se(e,t){return(t?.queryKeyHashFn||T)(e)}function T(e){return JSON.stringify(e,(e,t)=>pe(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ce(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!ce(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!ce(e[r],t[r]))return!1;return!0}return!1}var le=Object.prototype.hasOwnProperty;function ue(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=fe(e)&&fe(t);if(!r&&!(pe(e)&&pe(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:le.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=ue(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function de(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function fe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pe(e){if(!me(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!me(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function me(e){return Object.prototype.toString.call(e)===`[object Object]`}function he(e){return new Promise(t=>{x.setTimeout(t,e)})}function ge(e,t,n){if(typeof n.structuralSharing==`function`)return n.structuralSharing(e,t);if(n.structuralSharing!==!1)try{return ue(e,t)}catch(e){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`),e}return t}function _e(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ve(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ye=Symbol();function be(e,t){return e.queryFn===ye&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ye?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xe(e,t){return typeof e==`function`?e(...t):!!e}function Se(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Ce=(()=>{let e=()=>te;return{isServer(){return e()},setIsServer(t){e=t}}})();function we(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var E=ee;function Te(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=E,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Ee=Te(),De=new class extends v{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Oe(e){return Math.min(1e3*2**e,3e4)}function D(e){return(e??`online`)!==`online`||De.isOnline()}var ke=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ae(e){let t=!1,n=0,r,i=we(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new ke(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>y.isFocused()&&(e.networkMode===`always`||De.isOnline())&&e.canRun(),u=()=>D(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Ce.isServer()?0:3),o=e.retryDelay??Oe,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),he(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var je=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ie(this.gcTime)&&(this.#e=x.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ce.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(x.clearTimeout(this.#e),this.#e=void 0)}};function Me(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Se(e,()=>t.signal,()=>n=!0)},u=be(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?ve:_e;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Pe:Ne,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ne(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Ne(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Pe(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Fe=class extends je{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Re(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Re(this.options);e.data!==void 0&&(this.setState(Le(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=ge(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(ne).catch(ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>oe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ye||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>S(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ae(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey)||console.error(`As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`);let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=be(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Me(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ae({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ke&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof ke){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Ie(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Le(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Ee.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Ie(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:D(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Le(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Re(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var ze=class extends v{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=we(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ve(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return He(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return He(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof oe(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!de(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ue(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||oe(this.options.enabled,this.#t)!==oe(t.enabled,this.#t)||S(this.options.staleTime,this.#t)!==S(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||oe(this.options.enabled,this.#t)!==oe(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Ge(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ne)),t}#g(){this.#b();let e=S(this.options.staleTime,this.#t);if(Ce.isServer()||this.#r.isStale||!ie(e))return;let t=ae(this.#r.dataUpdatedAt,e)+1;this.#d=x.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(Ce.isServer()||oe(this.options.enabled,this.#t)===!1||!ie(this.#p)||this.#p===0)&&(this.#f=x.setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(x.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(x.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ve(e,t),o=i&&Ue(e,n,t,r);(a||o)&&(l={...l,...Ie(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=ge(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=ge(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:We(e,t),refetch:this.refetch,promise:this.#o,isEnabled:oe(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=we();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!de(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Ee.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Be(e,t){return oe(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||oe(t.retryOnMount,e)!==!1)}function Ve(e,t){return Be(e,t)||e.state.data!==void 0&&He(e,t,t.refetchOnMount)}function He(e,t,n){if(oe(t.enabled,e)!==!1&&S(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&We(e,t)}return!1}function Ue(e,t,n,r){return(e!==t||oe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&We(e,n)}function We(e,t){return oe(t.enabled,e)!==!1&&e.isStaleByTime(S(t.staleTime,e))}function Ge(e,t){return!de(e.getCurrentResult(),t)}var Ke=class extends je{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||qe(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ae({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Ee.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function qe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Je=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ke({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ye(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ye(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ye(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Ye(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ee.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>w(t,e))}findAll(e={}){return this.getAll().filter(t=>w(e,t))}notify(e){Ee.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Ee.batch(()=>Promise.all(e.map(e=>e.continue().catch(ne))))}};function Ye(e){return e.options.scope?.id}var Xe=class extends v{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),de(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&T(t.mutationKey)!==T(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??qe();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Ee.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Ze=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??se(r,t),a=this.get(i);return a||(a=new Fe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Ee.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>C(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>C(e,t)):t}notify(e){Ee.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ee.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ee.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Qe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ze,this.#t=e.mutationCache||new Je,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=De.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(S(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=re(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ee.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Ee.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Ee.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ee.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ne).catch(ne)}invalidateQueries(e,t={}){return Ee.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ee.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ne)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ne)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(S(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ne).catch(ne)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ne).catch(ne)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return De.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(T(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ce(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(T(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ce(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=se(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ye&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},$e=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case ne:return`Suspense`;case re:return`SuspenseList`;case S: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 _:return`Portal`;case ee:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case te:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case ae:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ae)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=C.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(w.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){ce||(ce=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return le[e]||(le[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,o,l,d){var f=n.children;if(f!==void 0){if(o){if(se(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`)}else p(f)}if(w.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,fe[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
235
- let props = %s;
236
- <%s {...props} />
237
- React keys must be passed directly to JSX without using spread:
238
- let props = %s;
239
- <%s key={someKey} {...props} />`,o,f,m,f),fe[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===ae&&(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`),ne=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),ae=Symbol.for(`react.lazy`),S=Symbol.for(`react.activity`),oe=Symbol.for(`react.client.reference`),C=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,se=Array.isArray,T=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var ce,le={},ue=h.react_stack_bottom_frame.bind(h,o)(),de=T(i(o)),fe={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>C.recentlyCreatedOwnerStacks++;return f(e,t,n,!1,r?Error(`react-stack-top-frame`):ue,r?T(i(e)):de)},e.jsxs=function(e,t,n){var r=1e4>C.recentlyCreatedOwnerStacks++;return f(e,t,n,!0,r?Error(`react-stack-top-frame`):ue,r?T(i(e)):de)}})()})),et=o(((e,t)=>{t.exports=$e()})),O=l(d(),1),tt=et(),nt=O.createContext(void 0),k=e=>{let t=O.useContext(nt);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},rt=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,tt.jsx)(nt.Provider,{value:e,children:t})),it=O.createContext(!1),at=()=>O.useContext(it);it.Provider;function ot(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var st=O.createContext(ot()),ct=()=>O.useContext(st),lt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?xe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ut=e=>{O.useEffect(()=>{e.clearReset()},[e])},dt=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||xe(n,[e.error,r])),ft=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},pt=(e,t)=>e.isLoading&&e.isFetching&&!t,mt=(e,t)=>e?.suspense&&t.isPending,ht=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function gt(e,t,n){if(typeof e!=`object`||Array.isArray(e))throw Error(`Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object`);let r=at(),i=ct(),a=k(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);let c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,ft(o),lt(o,i,s),ut(i);let l=!a.getQueryCache().get(o.queryHash),[u]=O.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(O.useSyncExternalStore(O.useCallback(e=>{let t=f?u.subscribe(Ee.batchCalls(e)):ne;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),O.useEffect(()=>{u.setOptions(o)},[o,u]),mt(o,d))throw ht(o,u,i);if(dt({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!Ce.isServer()&&pt(d,r)&&(l?ht(o,u,i):s?.promise)?.catch(ne).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function _t(e,t){return gt(e,ze,t)}function vt(e,t){let n=k(t),[r]=O.useState(()=>new Xe(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);let i=O.useSyncExternalStore(O.useCallback(e=>r.subscribe(Ee.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=O.useCallback((e,t)=>{r.mutate(e,t).catch(ne)},[r]);if(i.error&&xe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var yt=_();function bt(e){let t=e.split(/[^A-Za-z0-9]+/).filter(e=>e.length>0);return t.length===0?`??`:t.length===1?t[0].slice(0,2).toUpperCase():`${t[0][0]}${t[1][0]}`.toUpperCase()}function xt(e){if(!e)return;let t=Date.parse(e);if(Number.isNaN(t))return;let n=Math.max(0,Math.round((Date.now()-t)/1e3));if(n<60)return`just now`;let r=Math.round(n/60);if(r<60)return`${r}m ago`;let i=Math.round(r/60);if(i<24)return`${i}h ago`;let a=Math.round(i/24);if(a<30)return`${a}d ago`;let o=Math.round(a/30);return o<12?`${o}mo ago`:`${Math.round(o/12)}y ago`}var St=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case ne:return`Suspense`;case re:return`SuspenseList`;case S: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 _:return`Portal`;case ee:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case te:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case ae:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ae)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=C.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(w.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){ce||(ce=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return le[e]||(le[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,o,l,d){var f=n.children;if(f!==void 0){if(o){if(se(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`)}else p(f)}if(w.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,fe[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
240
- let props = %s;
241
- <%s {...props} />
242
- React keys must be passed directly to JSX without using spread:
243
- let props = %s;
244
- <%s key={someKey} {...props} />`,o,f,m,f),fe[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===ae&&(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`),ne=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),ae=Symbol.for(`react.lazy`),S=Symbol.for(`react.activity`),oe=Symbol.for(`react.client.reference`),C=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,se=Array.isArray,T=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var ce,le={},ue=h.react_stack_bottom_frame.bind(h,o)(),de=T(i(o)),fe={};e.Fragment=v,e.jsxDEV=function(e,t,n,r){var a=1e4>C.recentlyCreatedOwnerStacks++;return f(e,t,n,r,a?Error(`react-stack-top-frame`):ue,a?T(i(e)):de)}})()})),Ct=o(((e,t)=>{t.exports=St()})),A=Ct(),wt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/shell/Rail.tsx`;function Tt(e){return[{key:`sessions`,label:`Sessions`,route:{name:`sessions`,projectId:e},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`3`,y:`3.5`,width:`14`,height:`13`,rx:`2.5`},void 0,!1,{fileName:wt,lineNumber:35,columnNumber:9},this),(0,A.jsxDEV)(`path`,{d:`M6.5 8h7M6.5 11.5h4.5`},void 0,!1,{fileName:wt,lineNumber:36,columnNumber:9},this)]},void 0,!0,{fileName:wt,lineNumber:34,columnNumber:7},this)},{key:`reviews`,label:`Reviews`,route:{name:`reviews`,projectId:e},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M3.5 4.5h13v9h-7.5L6 16.5v-3H3.5z`},void 0,!1,{fileName:wt,lineNumber:46,columnNumber:9},this),(0,A.jsxDEV)(`path`,{d:`M7 8h6M7 10.75h3.5`},void 0,!1,{fileName:wt,lineNumber:47,columnNumber:9},this)]},void 0,!0,{fileName:wt,lineNumber:45,columnNumber:7},this)},{key:`packages`,label:`Packages`,route:{name:`packages`,projectId:e},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M10 2.8 16.5 6v8L10 17.2 3.5 14V6z`},void 0,!1,{fileName:wt,lineNumber:57,columnNumber:9},this),(0,A.jsxDEV)(`path`,{d:`M3.5 6 10 9.4 16.5 6M10 9.4v7.8`},void 0,!1,{fileName:wt,lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:wt,lineNumber:56,columnNumber:7},this)},{key:`settings`,label:`Settings`,route:{name:`settings`,projectId:e},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`circle`,{cx:`10`,cy:`10`,r:`2.6`},void 0,!1,{fileName:wt,lineNumber:68,columnNumber:9},this),(0,A.jsxDEV)(`path`,{d:`M10 2.6v2M10 15.4v2M2.6 10h2M15.4 10h2M4.8 4.8l1.4 1.4M13.8 13.8l1.4 1.4M15.2 4.8l-1.4 1.4M6.2 13.8l-1.4 1.4`},void 0,!1,{fileName:wt,lineNumber:69,columnNumber:9},this)]},void 0,!0,{fileName:wt,lineNumber:67,columnNumber:7},this)}]}function Et({route:e,projectId:t,card:n,onNavigate:r,onOpenPalette:i,onOpenHub:a,onSwitchProject:o,live:s}){let c=n?.name??`Project`;return(0,A.jsxDEV)(`nav`,{className:`rail`,"aria-label":`Primary`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__hub`,onClick:a,title:`All projects (⇧⌘H)`,children:[(0,A.jsxDEV)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M12 3.2 20 7.6v8.8L12 20.8 4 16.4V7.6z`},void 0,!1,{fileName:wt,lineNumber:100,columnNumber:11},this),(0,A.jsxDEV)(`path`,{d:`M12 8.4v7.2`},void 0,!1,{fileName:wt,lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:wt,lineNumber:99,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:`All projects`},void 0,!1,{fileName:wt,lineNumber:103,columnNumber:9},this)]},void 0,!0,{fileName:wt,lineNumber:98,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__project rail__project--${n?.color??`indigo`}`,onClick:o,title:`${c}${n?` — ${n.directory}`:``}\nSwitch project (⌘P)`,children:[(0,A.jsxDEV)(`span`,{className:`rail__monogram`,children:bt(c)},void 0,!1,{fileName:wt,lineNumber:112,columnNumber:9},this),(0,A.jsxDEV)(`svg`,{className:`rail__chevron`,viewBox:`0 0 12 12`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M3 4.5 6 7.5 9 4.5`},void 0,!1,{fileName:wt,lineNumber:114,columnNumber:11},this)},void 0,!1,{fileName:wt,lineNumber:113,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:[`Switch project — currently `,c]},void 0,!0,{fileName:wt,lineNumber:116,columnNumber:9},this)]},void 0,!0,{fileName:wt,lineNumber:106,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`rail__items`,children:Tt(t).map(t=>{let n=t.route.name===e.name||t.key===`reviews`&&e.name===`review`||t.key===`sessions`&&e.name===`session`;return(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__item${n?` is-active`:``}`,onClick:()=>r(t.route),title:t.label,"aria-current":n?`page`:void 0,children:[t.icon,(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:t.label},void 0,!1,{fileName:wt,lineNumber:137,columnNumber:15},this)]},t.key,!0,{fileName:wt,lineNumber:128,columnNumber:13},this)})},void 0,!1,{fileName:wt,lineNumber:119,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`rail__foot`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__item`,onClick:i,title:`Command palette (⌘K)`,children:[(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`3`,y:`4.5`,width:`14`,height:`11`,rx:`2.5`},void 0,!1,{fileName:wt,lineNumber:146,columnNumber:13},this),(0,A.jsxDEV)(`path`,{d:`M6.5 9 8.6 11 6.5 13M11 13h3`},void 0,!1,{fileName:wt,lineNumber:147,columnNumber:13},this)]},void 0,!0,{fileName:wt,lineNumber:145,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:`Command palette`},void 0,!1,{fileName:wt,lineNumber:149,columnNumber:11},this)]},void 0,!0,{fileName:wt,lineNumber:144,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`rail__live rail__live--${s}`,title:s===`live`?`Live — watching for changes`:s===`connecting`?`Connecting…`:`Disconnected — retrying`},void 0,!1,{fileName:wt,lineNumber:151,columnNumber:9},this)]},void 0,!0,{fileName:wt,lineNumber:143,columnNumber:7},this)]},void 0,!0,{fileName:wt,lineNumber:97,columnNumber:5},this)}var Dt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/SelectCheckbox.tsx`;function Ot({checked:e,label:t,disabled:n,onChange:r}){return(0,A.jsxDEV)(`input`,{type:`checkbox`,className:`select-box`,"aria-label":t,checked:e,disabled:n,onClick:e=>e.stopPropagation(),onChange:e=>{let t=e.nativeEvent;r(e.target.checked,{range:t.shiftKey===!0})}},void 0,!1,{fileName:Dt,lineNumber:20,columnNumber:5},this)}function kt({state:e,label:t,disabled:n,onChange:r}){let i=(0,O.useRef)(null);return(0,O.useEffect)(()=>{i.current&&(i.current.indeterminate=e===`some`)},[e]),(0,A.jsxDEV)(`input`,{ref:i,type:`checkbox`,className:`select-box`,"aria-label":t,"aria-checked":e===`some`?`mixed`:e===`all`,checked:e===`all`,disabled:n,onClick:e=>e.stopPropagation(),onChange:()=>r(e!==`all`)},void 0,!1,{fileName:Dt,lineNumber:55,columnNumber:5},this)}var At=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusGlyph.tsx`;function jt({status:e,kind:t=`plan`,size:n=10}){return(0,A.jsxDEV)(`span`,{className:`glyph glyph--${e}${t===`review`?` glyph--kind-review`:``}`,style:{width:n,height:n},"aria-hidden":`true`,children:[(e===`in-progress`||e===`planning`)&&(0,A.jsxDEV)(`span`,{className:`glyph__pulse`},void 0,!1,{fileName:At,lineNumber:41,columnNumber:63},this),e===`review`&&(0,A.jsxDEV)(`span`,{className:`glyph__ring`},void 0,!1,{fileName:At,lineNumber:42,columnNumber:31},this),e===`executed`&&(0,A.jsxDEV)(`svg`,{className:`glyph__check`,viewBox:`0 0 10 10`,focusable:`false`,children:(0,A.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:At,lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:At,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:At,lineNumber:36,columnNumber:5},this)}var Mt=[`reviewing`,`triage`,`fixes`,`done`],Nt={reviewing:`Reviewing`,triage:`Triage`,fixes:`Fixes`,done:`Done`};function Pt(e,t){return e.kind===`review`?It(e.status,t):Ft(e.status)}function Ft(e){switch(e){case`draft`:return{label:`Draft`,holder:`you`,hint:`No plan yet — paste the execute line to have an agent write one.`,action:{kind:`copy-execute`}};case`planning`:return{label:`Planning`,holder:`agent`,hint:`An agent is reading the task and writing the plan.`,action:{kind:`none`}};case`planned`:return{label:`Planned`,holder:`you`,hint:`A plan is written and waiting for your go-ahead.`,action:{kind:`write-plan`}};case`in-progress`:return{label:`Building`,holder:`agent`,hint:`An agent is implementing this plan.`,action:{kind:`none`}};case`executed`:return{label:`Done`,holder:`you`,hint:`The work is finished — this is the moment a review is worth asking for.`,action:{kind:`request-review`}};default:return{label:`Review`,holder:`you`,hint:`This plan session claims the review status, which only a review session may hold.`,action:{kind:`none`}}}}function It(e,t){let n=t?.counts,r=t?.status===`published`;switch(e){case`draft`:return{label:`Awaiting reviewer`,holder:`agent`,hint:`Paste the execute line into a NEW conversation — a fresh agent has not seen the plan.`,action:{kind:`copy-execute`},step:`reviewing`};case`planning`:return{label:`Reviewing`,holder:`agent`,hint:`An agent is reading the diff and writing the review document.`,action:{kind:`none`},step:`reviewing`};case`in-progress`:return{label:`Fixing`,holder:`agent`,hint:`An agent is implementing the comments you staged.`,action:{kind:`none`},step:`fixes`};case`review`:return n&&n.open===0?{label:`Triaged`,holder:`you`,hint:`Every comment is decided — plan the changes, or publish them to GitLab.`,action:{kind:`triage`,openCount:0},step:`triage`}:{label:n?`Triage · ${n.open}`:`Triage`,holder:`you`,hint:n?`${n.open} of ${n.total} comment(s) still need a decision.`:`Every comment is waiting for a decision.`,action:{kind:`triage`,openCount:n?.open??0},step:`triage`};case`planned`:return{label:`Fixes planned`,holder:`you`,hint:`The comments you staged are written into the Plan — paste the execute line to implement them.`,action:{kind:`copy-execute`},step:`fixes`};case`executed`:return r?{label:`Published`,holder:`you`,hint:`The staged comments are on the merge request — nothing left to implement here.`,action:{kind:`none`},step:`done`}:n&&n.staged===0&&n.total>0?{label:`Closed`,holder:`you`,hint:`Every comment was discarded, so there was nothing to implement.`,action:{kind:`none`},step:`done`}:{label:`Fixed`,holder:`you`,hint:`The staged comments have been implemented.`,action:{kind:`none`},step:`done`};default:return{label:`Review`,holder:`you`,hint:`Unknown review stage.`,action:{kind:`none`},step:`reviewing`}}}function Lt(e,t){let n=Mt.indexOf(e),r=Mt.indexOf(t);return n===r?0:n<r?-1:1}var Rt=[`in-progress`,`planning`,`review`,`draft`,`planned`,`executed`],zt={"in-progress":`Building`,planning:`Planning`,review:`Review`,draft:`Draft`,planned:`Planned`,executed:`Done`},Bt=Rt.filter(e=>e!==`review`),Vt="`Review` is set by writing a review, and cleared by planning its changes or publishing them.",Ht=[`blocker`,`major`,`minor`,`nit`,`praise`],Ut={blocker:`Blocker`,major:`Major`,minor:`Minor`,nit:`Nit`,praise:`Praise`},Wt=[`correctness`,`security`,`performance`,`architecture`,`test`,`docs`,`style`],Gt=[`agents`,`skills`,`commands`,`rules`,`contexts`,`instructions`],Kt=[`claude`,`codex`,`cursor`,`aider`,`copilot`],qt=[`indigo`,`violet`,`plum`,`teal`,`sand`,`rose`,`sky`,`moss`],Jt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusPill.tsx`;function Yt({status:e,kind:t=`plan`,review:n,onChange:r,onTriage:i,disabled:a}){let[o,s]=(0,O.useState)(!1),c=(0,O.useRef)(null);(0,O.useEffect)(()=>{if(!o)return;let e=e=>{c.current?.contains(e.target)||s(!1)},t=e=>{e.key===`Escape`&&s(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[o]);let l=Pt({kind:t,status:e},n),u=`pill pill--${e}${t===`review`?` pill--kind-review`:``}`;if(e===`review`&&i)return(0,A.jsxDEV)(`button`,{type:`button`,className:`${u} pill--interactive`,onClick:i,disabled:a,title:l.hint,children:[(0,A.jsxDEV)(jt,{status:e,kind:t},void 0,!1,{fileName:Jt,lineNumber:69,columnNumber:9},this),l.label]},void 0,!0,{fileName:Jt,lineNumber:62,columnNumber:7},this);if(!r)return(0,A.jsxDEV)(`span`,{className:u,title:l.hint,children:[(0,A.jsxDEV)(jt,{status:e,kind:t},void 0,!1,{fileName:Jt,lineNumber:78,columnNumber:9},this),l.label]},void 0,!0,{fileName:Jt,lineNumber:77,columnNumber:7},this);let d=t===`review`?Rt:Bt;return(0,A.jsxDEV)(`div`,{className:`pill-menu`,ref:c,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`${u} pill--interactive`,onClick:()=>s(e=>!e),disabled:a,title:l.hint,"aria-haspopup":`menu`,"aria-expanded":o,children:[(0,A.jsxDEV)(jt,{status:e,kind:t},void 0,!1,{fileName:Jt,lineNumber:99,columnNumber:9},this),l.label,(0,A.jsxDEV)(`svg`,{className:`pill__caret`,viewBox:`0 0 10 10`,"aria-hidden":`true`,children:(0,A.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:Jt,lineNumber:102,columnNumber:11},this)},void 0,!1,{fileName:Jt,lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:Jt,lineNumber:90,columnNumber:7},this),o&&(0,A.jsxDEV)(`div`,{className:`pill-menu__list`,role:`menu`,children:[d.map(i=>{let a=i===`review`,o=Pt({kind:t,status:i},n).label;return(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":i===e,"aria-disabled":a||void 0,title:a?"`Review` is set by writing a review, and cleared by planning its changes or publishing them.":void 0,className:`pill-menu__item${i===e?` is-active`:``}${a?` is-locked`:``}`,onClick:()=>{a||(s(!1),i!==e&&r(i))},children:[(0,A.jsxDEV)(jt,{status:i,kind:t},void 0,!1,{fileName:Jt,lineNumber:129,columnNumber:17},this),o,a&&(0,A.jsxDEV)(`span`,{className:`pill-menu__lock`,"aria-hidden":`true`,title:"`Review` is set by writing a review, and cleared by planning its changes or publishing them.",children:`🔒`},void 0,!1,{fileName:Jt,lineNumber:132,columnNumber:19},this)]},i,!0,{fileName:Jt,lineNumber:113,columnNumber:15},this)}),t===`review`&&(0,A.jsxDEV)(`p`,{className:`pill-menu__note`,children:"`Review` is set by writing a review, and cleared by planning its changes or publishing them."},void 0,!1,{fileName:Jt,lineNumber:140,columnNumber:33},this)]},void 0,!0,{fileName:Jt,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:Jt,lineNumber:89,columnNumber:5},this)}var Xt=[[60,1,`s`],[3600,60,`m`],[86400,3600,`h`],[2592e3,86400,`d`]];function Zt(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 Xt)if(n<e)return`${Math.floor(n/t)}${r} ago`;return new Date(t).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function Qt(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()}function $t(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function en(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 tn(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function nn(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 rn=[`.xml`,`.md`];function an(e){let t=e.split(`/`).pop()??e,n=rn.find(e=>t.toLowerCase().endsWith(e));return n?t.slice(0,-n.length):t}function on(e,t,n){return e.filter(e=>(t===`all`||e.status===t)&&(n===`all`||e.severity===n))}function sn(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 cn(e,t){let n={},r=t.title.trim();return r!==e.title&&(n.title=r),t.body!==e.body&&(n.body=t.body),t.severity!==e.severity&&(n.severity=t.severity),t.category!==e.category&&(n.category=t.category),n}function ln(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 un(e,t,n,r){if(!(e===`none`||!t))return`${e}://file/${t}/${n}:${r??1}`}function dn(e,t){if(e.reviewFile){let n=an(e.reviewFile),r=t.find(e=>e.slug===n);if(r)return r}return t.find(t=>t.sessionId===e.id)}function fn(e,t){return dn(e,t)?.counts}function pn(e,t=[]){let n=new Map;for(let r of e)n.set(r.id,{session:r,review:dn(r,t),children:[],contextOnly:!1});let r=[],i=[],a=[];for(let t of e){let e=n.get(t.id);if(t.kind!==`review`){r.push(e);continue}if(!t.parent){i.push(e);continue}let o=n.get(t.parent);if(o){o.children.push(e);continue}a.push(e)}return{roots:r,standalone:i,orphaned:a}}function mn(e,t){let n=e=>{let n=e.children.filter(e=>t.has(e.session.id)),r=t.has(e.session.id);if(!(!r&&n.length===0))return{...e,contextOnly:!r,children:r?e.children:n}};return{roots:e.roots.map(n).filter(hn),standalone:e.standalone.map(n).filter(hn),orphaned:e.orphaned.map(n).filter(hn)}}function hn(e){return e!==void 0}function gn(e,t){let n=[];for(let r of e.roots){let e=r.children.length,i=e>0,a=i&&!t.has(r.session.id);if(n.push({kind:`session`,node:r,depth:0,hasChildren:i,expanded:a,childCount:e}),a)for(let e of r.children)n.push({kind:`session`,node:e,depth:1,hasChildren:!1,expanded:!1,childCount:0})}for(let t of[{id:`standalone`,nodes:e.standalone},{id:`orphaned`,nodes:e.orphaned}])if(t.nodes.length!==0){n.push({kind:`group`,id:t.id,count:t.nodes.length});for(let e of t.nodes)n.push({kind:`session`,node:e,depth:1,hasChildren:!1,expanded:!1,childCount:0})}return n}var _n=new Set;function vn(e,t,n,r){let i=pn(e,n);return t?gn(mn(i,t),_n):gn(i,r)}function yn(e){return e.filter(e=>e.kind===`session`).map(e=>e.node.session)}var bn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionTree.tsx`;function xn({sessions:e,allSessions:t,reviews:n,focusedId:r,onFocus:i,onOpen:a,onStatusChange:o,filter:s,collapsed:c,onToggleCollapsed:l,selection:u}){let d=(0,O.useRef)(null),f=s.trim().length>0,p=(0,O.useMemo)(()=>f?new Set(e.map(e=>e.id)):void 0,[f,e]),m=(0,O.useMemo)(()=>vn(t,p,n,c),[t,p,n,c]);(0,O.useEffect)(()=>{d.current?.scrollIntoView({block:`nearest`})},[r]);let h=(0,O.useCallback)(e=>l(e),[l]),g=(0,O.useMemo)(()=>{let e=pn(t,n);return new Set(e.roots.filter(e=>e.children.length>0).map(e=>e.session.id))},[t,n]);return(0,O.useEffect)(()=>{let e=e=>{if(!r||!g.has(r))return;let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`)||e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;let n=!c.has(r);(e.key===`ArrowRight`&&!n||e.key===`ArrowLeft`&&n)&&(e.preventDefault(),h(r))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r,g,c,h]),m.length===0?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Nothing matches this filter.`},void 0,!1,{fileName:bn,lineNumber:104,columnNumber:12},this):(0,A.jsxDEV)(`div`,{className:`list${u.count>0?` is-selecting`:``}`,children:(0,A.jsxDEV)(`table`,{className:`list__table tree`,role:`treegrid`,"aria-label":`Sessions and their reviews`,children:[(0,A.jsxDEV)(`thead`,{children:(0,A.jsxDEV)(`tr`,{children:[(0,A.jsxDEV)(`th`,{scope:`col`,className:`list__select`,children:(0,A.jsxDEV)(kt,{state:u.headerState,label:`Select every session on screen`,onChange:e=>e?u.selectAll():u.clear()},void 0,!1,{fileName:bn,lineNumber:113,columnNumber:15},this)},void 0,!1,{fileName:bn,lineNumber:112,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Session`},void 0,!1,{fileName:bn,lineNumber:119,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Stage`},void 0,!1,{fileName:bn,lineNumber:120,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:bn,lineNumber:121,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Size`},void 0,!1,{fileName:bn,lineNumber:122,columnNumber:13},this)]},void 0,!0,{fileName:bn,lineNumber:111,columnNumber:11},this)},void 0,!1,{fileName:bn,lineNumber:110,columnNumber:9},this),(0,A.jsxDEV)(`tbody`,{children:m.map(e=>{if(e.kind===`group`){let t=e.id===`standalone`;return(0,A.jsxDEV)(`tr`,{className:`tree__group tree__group--${e.id}`,children:(0,A.jsxDEV)(`td`,{colSpan:5,children:[(0,A.jsxDEV)(`span`,{className:`tree__group-title`,children:[t?`Standalone reviews`:`Orphaned reviews`,` (`,e.count,`)`]},void 0,!0,{fileName:bn,lineNumber:132,columnNumber:21},this),(0,A.jsxDEV)(`span`,{className:`tree__group-hint`,children:t?`Reviews of a branch on its own — deliberately tied to no session.`:`The session these reviewed is gone. Open one to link it to another.`},void 0,!1,{fileName:bn,lineNumber:135,columnNumber:21},this)]},void 0,!0,{fileName:bn,lineNumber:131,columnNumber:19},this)},e.id,!1,{fileName:bn,lineNumber:130,columnNumber:17},this)}let{node:t,depth:n,hasChildren:s,expanded:c,childCount:l}=e,f=t.session,p=u.isSelected(f.id),m=f.kind===`review`&&f.status===`executed`;return(0,A.jsxDEV)(`tr`,{ref:f.id===r?d:void 0,role:`row`,"aria-level":n+1,"aria-expanded":s?c:void 0,className:[n===1?`tree__row--child`:`tree__row--root`,f.kind===`review`?`tree__row--review`:``,m?`is-settled`:``,t.contextOnly?`is-context`:``,f.id===r?`is-focused`:``,p?`is-selected`:``].filter(Boolean).join(` `),"aria-selected":p,onClick:()=>{i(f.id),a(f.id)},children:[(0,A.jsxDEV)(`td`,{className:`list__select`,onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(Ot,{checked:p,label:`Select ${f.title}`,onChange:(e,t)=>{i(f.id),u.toggle(f.id,t)}},void 0,!1,{fileName:bn,lineNumber:173,columnNumber:19},this)},void 0,!1,{fileName:bn,lineNumber:172,columnNumber:17},this),(0,A.jsxDEV)(`td`,{children:(0,A.jsxDEV)(`div`,{className:`tree__cell`,children:[n===0?(0,A.jsxDEV)(`button`,{type:`button`,className:`tree__twisty${s?``:` is-empty`}`,"aria-label":c?`Collapse`:`Expand`,tabIndex:s?0:-1,onClick:e=>{e.stopPropagation(),s&&h(f.id)},children:s?c?`▾`:`▸`:``},void 0,!1,{fileName:bn,lineNumber:188,columnNumber:23},this):(0,A.jsxDEV)(`span`,{className:`tree__elbow`,"aria-hidden":`true`,children:`└─`},void 0,!1,{fileName:bn,lineNumber:201,columnNumber:23},this),(0,A.jsxDEV)(`div`,{className:`tree__identity`,children:[(0,A.jsxDEV)(`div`,{className:`list__title`,children:[f.kind===`review`&&(0,A.jsxDEV)(`span`,{className:`tree__kicker`,children:[`Review`,f.branch&&(0,A.jsxDEV)(`span`,{className:`tree__branch`,children:f.branch},void 0,!1,{fileName:bn,lineNumber:209,columnNumber:48},this)]},void 0,!0,{fileName:bn,lineNumber:207,columnNumber:27},this),f.title,s&&!c&&(0,A.jsxDEV)(`span`,{className:`tree__child-count`,title:`Show the reviews of this session`,children:[l,` review`,l===1?``:`s`]},void 0,!0,{fileName:bn,lineNumber:217,columnNumber:27},this),f.issue&&(0,A.jsxDEV)(`a`,{className:`tree__issue`,href:f.issue.url,target:`_blank`,rel:`noreferrer`,title:`Open ${f.issue.key} in Linear`,onClick:e=>e.stopPropagation(),children:f.issue.key},void 0,!1,{fileName:bn,lineNumber:228,columnNumber:27},this)]},void 0,!0,{fileName:bn,lineNumber:205,columnNumber:23},this),f.excerpt.length>0&&!f.excerpt.startsWith(f.title.replace(/…$/,``).trim())&&(0,A.jsxDEV)(`div`,{className:`list__excerpt`,children:f.excerpt},void 0,!1,{fileName:bn,lineNumber:242,columnNumber:27},this)]},void 0,!0,{fileName:bn,lineNumber:204,columnNumber:21},this)]},void 0,!0,{fileName:bn,lineNumber:186,columnNumber:19},this)},void 0,!1,{fileName:bn,lineNumber:185,columnNumber:17},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(Yt,{status:f.status,kind:f.kind,review:t.review,onChange:e=>o(f.id,e),onTriage:()=>{i(f.id),a(f.id)}},void 0,!1,{fileName:bn,lineNumber:248,columnNumber:19},this)},void 0,!1,{fileName:bn,lineNumber:247,columnNumber:17},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,title:f.updated,children:Zt(f.updated)},void 0,!1,{fileName:bn,lineNumber:256,columnNumber:17},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,children:$t(f.sizeBytes)},void 0,!1,{fileName:bn,lineNumber:257,columnNumber:17},this)]},f.id,!0,{fileName:bn,lineNumber:153,columnNumber:15},this)})},void 0,!1,{fileName:bn,lineNumber:125,columnNumber:9},this)]},void 0,!0,{fileName:bn,lineNumber:109,columnNumber:7},this)},void 0,!1,{fileName:bn,lineNumber:108,columnNumber:5},this)}var Sn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/BulkBar.tsx`;function Cn({count:e,hiddenCount:t,noun:n,busy:r,onClear:i,children:a}){return(0,A.jsxDEV)(`div`,{className:`bulkbar`,role:`region`,"aria-label":`Bulk actions`,children:[(0,A.jsxDEV)(`div`,{className:`bulkbar__summary`,children:[(0,A.jsxDEV)(`span`,{className:`bulkbar__count`,"aria-live":`polite`,children:[(0,A.jsxDEV)(`strong`,{children:e},void 0,!1,{fileName:Sn,lineNumber:27,columnNumber:11},this),` `,n,e===1?``:`s`,` selected`]},void 0,!0,{fileName:Sn,lineNumber:26,columnNumber:9},this),t>0&&(0,A.jsxDEV)(`span`,{className:`bulkbar__hint`,title:`These stay selected — the filter is only hiding them.`,children:[t,` hidden by filter`]},void 0,!0,{fileName:Sn,lineNumber:31,columnNumber:11},this)]},void 0,!0,{fileName:Sn,lineNumber:25,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`bulkbar__actions`,children:a},void 0,!1,{fileName:Sn,lineNumber:40,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:r,onClick:i,children:[`Clear `,(0,A.jsxDEV)(`kbd`,{className:`bulkbar__key`,children:`esc`},void 0,!1,{fileName:Sn,lineNumber:43,columnNumber:15},this)]},void 0,!0,{fileName:Sn,lineNumber:42,columnNumber:7},this)]},void 0,!0,{fileName:Sn,lineNumber:24,columnNumber:5},this)}var wn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/ConfirmDialog.tsx`;function Tn({title:e,body:t,confirmLabel:n=`Discard`,cancelLabel:r=`Cancel`,tone:i=`danger`,onConfirm:a,onCancel:o}){let s=(0,O.useRef)(null),c=(0,O.useId)(),l=(0,O.useId)();return(0,O.useEffect)(()=>{s.current?.focus()},[]),(0,A.jsxDEV)(`div`,{className:`modal__confirm`,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":c,"aria-describedby":l,onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),e.preventDefault(),o())},children:(0,A.jsxDEV)(`div`,{className:`modal__confirm-card`,children:[(0,A.jsxDEV)(`h3`,{id:c,className:`modal__confirm-title`,children:e},void 0,!1,{fileName:wn,lineNumber:60,columnNumber:9},this),(0,A.jsxDEV)(`p`,{id:l,className:`modal__text`,children:t},void 0,!1,{fileName:wn,lineNumber:61,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`modal__confirm-actions`,children:[(0,A.jsxDEV)(`button`,{ref:s,type:`button`,className:`button button--ghost`,onClick:o,children:r},void 0,!1,{fileName:wn,lineNumber:63,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--${i}`,onClick:a,children:n},void 0,!1,{fileName:wn,lineNumber:66,columnNumber:11},this)]},void 0,!0,{fileName:wn,lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:wn,lineNumber:59,columnNumber:7},this)},void 0,!1,{fileName:wn,lineNumber:44,columnNumber:5},this)}var En=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Modal.tsx`,Dn=(0,O.createContext)(void 0);function On(){let e=(0,O.useContext)(Dn);if(!e)throw Error(`useModalClose must be used inside a <Modal>`);return e}var kn=`a[href], button, input, select, textarea, [tabindex]`;function An(e){return Array.from(e.querySelectorAll(kn)).filter(e=>e.hasAttribute(`disabled`)||e.getAttribute(`aria-hidden`)===`true`||e.getAttribute(`tabindex`)===`-1`?!1:!(e instanceof HTMLInputElement&&e.type===`hidden`))}function jn(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=e.querySelector(`.modal__body`);return(n?An(n)[0]:void 0)??e}function Mn({title:e,onClose:t,children:n,footer:r,width:i=560,dirty:a=!1,confirmClose:o,closeOnOverlayClick:s=!0}){let c=(0,O.useRef)(null),[l,u]=(0,O.useState)(!1),d=(0,O.useId)(),f=(0,O.useRef)(t),p=(0,O.useRef)(a),m=(0,O.useRef)(l);(0,O.useEffect)(()=>{f.current=t,p.current=a,m.current=l});let h=(0,O.useRef)(null),g=(0,O.useRef)(!1),_=(0,O.useCallback)(e=>{if(!p.current){f.current();return}e!==`overlay`&&u(!0)},[]);(0,O.useEffect)(()=>{let e=c.current;if(!e)return;let t=document.activeElement instanceof HTMLElement?document.activeElement:null,n=jn(e);n.focus(),h.current=n;let r=e=>{if(e.key===`Escape`){if(e.stopPropagation(),m.current){u(!1);return}_(`escape`)}},i=t=>{let n=t.target instanceof HTMLElement?t.target:null;if(n&&e.contains(n)){n.closest(`.modal__confirm`)||(h.current=n);return}g.current||(t.relatedTarget===null||n===document.body)&&(g.current=!0,(h.current?.isConnected?h.current:jn(e)).focus(),g.current=!1)},a=()=>{document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)||(h.current?.isConnected?h.current:jn(e)).focus()};return document.addEventListener(`keydown`,r),document.addEventListener(`focusin`,i),window.addEventListener(`focus`,a),()=>{document.removeEventListener(`keydown`,r),document.removeEventListener(`focusin`,i),window.removeEventListener(`focus`,a),t?.isConnected&&t.focus()}},[_]);let v=e=>{if(e.key!==`Tab`||!c.current)return;let t=An(c.current);if(t.length===0)return;let n=t[0],r=t[t.length-1],i=document.activeElement;if(e.shiftKey&&(i===n||i===c.current)){e.preventDefault(),r.focus();return}!e.shiftKey&&i===r&&(e.preventDefault(),n.focus())},y=()=>{u(!1),h.current?.isConnected&&h.current.focus()},b=(0,O.useCallback)(()=>_(`button`),[_]);return(0,A.jsxDEV)(Dn.Provider,{value:b,children:(0,A.jsxDEV)(`div`,{className:`overlay`,onMouseDown:e=>{e.target===e.currentTarget&&s&&_(`overlay`)},children:(0,A.jsxDEV)(`div`,{className:`modal`,style:{maxWidth:i},role:`dialog`,"aria-modal":`true`,"aria-labelledby":d,tabIndex:-1,ref:c,onKeyDown:v,children:[(0,A.jsxDEV)(`header`,{className:`modal__header`,children:[(0,A.jsxDEV)(`h2`,{className:`modal__title`,id:d,children:e},void 0,!1,{fileName:En,lineNumber:235,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:b,"aria-label":`Close`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 14 14`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M3.5 3.5l7 7M10.5 3.5l-7 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`},void 0,!1,{fileName:En,lineNumber:238,columnNumber:17},this)},void 0,!1,{fileName:En,lineNumber:237,columnNumber:15},this)},void 0,!1,{fileName:En,lineNumber:236,columnNumber:13},this)]},void 0,!0,{fileName:En,lineNumber:234,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`modal__body`,children:n},void 0,!1,{fileName:En,lineNumber:242,columnNumber:11},this),r&&(0,A.jsxDEV)(`footer`,{className:`modal__footer`,children:r},void 0,!1,{fileName:En,lineNumber:243,columnNumber:22},this),l&&(0,A.jsxDEV)(Tn,{title:o?.title??`Discard what you typed?`,body:o?.body??`This dialog holds text that has not been submitted. Closing it loses that text.`,confirmLabel:o?.confirmLabel??`Discard`,cancelLabel:o?.cancelLabel??`Keep editing`,onConfirm:()=>{u(!1),f.current()},onCancel:y},void 0,!1,{fileName:En,lineNumber:246,columnNumber:13},this)]},void 0,!0,{fileName:En,lineNumber:224,columnNumber:9},this)},void 0,!1,{fileName:En,lineNumber:216,columnNumber:7},this)},void 0,!1,{fileName:En,lineNumber:215,columnNumber:5},this)}var Nn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Toasts.tsx`,Pn=(0,O.createContext)(()=>void 0);function Fn(){return(0,O.useContext)(Pn)}var In=3400;function Ln({children:e}){let[t,n]=(0,O.useState)([]),r=(0,O.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)),In)},[]),i=(0,O.useMemo)(()=>r,[r]);return(0,A.jsxDEV)(Pn.Provider,{value:i,children:[e,(0,A.jsxDEV)(`div`,{className:`toasts`,role:`status`,"aria-live":`polite`,children:t.map(e=>(0,A.jsxDEV)(`div`,{className:`toast toast--${e.tone}`,children:e.message},e.id,!1,{fileName:Nn,lineNumber:35,columnNumber:11},this))},void 0,!1,{fileName:Nn,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:Nn,lineNumber:31,columnNumber:5},this)}function Rn(){if(typeof document>`u`)return``;let e=document.querySelector(`meta[name="invariant-ui-token"]`)?.content??``;return e.startsWith(`__`)?``:e}var zn=Rn(),Bn=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 isMergeConflict(){return this.code===`SESSION_MERGE_CONFLICT`}get isNotTriaged(){return this.code===`REVIEW_NOT_TRIAGED`}get transcript(){return this.detail.transcript}get commandLine(){return this.detail.commandLine}get openCount(){return this.detail.openCount??0}};async function Vn(e,t={}){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${zn}`,...t.headers??{}}});if(!n.ok){let e=await n.json().catch(()=>void 0);throw new Bn(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 Hn(e){return{...e,tags:e.tags??[],issues:e.issues??[],reviewSessionIds:e.reviewSessionIds??[]}}function Un(e){let t=(t,n={})=>Vn(`/api/p/${encodeURIComponent(e)}${t.replace(/^\/api/,``)}`,n);return{projectId:e,project:()=>t(`/api/project`),listSessions:async()=>{let e=await t(`/api/sessions`);return{...e,sessions:(e.sessions??[]).map(Hn)}},getSession:async e=>Hn(await t(`/api/sessions/${e}`)),saveSession:async e=>{let n=await t(`/api/sessions/${e.sessionId}`,{method:`PUT`,headers:e.force?{}:{"If-Match":e.etag},body:JSON.stringify({body:e.body,baseBody:e.baseBody,force:e.force===!0})});return{session:Hn(n.session),merged:n.merged}},stashSessionBody:e=>t(`/api/sessions/${e.sessionId}/stash`,{method:`POST`,body:JSON.stringify({body:e.body})}),setStatus:async e=>Hn(await t(`/api/sessions/${e.sessionId}/status`,{method:`PATCH`,body:JSON.stringify({status:e.status,summary:e.summary})})),createSession:async e=>{let n=await t(`/api/sessions`,{method:`POST`,body:JSON.stringify(e)});return{...n,session:Hn(n.session)}},linkReviewParent:async e=>Hn(await t(`/api/sessions/${e.sessionId}/parent`,{method:`PATCH`,body:JSON.stringify({parentSessionId:e.parentSessionId})})),archiveSession:e=>t(`/api/sessions/${e}`,{method:`DELETE`}),migrateHeader:async e=>({migrated:((await t(e?`/api/sessions/${e}/migrate-header`:`/api/sessions/migrate-header`,{method:`POST`})).migrated??[]).map(Hn)}),git:()=>t(`/api/git`),listReviews:()=>t(`/api/reviews`),getReview:e=>t(`/api/reviews/${e}`),archiveReview:e=>t(`/api/reviews/${e}`,{method:`DELETE`}),requestReview:async e=>{let n=await t(`sessionId`in e?`/api/sessions/${e.sessionId}/review`:`/api/reviews`,{method:`POST`,body:JSON.stringify(`sessionId`in e?{base:e.base}:{standalone:!0,base:e.base})});return{...n,session:Hn(n.session)}},updateComment:e=>t(`/api/reviews/${e.slug}/comments/${e.commentId}`,{method:`PATCH`,headers:{"If-Match":e.etag},body:JSON.stringify({status:e.status,expectedStatus:e.expectedStatus,severity:e.severity,category:e.category,title:e.title,body:e.body})}),bulkUpdateComments:e=>t(`/api/reviews/${e.slug}/comments/bulk`,{method:`POST`,headers:{"If-Match":e.etag},body:JSON.stringify({ids:e.ids,status:e.status,expectedStatus:e.expectedStatus})}),planReviewChanges:async e=>{let n=await t(`/api/reviews/${e}/plan-changes`,{method:`POST`});return{...n,session:Hn(n.session)}},publishPreflight:(e,n)=>{let r=n?`?mergeRequestIid=${n}`:``;return t(`/api/reviews/${e}/publish/preflight${r}`)},publishReview:async e=>await t(`/api/reviews/${e.slug}/publish`,{method:`POST`,body:JSON.stringify({mergeRequestIid:e.mergeRequestIid,dryRun:e.dryRun,only:e.only})}),publisherSettings:()=>t(`/api/settings/publisher`),savePublisherSettings:e=>t(`/api/settings/publisher`,{method:`PUT`,body:JSON.stringify(e)}),removePublisherSettings:()=>t(`/api/settings/publisher`,{method:`DELETE`}),testPublisherSettings:()=>t(`/api/settings/publisher/test`,{method:`POST`}),integrations:()=>t(`/api/integrations`),linearSettings:()=>t(`/api/integrations/linear`),saveLinearSettings:e=>t(`/api/integrations/linear`,{method:`PUT`,body:JSON.stringify(e)}),removeLinearSettings:()=>t(`/api/integrations/linear`,{method:`DELETE`}),testLinearSettings:()=>t(`/api/integrations/linear/test`,{method:`POST`}),searchIssues:e=>{let n=new URLSearchParams({q:e.query});return e.teamKey&&n.set(`team`,e.teamKey),e.limit!==void 0&&n.set(`limit`,String(e.limit)),t(`/api/integrations/linear/issues?${n.toString()}`)},sessionIssue:e=>t(`/api/sessions/${e}/issue`),linkSessionIssue:async e=>Hn(await t(`/api/sessions/${e.sessionId}/issue`,{method:`POST`,body:JSON.stringify({reference:e.reference})})),unlinkSessionIssue:async e=>Hn(await t(`/api/sessions/${e}/issue`,{method:`DELETE`})),pullIssueSpec:async e=>Hn(await t(`/api/sessions/${e.sessionId}/issue/pull`,{method:`POST`,body:JSON.stringify({force:e.force===!0})})),pushIssueSpec:e=>t(`/api/sessions/${e.sessionId}/issue/push`,{method:`POST`,body:JSON.stringify({force:e.force===!0})}),targetSettings:()=>t(`/api/settings/targets`),saveTargetSettings:e=>t(`/api/settings/targets`,{method:`PUT`,body:JSON.stringify({targets:e})}),source:e=>{let n=new URLSearchParams({path:e.path});return e.line!==void 0&&n.set(`line`,String(e.line)),e.radius!==void 0&&n.set(`radius`,String(e.radius)),t(`/api/source?${n.toString()}`)},packages:()=>t(`/api/packages`),package:e=>t(`/api/packages/${Gn(e)}`),registryPackages:()=>t(`/api/registry/packages`),skillCatalog:(e,n)=>t(`/api/skills?view=${e}&page=${n}`),searchSkills:(e,n)=>{let r=new URLSearchParams({q:e});return n&&r.set(`owner`,n),t(`/api/skills/search?${r.toString()}`)},skillDetail:e=>t(`/api/skills/${encodeURIComponent(e.owner)}/${encodeURIComponent(e.repo)}/${encodeURIComponent(e.slug)}`),installPackage:e=>t(`/api/packages`,{method:`POST`,body:JSON.stringify(e)}),uninstallPackage:e=>t(`/api/packages/${Gn(e)}`,{method:`DELETE`}),applyPackageItems:e=>t(`/api/packages/${Gn(e.packageName)}/items`,{method:`POST`,body:JSON.stringify({add:e.add,remove:e.remove,all:e.all,sync:e.sync})}),sync:(e={})=>t(`/api/sync`,{method:`POST`,body:JSON.stringify(e)})}}var Wn={projects:()=>Vn(`/api/projects`),project:(e,t={})=>Vn(`/api/projects/${encodeURIComponent(e)}${t.includeGit?`?include=git`:``}`),addProject:e=>Vn(`/api/projects`,{method:`POST`,body:JSON.stringify({path:e})}),updateProject:(e,t)=>Vn(`/api/projects/${encodeURIComponent(e)}`,{method:`PATCH`,body:JSON.stringify(t)}),createGroup:(e,t)=>Vn(`/api/project-groups`,{method:`POST`,body:JSON.stringify({name:e,color:t})}),updateGroup:(e,t)=>Vn(`/api/project-groups/${encodeURIComponent(e)}`,{method:`PATCH`,body:JSON.stringify(t)}),deleteGroup:e=>Vn(`/api/project-groups/${encodeURIComponent(e)}`,{method:`DELETE`}),removeProject:e=>Vn(`/api/projects/${encodeURIComponent(e)}`,{method:`DELETE`}),markOpened:e=>Vn(`/api/projects/${encodeURIComponent(e)}/open`,{method:`POST`}),instance:()=>Vn(`/api/instance`),shutdown:()=>Vn(`/api/shutdown`,{method:`POST`}),eventsUrl:(e=[])=>{let t=new URLSearchParams({token:zn});return e.length>0&&t.set(`projects`,e.join(`,`)),`/api/events?${t.toString()}`}};function Gn(e){return encodeURIComponent(e)}var Kn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/lib/project-context.tsx`,qn=(0,O.createContext)(void 0);function Jn({projectId:e,card:t,children:n}){let r=(0,O.useMemo)(()=>({projectId:e,card:t,api:Un(e)}),[e,t]);return(0,A.jsxDEV)(qn.Provider,{value:r,children:n},void 0,!1,{fileName:Kn,lineNumber:38,columnNumber:10},this)}function Yn(){let e=(0,O.useContext)(qn);if(!e)throw Error(`This component must be rendered inside a ProjectProvider.`);return e}function j(){return Yn().api}function Xn(){return Yn().projectId}var Zn={projects:[`projects`],project:e=>[`projects`,e],instance:[`instance`]};function Qn(e){let t=[`p`,e];return{root:t,project:[...t,`project`],sessions:[...t,`sessions`],session:e=>[...t,`session`,e],git:[...t,`git`],reviews:[...t,`reviews`],review:e=>[...t,`review`,e],packages:[...t,`packages`],package:e=>[...t,`package`,e],registry:[...t,`registry`],skillCatalog:(e,n)=>[...t,`skills`,e,n],skillSearch:(e,n)=>[...t,`skills`,`search`,e,n??``],skillDetail:(e,n,r)=>[...t,`skills`,`detail`,e,n,r],publisherSettings:[...t,`settings`,`publisher`],integrations:[...t,`integrations`],linearSettings:[...t,`integrations`,`linear`],issueSearch:e=>[...t,`integrations`,`linear`,`search`,e],sessionIssue:e=>[...t,`session`,e,`issue`],targetSettings:[...t,`settings`,`targets`],publishPreflight:(e,n)=>[...t,`publish-preflight`,e,n??0]}}function M(){let e=Xn();return(0,O.useMemo)(()=>Qn(e),[e])}function $n(){let e=j();return _t({queryKey:M().project,queryFn:e.project,staleTime:6e4})}function er(){let e=j();return _t({queryKey:M().sessions,queryFn:e.listSessions})}function tr(e){let t=j();return _t({queryKey:M().session(e??``),queryFn:()=>t.getSession(e),enabled:e!==void 0})}function nr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.setStatus,onSuccess:e=>{n.setQueryData(t.session(e.id),e),n.invalidateQueries({queryKey:t.sessions})}})}function rr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.saveSession,onSuccess:({session:e})=>{n.setQueryData(t.session(e.id),e),n.invalidateQueries({queryKey:t.sessions})}})}function ir(){return vt({mutationFn:j().stashSessionBody})}function ar(){let e=j(),t=M(),n=k();return vt({mutationFn:e.createSession,onSuccess:()=>n.invalidateQueries({queryKey:t.sessions})})}function or(){let e=j(),t=M(),n=k();return vt({mutationFn:e.linkReviewParent,onSuccess:e=>{n.setQueryData(t.session(e.id),e),n.invalidateQueries({queryKey:t.sessions})}})}function sr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.archiveSession,onSuccess:()=>n.invalidateQueries({queryKey:t.sessions})})}function cr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.archiveReview,onSuccess:()=>{n.invalidateQueries({queryKey:t.reviews}),n.invalidateQueries({queryKey:t.sessions})}})}function lr(){let e=j(),t=M(),n=k();return vt({mutationFn:t=>e.migrateHeader(t),onSuccess:()=>n.invalidateQueries({queryKey:t.sessions})})}function ur(){let e=j();return _t({queryKey:M().git,queryFn:e.git,staleTime:15e3})}function dr(){let e=j();return _t({queryKey:M().reviews,queryFn:e.listReviews})}function fr(e){let t=j();return _t({queryKey:M().review(e??``),queryFn:()=>t.getReview(e),enabled:e!==void 0})}function pr(e,t,n){e.setQueryData(t.review(n.slug),n),e.invalidateQueries({queryKey:t.reviews}),n.sessionId&&e.invalidateQueries({queryKey:t.session(n.sessionId)})}function mr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.updateComment,onSuccess:e=>pr(n,t,e)})}function hr(){let e=j(),t=M(),n=k();return vt({mutationFn:t=>e.bulkUpdateComments(t),onSuccess:e=>pr(n,t,e)})}function gr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.requestReview,onSuccess:()=>{n.invalidateQueries({queryKey:t.sessions}),n.invalidateQueries({queryKey:t.reviews})}})}function _r(){let e=j(),t=M(),n=k();return vt({mutationFn:t=>e.planReviewChanges(t),onSuccess:e=>{pr(n,t,e.review),n.setQueryData(t.session(e.session.id),e.session),n.invalidateQueries({queryKey:t.sessions})}})}function vr(e,t,n=!0){let r=j();return _t({queryKey:M().publishPreflight(e??``,t),queryFn:()=>r.publishPreflight(e,t),enabled:n&&e!==void 0,retry:!1,gcTime:0,staleTime:0})}function yr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.publishReview,onSuccess:e=>{e.dryRun||(pr(n,t,e.review),e.session&&(n.setQueryData(t.session(e.session.id),e.session),n.invalidateQueries({queryKey:t.sessions})))}})}function br(){let e=j();return _t({queryKey:M().publisherSettings,queryFn:e.publisherSettings})}function xr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.savePublisherSettings,onSuccess:e=>n.setQueryData(t.publisherSettings,e)})}function Sr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.removePublisherSettings,onSuccess:e=>n.setQueryData(t.publisherSettings,e)})}function Cr(){return vt({mutationFn:j().testPublisherSettings})}function wr(){let e=j();return _t({queryKey:M().integrations,queryFn:e.integrations,staleTime:6e4})}function Tr(e){let{data:t}=wr();return(t?.integrations??[]).some(t=>t.configured&&t.capabilities.includes(e))}function Er(){let e=j();return _t({queryKey:M().linearSettings,queryFn:e.linearSettings})}function Dr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.saveLinearSettings,onSuccess:e=>{n.setQueryData(t.linearSettings,e),n.invalidateQueries({queryKey:t.integrations})}})}function Or(){let e=j(),t=M(),n=k();return vt({mutationFn:e.removeLinearSettings,onSuccess:e=>{n.setQueryData(t.linearSettings,e),n.invalidateQueries({queryKey:t.integrations})}})}function kr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.testLinearSettings,onSuccess:()=>void n.invalidateQueries({queryKey:t.linearSettings})})}function Ar(e,t=!0){let n=j(),r=M(),i=e.trim();return _t({queryKey:r.issueSearch(i),queryFn:()=>n.searchIssues({query:i}),enabled:t&&i.length>=2,staleTime:3e4,retry:!1})}function jr(e,t=!0){let n=j();return _t({queryKey:M().sessionIssue(e??``),queryFn:()=>n.sessionIssue(e),enabled:t&&e!==void 0,staleTime:15e3,retry:!1})}function Mr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.linkSessionIssue,onSuccess:e=>Ir(n,t,e)})}function Nr(){let e=j(),t=M(),n=k();return vt({mutationFn:t=>e.unlinkSessionIssue(t),onSuccess:e=>Ir(n,t,e)})}function Pr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.pullIssueSpec,onSuccess:e=>Ir(n,t,e)})}function Fr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.pushIssueSpec,onSuccess:e=>Ir(n,t,e.session)})}function Ir(e,t,n){e.setQueryData(t.session(n.id),n),e.invalidateQueries({queryKey:t.sessions}),e.invalidateQueries({queryKey:t.sessionIssue(n.id)})}function Lr(){let e=j();return _t({queryKey:M().targetSettings,queryFn:e.targetSettings})}function Rr(){let e=j(),t=M(),n=k();return vt({mutationFn:t=>e.saveTargetSettings(t),onSuccess:e=>{n.setQueryData(t.targetSettings,e.settings),n.invalidateQueries({queryKey:t.project}),n.invalidateQueries({queryKey:t.packages})}})}function zr(){let e=j();return _t({queryKey:M().packages,queryFn:e.packages})}function Br(e,t,n=!0){let r=j();return _t({queryKey:M().skillCatalog(e,t),queryFn:()=>r.skillCatalog(e,t),enabled:n,retry:!1,staleTime:3e5})}function Vr(e,t){let n=j(),r=M(),i=e.trim();return _t({queryKey:r.skillSearch(i,t),queryFn:()=>n.searchSkills(i,t),enabled:i.length>=2,retry:!1,staleTime:6e4})}function Hr(e){let t=j();return _t({queryKey:M().skillDetail(e?.owner??``,e?.repo??``,e?.slug??``),queryFn:()=>t.skillDetail(e),enabled:e!==void 0,retry:!1,staleTime:6e5})}function Ur(e,t,n){e.invalidateQueries({queryKey:t.packages}),n&&e.invalidateQueries({queryKey:t.package(n)}),e.invalidateQueries({queryKey:t.project})}function Wr(){let e=j(),t=M(),n=k();return vt({mutationFn:e.installPackage,onSuccess:e=>Ur(n,t,e.package?.name)})}function Gr(){let e=j(),t=M(),n=k();return vt({mutationFn:t=>e.uninstallPackage(t),onSuccess:()=>Ur(n,t)})}function Kr(){let e=j(),t=M(),n=k();return vt({mutationFn:t=>e.applyPackageItems(t),onSuccess:e=>{n.setQueryData(t.package(e.package.name),e.package),Ur(n,t,e.package.name)}})}function qr(){let e=j(),t=M(),n=k();return vt({mutationFn:t=>e.sync(t),onSuccess:e=>{e.checked||n.invalidateQueries({queryKey:t.packages})}})}var Jr=[`session.created`,`session.updated`,`session.deleted`,`session.status.changed`,`session.title.changed`,`session.saved`,`session.step.completed`,`session.parent.linked`,`session.issue.linked`,`session.issue.unlinked`,`session.issue.pulled`,`session.issue.pushed`,`session.header.migrated`,`session.archived`],Yr=[`review.created`,`review.updated`,`review.deleted`,`review.comment.decided`,`review.comment.edited`,`review.plan-changes.applied`,`review.published`,`review.archived`];function Xr(){let e=Xn(),t=M(),n=k(),[r,i]=(0,O.useState)(`connecting`);return(0,O.useEffect)(()=>{let r=new EventSource(Wn.eventsUrl([e])),a=t=>{try{let n=JSON.parse(t.data);return n.projectId&&n.projectId!==e?void 0:n}catch{return{}}},o=e=>{let r=a(e);r&&(n.invalidateQueries({queryKey:t.sessions}),r.sessionId&&n.invalidateQueries({queryKey:t.session(r.sessionId)}))},s=e=>{let r=a(e);r&&(n.invalidateQueries({queryKey:t.reviews}),n.invalidateQueries({queryKey:t.sessions}),r.slug&&n.invalidateQueries({queryKey:t.review(r.slug)}))};r.onopen=()=>i(`live`),r.onerror=()=>i(`offline`);for(let e of Jr)r.addEventListener(e,o);for(let e of Yr)r.addEventListener(e,s);r.addEventListener(`packages.changed`,e=>{a(e)&&(n.invalidateQueries({queryKey:t.packages}),n.invalidateQueries({queryKey:t.project}),n.invalidateQueries({queryKey:[...t.root,`package`]}))}),r.addEventListener(`projects.changed`,()=>{n.invalidateQueries({queryKey:Zn.projects})});let c=()=>{n.invalidateQueries({queryKey:t.sessions}),n.invalidateQueries({queryKey:t.reviews}),n.invalidateQueries({queryKey:t.packages})};return window.addEventListener(`focus`,c),()=>{r.close(),window.removeEventListener(`focus`,c)}},[n,t,e]),r}function Zr(e={}){return _t({queryKey:Zn.projects,queryFn:Wn.projects,staleTime:3e3,refetchInterval:e.poll!==!1&&15e3})}function Qr(){return _t({queryKey:Zn.instance,queryFn:Wn.instance,staleTime:3e4})}function $r(){let e=k();return vt({mutationFn:e=>Wn.addProject(e),onSuccess:()=>e.invalidateQueries({queryKey:Zn.projects})})}function ei(){let e=k();return vt({mutationFn:e=>Wn.removeProject(e),onSuccess:(t,n)=>{e.invalidateQueries({queryKey:Zn.projects}),e.removeQueries({queryKey:[`p`,n]})}})}function ti(){let e=k();return vt({mutationFn:e=>Wn.updateProject(e.projectId,{displayName:e.displayName,groupId:e.groupId,color:e.color}),onSuccess:()=>e.invalidateQueries({queryKey:Zn.projects})})}function ni(){let e=k();return vt({mutationFn:e=>Wn.createGroup(e.name,e.color),onSuccess:()=>e.invalidateQueries({queryKey:Zn.projects})})}function ri(){let e=k();return vt({mutationFn:e=>Wn.deleteGroup(e),onSuccess:()=>e.invalidateQueries({queryKey:Zn.projects})})}function ii(){let e=k();return vt({mutationFn:e=>Wn.updateGroup(e.groupId,{name:e.name,color:e.color,collapsed:e.collapsed,order:e.order}),onMutate:async t=>{await e.cancelQueries({queryKey:Zn.projects});let n=e.getQueryData(Zn.projects);return n&&e.setQueryData(Zn.projects,{...n,groups:n.groups.map(e=>e.id===t.groupId?{...e,name:t.name??e.name,color:t.color??e.color,collapsed:t.collapsed??e.collapsed}:e)}),{previous:n}},onError:(t,n,r)=>{r?.previous&&e.setQueryData(Zn.projects,r.previous)},onSettled:()=>e.invalidateQueries({queryKey:Zn.projects})})}var ai=3e4;function oi(){let e=k();return(0,O.useCallback)((t,n)=>{Wn.markOpened(t).catch(()=>void 0),!(!n||n===t)&&(e.cancelQueries({queryKey:[`p`,n]}),window.setTimeout(()=>{e.removeQueries({queryKey:[`p`,n]})},ai))},[e])}async function si(e,t,n={}){let r=Math.max(1,n.concurrency??4),i={ok:[],failed:[]},a=0;return await Promise.all(Array.from({length:Math.min(r,e.length)},async()=>{for(;a<e.length;){let n=e[a++];try{i.ok.push({id:n,value:await t(n)})}catch(e){i.failed.push({id:n,error:e instanceof Error?e:Error(String(e))})}}})),i}function ci(e,t){let n=e.ok.length+e.failed.length,r=`${t.noun}${n===1?``:`s`}`;if(e.failed.length===0)return{message:`${t.done} ${n} ${r}`,tone:`success`};let i=e.failed[0].error.message;if(e.ok.length===0){let e=n===1?`the ${r}`:`any of the ${n} ${r}`;return{message:`Could not ${t.doing} ${e} — ${i}`,tone:`danger`}}return{message:`${t.done} ${e.ok.length} of ${n} — ${e.failed.length} failed: ${i}`,tone:`danger`}}function li(e,t){let n={eligible:[],locked:[],unchanged:[]};for(let r of e)r.status===`review`?n.locked.push(r):r.status===t?n.unchanged.push(r):n.eligible.push(r);return n}function ui(e){let t=new Set(e.map(e=>e.id));return e.filter(e=>e.kind===`plan`).reduce((e,n)=>e+n.reviewSessionIds.filter(e=>!t.has(e)).length,0)}var di=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionBulkBar.tsx`;function fi({sessions:e,count:t,hiddenCount:n,onClear:r,onNarrow:i,pendingStatus:a,onPendingStatusHandled:o,archiveRequested:s,onArchiveRequestHandled:c}){let l=Fn(),u=nr(),d=sr(),[f,p]=(0,O.useState)(!1),[m,h]=(0,O.useState)(!1),[g,_]=(0,O.useState)(!1),v=(0,O.useRef)(null),y=e.filter(e=>e.status!==`review`).length,b=ui(e);(0,O.useEffect)(()=>{if(!f)return;let e=e=>{v.current?.contains(e.target)||p(!1)},t=e=>{e.key===`Escape`&&(e.stopPropagation(),p(!1))};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[f]);let x=async n=>{p(!1);let a=li(e,n),o=Pt({kind:`plan`,status:n}).label;if(a.eligible.length===0){l(a.locked.length>0?`Nothing to change — ${a.locked.length===t?`every`:`the rest of the`} selected session is in Review. ${Vt}`:`Already ${o.toLowerCase()}.`,`info`);return}_(!0);let s=await si(a.eligible.map(e=>e.id),e=>u.mutateAsync({sessionId:e,status:n}));if(s.failed.length===0){let e=a.locked.length;l(`Moved ${s.ok.length} to ${o}`+(e>0?` · ${e} left in Review`:``),e>0?`info`:`success`),r()}else{let{message:e,tone:t}=ci(s,{done:`Moved`,doing:`move`,noun:`session`});l(e,t),i(s.failed.map(e=>e.id))}_(!1)},ee=async()=>{h(!1),_(!0);let t=await si(e.map(e=>e.id),e=>d.mutateAsync(e)),{message:n,tone:a}=ci(t,{done:`Archived`,doing:`archive`,noun:`session`});l(n,a),t.failed.length===0?r():i(t.failed.map(e=>e.id)),_(!1)},te=(0,O.useRef)(x);return te.current=x,(0,O.useEffect)(()=>{a&&(o(),te.current(a))},[a,o]),(0,O.useEffect)(()=>{s&&(c(),h(!0))},[s,c]),(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(Cn,{count:t,hiddenCount:n,noun:`session`,busy:g,onClear:r,children:[(0,A.jsxDEV)(`div`,{className:`pill-menu bulkbar__menu`,ref:v,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:g||y===0,title:y===0?Vt:void 0,"aria-haspopup":`menu`,"aria-expanded":f,onClick:()=>p(e=>!e),children:g?`Moving…`:`Set status`},void 0,!1,{fileName:di,lineNumber:159,columnNumber:11},this),f&&(0,A.jsxDEV)(`div`,{className:`pill-menu__list pill-menu__list--up`,role:`menu`,children:[Bt.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitem`,className:`pill-menu__item`,onClick:()=>void x(e),children:[(0,A.jsxDEV)(jt,{status:e},void 0,!1,{fileName:di,lineNumber:181,columnNumber:19},this),Pt({kind:`plan`,status:e}).label]},e,!0,{fileName:di,lineNumber:174,columnNumber:17},this)),y<t&&(0,A.jsxDEV)(`p`,{className:`pill-menu__note`,children:[t-y,` of these sit in Review. `,"`Review` is set by writing a review, and cleared by planning its changes or publishing them."]},void 0,!0,{fileName:di,lineNumber:186,columnNumber:17},this)]},void 0,!0,{fileName:di,lineNumber:172,columnNumber:13},this)]},void 0,!0,{fileName:di,lineNumber:158,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:g||t===0,onClick:()=>h(!0),children:g?`Working…`:`Archive`},void 0,!1,{fileName:di,lineNumber:194,columnNumber:9},this)]},void 0,!0,{fileName:di,lineNumber:157,columnNumber:7},this),m&&(0,A.jsxDEV)(Mn,{title:`Archive ${t} session${t===1?``:`s`}?`,onClose:()=>h(!1),footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>h(!1),children:`Cancel`},void 0,!1,{fileName:di,lineNumber:210,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,onClick:()=>void ee(),children:`Archive`},void 0,!1,{fileName:di,lineNumber:217,columnNumber:15},this)]},void 0,!0,{fileName:di,lineNumber:209,columnNumber:13},this),children:[(0,A.jsxDEV)(`p`,{className:`modal__text`,children:[`The files move to `,(0,A.jsxDEV)(`code`,{children:`.invariant/sessions/.archive/`},void 0,!1,{fileName:di,lineNumber:224,columnNumber:31},this),` and stay readable on disk.`]},void 0,!0,{fileName:di,lineNumber:223,columnNumber:11},this),b>0&&(0,A.jsxDEV)(`p`,{className:`modal__text modal__text--muted`,children:[b,` review`,b===1?``:`s`,` of this work `,b===1?`is`:`are`,` `,`not in the selection, and will be left orphaned on the Reviews page.`]},void 0,!0,{fileName:di,lineNumber:227,columnNumber:13},this)]},void 0,!0,{fileName:di,lineNumber:205,columnNumber:9},this)]},void 0,!0,{fileName:di,lineNumber:156,columnNumber:5},this)}var pi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ConflictBanner.tsx`;function mi({conflictCount:e,onOpenMerge:t,onKeepMine:n,onTakeTheirs:r}){return(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,role:`alert`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`The agent changed the same lines you did.`},void 0,!1,{fileName:pi,lineNumber:33,columnNumber:9},this),` `,e===1?`1 spot needs`:`${e} spots need`,` your call — everything else was merged.`]},void 0,!0,{fileName:pi,lineNumber:32,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:t,children:`Open the merge`},void 0,!1,{fileName:pi,lineNumber:38,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:n,children:`Keep mine`},void 0,!1,{fileName:pi,lineNumber:41,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{window.confirm(`Discard your edits and take the version on disk?`)&&r()},children:`Take theirs`},void 0,!1,{fileName:pi,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:pi,lineNumber:37,columnNumber:7},this)]},void 0,!0,{fileName:pi,lineNumber:31,columnNumber:5},this)}var hi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ReviewPanel.tsx`;function gi({session:e,onOpenSession:t,onToast:n}){let{data:r}=ur(),{data:i}=er(),{data:a}=dr(),o=gr(),s=(i?.sessions??[]).filter(t=>t.parent===e.id),c=a?.reviews??[];if(s.length>0){let e=s.reduce((e,t)=>e+(fn(t,c)?.open??0),0);return(0,A.jsxDEV)(`div`,{className:`banner banner--review`,children:(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:e>0?`${e} comment${e===1?``:`s`} waiting on you.`:`Reviewed.`},void 0,!1,{fileName:hi,lineNumber:44,columnNumber:11},this),` `,s.length===1?`One review session points at this work.`:`${s.length} review sessions point at this work.`,(0,A.jsxDEV)(`ul`,{className:`review-links`,children:s.map(e=>(0,A.jsxDEV)(`li`,{className:`review-links__item`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>t(e.id),children:e.branch??e.title},void 0,!1,{fileName:hi,lineNumber:56,columnNumber:17},this),(0,A.jsxDEV)(Yt,{status:e.status,kind:e.kind,review:dn(e,c)},void 0,!1,{fileName:hi,lineNumber:63,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`review-links__time`,title:e.updated,children:Zt(e.updated)},void 0,!1,{fileName:hi,lineNumber:68,columnNumber:17},this)]},e.id,!0,{fileName:hi,lineNumber:55,columnNumber:15},this))},void 0,!1,{fileName:hi,lineNumber:53,columnNumber:11},this)]},void 0,!0,{fileName:hi,lineNumber:43,columnNumber:9},this)},void 0,!1,{fileName:hi,lineNumber:42,columnNumber:7},this)}let l=r!==void 0&&!r.canReview;return(0,A.jsxDEV)(`div`,{className:`banner banner--review`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`No review yet.`},void 0,!1,{fileName:hi,lineNumber:84,columnNumber:9},this),` `,l?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:hi,lineNumber:83,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:l||o.isPending,title:l?r?.reason:void 0,onClick:()=>o.mutate({sessionId:e.id},{onSuccess:async e=>{await tn(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:o.isPending?`Creating…`:`Request review`},void 0,!1,{fileName:hi,lineNumber:92,columnNumber:9},this)},void 0,!1,{fileName:hi,lineNumber:91,columnNumber:7},this)]},void 0,!0,{fileName:hi,lineNumber:82,columnNumber:5},this)}var _i=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ReviewStageStrip.tsx`;function vi({status:e,review:t,onTriage:n,onCopyExecuteLine:r}){let i=Pt({kind:`review`,status:e},t),a=t?.counts,o=i.step??`reviewing`;return(0,A.jsxDEV)(`div`,{className:`stage`,children:[(0,A.jsxDEV)(`ol`,{className:`stage__steps`,children:Mt.map((e,t)=>{let n=Lt(e,o);return(0,A.jsxDEV)(`li`,{className:`stage__step${n===0?` is-current`:n<0?` is-done`:``}`,"aria-current":n===0?`step`:void 0,children:[(0,A.jsxDEV)(`span`,{className:`stage__index`,"aria-hidden":`true`,children:t+1},void 0,!1,{fileName:_i,lineNumber:46,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`stage__label`,children:[Nt[e],e===`triage`&&a&&a.open>0&&(0,A.jsxDEV)(`span`,{className:`stage__badge`,children:a.open},void 0,!1,{fileName:_i,lineNumber:50,columnNumber:19},this)]},void 0,!0,{fileName:_i,lineNumber:47,columnNumber:15},this)]},e,!0,{fileName:_i,lineNumber:41,columnNumber:13},this)})},void 0,!1,{fileName:_i,lineNumber:37,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`stage__hint`,children:[(0,A.jsxDEV)(`span`,{className:`stage__holder stage__holder--${i.holder}`,children:i.holder===`you`?`Waiting on you`:`Agent working`},void 0,!1,{fileName:_i,lineNumber:59,columnNumber:9},this),i.hint]},void 0,!0,{fileName:_i,lineNumber:58,columnNumber:7},this),i.action.kind===`triage`&&n&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:i.action.openCount===0?`Open the comments`:`Triage ${i.action.openCount} comment${i.action.openCount===1?``:`s`}`},void 0,!1,{fileName:_i,lineNumber:66,columnNumber:9},this),i.action.kind===`copy-execute`&&r&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:r,children:`Copy execute line`},void 0,!1,{fileName:_i,lineNumber:76,columnNumber:9},this)]},void 0,!0,{fileName:_i,lineNumber:36,columnNumber:5},this)}var yi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/LinkParentModal.tsx`;function bi({review:e,candidates:t,busy:n,onClose:r,onLink:i}){let[a,o]=(0,O.useState)(``),[s,c]=(0,O.useState)(),l=(0,O.useMemo)(()=>{let e=a.trim().toLowerCase(),n=t.filter(e=>e.kind!==`review`);return e.length===0?n:n.filter(t=>`${t.title} ${t.excerpt} ${t.tags.join(` `)}`.toLowerCase().includes(e))},[t,a]);return(0,A.jsxDEV)(Mn,{title:`Link this review to a session`,onClose:r,dirty:s!==void 0,confirmClose:{title:`Discard this pick?`,body:`You chose a session but have not linked it yet. Closing forgets the choice.`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:e.branch??e.title},void 0,!1,{fileName:yi,lineNumber:48,columnNumber:11},this),(0,A.jsxDEV)(xi,{},void 0,!1,{fileName:yi,lineNumber:49,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:!s||n,onClick:()=>{s&&i(s)},children:n?`Linking…`:`Link`},void 0,!1,{fileName:yi,lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:yi,lineNumber:47,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A review is a verdict on a session's work. Pick the session this one judges — it moves under it in the tree, and its `,(0,A.jsxDEV)(`code`,{children:`<parent>`},void 0,!1,{fileName:yi,lineNumber:63,columnNumber:30},this),` is written into the file.`]},void 0,!0,{fileName:yi,lineNumber:61,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`field`,children:[(0,A.jsxDEV)(`label`,{className:`field__label`,htmlFor:`link-parent-filter`,children:`Find a session`},void 0,!1,{fileName:yi,lineNumber:67,columnNumber:9},this),(0,A.jsxDEV)(`input`,{id:`link-parent-filter`,className:`field__input`,"data-autofocus":!0,value:a,placeholder:`Filter by title…`,onChange:e=>o(e.target.value)},void 0,!1,{fileName:yi,lineNumber:68,columnNumber:9},this)]},void 0,!0,{fileName:yi,lineNumber:66,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`picker`,children:l.length===0?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:`No session matches.`},void 0,!1,{fileName:yi,lineNumber:80,columnNumber:11},this):l.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,className:`picker__item${s===e.id?` is-active`:``}`,onClick:()=>c(e.id),children:[(0,A.jsxDEV)(`span`,{className:`picker__title`,children:e.title},void 0,!1,{fileName:yi,lineNumber:89,columnNumber:15},this),(0,A.jsxDEV)(Yt,{status:e.status,kind:e.kind},void 0,!1,{fileName:yi,lineNumber:90,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`picker__meta`,children:Zt(e.updated)},void 0,!1,{fileName:yi,lineNumber:91,columnNumber:15},this)]},e.id,!0,{fileName:yi,lineNumber:83,columnNumber:13},this))},void 0,!1,{fileName:yi,lineNumber:78,columnNumber:7},this)]},void 0,!0,{fileName:yi,lineNumber:38,columnNumber:5},this)}function xi(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:yi,lineNumber:104,columnNumber:5},this)}var Si=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/LinkIssueModal.tsx`,Ci=/^(https?:\/\/|[A-Za-z][A-Za-z0-9]{0,9}-\d{1,7}$)/;function wi({sessionTitle:e,busy:t,onClose:n,onLink:r}){let[i,a]=(0,O.useState)(``),[o,s]=(0,O.useState)(),c=i.trim(),l=Ci.test(c),u=Ar(c,!l),d=(0,O.useMemo)(()=>u.data?.issues??[],[u.data]);(0,O.useEffect)(()=>{o&&!d.some(e=>e.id===o.id)&&s(void 0)},[d,o]);let f=o?.url??(l?c:``),p=f.length>0&&!t;return(0,A.jsxDEV)(Mn,{title:`Link this session to a Linear issue`,onClose:n,dirty:c.length>0,confirmClose:{title:`Discard this?`,body:`You have typed something but have not linked it yet. Closing forgets it.`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:e},void 0,!1,{fileName:Si,lineNumber:61,columnNumber:11},this),(0,A.jsxDEV)(Ti,{},void 0,!1,{fileName:Si,lineNumber:62,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:!p,onClick:()=>r(f),children:t?`Linking…`:`Link`},void 0,!1,{fileName:Si,lineNumber:63,columnNumber:11},this)]},void 0,!0,{fileName:Si,lineNumber:60,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`empty__text`,children:`The issue's description becomes this session's spec block — whatever a colleague already wrote is what you start from. Nothing else about the issue is touched, and nothing else about the session is sent.`},void 0,!1,{fileName:Si,lineNumber:74,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`field`,children:[(0,A.jsxDEV)(`label`,{className:`field__label`,htmlFor:`link-issue-input`,children:`Issue URL, key, or something to search for`},void 0,!1,{fileName:Si,lineNumber:81,columnNumber:9},this),(0,A.jsxDEV)(`input`,{id:`link-issue-input`,className:`field__input`,"data-autofocus":!0,value:i,placeholder:`https://linear.app/acme/issue/ENG-123 — or ENG-123 — or “cache invalidation”`,onChange:e=>{a(e.target.value),s(void 0)}},void 0,!1,{fileName:Si,lineNumber:84,columnNumber:9},this),l&&(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`That looks like an issue. Press `,(0,A.jsxDEV)(`strong`,{children:`Link`},void 0,!1,{fileName:Si,lineNumber:97,columnNumber:45},this),` — it is resolved before anything is written, and you will be told if there is no such issue.`]},void 0,!0,{fileName:Si,lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:Si,lineNumber:80,columnNumber:7},this),!l&&c.length>=2&&(0,A.jsxDEV)(`div`,{className:`picker`,children:u.isPending?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:`Searching…`},void 0,!1,{fileName:Si,lineNumber:106,columnNumber:13},this):u.isError?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:u.error instanceof Error?u.error.message:`Linear could not be reached.`},void 0,!1,{fileName:Si,lineNumber:108,columnNumber:13},this):d.length===0?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:`No issue matches.`},void 0,!1,{fileName:Si,lineNumber:112,columnNumber:13},this):d.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,className:`picker__item${o?.id===e.id?` is-active`:``}`,onClick:()=>s(e),children:[(0,A.jsxDEV)(`span`,{className:`picker__key`,children:e.key},void 0,!1,{fileName:Si,lineNumber:121,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`picker__title`,children:e.title},void 0,!1,{fileName:Si,lineNumber:122,columnNumber:17},this),e.state&&(0,A.jsxDEV)(`span`,{className:`picker__meta`,children:e.state},void 0,!1,{fileName:Si,lineNumber:123,columnNumber:33},this),(0,A.jsxDEV)(`span`,{className:`picker__meta`,children:Zt(e.updatedAt)},void 0,!1,{fileName:Si,lineNumber:124,columnNumber:17},this)]},e.id,!0,{fileName:Si,lineNumber:115,columnNumber:15},this))},void 0,!1,{fileName:Si,lineNumber:104,columnNumber:9},this)]},void 0,!0,{fileName:Si,lineNumber:51,columnNumber:5},this)}function Ti(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:Si,lineNumber:138,columnNumber:5},this)}var Ei=`modulepreload`,Di=function(e){return`/`+e},Oi={},ki=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=Di(t,n),t=s(t),t in Oi)return;Oi[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`:Ei,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)})},Ai=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Markdown.tsx`,ji=(0,O.lazy)(()=>ki(()=>import(`./MarkdownBody-CcVHXls4.js`).then(e=>({default:e.MarkdownBody})),[]));function Mi({source:e,compact:t=!1}){if(e.trim().length===0)return null;let n=`markdown${t?` markdown--compact`:``}`;return(0,A.jsxDEV)(O.Suspense,{fallback:(0,A.jsxDEV)(`div`,{className:`${n} markdown--pending`,children:e},void 0,!1,{fileName:Ai,lineNumber:29,columnNumber:25},this),children:(0,A.jsxDEV)(ji,{source:e,className:n},void 0,!1,{fileName:Ai,lineNumber:30,columnNumber:7},this)},void 0,!1,{fileName:Ai,lineNumber:29,columnNumber:5},this)}var N=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/IssueSpecPanel.tsx`;function Ni({session:e,spec:t}){let n=Fn(),r=e.issue,{data:i}=jr(e.id,r!==void 0),{data:a}=Er(),o=Pr(),s=Fr(),c=Nr(),[l,u]=(0,O.useState)(!1),[d,f]=(0,O.useState)(),[p,m]=(0,O.useState)(!1);if(!r)return null;let h=o.isPending||s.isPending||c.isPending,g=(t?.content??``).trim().length===0,_=(e,t)=>{if(e instanceof Bn&&e.code===`ISSUE_SYNC_CONFLICT`){f({direction:t,local:String(e.detail.local??``),remote:String(e.detail.remote??``),message:e.message});return}n(e instanceof Error?e.message:`That did not work.`,`danger`)},v=(t=!1)=>o.mutate({sessionId:e.id,force:t},{onSuccess:()=>{f(void 0),n(`Pulled ${r.key} into the spec`,`success`)},onError:e=>_(e,`pull`)}),y=(t=!1)=>s.mutate({sessionId:e.id,force:t},{onSuccess:e=>{f(void 0),n(`Sent ${Math.max(1,Math.round(e.bytes/100)/10)} KB to ${e.issueKey}`,`success`)},onError:e=>_(e,`push`)});return(0,A.jsxDEV)(`section`,{className:`spec${i?.remote?.changed||i?.local.changed?` spec--drifted`:``}`,children:[(0,A.jsxDEV)(`header`,{className:`spec__head`,children:[(0,A.jsxDEV)(`a`,{className:`spec__key`,href:r.url,target:`_blank`,rel:`noreferrer`,children:r.key},void 0,!1,{fileName:N,lineNumber:101,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`spec__title`,children:i?.remote?.title??`Linear issue`},void 0,!1,{fileName:N,lineNumber:104,columnNumber:9},this),i?.remote?.state&&(0,A.jsxDEV)(`span`,{className:`spec__state`,children:i.remote.state},void 0,!1,{fileName:N,lineNumber:105,columnNumber:34},this),(0,A.jsxDEV)(`span`,{className:`spec__stamp`,children:Fi(i,t)},void 0,!1,{fileName:N,lineNumber:106,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:100,columnNumber:7},this),i?.remoteError&&(0,A.jsxDEV)(`p`,{className:`spec__note`,children:i.remoteError},void 0,!1,{fileName:N,lineNumber:109,columnNumber:30},this),g?(0,A.jsxDEV)(`div`,{className:`spec__empty`,children:[(0,A.jsxDEV)(`p`,{className:`spec__empty-lead`,children:`This issue has no description yet — in Linear or here. Ask an agent to write one, or type it in the editor.`},void 0,!1,{fileName:N,lineNumber:113,columnNumber:11},this),(0,A.jsxDEV)(`pre`,{className:`spec__ghost`,"aria-hidden":`true`,children:a?.issueTemplate??``},void 0,!1,{fileName:N,lineNumber:119,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:112,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`spec__body`,children:(0,A.jsxDEV)(Mi,{source:t?.content??``,compact:!0},void 0,!1,{fileName:N,lineNumber:123,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:122,columnNumber:9},this),(0,A.jsxDEV)(`footer`,{className:`spec__foot`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:async()=>{let t=`synthesise the plan of ${e.path} into its <issue-spec> block, following the project issue template`;n(await tn(t)?`Synthesis line copied`:`Could not copy`,`success`)},children:`Copy synthesis line`},void 0,!1,{fileName:N,lineNumber:128,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`split`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid split__main`,disabled:h||g,title:g?`There is nothing to send yet.`:`Replace ${r.key}'s description`,onClick:()=>y(),children:s.isPending?`Sending…`:`Push to ${r.key}`},void 0,!1,{fileName:N,lineNumber:140,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid split__toggle`,"aria-haspopup":`menu`,"aria-expanded":l,"aria-label":`Other sync actions`,onClick:()=>u(e=>!e),children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 12 12`,"aria-hidden":`true`,width:`12`,height:`12`,children:(0,A.jsxDEV)(`path`,{d:`M2.5 4.5 6 8l3.5-3.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:N,lineNumber:158,columnNumber:15},this)},void 0,!1,{fileName:N,lineNumber:157,columnNumber:13},this)},void 0,!1,{fileName:N,lineNumber:149,columnNumber:11},this),l&&(0,A.jsxDEV)(`div`,{className:`split__menu`,role:`menu`,children:[(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitem`,className:`split__item`,disabled:h,onClick:()=>{u(!1),v()},children:(0,A.jsxDEV)(`span`,{className:`split__body`,children:[(0,A.jsxDEV)(`span`,{className:`split__label`,children:[`Pull from `,r.key]},void 0,!0,{fileName:N,lineNumber:173,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`split__detail`,children:`Replace this block with the issue's description`},void 0,!1,{fileName:N,lineNumber:174,columnNumber:19},this)]},void 0,!0,{fileName:N,lineNumber:172,columnNumber:17},this)},void 0,!1,{fileName:N,lineNumber:165,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitem`,className:`split__item`,disabled:h,onClick:()=>{u(!1),m(!0)},children:(0,A.jsxDEV)(`span`,{className:`split__body`,children:[(0,A.jsxDEV)(`span`,{className:`split__label`,children:`Unlink`},void 0,!1,{fileName:N,lineNumber:185,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`split__detail`,children:`Keep the text, stop syncing it`},void 0,!1,{fileName:N,lineNumber:186,columnNumber:19},this)]},void 0,!0,{fileName:N,lineNumber:184,columnNumber:17},this)},void 0,!1,{fileName:N,lineNumber:177,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:164,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:127,columnNumber:7},this),d&&(0,A.jsxDEV)(Pi,{conflict:d,issueKey:r.key,busy:h,onClose:()=>f(void 0),onTakeRemote:()=>v(!0),onKeepLocal:()=>y(!0)},void 0,!1,{fileName:N,lineNumber:195,columnNumber:9},this),p&&(0,A.jsxDEV)(Tn,{title:`Unlink ${r.key}?`,body:`The spec stays in this session. It just stops syncing, and nothing changes in Linear.`,confirmLabel:`Unlink`,onCancel:()=>m(!1),onConfirm:()=>{m(!1),c.mutate(e.id,{onSuccess:()=>n(`Session unlinked`,`success`),onError:e=>n(e instanceof Error?e.message:`Could not unlink.`,`danger`)})}},void 0,!1,{fileName:N,lineNumber:206,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:99,columnNumber:5},this)}function Pi({conflict:e,issueKey:t,busy:n,onClose:r,onTakeRemote:i,onKeepLocal:a}){return(0,A.jsxDEV)(`div`,{className:`spec__conflict`,children:[(0,A.jsxDEV)(`p`,{className:`spec__conflict-lead`,children:e.message},void 0,!1,{fileName:N,lineNumber:249,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`spec__conflict-pair`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`h4`,{className:`spec__conflict-heading`,children:`This session`},void 0,!1,{fileName:N,lineNumber:253,columnNumber:11},this),(0,A.jsxDEV)(`pre`,{className:`spec__conflict-text`,children:e.local},void 0,!1,{fileName:N,lineNumber:254,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:252,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`h4`,{className:`spec__conflict-heading`,children:[t,` in Linear`]},void 0,!0,{fileName:N,lineNumber:257,columnNumber:11},this),(0,A.jsxDEV)(`pre`,{className:`spec__conflict-text`,children:e.remote},void 0,!1,{fileName:N,lineNumber:258,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:256,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:251,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`spec__conflict-actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:r,children:`Leave both alone`},void 0,!1,{fileName:N,lineNumber:263,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n,onClick:i,children:`Take Linear's`},void 0,!1,{fileName:N,lineNumber:266,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:n,onClick:a,children:`Keep mine`},void 0,!1,{fileName:N,lineNumber:269,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:262,columnNumber:7},this)]},void 0,!0,{fileName:N,lineNumber:248,columnNumber:5},this)}function Fi(e,t){if(e?.remote?.changed)return`Linear changed`;if(e?.local.changed)return`local edits`;let n=e?.local.syncedAt??t?.syncedAt;return n?`synced ${Zt(n)}`:`never synced`}var Ii=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/SourcePeek.tsx`,Li=12;function Ri({file:e,line:t,endLine:n}){let r=j(),{data:i,isLoading:a,error:o}=_t({queryKey:[`p`,r.projectId,`source`,e,t??0],queryFn:()=>r.source({path:e,line:t,radius:Li}),staleTime:3e4});if(a)return(0,A.jsxDEV)(`div`,{className:`peek peek--state`,children:`Loading…`},void 0,!1,{fileName:Ii,lineNumber:29,columnNumber:25},this);if(o||!i)return(0,A.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:Ii,lineNumber:32,columnNumber:7},this);let s=t??i.startLine,c=n??s;return(0,A.jsxDEV)(`div`,{className:`peek`,children:[(0,A.jsxDEV)(`div`,{className:`peek__head`,children:[i.path,` · lines `,i.startLine,`–`,i.endLine,` of `,i.totalLines]},void 0,!0,{fileName:Ii,lineNumber:43,columnNumber:7},this),(0,A.jsxDEV)(`pre`,{className:`peek__code`,children:i.lines.map((e,t)=>{let n=i.startLine+t;return(0,A.jsxDEV)(`div`,{className:`peek__line${n>=s&&n<=c?` is-highlighted`:``}`,children:[(0,A.jsxDEV)(`span`,{className:`peek__number`,children:n},void 0,!1,{fileName:Ii,lineNumber:52,columnNumber:15},this),(0,A.jsxDEV)(`code`,{children:e.length>0?e:` `},void 0,!1,{fileName:Ii,lineNumber:53,columnNumber:15},this)]},n,!0,{fileName:Ii,lineNumber:51,columnNumber:13},this)})},void 0,!1,{fileName:Ii,lineNumber:46,columnNumber:7},this)]},void 0,!0,{fileName:Ii,lineNumber:42,columnNumber:5},this)}var zi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentEditor.tsx`;function Bi({title:e,body:t,severity:n,category:r,busy:i,onCancel:a,onSave:o}){let[s,c]=(0,O.useState)(e),[l,u]=(0,O.useState)(t),[d,f]=(0,O.useState)(n),[p,m]=(0,O.useState)(r),h={title:s.trim(),body:l,severity:d,category:p},g=h.title.length>0;return(0,A.jsxDEV)(`div`,{className:`comment-editor`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Title`},void 0,!1,{fileName:zi,lineNumber:57,columnNumber:9},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:s,maxLength:120,autoFocus:!0,onChange:e=>c(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()}},void 0,!1,{fileName:zi,lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:zi,lineNumber:56,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`comment-editor__classification`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Severity`},void 0,!1,{fileName:zi,lineNumber:72,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select select--${d}`,value:d,onChange:e=>f(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()},children:Ht.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:Ut[e]},e,!1,{fileName:zi,lineNumber:80,columnNumber:15},this))},void 0,!1,{fileName:zi,lineNumber:73,columnNumber:11},this)]},void 0,!0,{fileName:zi,lineNumber:71,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Category`},void 0,!1,{fileName:zi,lineNumber:86,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select`,value:p,onChange:e=>m(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()},children:Wt.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:zi,lineNumber:94,columnNumber:15},this))},void 0,!1,{fileName:zi,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:zi,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:zi,lineNumber:70,columnNumber:7},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Detail`},void 0,!1,{fileName:zi,lineNumber:101,columnNumber:9},this),(0,A.jsxDEV)(`textarea`,{className:`field__input field__input--area`,value:l,rows:6,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()}},void 0,!1,{fileName:zi,lineNumber:102,columnNumber:9},this)]},void 0,!0,{fileName:zi,lineNumber:100,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`comment-editor__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:a,children:`Cancel`},void 0,!1,{fileName:zi,lineNumber:112,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:i||!g,onClick:()=>o(h,!1),children:`Save`},void 0,!1,{fileName:zi,lineNumber:113,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:i||!g,onClick:()=>o(h,!0),children:`Save & stage`},void 0,!1,{fileName:zi,lineNumber:121,columnNumber:9},this)]},void 0,!0,{fileName:zi,lineNumber:111,columnNumber:7},this)]},void 0,!0,{fileName:zi,lineNumber:55,columnNumber:5},this)}function Vi(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function Hi(e){let t=[],n=!1;for(let r of e.split(`
245
- `)){if(r.trimStart().startsWith("```")){n=!n;continue}if(n)continue;let e=r.match(/^(#{1,3})\s+(.+?)\s*$/);if(!e)continue;let i=e[2].replace(/[*_`]/g,``);t.push({level:e[1].length,text:i,slug:Vi(i)})}return t}function Ui(e,t){let n=[...e.matchAll(/`+/g)].reduce((e,t)=>Math.max(e,t[0].length),0),r="`".repeat(Math.max(3,n+1));return`${r}${t??``}\n${e}\n${r}`}var Wi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentCard.tsx`,Gi={open:`○`,staged:`✓`,discarded:`✗`};function Ki(e){let{comment:t}=e,[n,r]=(0,O.useState)(!1),[i,a]=(0,O.useState)(!1),o=t.status!==`open`;return(0,A.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,A.jsxDEV)(`header`,{className:`comment__head`,onClick:e.onToggle,role:`button`,tabIndex:-1,children:[(0,A.jsxDEV)(`span`,{className:`comment__glyph`,"aria-hidden":`true`,children:Gi[t.status]},void 0,!1,{fileName:Wi,lineNumber:56,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`comment__severity comment__severity--${t.severity}`,children:Ut[t.severity]},void 0,!1,{fileName:Wi,lineNumber:57,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`comment__category`,children:t.category},void 0,!1,{fileName:Wi,lineNumber:60,columnNumber:9},this),t.location&&(0,A.jsxDEV)(`span`,{className:`comment__location`,children:t.location},void 0,!1,{fileName:Wi,lineNumber:61,columnNumber:30},this),(0,A.jsxDEV)(`h3`,{className:`comment__title`,children:t.title},void 0,!1,{fileName:Wi,lineNumber:62,columnNumber:9},this),t.edited&&(0,A.jsxDEV)(`span`,{className:`chip`,title:`Edited ${t.edited}`,children:`edited`},void 0,!1,{fileName:Wi,lineNumber:63,columnNumber:28},this)]},void 0,!0,{fileName:Wi,lineNumber:55,columnNumber:7},this),e.expanded&&(0,A.jsxDEV)(`div`,{className:`comment__body`,children:n?(0,A.jsxDEV)(Bi,{title:t.title,body:t.body,severity:t.severity,category:t.category,busy:e.busy,onCancel:()=>r(!1),onSave:(t,n)=>{r(!1),e.onEdit(t,n)}},void 0,!1,{fileName:Wi,lineNumber:69,columnNumber:13},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`div`,{className:`comment__prose`,children:(0,A.jsxDEV)(Mi,{source:t.body,compact:!0},void 0,!1,{fileName:Wi,lineNumber:86,columnNumber:17},this)},void 0,!1,{fileName:Wi,lineNumber:85,columnNumber:15},this),t.discussion&&(0,A.jsxDEV)(`div`,{className:`comment__discussion`,children:(0,A.jsxDEV)(Mi,{source:t.discussion,compact:!0},void 0,!1,{fileName:Wi,lineNumber:91,columnNumber:19},this)},void 0,!1,{fileName:Wi,lineNumber:90,columnNumber:17},this),t.suggestion&&(0,A.jsxDEV)(`div`,{className:`comment__suggestion`,children:[(0,A.jsxDEV)(`div`,{className:`comment__suggestion-head`,children:[(0,A.jsxDEV)(`span`,{className:`comment__suggestion-label`,children:[`Suggestion`,t.suggestionLang?` · ${t.suggestionLang}`:``]},void 0,!0,{fileName:Wi,lineNumber:98,columnNumber:21},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{let n=await tn(t.suggestion);e.onToast(n?`Suggestion copied`:`Could not copy`,`success`)},children:`Copy`},void 0,!1,{fileName:Wi,lineNumber:101,columnNumber:21},this)]},void 0,!0,{fileName:Wi,lineNumber:97,columnNumber:19},this),(0,A.jsxDEV)(Mi,{source:Ui(t.suggestion,t.suggestionLang),compact:!0},void 0,!1,{fileName:Wi,lineNumber:112,columnNumber:19},this)]},void 0,!0,{fileName:Wi,lineNumber:96,columnNumber:17},this),t.file&&(0,A.jsxDEV)(`div`,{className:`comment__location-row`,children:[(0,A.jsxDEV)(`span`,{className:`comment__path`,children:t.location},void 0,!1,{fileName:Wi,lineNumber:121,columnNumber:19},this),un(e.editorScheme,e.projectDirectory,t.file,t.line)&&(0,A.jsxDEV)(`a`,{className:`link-button`,href:un(e.editorScheme,e.projectDirectory,t.file,t.line),children:`Open in editor`},void 0,!1,{fileName:Wi,lineNumber:123,columnNumber:21},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{let n=await tn(t.location);e.onToast(n?`Location copied`:`Could not copy`,`success`)},children:`Copy`},void 0,!1,{fileName:Wi,lineNumber:135,columnNumber:19},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a(e=>!e),children:i?`Hide code`:`Peek`},void 0,!1,{fileName:Wi,lineNumber:145,columnNumber:19},this)]},void 0,!0,{fileName:Wi,lineNumber:120,columnNumber:17},this),i&&t.file&&(0,A.jsxDEV)(Ri,{file:t.file,line:t.line,endLine:t.endLine},void 0,!1,{fileName:Wi,lineNumber:156,columnNumber:17},this)]},void 0,!0,{fileName:Wi,lineNumber:82,columnNumber:13},this)},void 0,!1,{fileName:Wi,lineNumber:67,columnNumber:9},this),e.expanded&&!n&&(0,A.jsxDEV)(`footer`,{className:`comment__actions`,children:[(0,A.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:Wi,lineNumber:165,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:e.busy,onClick:()=>r(!0),children:`Edit`},void 0,!1,{fileName:Wi,lineNumber:173,columnNumber:11},this),(0,A.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:Wi,lineNumber:181,columnNumber:11},this),o&&(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,disabled:e.busy,onClick:()=>e.onDecide(`open`),children:`Undo`},void 0,!1,{fileName:Wi,lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:Wi,lineNumber:164,columnNumber:9},this)]},void 0,!0,{fileName:Wi,lineNumber:48,columnNumber:5},this)}var qi=`plan-changes`;function Ji(e){return`invariant.ui.review-cta:${e??`unknown`}`}function Yi(e){try{return window.localStorage.getItem(Ji(e))===`publish`?`publish`:qi}catch{return qi}}function Xi(e,t){try{window.localStorage.setItem(Ji(t),e)}catch{}}function Zi(e){return e?[`plan-changes`,`publish`]:[`plan-changes`]}function Qi(e,t){return Zi(t).includes(e)?e:qi}function $i(e,t){let{counts:n}=t,r=n.open===0,i=n.staged===0;if(e===`plan-changes`){let e=r&&i?`Close review`:`Plan changes →`;return r?t.sessionId?{label:e,enabled:!0}:{label:e,enabled:!1,hint:`This review is tied to no session, so there is nothing to plan into.`}:{label:e,enabled:!1,hint:`Stage or discard every comment first.`}}let a=`Publish to ${t.publisherName}…`;return r?i?{label:a,enabled:!1,hint:`Every comment was discarded — there is nothing to publish.`}:t.canPublish?t.publishAvailable?{label:a,enabled:!0,hint:`${n.staged} staged comment(s) will be sent as drafts.`}:{label:a,enabled:!1,hint:`${t.publisherName} is not connected for this project.`}:{label:a,enabled:!1,hint:`This review is missing the commit shas a discussion needs to anchor to.`}:{label:a,enabled:!1,hint:`Stage or discard every comment first.`}}var ea=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewActions.tsx`,ta=[{mode:`plan-changes`,label:`Plan changes`,detail:`Staged comments become the session’s Plan`},{mode:`publish`,label:`Publish to GitLab`,detail:`Staged comments become draft comments on the merge request`}];function na({review:e,projectDirectory:t,publishAvailable:n,publisherName:r,busy:i,onPlanChanges:a,onPublish:o}){let[s,c]=(0,O.useState)(qi),[l,u]=(0,O.useState)(!1),d=(0,O.useRef)(null);(0,O.useEffect)(()=>c(Qi(Yi(t),n)),[t,n]),(0,O.useEffect)(()=>{if(!l)return;let e=e=>{d.current?.contains(e.target)||u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]);let f=Zi(n),p=ta.filter(e=>f.includes(e.mode)),m=$i(s,{counts:e.counts,canPublish:e.canPublish,sessionId:e.sessionId,publishAvailable:n,publisherName:r}),h=e=>{c(e),Xi(e,t),u(!1)},g=()=>{s===`publish`?o():a()};return p.length<2?(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:i||!m.enabled,title:m.hint,onClick:g,children:m.label},void 0,!1,{fileName:ea,lineNumber:115,columnNumber:7},this):(0,A.jsxDEV)(`div`,{className:`split`,ref:d,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid split__main`,disabled:i||!m.enabled,title:m.hint,onClick:g,children:m.label},void 0,!1,{fileName:ea,lineNumber:129,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid split__toggle`,"aria-haspopup":`menu`,"aria-expanded":l,"aria-label":`Choose what this button does`,onClick:()=>u(e=>!e),children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 12 12`,"aria-hidden":`true`,width:`12`,height:`12`,children:(0,A.jsxDEV)(`path`,{d:`M2.5 4.5 6 8l3.5-3.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:ea,lineNumber:148,columnNumber:11},this)},void 0,!1,{fileName:ea,lineNumber:147,columnNumber:9},this)},void 0,!1,{fileName:ea,lineNumber:139,columnNumber:7},this),l&&(0,A.jsxDEV)(`div`,{className:`split__menu`,role:`menu`,children:p.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":s===e.mode,className:`split__item${s===e.mode?` is-active`:``}`,onClick:()=>h(e.mode),children:[(0,A.jsxDEV)(`span`,{className:`split__check`,"aria-hidden":`true`,children:s===e.mode?`✓`:``},void 0,!1,{fileName:ea,lineNumber:165,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`split__body`,children:[(0,A.jsxDEV)(`span`,{className:`split__label`,children:e.label},void 0,!1,{fileName:ea,lineNumber:167,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`split__detail`,children:e.detail},void 0,!1,{fileName:ea,lineNumber:168,columnNumber:19},this)]},void 0,!0,{fileName:ea,lineNumber:166,columnNumber:17},this)]},e.mode,!0,{fileName:ea,lineNumber:157,columnNumber:15},this))},void 0,!1,{fileName:ea,lineNumber:154,columnNumber:9},this)]},void 0,!0,{fileName:ea,lineNumber:128,columnNumber:5},this)}var P=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/PublishModal.tsx`,ra={exact:`on its line`,snapped:`snapped to the nearest changed line`,file:`on the whole file`,general:`as a general comment`};function ia({review:e,onClose:t,onOpenSettings:n}){let r=Fn(),[i,a]=(0,O.useState)(),[o,s]=(0,O.useState)(!1),[c,l]=(0,O.useState)(),u=vr(e.slug,i,c===void 0),d=yr(),f=c?.failures.map(e=>e.commentId)??[],p=t=>{d.mutate({slug:e.slug,mergeRequestIid:i,only:t},{onSuccess:e=>{l(e),e.failures.length===0&&r(`${e.created.length+e.updated.length} draft comment(s) created`,`success`)},onError:e=>r(ca(e),`danger`)})};return c?(0,A.jsxDEV)(Mn,{title:`Published as drafts`,width:640,onClose:t,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Nobody is notified until you press `,(0,A.jsxDEV)(`strong`,{children:`Submit review`},void 0,!1,{fileName:P,lineNumber:65,columnNumber:50},this),` in GitLab.`]},void 0,!0,{fileName:P,lineNumber:64,columnNumber:13},this),f.length>0&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:d.isPending,onClick:()=>p(f),children:[`Retry `,f.length,` failed`]},void 0,!0,{fileName:P,lineNumber:68,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:t,children:`Done`},void 0,!1,{fileName:P,lineNumber:77,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:63,columnNumber:11},this),children:(0,A.jsxDEV)(oa,{result:c},void 0,!1,{fileName:P,lineNumber:81,columnNumber:9},this)},void 0,!1,{fileName:P,lineNumber:58,columnNumber:7},this):(0,A.jsxDEV)(Mn,{title:`Publish to GitLab`,width:640,onClose:t,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`These are created as `,(0,A.jsxDEV)(`strong`,{children:`pending`},void 0,!1,{fileName:P,lineNumber:94,columnNumber:34},this),` comments. You submit the review yourself.`]},void 0,!0,{fileName:P,lineNumber:93,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:P,lineNumber:96,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:d.isPending||u.isLoading||u.data===void 0,onClick:()=>p(),children:d.isPending?`Creating…`:`Create ${u.data?.targets.length??e.counts.staged} draft comment(s)`},void 0,!1,{fileName:P,lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:92,columnNumber:9},this),children:[u.isLoading&&(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Resolving the merge request…`},void 0,!1,{fileName:P,lineNumber:110,columnNumber:31},this),u.error&&(0,A.jsxDEV)(sa,{error:u.error,onOpenSettings:n},void 0,!1,{fileName:P,lineNumber:112,columnNumber:27},this),u.data&&(0,A.jsxDEV)(`div`,{className:`publish`,children:[(0,A.jsxDEV)(`dl`,{className:`publish__facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Project`},void 0,!1,{fileName:P,lineNumber:118,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[(0,A.jsxDEV)(`a`,{href:u.data.projectUrl,target:`_blank`,rel:`noreferrer`,children:u.data.projectPath},void 0,!1,{fileName:P,lineNumber:120,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`publish__source`,children:u.data.projectPathSource===`origin`?`from origin`:`overridden`},void 0,!1,{fileName:P,lineNumber:123,columnNumber:17},this)]},void 0,!0,{fileName:P,lineNumber:119,columnNumber:15},this)]},void 0,!0,{fileName:P,lineNumber:117,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Merge request`},void 0,!1,{fileName:P,lineNumber:129,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`a`,{href:u.data.mergeRequest.url,target:`_blank`,rel:`noreferrer`,children:[`!`,u.data.mergeRequest.iid,` `,u.data.mergeRequest.title]},void 0,!0,{fileName:P,lineNumber:131,columnNumber:17},this)},void 0,!1,{fileName:P,lineNumber:130,columnNumber:15},this)]},void 0,!0,{fileName:P,lineNumber:128,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Diff`},void 0,!1,{fileName:P,lineNumber:137,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[u.data.changedFileCount,` file(s) · head`,` `,(0,A.jsxDEV)(`code`,{children:u.data.mergeRequest.headSha.slice(0,7)},void 0,!1,{fileName:P,lineNumber:140,columnNumber:17},this)]},void 0,!0,{fileName:P,lineNumber:138,columnNumber:15},this)]},void 0,!0,{fileName:P,lineNumber:136,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Sending`},void 0,!1,{fileName:P,lineNumber:144,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[u.data.targets.length,` staged comment(s)`,u.data.alreadyPublished>0&&` · ${u.data.alreadyPublished} already on GitLab (they will be updated)`]},void 0,!0,{fileName:P,lineNumber:145,columnNumber:15},this)]},void 0,!0,{fileName:P,lineNumber:143,columnNumber:13},this),u.data.username&&(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Acting as`},void 0,!1,{fileName:P,lineNumber:153,columnNumber:17},this),(0,A.jsxDEV)(`dd`,{children:[`@`,u.data.username]},void 0,!0,{fileName:P,lineNumber:154,columnNumber:17},this)]},void 0,!0,{fileName:P,lineNumber:152,columnNumber:15},this)]},void 0,!0,{fileName:P,lineNumber:116,columnNumber:11},this),u.data.originProjectPath&&(0,A.jsxDEV)(`p`,{className:`publish__warning`,children:[`Publishing to `,(0,A.jsxDEV)(`strong`,{children:u.data.projectPath},void 0,!1,{fileName:P,lineNumber:161,columnNumber:29},this),`, which is not this repository’s origin (`,u.data.originProjectPath,`).`]},void 0,!0,{fileName:P,lineNumber:160,columnNumber:13},this),u.data.drift&&(0,A.jsxDEV)(`p`,{className:`publish__warning`,children:[`This review was written against`,` `,(0,A.jsxDEV)(`code`,{children:u.data.drift.reviewHeadSha.slice(0,7)},void 0,!1,{fileName:P,lineNumber:169,columnNumber:15},this),`; the merge request is now at`,` `,(0,A.jsxDEV)(`code`,{children:u.data.drift.mergeRequestHeadSha.slice(0,7)},void 0,!1,{fileName:P,lineNumber:170,columnNumber:15},this),` — line numbers may have moved.`]},void 0,!0,{fileName:P,lineNumber:167,columnNumber:13},this),u.data.candidates.length>1&&(0,A.jsxDEV)(`label`,{className:`publish__picker`,children:[(0,A.jsxDEV)(`span`,{children:`Merge request`},void 0,!1,{fileName:P,lineNumber:177,columnNumber:15},this),(0,A.jsxDEV)(`select`,{className:`select`,value:i??u.data.mergeRequest.iid,onChange:e=>a(Number(e.target.value)),children:u.data.candidates.map(e=>(0,A.jsxDEV)(`option`,{value:e.iid,children:[`!`,e.iid,` — `,e.title]},e.iid,!0,{fileName:P,lineNumber:184,columnNumber:19},this))},void 0,!1,{fileName:P,lineNumber:178,columnNumber:15},this)]},void 0,!0,{fileName:P,lineNumber:176,columnNumber:13},this),(0,A.jsxDEV)(aa,{targets:u.data.targets},void 0,!1,{fileName:P,lineNumber:192,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>s(e=>!e),children:o?`▾ hide every target`:`▸ show every target`},void 0,!1,{fileName:P,lineNumber:194,columnNumber:11},this),o&&(0,A.jsxDEV)(`ul`,{className:`publish__targets`,children:u.data.targets.map(e=>(0,A.jsxDEV)(`li`,{className:`publish__target is-${e.kind}`,children:[(0,A.jsxDEV)(`span`,{className:`comment__severity comment__severity--${e.severity}`,children:e.severity},void 0,!1,{fileName:P,lineNumber:206,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`publish__target-title`,title:e.title,children:e.title},void 0,!1,{fileName:P,lineNumber:209,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`publish__target-where`,title:e.detail,children:[e.file?`${e.file}${e.line?`:${e.line}`:``}`:`general`,` — `,ra[e.kind]]},void 0,!0,{fileName:P,lineNumber:210,columnNumber:19},this)]},e.commentId,!0,{fileName:P,lineNumber:205,columnNumber:17},this))},void 0,!1,{fileName:P,lineNumber:203,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:115,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:87,columnNumber:5},this)}function aa({targets:e}){let t=t=>e.filter(e=>e.kind===t).length,n=[t(`exact`)>0&&`${t(`exact`)} exact`,t(`snapped`)>0&&`${t(`snapped`)} snapped`,t(`file`)>0&&`${t(`file`)} file-level`,t(`general`)>0&&`${t(`general`)} general`].filter(Boolean);return(0,A.jsxDEV)(`p`,{className:`publish__summary`,children:n.join(` · `)||`Nothing to send.`},void 0,!1,{fileName:P,lineNumber:235,columnNumber:10},this)}function oa({result:e}){let t=Fn(),n=e.created.length+e.updated.length;return(0,A.jsxDEV)(`div`,{className:`publish`,children:[(0,A.jsxDEV)(`p`,{className:`publish__result`,children:[(0,A.jsxDEV)(`strong`,{children:n},void 0,!1,{fileName:P,lineNumber:245,columnNumber:9},this),` draft comment(s) on`,` `,(0,A.jsxDEV)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,children:[`!`,e.mergeRequestIid]},void 0,!0,{fileName:P,lineNumber:246,columnNumber:9},this),e.skipped.length>0&&` · ${e.skipped.length} already submitted, left alone`]},void 0,!0,{fileName:P,lineNumber:244,columnNumber:7},this),e.session&&(0,A.jsxDEV)(`p`,{className:`publish__closed`,children:[`This review is closed — its session moved to `,(0,A.jsxDEV)(`strong`,{children:`Done`},void 0,!1,{fileName:P,lineNumber:255,columnNumber:56},this),`.`]},void 0,!0,{fileName:P,lineNumber:254,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`publish__links`,children:[(0,A.jsxDEV)(`a`,{className:`button button--subtle`,href:e.url,target:`_blank`,rel:`noreferrer`,children:`Open merge request ↗`},void 0,!1,{fileName:P,lineNumber:260,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,title:`Copy the merge request link`,"aria-label":`Copy the merge request link`,onClick:async()=>{t(await tn(e.url)?`Link copied`:`Could not copy`,`success`)},children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`5.5`,y:`5.5`,width:`8`,height:`8`,rx:`2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`},void 0,!1,{fileName:P,lineNumber:273,columnNumber:13},this),(0,A.jsxDEV)(`path`,{d:`M10.5 5.5v-1a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h1`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`},void 0,!1,{fileName:P,lineNumber:275,columnNumber:13},this)]},void 0,!0,{fileName:P,lineNumber:272,columnNumber:11},this)},void 0,!1,{fileName:P,lineNumber:263,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:259,columnNumber:7},this),e.failures.length>0&&(0,A.jsxDEV)(`ul`,{className:`publish__failures`,children:e.failures.map(e=>(0,A.jsxDEV)(`li`,{children:[(0,A.jsxDEV)(`code`,{children:e.commentId},void 0,!1,{fileName:P,lineNumber:285,columnNumber:15},this),` — `,e.message]},e.commentId,!0,{fileName:P,lineNumber:284,columnNumber:13},this))},void 0,!1,{fileName:P,lineNumber:282,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:243,columnNumber:5},this)}function sa({error:e,onOpenSettings:t}){let n=e instanceof Bn?e.code:``,r=n===`PUBLISHER_NOT_CONFIGURED`||n===`PUBLISHER_PROJECT_MISMATCH`;return(0,A.jsxDEV)(`div`,{className:`publish__error`,children:[(0,A.jsxDEV)(`p`,{children:ca(e)},void 0,!1,{fileName:P,lineNumber:304,columnNumber:7},this),r&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Open publishing settings`},void 0,!1,{fileName:P,lineNumber:306,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:303,columnNumber:5},this)}function ca(e){return e instanceof Bn||e instanceof Error?e.message:`That did not work.`}var la=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPane.tsx`,ua=[`all`,`open`,`staged`,`discarded`];function da({review:e,projectDirectory:t,editorScheme:n=`vscode`,onPlanned:r,onOpenSettings:i}){let a=Fn(),o=mr(),s=hr(),c=_r(),l=Tr(`review.publish`),[u,d]=(0,O.useState)(!1),[f,p]=(0,O.useState)(`all`),[m,h]=(0,O.useState)(`all`),[g,_]=(0,O.useState)(),[v,y]=(0,O.useState)(),b=(0,O.useMemo)(()=>e.runs.flatMap(e=>e.comments),[e]),x=(0,O.useMemo)(()=>on(b,f,m),[b,f,m]);(0,O.useEffect)(()=>{if(x.length===0){_(void 0);return}(!g||!x.some(e=>e.id===g))&&_(x[0].id)},[x,g]);let ee=o.isPending||s.isPending,te=(t,n)=>{o.mutate({slug:e.slug,commentId:t.id,etag:e.etag,expectedStatus:t.status,status:n},{onError:e=>pa(e,a),onSuccess:()=>{if(n===`open`)return;let e=sn(x,t.id);e&&(_(e.id),y(e.id))}})},ne=(t,n,r)=>{let i=cn(t,n);Object.keys(i).length===0&&!r||o.mutate({slug:e.slug,commentId:t.id,etag:e.etag,expectedStatus:t.status,...i,status:r?`staged`:void 0},{onError:e=>pa(e,a),onSuccess:()=>{i.severity&&m!==`all`&&i.severity!==m&&a(`Reclassified as ${Ut[i.severity].toLowerCase()} — hidden by the current filter.`,`info`)}})},re=()=>{let t=x.filter(e=>e.status!==`staged`).map(e=>e.id);t.length!==0&&s.mutate({slug:e.slug,ids:t,status:`staged`,etag:e.etag,expectedStatus:`open`},{onSuccess:()=>a(`Staged ${t.length} comment(s)`,`success`),onError:e=>pa(e,a)})};ma({enabled:!ee,comments:x,focusedId:g,onFocus:_,onToggle:e=>y(t=>t===e?void 0:e),onDecide:(e,t)=>{let n=x.find(t=>t.id===e);n&&te(n,t)},onExpand:y,onStageAll:re});let ie=e.counts,ae=ln(ie);return(0,A.jsxDEV)(`div`,{className:`review`,children:[(0,A.jsxDEV)(`div`,{className:`review__scroll`,children:[(0,A.jsxDEV)(`div`,{className:`review__summary`,children:e.runs.map((t,n)=>(0,A.jsxDEV)(`section`,{className:`review__run`,children:[(0,A.jsxDEV)(`header`,{className:`review__run-head`,children:[(0,A.jsxDEV)(`span`,{className:`review__run-label`,children:e.runs.length>1?`Run ${n+1}`:`Summary`},void 0,!1,{fileName:la,lineNumber:195,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`chip`,title:t.headSha,children:t.headSha.slice(0,7)},void 0,!1,{fileName:la,lineNumber:198,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`review__run-counts`,children:[t.counts.total,` comment`,t.counts.total===1?``:`s`]},void 0,!0,{fileName:la,lineNumber:199,columnNumber:17},this),t.status===`published`&&(0,A.jsxDEV)(`span`,{className:`chip`,title:`Every staged comment in this run reached the code host`,children:`published`},void 0,!1,{fileName:la,lineNumber:203,columnNumber:19},this)]},void 0,!0,{fileName:la,lineNumber:194,columnNumber:15},this),(0,A.jsxDEV)(Mi,{source:t.summary,compact:!0},void 0,!1,{fileName:la,lineNumber:210,columnNumber:15},this)]},t.id,!0,{fileName:la,lineNumber:193,columnNumber:13},this))},void 0,!1,{fileName:la,lineNumber:191,columnNumber:9},this),(0,A.jsxDEV)(`header`,{className:`review__toolbar`,children:[(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Filter by decision`,children:ua.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":f===e,className:`segmented__item${f===e?` is-active`:``}`,onClick:()=>p(e),children:e===`all`?`All ${ie.total}`:`${fa(e)} ${ie[e]}`},e,!1,{fileName:la,lineNumber:218,columnNumber:15},this))},void 0,!1,{fileName:la,lineNumber:216,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select`,value:m,"aria-label":`Filter by severity`,onChange:e=>h(e.target.value),children:[(0,A.jsxDEV)(`option`,{value:`all`,children:`Any severity`},void 0,!1,{fileName:la,lineNumber:237,columnNumber:13},this),Ht.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:la,lineNumber:239,columnNumber:15},this))]},void 0,!0,{fileName:la,lineNumber:231,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:ee||x.every(e=>e.status===`staged`),onClick:re,title:`Stage every comment matching the current filter (⇧S)`,children:`Stage all shown`},void 0,!1,{fileName:la,lineNumber:243,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{a(await tn(e.path)?`Path copied`:`Could not copy`,`success`)},children:e.path},void 0,!1,{fileName:la,lineNumber:253,columnNumber:11},this)]},void 0,!0,{fileName:la,lineNumber:215,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`review__list`,children:x.length===0?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:`Nothing matches this filter.`},void 0,!1,{fileName:la,lineNumber:266,columnNumber:13},this):x.map(e=>(0,A.jsxDEV)(Ki,{comment:e,projectDirectory:t,editorScheme:n,focused:e.id===g,expanded:e.id===v,busy:ee,onFocus:()=>_(e.id),onToggle:()=>y(t=>t===e.id?void 0:e.id),onDecide:t=>te(e,t),onEdit:(t,n)=>ne(e,t,n),onToast:a},e.id,!1,{fileName:la,lineNumber:269,columnNumber:15},this))},void 0,!1,{fileName:la,lineNumber:264,columnNumber:9},this)]},void 0,!0,{fileName:la,lineNumber:190,columnNumber:7},this),(0,A.jsxDEV)(`footer`,{className:`review__foot`,children:[(0,A.jsxDEV)(`span`,{className:`review__gate${ae.kind===`ready`?` is-ready`:``}`,children:ae.label},void 0,!1,{fileName:la,lineNumber:289,columnNumber:9},this),(0,A.jsxDEV)(na,{review:e,projectDirectory:t,publishAvailable:l,publisherName:`GitLab`,busy:c.isPending,onPublish:()=>d(!0),onPlanChanges:()=>c.mutate(e.slug,{onSuccess:e=>{a(e.guidance,`success`),tn(e.executeLine),r?.(e.session.id)},onError:e=>pa(e,a)})},void 0,!1,{fileName:la,lineNumber:296,columnNumber:9},this)]},void 0,!0,{fileName:la,lineNumber:288,columnNumber:7},this),u&&(0,A.jsxDEV)(ia,{review:e,onClose:()=>d(!1),onOpenSettings:()=>{d(!1),i?.()}},void 0,!1,{fileName:la,lineNumber:317,columnNumber:9},this)]},void 0,!0,{fileName:la,lineNumber:182,columnNumber:5},this)}function fa(e){return e[0].toUpperCase()+e.slice(1)}function pa(e,t){if(e instanceof Bn&&e.isNotTriaged){t(`${e.openCount} comment(s) still need a decision.`,`danger`);return}if(e instanceof Bn&&e.isConflict){t(`That comment changed on disk — reload before deciding on it again.`,`danger`);return}t(e instanceof Error?e.message:`That did not work.`,`danger`)}function ma(e){(0,O.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 ha=/^[ \t]*<issue-spec\b([^>]*)>[ \t]*$/,ga=/^[ \t]*<\/issue-spec>[ \t]*$/,F=/^[ \t]*<!--[ \t]*issue-spec:/;function _a(e){let t=e.split(`
246
- `);for(let n=0;n<t.length;n+=1){let r=t[n].match(ha);if(!r)continue;let i=t.findIndex((e,t)=>t>n&&ga.test(e));if(i===-1)return{body:e};let a=n>0&&F.test(t[n-1])?n-1:n;return{body:[t.slice(0,a).join(`
247
- `).replace(/\s+$/,``),t.slice(i+1).join(`
248
- `).replace(/^\s+/,``)].filter(e=>e.length>0).join(`
249
-
250
- `),spec:{content:t.slice(n+1,i).join(`
251
- `).replace(/^\n+|\n+$/g,``),syncedAt:va(r[1]??``,`synced-at`)}}}return{body:e}}function va(e,t){let n=e.match(RegExp(`${t}="([^"]*)"`))?.[1]?.trim();return n&&n.length>0?n:void 0}var I=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionPage.tsx`,ya=(0,O.lazy)(()=>ki(()=>import(`./Editor-3agHSmvf.js`).then(e=>({default:e.Editor})),[])),ba=(0,O.lazy)(()=>ki(()=>import(`./Preview-U3gSQ1_T.js`).then(e=>({default:e.Preview})),[])),xa=1200,Sa=/^<{7} yours\r?$/m;function Ca({sessionId:e,mode:t,onModeChange:n,onBack:r,onArchived:i,onOpenSession:a,onOpenSettings:o}){let s=Fn(),{data:c,isLoading:l,error:u}=tr(e),{data:d}=$n(),{data:f}=er(),p=rr(),m=nr(),h=sr(),g=Tr(`issue.link`),_=Mr(),v=lr(),y=or(),b=ir(),{data:x}=fr((0,O.useMemo)(()=>c?.reviewFile?an(c.reviewFile):void 0,[c?.reviewFile])),[ee,te]=(0,O.useState)(`review`),[ne,re]=(0,O.useState)(!1),[ie,ae]=(0,O.useState)(!1),[S,oe]=(0,O.useState)(),[C,w]=(0,O.useState)(),se=(0,O.useRef)(``),T=(0,O.useRef)(``),ce=(0,O.useRef)(null),le=S!==void 0&&S!==T.current;(0,O.useEffect)(()=>{c&&se.current!==c.etag&&(S===void 0||S===T.current)&&(se.current=c.etag,T.current=c.body,oe(c.body),w(void 0))},[c,S]);let ue=(0,O.useCallback)((t,n=!1)=>{c&&p.mutate({sessionId:e,body:t,etag:se.current,baseBody:T.current,force:n},{onSuccess:({session:e,merged:t})=>{se.current=e.etag,T.current=e.body,oe(e.body),w(void 0),t&&s(`Merged the agent’s changes into yours.`,`info`)},onError:e=>{if(e instanceof Bn&&e.isMergeConflict){w({merged:e.detail.mergedPreview??``,theirs:e.detail.currentContent??``,etag:e.detail.actualEtag??``,count:e.detail.conflictCount??1});return}s(e instanceof Error?e.message:`Could not save.`,`danger`)}})},[p,c,e,s]),de=(0,O.useCallback)((e,t,n)=>{se.current=e,T.current=t,oe(n),w(void 0)},[]),fe=(0,O.useCallback)(()=>{S!==void 0&&le&&ue(S)},[S,le,ue]);(0,O.useEffect)(()=>{if(!(!le||S===void 0||C)&&!Sa.test(S))return ce.current&&clearTimeout(ce.current),ce.current=setTimeout(()=>ue(S),xa),()=>{ce.current&&clearTimeout(ce.current)}},[S,le,C,ue]);let pe=(0,O.useMemo)(()=>f?.sessions??[],[f]),me=(0,O.useMemo)(()=>c?.parent?pe.find(e=>e.id===c.parent):void 0,[pe,c?.parent]),he=(0,O.useMemo)(()=>c?`execute instructions from ${c.path}`:``,[c]);if((0,O.useEffect)(()=>{!c||c.kind!==`review`||te(c.status===`review`?`review`:`plan`)},[c?.id,c?.status,c?.kind]),l)return(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading session…`},void 0,!1,{fileName:I,lineNumber:221,columnNumber:25},this);if(u||!c)return(0,A.jsxDEV)(`div`,{className:`page-state`,children:[(0,A.jsxDEV)(`p`,{children:`This session could not be loaded.`},void 0,!1,{fileName:I,lineNumber:225,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:r,children:`Back to sessions`},void 0,!1,{fileName:I,lineNumber:226,columnNumber:9},this)]},void 0,!0,{fileName:I,lineNumber:224,columnNumber:7},this);let ge=S??c.body,{body:_e,spec:ve}=_a(ge),ye=c.kind===`review`,be=!ye||ee===`plan`;return(0,A.jsxDEV)(`div`,{className:`session`,children:[(0,A.jsxDEV)(`header`,{className:`session__head`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:r,title:`Back (Esc)`,"aria-label":`Back`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,A.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:I,lineNumber:244,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:243,columnNumber:11},this)},void 0,!1,{fileName:I,lineNumber:242,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`session__title`,children:c.title},void 0,!1,{fileName:I,lineNumber:250,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`session__meta`,children:[(0,A.jsxDEV)(`span`,{className:`session__stamp session__stamp--created`,title:Qt(c.created),children:[`created `,Zt(c.created)]},void 0,!0,{fileName:I,lineNumber:252,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`session__stamp session__stamp--created`,"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:I,lineNumber:255,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`session__stamp`,title:Qt(c.updated),children:[`updated `,Zt(c.updated)]},void 0,!0,{fileName:I,lineNumber:256,columnNumber:13},this),le&&(0,A.jsxDEV)(`span`,{className:`session__dirty`,children:S!==void 0&&Sa.test(S)?`unsaved — resolve the conflict markers`:`unsaved`},void 0,!1,{fileName:I,lineNumber:260,columnNumber:15},this),p.isPending&&(0,A.jsxDEV)(`span`,{className:`session__saving`,children:`saving…`},void 0,!1,{fileName:I,lineNumber:266,columnNumber:32},this)]},void 0,!0,{fileName:I,lineNumber:251,columnNumber:11},this),ye&&(0,A.jsxDEV)(`div`,{className:`session__lineage`,children:[(0,A.jsxDEV)(`span`,{className:`session__kicker`,children:`Review`},void 0,!1,{fileName:I,lineNumber:271,columnNumber:15},this),c.branch&&(0,A.jsxDEV)(`span`,{className:`session__branch`,children:c.branch},void 0,!1,{fileName:I,lineNumber:272,columnNumber:34},this),me?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a(me.id),title:`Open the session under review`,children:[`↳ `,me.title]},void 0,!0,{fileName:I,lineNumber:274,columnNumber:17},this):c.parent?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button link-button--danger`,onClick:()=>re(!0),children:`↳ unlinked — the session this reviewed is gone`},void 0,!1,{fileName:I,lineNumber:285,columnNumber:17},this):(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>re(!0),children:`↳ standalone — link to a session`},void 0,!1,{fileName:I,lineNumber:293,columnNumber:17},this)]},void 0,!0,{fileName:I,lineNumber:270,columnNumber:13},this)]},void 0,!0,{fileName:I,lineNumber:249,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__controls`,children:[(0,A.jsxDEV)(Yt,{status:c.status,kind:c.kind,review:x,onTriage:()=>te(`review`),onChange:t=>m.mutate({sessionId:e,status:t},{onError:()=>s(`Could not change the status.`,`danger`)})},void 0,!1,{fileName:I,lineNumber:302,columnNumber:11},this),ye&&(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Session view`,children:[`review`,`plan`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":ee===e,className:`segmented__item${ee===e?` is-active`:``}`,onClick:()=>te(e),children:[e===`review`?`Comments`:`Fix plan`,e===`review`&&x&&x.counts.open>0&&(0,A.jsxDEV)(`span`,{className:`segmented__badge`,children:x.counts.open},void 0,!1,{fileName:I,lineNumber:328,columnNumber:21},this)]},e,!0,{fileName:I,lineNumber:318,columnNumber:17},this))},void 0,!1,{fileName:I,lineNumber:316,columnNumber:13},this),be&&(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`View mode`,children:[`preview`,`edit`,`split`].map(e=>(0,A.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:I,lineNumber:338,columnNumber:17},this))},void 0,!1,{fileName:I,lineNumber:336,columnNumber:13},this),(0,A.jsxDEV)(`div`,{className:`session__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:async()=>{s(await tn(he)?`Execute line copied`:`Could not copy`,`success`)},children:`Copy execute line`},void 0,!1,{fileName:I,lineNumber:354,columnNumber:13},this),g&&!c.issue&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>ae(!0),title:`Give this session a counterpart in Linear`,children:`Link to Linear`},void 0,!1,{fileName:I,lineNumber:364,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{window.confirm(`Archive this session? The file moves to .invariant/sessions/.archive/`)&&h.mutate(e,{onSuccess:()=>{s(`Session archived`,`success`),i()},onError:()=>s(`Could not archive the session.`,`danger`)})},children:`Archive`},void 0,!1,{fileName:I,lineNumber:373,columnNumber:13},this)]},void 0,!0,{fileName:I,lineNumber:353,columnNumber:11},this)]},void 0,!0,{fileName:I,lineNumber:301,columnNumber:9},this)]},void 0,!0,{fileName:I,lineNumber:241,columnNumber:7},this),ye&&(0,A.jsxDEV)(vi,{status:c.status,review:x,onTriage:()=>te(`review`),onCopyExecuteLine:async()=>{s(await tn(he)?`Execute line copied`:`Could not copy`,`success`)}},void 0,!1,{fileName:I,lineNumber:391,columnNumber:9},this),C&&(0,A.jsxDEV)(mi,{conflictCount:C.count,onOpenMerge:()=>{de(C.etag,C.theirs,C.merged)},onKeepMine:()=>{S!==void 0&&ue(S,!0)},onTakeTheirs:async()=>{S!==void 0&&await b.mutateAsync({sessionId:e,body:S}),de(C.etag,C.theirs,C.theirs),s(`Your version was parked in .invariant/sessions/.conflicts/`,`info`)}},void 0,!1,{fileName:I,lineNumber:402,columnNumber:9},this),c.needsMigration&&(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`This session has no canonical header.`},void 0,!1,{fileName:I,lineNumber:426,columnNumber:13},this),` `,c.issues[0]]},void 0,!0,{fileName:I,lineNumber:425,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>v.mutate(e,{onSuccess:()=>s(`Header migrated`,`success`),onError:()=>s(`Could not migrate the header.`,`danger`)}),children:`Fix header`},void 0,!1,{fileName:I,lineNumber:429,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:428,columnNumber:11},this)]},void 0,!0,{fileName:I,lineNumber:424,columnNumber:9},this),!ye&&c.status===`executed`&&(0,A.jsxDEV)(gi,{session:c,onOpenSession:a,onToast:s},void 0,!1,{fileName:I,lineNumber:446,columnNumber:9},this),ye&&ee===`review`?x?(0,A.jsxDEV)(da,{review:x,projectDirectory:d?.directory,onPlanned:()=>te(`plan`),onOpenSettings:o},void 0,!1,{fileName:I,lineNumber:455,columnNumber:11},this):(0,A.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:I,lineNumber:462,columnNumber:11},this):(0,A.jsxDEV)(A.Fragment,{children:[c.issue&&t!==`edit`&&(0,A.jsxDEV)(Ni,{session:c,spec:ve},void 0,!1,{fileName:I,lineNumber:469,columnNumber:48},this),(0,A.jsxDEV)(`div`,{className:`session__body session__body--${t}`,children:(0,A.jsxDEV)(O.Suspense,{fallback:(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:I,lineNumber:472,columnNumber:33},this),children:[t!==`preview`&&(0,A.jsxDEV)(ya,{value:ge,onChange:oe,onSave:fe},void 0,!1,{fileName:I,lineNumber:473,columnNumber:38},this),t!==`edit`&&(0,A.jsxDEV)(ba,{body:c.issue?_e:ge,withToc:t===`preview`},void 0,!1,{fileName:I,lineNumber:475,columnNumber:17},this)]},void 0,!0,{fileName:I,lineNumber:472,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:471,columnNumber:11},this)]},void 0,!0,{fileName:I,lineNumber:468,columnNumber:9},this),ie&&(0,A.jsxDEV)(wi,{sessionTitle:c.title,busy:_.isPending,onClose:()=>ae(!1),onLink:t=>_.mutate({sessionId:e,reference:t},{onSuccess:e=>{ae(!1),s(`Linked to ${e.issue?.key??`Linear`}`,`success`)},onError:e=>s(e instanceof Error?e.message:`Could not link.`,`danger`)})},void 0,!1,{fileName:I,lineNumber:483,columnNumber:9},this),ne&&(0,A.jsxDEV)(bi,{review:c,candidates:pe,busy:y.isPending,onClose:()=>re(!1),onLink:t=>y.mutate({sessionId:e,parentSessionId:t},{onSuccess:()=>{re(!1),s(`Review linked`,`success`)},onError:e=>s(e instanceof Error?e.message:`Could not link the review.`,`danger`)})},void 0,!1,{fileName:I,lineNumber:504,columnNumber:9},this)]},void 0,!0,{fileName:I,lineNumber:240,columnNumber:5},this)}var wa={prompt:``,context:``,full:!1};function Ta(e){return`invariant.ui.session-draft:${e??`unknown`}`}function Ea(e){return e.prompt.trim().length===0&&e.context.trim().length===0&&!e.full}function Da(e){try{let t=window.localStorage.getItem(Ta(e));if(!t)return wa;let n=JSON.parse(t);if(typeof n!=`object`||!n)return wa;let r=n;return{prompt:typeof r.prompt==`string`?r.prompt:``,context:typeof r.context==`string`?r.context:``,full:r.full===!0}}catch{return wa}}function Oa(e,t){try{if(Ea(e)){window.localStorage.removeItem(Ta(t));return}window.localStorage.setItem(Ta(t),JSON.stringify(e))}catch{}}function ka(e){try{window.localStorage.removeItem(Ta(e))}catch{}}var Aa=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/NewSessionModal.tsx`;function ja({busy:e,projectDirectory:t,onClose:n,onSubmit:r}){let[i]=(0,O.useState)(()=>Da(t)),[a,o]=(0,O.useState)(i.prompt),[s,c]=(0,O.useState)(i.context),[l,u]=(0,O.useState)(i.full),d=(0,O.useRef)(!Ea(i)),f=!Ea({prompt:a,context:s,full:l});(0,O.useEffect)(()=>{let e=window.setTimeout(()=>Oa({prompt:a,context:s,full:l},t),300);return()=>window.clearTimeout(e)},[a,s,l,t]);let p=()=>{let n=a.trim();n.length===0||e||(ka(t),r({prompt:n,context:s.trim()||void 0,full:l||void 0}))};return(0,A.jsxDEV)(Mn,{title:`New session`,onClose:()=>{ka(t),n()},width:620,dirty:f,confirmClose:{title:`Discard this session?`,body:"Your task description has not been sent to `invariant plan`. Closing loses what you typed.",confirmLabel:`Discard`,cancelLabel:`Keep editing`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:d.current?`Restored your last draft`:(0,A.jsxDEV)(A.Fragment,{children:[`Runs `,(0,A.jsxDEV)(`code`,{children:`invariant plan`},void 0,!1,{fileName:Aa,lineNumber:64,columnNumber:72},this),` in this project`]},void 0,!0,{fileName:Aa,lineNumber:64,columnNumber:65},this)},void 0,!1,{fileName:Aa,lineNumber:63,columnNumber:11},this),(0,A.jsxDEV)(Ma,{},void 0,!1,{fileName:Aa,lineNumber:66,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:p,disabled:e||a.trim().length===0,children:e?`Creating…`:`Create session ⌘↵`},void 0,!1,{fileName:Aa,lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:Aa,lineNumber:62,columnNumber:9},this),children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Task`},void 0,!1,{fileName:Aa,lineNumber:74,columnNumber:9},this),(0,A.jsxDEV)(`textarea`,{className:`field__input field__input--area`,"data-autofocus":!0,rows:6,value:a,placeholder:`Describe what should be planned and built…`,onChange:e=>o(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),p())}},void 0,!1,{fileName:Aa,lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:Aa,lineNumber:73,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Context `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`optional`},void 0,!1,{fileName:Aa,lineNumber:90,columnNumber:50},this)]},void 0,!0,{fileName:Aa,lineNumber:90,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:s,placeholder:`package/context-name`,onChange:e=>c(e.target.value)},void 0,!1,{fileName:Aa,lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:Aa,lineNumber:89,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:l,onChange:e=>u(e.target.checked)},void 0,!1,{fileName:Aa,lineNumber:100,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Inline full instructions (`,(0,A.jsxDEV)(`code`,{children:`--full`},void 0,!1,{fileName:Aa,lineNumber:101,columnNumber:43},this),`)`]},void 0,!0,{fileName:Aa,lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:Aa,lineNumber:99,columnNumber:9},this)]},void 0,!0,{fileName:Aa,lineNumber:88,columnNumber:7},this)]},void 0,!0,{fileName:Aa,lineNumber:46,columnNumber:5},this)}function Ma(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:Aa,lineNumber:112,columnNumber:5},this)}function Na(e){let t={slugs:[],sessionIds:[],skipped:0};for(let n of e)n.document&&n.slug?t.slugs.push(n.slug):n.reviewSession?t.sessionIds.push(n.reviewSession.id):t.skipped+=1;return t}function Pa(e){return e.slugs.length+e.sessionIds.length}function Fa(e){let t=[];return e.slugs.length>0&&t.push(`${e.slugs.length} document${e.slugs.length===1?``:`s`} move to the review directory’s .archive/, along with the review sessions that wrote them`),e.sessionIds.length>0&&t.push(`${e.sessionIds.length} review${e.sessionIds.length===1?``:`s`} not written yet move to .invariant/sessions/.archive/`),`${t.length>0?`${t.join(`. `)}.`:`Nothing to move.`} The sessions under review are not touched.`}var Ia=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewBulkBar.tsx`;function La({entries:e,count:t,hiddenCount:n,onClear:r,onNarrow:i}){let a=Fn(),o=cr(),s=sr(),[c,l]=(0,O.useState)(!1),[u,d]=(0,O.useState)(!1),f=Na(e),p=async()=>{d(!0),l(!1);let[t,n]=await Promise.all([si(f.slugs,e=>o.mutateAsync(e)),si(f.sessionIds,e=>s.mutateAsync(e))]),c={ok:[...t.ok,...n.ok],failed:[...t.failed,...n.failed]},{message:u,tone:p}=ci(c,{done:`Archived`,doing:`archive`,noun:`review`});if(a(u,p),c.failed.length===0)r();else{let t=new Set(c.failed.map(e=>e.id));i(e.filter(e=>e.slug!==void 0&&t.has(e.slug)||e.reviewSession!==void 0&&t.has(e.reviewSession.id)).map(e=>e.key))}d(!1)};return(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(Cn,{count:t,hiddenCount:n,noun:`review`,busy:u,onClear:r,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:u||Pa(f)===0,title:Pa(f)===0?`Nothing in this selection can be archived.`:void 0,onClick:()=>l(!0),children:u?`Archiving…`:`Archive`},void 0,!1,{fileName:Ia,lineNumber:80,columnNumber:9},this)},void 0,!1,{fileName:Ia,lineNumber:79,columnNumber:7},this),c&&(0,A.jsxDEV)(Mn,{title:`Archive ${Pa(f)} review${Pa(f)===1?``:`s`}?`,onClose:()=>l(!1),footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>l(!1),children:`Cancel`},void 0,!1,{fileName:Ia,lineNumber:97,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,onClick:()=>void p(),children:`Archive`},void 0,!1,{fileName:Ia,lineNumber:104,columnNumber:15},this)]},void 0,!0,{fileName:Ia,lineNumber:96,columnNumber:13},this),children:[(0,A.jsxDEV)(`p`,{className:`modal__text`,children:Fa(f)},void 0,!1,{fileName:Ia,lineNumber:110,columnNumber:11},this),(0,A.jsxDEV)(`p`,{className:`modal__text modal__text--muted`,children:`Nothing is deleted — every file stays readable on disk.`},void 0,!1,{fileName:Ia,lineNumber:111,columnNumber:11},this)]},void 0,!0,{fileName:Ia,lineNumber:92,columnNumber:9},this)]},void 0,!0,{fileName:Ia,lineNumber:78,columnNumber:5},this)}function Ra(e,t){let n=new Map(t.map(e=>[e.id,e])),r=t.filter(e=>e.kind===`review`),i=new Map;for(let e of r){if(!e.reviewFile)continue;let t=an(e.reviewFile);i.set(t,[...i.get(t)??[],e])}let a=new Set,o=[];for(let t of e){let e=i.get(t.slug)??[],r=t.sessionId?n.get(t.sessionId):void 0,s=r??Ba(e);for(let t of e)a.add(t.id);r&&a.add(r.id);let c=s?.parent?n.get(s.parent):void 0;o.push({key:t.slug,slug:t.slug,branch:t.branch,path:t.path,document:t,reviewSession:s,subject:c,link:za(s,c),state:t.counts.open>0?`triage`:`settled`,updated:Va(t.updated,s?.updated)})}for(let e of r){if(a.has(e.id))continue;let t=e.parent?n.get(e.parent):void 0;o.push({key:e.id,slug:e.reviewFile?an(e.reviewFile):void 0,branch:e.branch??e.title,path:e.reviewFile,reviewSession:e,subject:t,link:za(e,t),state:`pending`,updated:e.updated})}return o.sort((e,t)=>e.state===`triage`==(t.state===`triage`)?t.updated.localeCompare(e.updated):e.state===`triage`?-1:1)}function za(e,t){return e?t?`attached`:e.parent?`orphaned`:`standalone`:`unowned`}function Ba(e){return e.reduce((e,t)=>!e||t.updated.localeCompare(e.updated)>0?t:e,void 0)}function Va(e,t){return t&&t.localeCompare(e)>0?t:e}var Ha={selected:new Set};function Ua(e,t,n,r={}){let i=new Set(e.selected);if(r.range&&e.anchor!==void 0){let r=t.indexOf(e.anchor),a=t.indexOf(n);if(r!==-1&&a!==-1){let[n,o]=r<=a?[r,a]:[a,r];for(let e of t.slice(n,o+1))i.add(e);return{selected:i,anchor:e.anchor}}}return i.has(n)?i.delete(n):i.add(n),{selected:i,anchor:n}}function Wa(e,t){return{selected:new Set([...e.selected,...t]),anchor:e.anchor}}function Ga(e,t){if(e.selected.size===0)return e;let n=[...e.selected].filter(e=>t.has(e));return n.length===e.selected.size?e:{selected:new Set(n),anchor:e.anchor!==void 0&&t.has(e.anchor)?e.anchor:void 0}}function Ka(e,t){let n=Ja(e,t);return t.length>0&&n===t.length?`all`:n>0?`some`:`none`}function qa(e,t){return e.size-Ja(e,t)}function Ja(e,t){return t.reduce((t,n)=>e.has(n)?t+1:t,0)}function Ya(e,t=e){let[n,r]=(0,O.useState)(Ha),i=(0,O.useRef)(e);i.current=e;let a=(0,O.useMemo)(()=>new Set(t),[t]);(0,O.useEffect)(()=>{r(e=>Ga(e,a))},[a]);let o=(0,O.useCallback)((e,t)=>{r(n=>Ua(n,i.current,e,t))},[]),s=(0,O.useCallback)(()=>{r(e=>Wa(e,i.current))},[]),c=(0,O.useCallback)(()=>r(Ha),[]),l=(0,O.useCallback)(e=>{r({selected:new Set(e)})},[]),{selected:u}=n;return{selected:u,count:u.size,isSelected:(0,O.useCallback)(e=>u.has(e),[u]),toggle:o,selectAll:s,clear:c,replace:l,headerState:Ka(u,e),hiddenCount:qa(u,e)}}var L=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewsPage.tsx`;function Xa({onOpen:e,onOpenSession:t,onReviewBranch:n}){let{data:r,isLoading:i}=dr(),{data:a}=$n(),{data:o,isLoading:s}=er(),c=(0,O.useMemo)(()=>Ra(r?.reviews??[],o?.sessions??[]),[r,o]),l=c.filter(e=>e.state===`pending`).length,u=Ya((0,O.useMemo)(()=>c.map(e=>e.key),[c])),d=(0,O.useMemo)(()=>c.filter(e=>u.isSelected(e.key)),[c,u]);return(0,O.useEffect)(()=>{let e=e=>{let t=e.target;if(!(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`))){if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`a`){e.preventDefault(),u.selectAll();return}e.key===`Escape`&&u.count>0&&(e.stopPropagation(),u.clear())}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[u]),i||s?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading reviews…`},void 0,!1,{fileName:L,lineNumber:68,columnNumber:44},this):c.length===0?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No reviews yet`},void 0,!1,{fileName:L,lineNumber:73,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A review is an XML file in `,(0,A.jsxDEV)(`code`,{children:r?.directory??`doc/review`},void 0,!1,{fileName:L,lineNumber:75,columnNumber:38},this),` holding one pass over a branch, read by a fresh agent that has not seen the plan. There are two ways in: finish a session and use `,(0,A.jsxDEV)(`strong`,{children:`Request review`},void 0,!1,{fileName:L,lineNumber:77,columnNumber:36},this),` there, or review the branch you are on right now — for work no session of yours covers.`]},void 0,!0,{fileName:L,lineNumber:74,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:`Review a branch`},void 0,!1,{fileName:L,lineNumber:80,columnNumber:9},this)]},void 0,!0,{fileName:L,lineNumber:72,columnNumber:7},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Reviews`},void 0,!1,{fileName:L,lineNumber:91,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,children:a?.name??r?.directory},void 0,!1,{fileName:L,lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:90,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:[(0,A.jsxDEV)(`span`,{className:`count count--review`,title:`Awaiting triage`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:r?.awaitingTriage??0},void 0,!1,{fileName:L,lineNumber:97,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Awaiting triage`},void 0,!1,{fileName:L,lineNumber:98,columnNumber:15},this)]},void 0,!0,{fileName:L,lineNumber:96,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--planning`,title:`Reviews an agent is still writing`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:l},void 0,!1,{fileName:L,lineNumber:101,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`In flight`},void 0,!1,{fileName:L,lineNumber:102,columnNumber:15},this)]},void 0,!0,{fileName:L,lineNumber:100,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--planned`,title:`Staged`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:r?.counts.staged??0},void 0,!1,{fileName:L,lineNumber:105,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Staged`},void 0,!1,{fileName:L,lineNumber:106,columnNumber:15},this)]},void 0,!0,{fileName:L,lineNumber:104,columnNumber:13},this)]},void 0,!0,{fileName:L,lineNumber:95,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:`Review a branch`},void 0,!1,{fileName:L,lineNumber:110,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:94,columnNumber:9},this)]},void 0,!0,{fileName:L,lineNumber:89,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`list${u.count>0?` is-selecting`:``}`,children:(0,A.jsxDEV)(`table`,{className:`list__table list__table--reviews`,children:[(0,A.jsxDEV)(`colgroup`,{children:[(0,A.jsxDEV)(`col`,{className:`col--select`},void 0,!1,{fileName:L,lineNumber:124,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--branch`},void 0,!1,{fileName:L,lineNumber:125,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--work`},void 0,!1,{fileName:L,lineNumber:126,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--triage`},void 0,!1,{fileName:L,lineNumber:127,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--runs`},void 0,!1,{fileName:L,lineNumber:128,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--updated`},void 0,!1,{fileName:L,lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:L,lineNumber:123,columnNumber:11},this),(0,A.jsxDEV)(`thead`,{children:(0,A.jsxDEV)(`tr`,{children:[(0,A.jsxDEV)(`th`,{scope:`col`,className:`list__select`,children:(0,A.jsxDEV)(kt,{state:u.headerState,label:`Select every review`,onChange:e=>e?u.selectAll():u.clear()},void 0,!1,{fileName:L,lineNumber:134,columnNumber:17},this)},void 0,!1,{fileName:L,lineNumber:133,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Branch`},void 0,!1,{fileName:L,lineNumber:140,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Work under review`},void 0,!1,{fileName:L,lineNumber:141,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Triage`},void 0,!1,{fileName:L,lineNumber:142,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Runs`},void 0,!1,{fileName:L,lineNumber:143,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:L,lineNumber:144,columnNumber:15},this)]},void 0,!0,{fileName:L,lineNumber:132,columnNumber:13},this)},void 0,!1,{fileName:L,lineNumber:131,columnNumber:11},this),(0,A.jsxDEV)(`tbody`,{children:c.map(n=>{let r=n.state===`pending`,i=u.isSelected(n.key);return(0,A.jsxDEV)(`tr`,{className:[r?`reviews__row--pending`:``,i?`is-selected`:``].filter(Boolean).join(` `)||void 0,"aria-selected":i,onClick:()=>n.slug&&n.document?e(n.slug):n.reviewSession&&t(n.reviewSession.id),children:[(0,A.jsxDEV)(`td`,{className:`list__select`,onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(Ot,{checked:i,label:`Select the review of ${n.branch}`,onChange:(e,t)=>u.toggle(n.key,t)},void 0,!1,{fileName:L,lineNumber:167,columnNumber:21},this)},void 0,!1,{fileName:L,lineNumber:166,columnNumber:19},this),(0,A.jsxDEV)(`td`,{children:[(0,A.jsxDEV)(`div`,{className:`list__title cell-clip`,title:n.branch,children:n.branch},void 0,!1,{fileName:L,lineNumber:174,columnNumber:21},this),(0,A.jsxDEV)(`div`,{className:`list__excerpt cell-clip`,title:r?`Not written yet — the agent writes it to ${n.path??`the review directory`}`:n.path,children:n.path??`—`},void 0,!1,{fileName:L,lineNumber:175,columnNumber:21},this)]},void 0,!0,{fileName:L,lineNumber:173,columnNumber:19},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(Za,{entry:n,onOpenSession:t},void 0,!1,{fileName:L,lineNumber:187,columnNumber:21},this)},void 0,!1,{fileName:L,lineNumber:186,columnNumber:19},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(Qa,{entry:n},void 0,!1,{fileName:L,lineNumber:190,columnNumber:21},this)},void 0,!1,{fileName:L,lineNumber:189,columnNumber:19},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,children:n.document?.runCount??`—`},void 0,!1,{fileName:L,lineNumber:192,columnNumber:19},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,title:n.updated,children:Zt(n.updated)},void 0,!1,{fileName:L,lineNumber:193,columnNumber:19},this)]},n.key,!0,{fileName:L,lineNumber:152,columnNumber:17},this)})},void 0,!1,{fileName:L,lineNumber:147,columnNumber:11},this)]},void 0,!0,{fileName:L,lineNumber:117,columnNumber:9},this)},void 0,!1,{fileName:L,lineNumber:116,columnNumber:7},this),u.count>0&&(0,A.jsxDEV)(La,{entries:d,count:u.count,hiddenCount:u.hiddenCount,onClear:u.clear,onNarrow:u.replace},void 0,!1,{fileName:L,lineNumber:202,columnNumber:9},this)]},void 0,!0,{fileName:L,lineNumber:88,columnNumber:5},this)}function Za({entry:e,onOpenSession:t}){return e.subject?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button cell-clip`,title:e.subject.title,onClick:()=>t(e.subject?.id),children:e.subject.title},void 0,!1,{fileName:L,lineNumber:230,columnNumber:7},this):e.link===`unowned`?(0,A.jsxDEV)(`span`,{className:`reviews__standalone`,title:`No review session in this project owns this file`,children:`—`},void 0,!1,{fileName:L,lineNumber:243,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`reviews__standalone`,title:e.link===`orphaned`?`The session this reviewed is no longer listed`:`This review covers a branch on its own`,children:e.link},void 0,!1,{fileName:L,lineNumber:250,columnNumber:5},this)}function Qa({entry:e}){if(!e.document){let t=e.reviewSession?Pt(e.reviewSession):void 0;return(0,A.jsxDEV)(`span`,{className:`pill pill--pending`,title:t?.hint??`No review document yet.`,children:t?.label??`Not written yet`},void 0,!1,{fileName:L,lineNumber:271,columnNumber:7},this)}return(0,A.jsxDEV)($a,{review:e.document},void 0,!1,{fileName:L,lineNumber:276,columnNumber:10},this)}function $a({review:e}){return e.counts.open>0?(0,A.jsxDEV)(`span`,{className:`pill pill--review`,title:`${e.counts.total} comment(s) in this review`,children:[e.counts.open,` of `,e.counts.total,` awaiting`]},void 0,!0,{fileName:L,lineNumber:282,columnNumber:7},this):e.status===`published`?(0,A.jsxDEV)(`span`,{className:`pill pill--executed`,title:`Staged comments were sent to the code host`,children:[`Published · `,e.counts.staged,` sent`]},void 0,!0,{fileName:L,lineNumber:291,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`pill pill--executed`,children:[e.counts.staged,` staged · `,e.counts.discarded,` discarded`]},void 0,!0,{fileName:L,lineNumber:297,columnNumber:5},this)}var eo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPage.tsx`;function to({slug:e,onBack:t,onOpenSession:n,onOpenSettings:r}){let{data:i,isLoading:a,error:o}=fr(e),{data:s}=$n();return a?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading review…`},void 0,!1,{fileName:eo,lineNumber:22,columnNumber:25},this):o||!i?(0,A.jsxDEV)(`div`,{className:`page-state`,children:[(0,A.jsxDEV)(`p`,{children:`This review could not be loaded.`},void 0,!1,{fileName:eo,lineNumber:26,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Back to reviews`},void 0,!1,{fileName:eo,lineNumber:27,columnNumber:9},this)]},void 0,!0,{fileName:eo,lineNumber:25,columnNumber:7},this):(0,A.jsxDEV)(`div`,{className:`session`,children:[(0,A.jsxDEV)(`header`,{className:`session__head`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:t,title:`Back (Esc)`,"aria-label":`Back`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,A.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:eo,lineNumber:37,columnNumber:13},this)},void 0,!1,{fileName:eo,lineNumber:36,columnNumber:11},this)},void 0,!1,{fileName:eo,lineNumber:35,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`session__title`,children:i.branch},void 0,!1,{fileName:eo,lineNumber:43,columnNumber:11},this),(0,A.jsxDEV)(no,{review:i,project:s},void 0,!1,{fileName:eo,lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:eo,lineNumber:42,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__controls`,children:i.sessionId&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>n(i.sessionId),children:`Open session`},void 0,!1,{fileName:eo,lineNumber:49,columnNumber:13},this)},void 0,!1,{fileName:eo,lineNumber:47,columnNumber:9},this)]},void 0,!0,{fileName:eo,lineNumber:34,columnNumber:7},this),(0,A.jsxDEV)(da,{review:i,projectDirectory:s?.directory,onPlanned:n,onOpenSettings:r},void 0,!1,{fileName:eo,lineNumber:60,columnNumber:7},this)]},void 0,!0,{fileName:eo,lineNumber:33,columnNumber:5},this)}function no({review:e,project:t}){return(0,A.jsxDEV)(`div`,{className:`session__meta`,children:[(0,A.jsxDEV)(`span`,{children:[`base `,e.base]},void 0,!0,{fileName:eo,lineNumber:79,columnNumber:7},this),(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:eo,lineNumber:80,columnNumber:7},this),(0,A.jsxDEV)(`span`,{title:e.scope.baseSha,children:e.scope.baseSha.slice(0,7)},void 0,!1,{fileName:eo,lineNumber:81,columnNumber:7},this),(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`→`},void 0,!1,{fileName:eo,lineNumber:82,columnNumber:7},this),(0,A.jsxDEV)(`span`,{title:e.scope.headSha,children:e.scope.headSha.slice(0,7)},void 0,!1,{fileName:eo,lineNumber:83,columnNumber:7},this),e.runCount>1&&(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:eo,lineNumber:86,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[e.runCount,` runs`]},void 0,!0,{fileName:eo,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:eo,lineNumber:85,columnNumber:9},this),t&&(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:eo,lineNumber:92,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:t.name},void 0,!1,{fileName:eo,lineNumber:93,columnNumber:11},this)]},void 0,!0,{fileName:eo,lineNumber:91,columnNumber:9},this)]},void 0,!0,{fileName:eo,lineNumber:78,columnNumber:5},this)}var ro=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewBranchModal.tsx`;function io({busy:e,onClose:t,onSubmit:n}){let{data:r,isLoading:i}=ur(),[a,o]=(0,O.useState)(``),[s,c]=(0,O.useState)(!1);(0,O.useEffect)(()=>{s||!r?.baseBranch||o(r.baseBranch)},[r?.baseBranch,s]);let l=r!==void 0&&!r.canReview,u=a.trim();return(0,A.jsxDEV)(Mn,{title:`Review a branch`,onClose:t,dirty:s&&u!==(r?.baseBranch??``),confirmClose:{title:`Discard this base ref?`,body:`You changed the ref the diff is measured from. Closing goes back to the project default.`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:`This review will not be tied to any session.`},void 0,!1,{fileName:ro,lineNumber:48,columnNumber:11},this),(0,A.jsxDEV)(ao,{},void 0,!1,{fileName:ro,lineNumber:49,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e||l||i,title:l?r?.reason:void 0,onClick:()=>n({base:u.length>0&&u!==r?.baseBranch?u:void 0}),children:e?`Creating…`:`Create review session`},void 0,!1,{fileName:ro,lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:ro,lineNumber:47,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A fresh agent reads this branch's diff and writes its findings into`,` `,(0,A.jsxDEV)(`code`,{children:`doc/review/<branch>.xml`},void 0,!1,{fileName:ro,lineNumber:70,columnNumber:9},this),`. Use this for work no session of yours covers — a branch you pulled from someone else.`]},void 0,!0,{fileName:ro,lineNumber:68,columnNumber:7},this),i?(0,A.jsxDEV)(`p`,{className:`panel__empty`,children:`Reading the branch…`},void 0,!1,{fileName:ro,lineNumber:75,columnNumber:9},this):l?(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:(0,A.jsxDEV)(`div`,{className:`banner__text`,children:r?.reason},void 0,!1,{fileName:ro,lineNumber:78,columnNumber:11},this)},void 0,!1,{fileName:ro,lineNumber:77,columnNumber:9},this):(0,A.jsxDEV)(`dl`,{className:`scope`,children:[(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Branch`},void 0,!1,{fileName:ro,lineNumber:83,columnNumber:13},this),(0,A.jsxDEV)(`dd`,{className:`scope__value`,children:r?.branch},void 0,!1,{fileName:ro,lineNumber:84,columnNumber:13},this)]},void 0,!0,{fileName:ro,lineNumber:82,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Diff`},void 0,!1,{fileName:ro,lineNumber:87,columnNumber:13},this),(0,A.jsxDEV)(`dd`,{className:`scope__value`,children:[r?.changedFileCount,` file`,r?.changedFileCount===1?``:`s`,r?.hasStagedChanges?` · staged changes included`:` · nothing staged`]},void 0,!0,{fileName:ro,lineNumber:88,columnNumber:13},this)]},void 0,!0,{fileName:ro,lineNumber:86,columnNumber:11},this),r?.headSha&&(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Head`},void 0,!1,{fileName:ro,lineNumber:95,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{className:`scope__value scope__value--mono`,title:r.headSha,children:r.headSha.slice(0,7)},void 0,!1,{fileName:ro,lineNumber:96,columnNumber:15},this)]},void 0,!0,{fileName:ro,lineNumber:94,columnNumber:13},this)]},void 0,!0,{fileName:ro,lineNumber:81,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`field`,children:[(0,A.jsxDEV)(`label`,{className:`field__label`,htmlFor:`review-base`,children:[`Base ref `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`— what the diff is measured from`},void 0,!1,{fileName:ro,lineNumber:106,columnNumber:20},this)]},void 0,!0,{fileName:ro,lineNumber:105,columnNumber:9},this),(0,A.jsxDEV)(`input`,{id:`review-base`,className:`field__input`,"data-autofocus":!0,value:a,placeholder:`origin/main`,onChange:e=>{c(!0),o(e.target.value)}},void 0,!1,{fileName:ro,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:ro,lineNumber:104,columnNumber:7},this)]},void 0,!0,{fileName:ro,lineNumber:38,columnNumber:5},this)}function ao(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:ro,lineNumber:125,columnNumber:5},this)}var oo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackageList.tsx`;function so({packages:e,selected:t,filter:n,onFilter:r,onSelect:i,dirty:a}){let o=n.trim().toLowerCase(),s=e.filter(e=>o.length===0||e.name.toLowerCase().includes(o)).sort((e,t)=>e.activeCount>0==t.activeCount>0?e.name.localeCompare(t.name):e.activeCount>0?-1:1);return(0,A.jsxDEV)(`div`,{className:`packages__list`,children:[(0,A.jsxDEV)(`div`,{className:`packages__filter`,children:(0,A.jsxDEV)(`input`,{className:`filter__input`,value:n,placeholder:`Filter packages…`,"aria-label":`Filter packages`,spellCheck:!1,onChange:e=>r(e.target.value)},void 0,!1,{fileName:oo,lineNumber:38,columnNumber:9},this)},void 0,!1,{fileName:oo,lineNumber:37,columnNumber:7},this),s.length===0?(0,A.jsxDEV)(`p`,{className:`packages__list-empty`,children:[`No package matches “`,n,`”.`]},void 0,!0,{fileName:oo,lineNumber:49,columnNumber:9},this):(0,A.jsxDEV)(`ul`,{className:`packages__rows`,children:s.map(e=>(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,className:`packages__row${e.name===t?` is-selected`:``}`,onClick:()=>i(e.name),"aria-current":e.name===t?`true`:void 0,children:[(0,A.jsxDEV)(`span`,{className:`packages__dot packages__dot--${e.activeCount>0?`on`:`off`}`},void 0,!1,{fileName:oo,lineNumber:60,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__row-body`,children:[(0,A.jsxDEV)(`span`,{className:`packages__row-name`,children:[e.name,a.has(e.name)&&(0,A.jsxDEV)(`span`,{className:`packages__row-dirty`,title:`Unapplied changes`,children:`•`},void 0,!1,{fileName:oo,lineNumber:65,columnNumber:23},this)]},void 0,!0,{fileName:oo,lineNumber:62,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`packages__row-meta`,children:[(0,A.jsxDEV)(`span`,{className:`chip`,children:e.source},void 0,!1,{fileName:oo,lineNumber:71,columnNumber:21},this),(0,A.jsxDEV)(co,{pkg:e},void 0,!1,{fileName:oo,lineNumber:72,columnNumber:21},this)]},void 0,!0,{fileName:oo,lineNumber:70,columnNumber:19},this)]},void 0,!0,{fileName:oo,lineNumber:61,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__row-count`,children:[e.activeCount,`/`,e.totalCount]},void 0,!0,{fileName:oo,lineNumber:75,columnNumber:17},this)]},void 0,!0,{fileName:oo,lineNumber:54,columnNumber:15},this)},e.name,!1,{fileName:oo,lineNumber:53,columnNumber:13},this))},void 0,!1,{fileName:oo,lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:oo,lineNumber:36,columnNumber:5},this)}function co({pkg:e}){return e.presence===`cached-only`?(0,A.jsxDEV)(`span`,{className:`chip`,title:`Installed in the cache but not listed in invariant.json`,children:`not declared`},void 0,!1,{fileName:oo,lineNumber:94,columnNumber:7},this):e.presence===`declared-only`?(0,A.jsxDEV)(`span`,{className:`chip chip--warning`,title:`Listed in invariant.json but not installed here`,children:`not installed`},void 0,!1,{fileName:oo,lineNumber:101,columnNumber:7},this):null}var lo={add:[],remove:[]};function uo(e){return`${e.type}/${e.name}`}function fo(e,t){let n=uo(t);return e.filter(e=>uo(e)!==n)}function po(e,t){let n=uo(t);return e.some(e=>uo(e)===n)}function mo(e,t,n){let r={type:t.type,name:t.name},i={add:fo(e.add,r),remove:fo(e.remove,r)};return n===t.active?i:n?{...i,add:[...i.add,r]}:{...i,remove:[...i.remove,r]}}function ho(e,t,n,r){return t.filter(e=>e.type===n).reduce((e,t)=>mo(e,t,r),e)}function go(e,t,n){return t.reduce((e,t)=>mo(e,t,n),e)}function _o(e,t){let n={type:t.type,name:t.name};return po(e.add,n)?`adding`:po(e.remove,n)?`removing`:`unchanged`}function vo(e,t){let n=_o(e,t);return n===`adding`||n!==`removing`&&t.active}function yo(e,t,n){let r=t.filter(e=>e.type===n);if(r.length===0)return`none`;let i=r.filter(t=>vo(e,t)).length;return i===0?`none`:i===r.length?`all`:`some`}function bo(e){return e.add.length+e.remove.length}function xo(e){return bo(e)===0}function So(e){return Gt.filter(t=>e.some(e=>e.type===t))}var Co={agents:`agent`,skills:`skill`,commands:`command`,rules:`rule`,contexts:`context`,instructions:`instruction`};function wo(e,t){return`${Co[t.type]}:${e}/${t.name}`}function To(e,t,n={}){let r=[];return t.remove.length>0&&r.push(`invariant remove ${t.remove.map(t=>wo(e,t)).join(` `)}`),t.add.length>0&&r.push(`invariant add ${t.add.map(t=>wo(e,t)).join(` `)}`),n.sync&&r.length>0&&r.push(`invariant sync`),r}function Eo(e,t={}){return`invariant install ${[Do(e),...[t.activate===!1?`--no-add`:void 0,t.sync?`--sync`:void 0].filter(Boolean)].join(` `)}`}function Do(e){if(e.kind===`github`)return`github:${e.owner}/${e.repo}${e.ref?`#${e.ref}`:``}`;if(e.kind===`skills`){let t=e.slug?`/${e.slug}`:``;return`skills:${e.owner}/${e.repo}${t}${e.ref?`#${e.ref}`:``}`}return`${e.name}${e.version?`@${e.version}`:``}`}function Oo(e){let[t,n,r]=e.trim().replace(/^https?:\/\/(www\.)?skills\.sh\//i,``).replace(/^skills:/i,``).replace(/[?#].*$/,``).replace(/^\/+|\/+$/g,``).split(`/`);return{owner:t||void 0,repo:n||void 0,slug:r||void 0}}function ko(e){let[t,n]=e.trim().replace(/^https?:\/\/(www\.)?github\.com\//i,``).replace(/^git@github\.com:/i,``).replace(/\.git$/i,``).replace(/^\/+|\/+$/g,``).split(`/`);return{owner:t||void 0,repo:n||void 0}}function Ao(e){if(e.source===`skills`&&e.sourceUrl){let{owner:t,repo:n}=Oo(e.sourceUrl);if(t&&n)return{kind:`skills`,owner:t,repo:n}}if(e.source===`github`&&e.sourceUrl){let{owner:t,repo:n}=ko(e.sourceUrl);if(t&&n)return{kind:`github`,owner:t,repo:n}}return{kind:`registry`,name:e.name}}var jo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/ItemTypeGroup.tsx`,Mo="invariant.json activates this whole type at once. `invariant remove` cannot undo that entry, so edit invariant.json to change it.";function No({type:e,items:t,pending:n,locked:r,disabled:i,onToggleItem:a,onToggleType:o}){let s=t.filter(t=>t.type===e),c=yo(n,t,e),l=s.filter(e=>vo(n,e)).length;return(0,A.jsxDEV)(`section`,{className:`packages__group`,children:[(0,A.jsxDEV)(`header`,{className:`packages__group-head`,children:[(0,A.jsxDEV)(`label`,{className:`packages__group-toggle`,children:[(0,A.jsxDEV)(kt,{state:c,disabled:i||r,onChange:t=>o(e,t),label:`All ${e}`},void 0,!1,{fileName:jo,lineNumber:37,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`packages__group-name`,children:e},void 0,!1,{fileName:jo,lineNumber:43,columnNumber:11},this)]},void 0,!0,{fileName:jo,lineNumber:36,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`packages__group-count`,children:[l,`/`,s.length]},void 0,!0,{fileName:jo,lineNumber:46,columnNumber:9},this),r&&(0,A.jsxDEV)(`span`,{className:`chip chip--warning`,title:Mo,children:`declared type-wide`},void 0,!1,{fileName:jo,lineNumber:51,columnNumber:11},this)]},void 0,!0,{fileName:jo,lineNumber:35,columnNumber:7},this),(0,A.jsxDEV)(`ul`,{className:`packages__items`,children:s.map(e=>{let t=_o(n,e);return(0,A.jsxDEV)(`li`,{className:`packages__item${t===`unchanged`?``:` is-staged-${t===`adding`?`add`:`remove`}`}`,children:[(0,A.jsxDEV)(`label`,{className:`packages__item-label`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:vo(n,e),disabled:i||r,onChange:t=>a(e,t.target.checked),title:r?Mo:void 0},void 0,!1,{fileName:jo,lineNumber:66,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__item-name`,title:e.canonicalPath,children:e.name},void 0,!1,{fileName:jo,lineNumber:73,columnNumber:17},this),e.qualifiedName!==e.name&&(0,A.jsxDEV)(`span`,{className:`packages__item-installed`,title:e.canonicalPath,children:e.qualifiedName},void 0,!1,{fileName:jo,lineNumber:79,columnNumber:19},this)]},void 0,!0,{fileName:jo,lineNumber:65,columnNumber:15},this),t!==`unchanged`&&(0,A.jsxDEV)(`span`,{className:`packages__item-flag`,children:t===`adding`?`will add`:`will remove`},void 0,!1,{fileName:jo,lineNumber:85,columnNumber:17},this)]},e.name,!0,{fileName:jo,lineNumber:61,columnNumber:13},this)})},void 0,!1,{fileName:jo,lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:jo,lineNumber:34,columnNumber:5},this)}var Po=/\u001b\[[0-9;]*m/g;function Fo(e){return e.replace(Po,``)}var Io=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/Transcript.tsx`;function Lo({output:e,commandLine:t}){let n=Fo(e).trim();return n.length===0&&!t?null:(0,A.jsxDEV)(`div`,{className:`transcript`,children:[t&&(0,A.jsxDEV)(`div`,{className:`transcript__command`,children:[`$ `,t]},void 0,!0,{fileName:Io,lineNumber:22,columnNumber:23},this),n.length>0&&(0,A.jsxDEV)(`pre`,{className:`transcript__body`,children:n},void 0,!1,{fileName:Io,lineNumber:23,columnNumber:27},this)]},void 0,!0,{fileName:Io,lineNumber:21,columnNumber:5},this)}var Ro=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackageDetail.tsx`;function zo({pkg:e,pending:t,busy:n,failure:r,onToggleItem:i,onToggleType:a,onStageAll:o,onUninstall:s,onInstallMissing:c,onDismissFailure:l}){let u=So(e.items),d=new Set(e.typeWideActive);return(0,A.jsxDEV)(`section`,{className:`packages__detail`,"aria-label":`${e.name} contents`,children:[(0,A.jsxDEV)(`header`,{className:`packages__detail-head`,children:[(0,A.jsxDEV)(`div`,{className:`packages__identity`,children:[(0,A.jsxDEV)(`h2`,{className:`packages__title`,children:[e.name,(0,A.jsxDEV)(`span`,{className:`packages__version`,children:[`@`,e.version]},void 0,!0,{fileName:Ro,lineNumber:48,columnNumber:13},this)]},void 0,!0,{fileName:Ro,lineNumber:46,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`packages__meta`,children:[(0,A.jsxDEV)(Bo,{pkg:e},void 0,!1,{fileName:Ro,lineNumber:51,columnNumber:13},this),e.author&&(0,A.jsxDEV)(`span`,{className:`packages__author`,children:e.author},void 0,!1,{fileName:Ro,lineNumber:52,columnNumber:28},this)]},void 0,!0,{fileName:Ro,lineNumber:50,columnNumber:11},this),e.description&&(0,A.jsxDEV)(`p`,{className:`packages__description`,children:e.description},void 0,!1,{fileName:Ro,lineNumber:54,columnNumber:31},this)]},void 0,!0,{fileName:Ro,lineNumber:45,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__detail-actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n||e.totalCount===0||e.activeCount===e.totalCount,onClick:()=>o(!0),children:`Add all`},void 0,!1,{fileName:Ro,lineNumber:58,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n||e.activeCount===0,onClick:()=>o(!1),children:`Remove all`},void 0,!1,{fileName:Ro,lineNumber:66,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:n,onClick:s,children:`Uninstall`},void 0,!1,{fileName:Ro,lineNumber:74,columnNumber:11},this)]},void 0,!0,{fileName:Ro,lineNumber:57,columnNumber:9},this)]},void 0,!0,{fileName:Ro,lineNumber:44,columnNumber:7},this),r&&(0,A.jsxDEV)(`div`,{className:`packages__failure`,role:`alert`,children:[(0,A.jsxDEV)(`div`,{className:`packages__failure-head`,children:[(0,A.jsxDEV)(`strong`,{children:r.message},void 0,!1,{fileName:Ro,lineNumber:83,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:l,children:`Dismiss`},void 0,!1,{fileName:Ro,lineNumber:84,columnNumber:13},this)]},void 0,!0,{fileName:Ro,lineNumber:82,columnNumber:11},this),(0,A.jsxDEV)(Lo,{output:r.transcript??``,commandLine:r.commandLine},void 0,!1,{fileName:Ro,lineNumber:88,columnNumber:11},this)]},void 0,!0,{fileName:Ro,lineNumber:81,columnNumber:9},this),e.presence===`declared-only`?(0,A.jsxDEV)(`div`,{className:`packages__notice`,children:[(0,A.jsxDEV)(`p`,{children:[(0,A.jsxDEV)(`strong`,{children:e.name},void 0,!1,{fileName:Ro,lineNumber:95,columnNumber:13},this),` is declared in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:Ro,lineNumber:95,columnNumber:56},this),` but is not installed in this checkout — the usual cause is a colleague adding it and this working copy never fetching it.`]},void 0,!0,{fileName:Ro,lineNumber:94,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:n,onClick:c,children:`Install it`},void 0,!1,{fileName:Ro,lineNumber:99,columnNumber:11},this)]},void 0,!0,{fileName:Ro,lineNumber:93,columnNumber:9},this):e.totalCount===0?(0,A.jsxDEV)(`p`,{className:`packages__empty-note`,children:`This package ships no items.`},void 0,!1,{fileName:Ro,lineNumber:104,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`packages__tree`,children:u.map(r=>(0,A.jsxDEV)(No,{type:r,items:e.items,pending:t,locked:d.has(r),disabled:n,onToggleItem:i,onToggleType:a},r,!1,{fileName:Ro,lineNumber:108,columnNumber:13},this))},void 0,!1,{fileName:Ro,lineNumber:106,columnNumber:9},this)]},void 0,!0,{fileName:Ro,lineNumber:43,columnNumber:5},this)}function Bo({pkg:e}){let t=e.source===`github`?`github`:e.source===`skills`?`skills.sh`:`registry`;return e.sourceUrl?(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:e.sourceUrl,target:`_blank`,rel:`noreferrer`,children:[t,` ↗`]},void 0,!0,{fileName:Ro,lineNumber:131,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`chip`,children:t},void 0,!1,{fileName:Ro,lineNumber:136,columnNumber:10},this)}var Vo=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PendingChangesBar.tsx`;function Ho({packageName:e,pending:t,sync:n,busy:r,running:i,onSyncChange:a,onDiscard:o,onApply:s}){let c=To(e,t,{sync:n});return(0,A.jsxDEV)(`div`,{className:`packages__bar`,role:`region`,"aria-live":`polite`,"aria-label":`Pending changes`,children:[(0,A.jsxDEV)(`div`,{className:`packages__bar-summary`,children:[(0,A.jsxDEV)(`span`,{className:`packages__bar-counts`,children:[t.add.length>0&&(0,A.jsxDEV)(`strong`,{children:[t.add.length,` to add`]},void 0,!0,{fileName:Vo,lineNumber:39,columnNumber:38},this),t.add.length>0&&t.remove.length>0&&` · `,t.remove.length>0&&(0,A.jsxDEV)(`strong`,{children:[t.remove.length,` to remove`]},void 0,!0,{fileName:Vo,lineNumber:41,columnNumber:41},this)]},void 0,!0,{fileName:Vo,lineNumber:38,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__bar-preview`,title:c.join(`
252
- `),children:i??c.join(` · `)},void 0,!1,{fileName:Vo,lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:Vo,lineNumber:37,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`packages__bar-actions`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:n,disabled:r,onChange:e=>a(e.target.checked)},void 0,!1,{fileName:Vo,lineNumber:50,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:Vo,lineNumber:57,columnNumber:17},this),` after`]},void 0,!0,{fileName:Vo,lineNumber:56,columnNumber:11},this)]},void 0,!0,{fileName:Vo,lineNumber:49,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:r,onClick:o,children:`Discard`},void 0,!1,{fileName:Vo,lineNumber:60,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:r,onClick:s,children:r?`Applying…`:`Apply`},void 0,!1,{fileName:Vo,lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:Vo,lineNumber:48,columnNumber:7},this)]},void 0,!0,{fileName:Vo,lineNumber:36,columnNumber:5},this)}function Uo(e){return e.toLowerCase().replace(/[^a-z0-9._-]/g,`-`).replace(/-+/g,`-`).replace(/^[-.]+|[-.]+$/g,``)}function Wo(e){return e.replace(/^@/,``).replace(/\//g,`-`).toLowerCase().replace(/[^a-z0-9._-]/g,`-`).replace(/-+/g,`-`).replace(/^[-.]+|[-.]+$/g,``)}function Go(e,t){let n=Wo(e);return!n||t===n||t.startsWith(`${n}-`)?t:`${n}-${t}`}function Ko(e,t){return`@${Uo(e)}/${Uo(t)}`}function qo(e,t,n,r=`.agents`){return`${r}/skills/${Go(Ko(e,t),Uo(n))}`}function Jo(e,t,n,r=`.claude`){return`${r}/skills/${Go(Ko(e,t),Uo(n))}`}function Yo(e){return!Number.isFinite(e)||e<=0?`0`:e>=1e6?`${Xo(e/1e6)}M`:e>=1e3?`${Xo(e/1e3)}K`:String(Math.round(e))}function Xo(e){return e.toFixed(1).replace(/\.0$/,``)}function Zo(e){return`${new Intl.NumberFormat(`en-US`).format(Math.max(0,Math.round(e)))} installs`}function Qo(e){return e<1024?`${e} B`:e<1048576?`${Xo(e/1024)} KB`:`${Xo(e/1048576)} MB`}function $o(e){if(!e)return;let t=Date.parse(e);if(Number.isNaN(t))return;let n=Math.floor((Date.now()-t)/864e5);return n<=0?`today`:n===1?`yesterday`:n<30?`${n}d ago`:n<365?`${Math.floor(n/30)}mo ago`:`${Math.floor(n/365)}y ago`}var R=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/InstallPackageModal.tsx`;function es({busy:e,error:t,onClose:n,onSubmit:r,onBrowseSkills:i}){let[a,o]=(0,O.useState)(`github`),[s,c]=(0,O.useState)(``),[l,u]=(0,O.useState)(``),[d,f]=(0,O.useState)(``),[p,m]=(0,O.useState)(!0),[h,g]=(0,O.useState)(!1),_=(0,O.useMemo)(()=>Oo(d),[d]),v=a===`skills`&&!_.repo?d:``,y=Vr(v),b=(0,O.useMemo)(()=>{if(a===`github`){let{owner:e,repo:t}=ko(s);return!e||!t?void 0:{kind:`github`,owner:e,repo:t,ref:l.trim()||void 0}}let{owner:e,repo:t,slug:n}=_;if(!(!e||!t))return{kind:`skills`,owner:e,repo:t,slug:n}},[a,s,l,_]),x=b?.kind===`skills`&&b.slug?Jo(b.owner,b.repo,b.slug):void 0,ee=()=>{!b||e||r({source:b,activate:p,sync:h})},te=e=>{e.key===`Enter`&&(e.preventDefault(),ee())};return(0,A.jsxDEV)(Mn,{title:`Install package`,onClose:n,width:640,dirty:[s,l,d].some(e=>e.trim().length>0),confirmClose:{title:`Discard this package?`,body:`Nothing has been installed yet. Closing loses what you typed.`},footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs in `,a===`github`?`GitHub`:`Skills.sh`,` mode`]},void 0,!0,{fileName:R,lineNumber:96,columnNumber:11},this),(0,A.jsxDEV)(ns,{},void 0,!1,{fileName:R,lineNumber:97,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e||!b,onClick:ee,children:e?`Installing…`:`Install`},void 0,!1,{fileName:R,lineNumber:98,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:95,columnNumber:9},this),children:[(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Package source`,children:[`github`,`skills`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":a===e,className:`segmented__item${a===e?` is-active`:``}`,onClick:()=>o(e),children:e===`github`?`GitHub`:`Skills.sh`},e,!1,{fileName:R,lineNumber:111,columnNumber:11},this))},void 0,!1,{fileName:R,lineNumber:109,columnNumber:7},this),a===`github`?(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Repository`},void 0,!1,{fileName:R,lineNumber:127,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,"data-autofocus":!0,value:s,placeholder:`owner/repo`,onChange:e=>c(e.target.value),onKeyDown:te},void 0,!1,{fileName:R,lineNumber:128,columnNumber:13},this)]},void 0,!0,{fileName:R,lineNumber:126,columnNumber:11},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Ref `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`optional`},void 0,!1,{fileName:R,lineNumber:139,columnNumber:19},this)]},void 0,!0,{fileName:R,lineNumber:138,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:l,placeholder:`branch, tag or commit`,onChange:e=>u(e.target.value),onKeyDown:te},void 0,!1,{fileName:R,lineNumber:141,columnNumber:13},this)]},void 0,!0,{fileName:R,lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:125,columnNumber:9},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Skill`},void 0,!1,{fileName:R,lineNumber:153,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,"data-autofocus":!0,value:d,placeholder:`search, or paste owner/repo/skill`,spellCheck:!1,onChange:e=>f(e.target.value),onKeyDown:te},void 0,!1,{fileName:R,lineNumber:154,columnNumber:13},this)]},void 0,!0,{fileName:R,lineNumber:152,columnNumber:11},this),(0,A.jsxDEV)(ts,{loading:y.isLoading&&v.length>=2,unavailable:y.isError||y.data?.unavailable===!0,query:v,skills:y.data?.skills??[],selected:b?.kind===`skills`?`${b.owner}/${b.repo}/${b.slug??``}`:``,onPick:e=>{f(`${e.owner}/${e.repo}/${e.slug}`)}},void 0,!1,{fileName:R,lineNumber:165,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse all skills →`},void 0,!1,{fileName:R,lineNumber:174,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:151,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__install-options`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:p,onChange:e=>m(e.target.checked)},void 0,!1,{fileName:R,lineNumber:182,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:a===`skills`?`Activate now`:`Activate all items now`},void 0,!1,{fileName:R,lineNumber:183,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:181,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:h,onChange:e=>g(e.target.checked)},void 0,!1,{fileName:R,lineNumber:186,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:R,lineNumber:188,columnNumber:17},this),` after`]},void 0,!0,{fileName:R,lineNumber:187,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:185,columnNumber:9},this)]},void 0,!0,{fileName:R,lineNumber:180,columnNumber:7},this),x&&(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Installs as`},void 0,!1,{fileName:R,lineNumber:195,columnNumber:11},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:x},void 0,!1,{fileName:R,lineNumber:196,columnNumber:11},this)]},void 0,!0,{fileName:R,lineNumber:194,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Command`},void 0,!1,{fileName:R,lineNumber:201,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:b?Eo(b,{activate:p,sync:h}):`invariant install …`},void 0,!1,{fileName:R,lineNumber:202,columnNumber:9},this)]},void 0,!0,{fileName:R,lineNumber:200,columnNumber:7},this),t&&(0,A.jsxDEV)(`p`,{className:`packages__inline-error`,role:`alert`,children:t},void 0,!1,{fileName:R,lineNumber:208,columnNumber:9},this)]},void 0,!0,{fileName:R,lineNumber:85,columnNumber:5},this)}function ts({loading:e,unavailable:t,query:n,skills:r,selected:i,onPick:a}){return n.length<2?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`Type two characters to search skills.sh, or paste `,(0,A.jsxDEV)(`code`,{children:`owner/repo/skill`},void 0,!1,{fileName:R,lineNumber:240,columnNumber:59},this),`.`]},void 0,!0,{fileName:R,lineNumber:239,columnNumber:7},this):e?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:`Searching skills.sh…`},void 0,!1,{fileName:R,lineNumber:244,columnNumber:23},this):t?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`skills.sh is unreachable — paste `,(0,A.jsxDEV)(`code`,{children:`owner/repo/skill`},void 0,!1,{fileName:R,lineNumber:248,columnNumber:42},this),` to install anyway.`]},void 0,!0,{fileName:R,lineNumber:247,columnNumber:7},this):r.length===0?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`No skill matches “`,n,`”.`]},void 0,!0,{fileName:R,lineNumber:253,columnNumber:12},this):(0,A.jsxDEV)(`ul`,{className:`packages__picker`,children:r.slice(0,20).map(e=>{let t=`${e.owner}/${e.repo}/${e.slug}`;return(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,className:`packages__picker-item${i===t?` is-selected`:``}`,onClick:()=>a(e),children:[(0,A.jsxDEV)(`span`,{className:`packages__picker-name`,children:[e.name,e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:R,lineNumber:269,columnNumber:38},this)]},void 0,!0,{fileName:R,lineNumber:267,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`packages__picker-text`,children:[e.source,(0,A.jsxDEV)(`span`,{className:`skills__installs`,title:Zo(e.installs),children:[Yo(e.installs),` installs`]},void 0,!0,{fileName:R,lineNumber:273,columnNumber:17},this)]},void 0,!0,{fileName:R,lineNumber:271,columnNumber:15},this)]},void 0,!0,{fileName:R,lineNumber:262,columnNumber:13},this)},t,!1,{fileName:R,lineNumber:261,columnNumber:11},this)})},void 0,!1,{fileName:R,lineNumber:257,columnNumber:5},this)}function ns(){let e=On();return(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:e,children:`Cancel`},void 0,!1,{fileName:R,lineNumber:289,columnNumber:5},this)}var rs=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/UninstallConfirm.tsx`;function is({packageName:e,busy:t,onClose:n,onConfirm:r}){return(0,A.jsxDEV)(Mn,{title:`Uninstall ${e}?`,onClose:n,width:520,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs `,(0,A.jsxDEV)(`code`,{children:[`invariant uninstall `,e]},void 0,!0,{fileName:rs,lineNumber:19,columnNumber:18},this)]},void 0,!0,{fileName:rs,lineNumber:18,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:n,children:`Cancel`},void 0,!1,{fileName:rs,lineNumber:21,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:t,onClick:r,children:t?`Uninstalling…`:`Uninstall`},void 0,!1,{fileName:rs,lineNumber:24,columnNumber:11},this)]},void 0,!0,{fileName:rs,lineNumber:17,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`modal__text`,children:[`This removes the cached package, its entry in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:rs,lineNumber:31,columnNumber:55},this),`, and every item it added to your target folders.`]},void 0,!0,{fileName:rs,lineNumber:30,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`modal__text modal__text--muted`,children:`Reinstalling brings it all back. Files you wrote yourself are not touched.`},void 0,!1,{fileName:rs,lineNumber:34,columnNumber:7},this)]},void 0,!0,{fileName:rs,lineNumber:12,columnNumber:5},this)}var as=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/SyncPanel.tsx`;function os({busy:e,result:t,error:n,targets:r,onClose:i,onRun:a}){let[o,s]=(0,O.useState)(``),[c,l]=(0,O.useState)(!1),u=e=>a({target:o===``?void 0:o,check:e,force:c||void 0}),d=Kt.filter(e=>r.includes(e));return(0,A.jsxDEV)(Mn,{title:`Sync`,onClose:i,width:680,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:`Regenerates target folders from the active items`},void 0,!1,{fileName:as,lineNumber:40,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:e,onClick:()=>u(!0),children:`Check only`},void 0,!1,{fileName:as,lineNumber:41,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e,onClick:()=>u(!1),children:e?`Syncing…`:`Sync`},void 0,!1,{fileName:as,lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:as,lineNumber:39,columnNumber:9},this),children:[(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Target `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`all configured`},void 0,!1,{fileName:as,lineNumber:53,columnNumber:20},this)]},void 0,!0,{fileName:as,lineNumber:52,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`field__input`,value:o,disabled:e||d.length===0,onChange:e=>s(e.target.value),children:[(0,A.jsxDEV)(`option`,{value:``,children:`Every configured target`},void 0,!1,{fileName:as,lineNumber:61,columnNumber:13},this),d.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:as,lineNumber:63,columnNumber:15},this))]},void 0,!0,{fileName:as,lineNumber:55,columnNumber:11},this)]},void 0,!0,{fileName:as,lineNumber:51,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:c,disabled:e,onChange:e=>l(e.target.checked)},void 0,!1,{fileName:as,lineNumber:71,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Replace hand-edited files (`,(0,A.jsxDEV)(`code`,{children:`--force`},void 0,!1,{fileName:as,lineNumber:78,columnNumber:40},this),`)`]},void 0,!0,{fileName:as,lineNumber:77,columnNumber:11},this)]},void 0,!0,{fileName:as,lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:as,lineNumber:50,columnNumber:7},this),n?(0,A.jsxDEV)(`div`,{className:`packages__result packages__result--danger`,role:`alert`,children:[(0,A.jsxDEV)(`strong`,{children:n.message},void 0,!1,{fileName:as,lineNumber:85,columnNumber:11},this),(0,A.jsxDEV)(Lo,{output:n.transcript??``,commandLine:n.commandLine},void 0,!1,{fileName:as,lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:as,lineNumber:84,columnNumber:9},this):t?(0,A.jsxDEV)(`div`,{className:`packages__result packages__result--${cs(t)}`,role:`status`,children:[(0,A.jsxDEV)(`strong`,{children:ss(t)},void 0,!1,{fileName:as,lineNumber:90,columnNumber:11},this),t.checked&&t.drift&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid packages__result-action`,disabled:e,onClick:()=>u(!1),children:`Sync now`},void 0,!1,{fileName:as,lineNumber:92,columnNumber:13},this),(0,A.jsxDEV)(Lo,{output:t.run.output,commandLine:t.run.commandLine},void 0,!1,{fileName:as,lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:as,lineNumber:89,columnNumber:9},this):(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[(0,A.jsxDEV)(`strong`,{children:`Check only`},void 0,!1,{fileName:as,lineNumber:105,columnNumber:11},this),` reports drift without writing anything — the same thing CI runs.`]},void 0,!0,{fileName:as,lineNumber:104,columnNumber:9},this)]},void 0,!0,{fileName:as,lineNumber:34,columnNumber:5},this)}function ss(e){return e.checked?e.drift?`Out of sync`:`Everything is in sync`:e.ok?`Synced`:`Sync failed`}function cs(e){return e.checked?e.drift?`warning`:`success`:e.ok?`success`:`danger`}var ls=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackagesPage.tsx`;function us({installOpen:e,syncOpen:t,onInstallOpenChange:n,onSyncOpenChange:r,onBrowseSkills:i}){let a=Fn(),{data:o,isLoading:s}=zr(),[c,l]=(0,O.useState)(),[u,d]=(0,O.useState)(``),[f,p]=(0,O.useState)(lo),[m,h]=(0,O.useState)(!1),[g,_]=(0,O.useState)(),[v,y]=(0,O.useState)(!1),[b,x]=(0,O.useState)(),[ee,te]=(0,O.useState)(),[ne,re]=(0,O.useState)(),ie=Wr(),ae=Gr(),S=Kr(),oe=qr(),C=(0,O.useMemo)(()=>o?.packages??[],[o]),w=(0,O.useMemo)(()=>C.find(e=>e.name===c),[C,c]);(0,O.useEffect)(()=>{if(C.length===0){l(void 0);return}(!c||!C.some(e=>e.name===c))&&l(C[0].name)},[C,c]);let se=e=>{e!==c&&(l(e),p(lo),_(void 0))},T=S.isPending||ae.isPending||ie.isPending,ce=async()=>{if(!(!w||xo(f))){_(void 0);try{let e=await S.mutateAsync({packageName:w.name,add:f.add,remove:f.remove,sync:m||void 0});p(lo),a(`Applied ${e.runs.length} command${e.runs.length===1?``:`s`}`,`success`)}catch(e){_(ds(e))}}},le=e=>{w&&p(t=>go(t,w.items,e))},ue=async()=>{if(w)try{await ae.mutateAsync(w.name),y(!1),p(lo),a(`Uninstalled ${w.name}`,`success`)}catch(e){y(!1),_(ds(e))}},de=async e=>{re(void 0);try{let t=await ie.mutateAsync(e);n(!1),t.package?(l(t.package.name),p(lo),a(`Installed ${t.package.name}@${t.package.version}`,`success`)):a(`Installed`,`success`)}catch(e){re(ds(e).message)}},fe=async e=>{te(void 0),x(void 0);try{x(await oe.mutateAsync(e))}catch(e){te(ds(e))}},pe=e&&(0,A.jsxDEV)(es,{busy:ie.isPending,error:ne,onClose:()=>{n(!1),re(void 0)},onSubmit:e=>void de(e),onBrowseSkills:()=>{n(!1),i()}},void 0,!1,{fileName:ls,lineNumber:177,columnNumber:5},this),me=t&&(0,A.jsxDEV)(os,{busy:oe.isPending,result:b,error:ee,targets:o?.targets??[],onClose:()=>{r(!1),x(void 0),te(void 0)},onRun:e=>void fe(e)},void 0,!1,{fileName:ls,lineNumber:193,columnNumber:5},this);return s?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading packages…`},void 0,!1,{fileName:ls,lineNumber:207,columnNumber:25},this):o&&!o.initialized?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`This directory is not an Invariant project`},void 0,!1,{fileName:ls,lineNumber:212,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`Packages live in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:ls,lineNumber:214,columnNumber:28},this),`, and there is none in`,` `,(0,A.jsxDEV)(`code`,{children:o.directory},void 0,!1,{fileName:ls,lineNumber:215,columnNumber:11},this),` yet. Initializing picks which assistants to sync to, so it is a terminal step rather than a button here:`]},void 0,!0,{fileName:ls,lineNumber:213,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:`invariant init claude`},void 0,!1,{fileName:ls,lineNumber:218,columnNumber:9},this)]},void 0,!0,{fileName:ls,lineNumber:211,columnNumber:7},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Packages`},void 0,!1,{fileName:ls,lineNumber:227,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,title:o?.directory,children:o?.name??o?.directory},void 0,!1,{fileName:ls,lineNumber:228,columnNumber:11},this)]},void 0,!0,{fileName:ls,lineNumber:226,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:[(0,A.jsxDEV)(`span`,{className:`count`,title:`Installed packages`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:o?.totals.packages??0},void 0,!1,{fileName:ls,lineNumber:236,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Packages`},void 0,!1,{fileName:ls,lineNumber:237,columnNumber:15},this)]},void 0,!0,{fileName:ls,lineNumber:235,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--in-progress`,title:`Active items across every package`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:o?.totals.activeItems??0},void 0,!1,{fileName:ls,lineNumber:240,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:[`of `,o?.totals.totalItems??0,` items active`]},void 0,!0,{fileName:ls,lineNumber:241,columnNumber:15},this)]},void 0,!0,{fileName:ls,lineNumber:239,columnNumber:13},this)]},void 0,!0,{fileName:ls,lineNumber:234,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse skills`},void 0,!1,{fileName:ls,lineNumber:245,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>r(!0),children:`Sync`},void 0,!1,{fileName:ls,lineNumber:248,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>n(!0),children:`Install package`},void 0,!1,{fileName:ls,lineNumber:251,columnNumber:11},this)]},void 0,!0,{fileName:ls,lineNumber:233,columnNumber:9},this)]},void 0,!0,{fileName:ls,lineNumber:225,columnNumber:7},this),C.length===0?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No packages yet`},void 0,!1,{fileName:ls,lineNumber:259,columnNumber:11},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:`A package bundles agents, skills, commands, rules, contexts and instructions that this project can activate. Install one from a GitHub repository, or browse the skills.sh catalogue, then choose which of its items your assistants actually see.`},void 0,!1,{fileName:ls,lineNumber:260,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`empty__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>n(!0),children:`Install package`},void 0,!1,{fileName:ls,lineNumber:266,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse skills`},void 0,!1,{fileName:ls,lineNumber:269,columnNumber:13},this)]},void 0,!0,{fileName:ls,lineNumber:265,columnNumber:11},this)]},void 0,!0,{fileName:ls,lineNumber:258,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`packages`,children:[(0,A.jsxDEV)(so,{packages:C,selected:c,filter:u,onFilter:d,onSelect:se,dirty:new Set(c&&!xo(f)?[c]:[])},void 0,!1,{fileName:ls,lineNumber:276,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`packages__pane`,children:w?(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(zo,{pkg:w,pending:f,busy:T,failure:g,onToggleItem:(e,t)=>p(n=>mo(n,e,t)),onToggleType:(e,t)=>p(n=>ho(n,w.items,e,t)),onStageAll:le,onUninstall:()=>y(!0),onInstallMissing:()=>void de({source:Ao(w)}),onDismissFailure:()=>_(void 0)},void 0,!1,{fileName:ls,lineNumber:288,columnNumber:17},this),!xo(f)&&(0,A.jsxDEV)(Ho,{packageName:w.name,pending:f,sync:m,busy:S.isPending,running:S.isPending?To(w.name,f,{sync:m})[0]:void 0,onSyncChange:h,onDiscard:()=>p(lo),onApply:()=>void ce()},void 0,!1,{fileName:ls,lineNumber:306,columnNumber:19},this)]},void 0,!0,{fileName:ls,lineNumber:287,columnNumber:15},this):(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Select a package.`},void 0,!1,{fileName:ls,lineNumber:323,columnNumber:15},this)},void 0,!1,{fileName:ls,lineNumber:285,columnNumber:11},this)]},void 0,!0,{fileName:ls,lineNumber:275,columnNumber:9},this),v&&w&&(0,A.jsxDEV)(is,{packageName:w.name,busy:ae.isPending,onClose:()=>y(!1),onConfirm:()=>void ue()},void 0,!1,{fileName:ls,lineNumber:330,columnNumber:9},this),pe,me]},void 0,!0,{fileName:ls,lineNumber:224,columnNumber:5},this)}function ds(e){return e instanceof Bn?{message:e.message,commandLine:e.commandLine,transcript:e.transcript}:{message:e instanceof Error?e.message:String(e)}}var fs=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/Sparkline.tsx`;function ps({values:e,title:t}){if(e.length<2)return null;let n=Math.max(...e),r=Math.min(...e),i=n-r,a=e.map((t,n)=>{let a=n/(e.length-1)*46+1,o=i===0?7:13-(t-r)/i*12;return`${a.toFixed(1)},${o.toFixed(1)}`});return(0,A.jsxDEV)(`svg`,{className:`skills__sparkline`,viewBox:`0 0 48 14`,width:48,height:14,"aria-hidden":`true`,focusable:`false`,children:[t&&(0,A.jsxDEV)(`title`,{children:t},void 0,!1,{fileName:fs,lineNumber:40,columnNumber:17},this),(0,A.jsxDEV)(`polyline`,{points:a.join(` `),fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:fs,lineNumber:41,columnNumber:7},this)]},void 0,!0,{fileName:fs,lineNumber:32,columnNumber:5},this)}var ms=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillList.tsx`;function hs(e){return`${e.owner}/${e.repo}/${e.slug}`}function gs({skills:e,selected:t,installedSources:n,onSelect:r}){return(0,A.jsxDEV)(`ul`,{className:`skills__rows`,role:`listbox`,"aria-label":`Skills`,children:e.map(e=>{let i=hs(e),a=i===t;return(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,role:`option`,"aria-selected":a,className:`skills__row${a?` is-selected`:``}`,onClick:()=>r(e),children:[(0,A.jsxDEV)(`span`,{className:`skills__row-body`,children:[(0,A.jsxDEV)(`span`,{className:`skills__row-name`,children:[(0,A.jsxDEV)(`span`,{className:`skills__row-label`,children:e.name},void 0,!1,{fileName:ms,lineNumber:43,columnNumber:19},this),e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:ms,lineNumber:44,columnNumber:40},this),n.has(e.source)&&(0,A.jsxDEV)(`span`,{className:`chip`,children:`installed`},void 0,!1,{fileName:ms,lineNumber:45,columnNumber:58},this)]},void 0,!0,{fileName:ms,lineNumber:42,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`skills__row-source`,children:e.source},void 0,!1,{fileName:ms,lineNumber:47,columnNumber:17},this)]},void 0,!0,{fileName:ms,lineNumber:41,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`skills__row-meta`,children:[(0,A.jsxDEV)(`span`,{className:`skills__installs`,title:Zo(e.installs),children:Yo(e.installs)},void 0,!1,{fileName:ms,lineNumber:51,columnNumber:17},this),e.installsYesterday!==void 0&&(0,A.jsxDEV)(`span`,{className:`skills__delta`,title:`Installs yesterday`,children:[`+`,Yo(e.installsYesterday),`/d`]},void 0,!0,{fileName:ms,lineNumber:55,columnNumber:19},this),(0,A.jsxDEV)(ps,{values:e.weeklyInstalls,title:e.weeklyInstalls.join(` · `)},void 0,!1,{fileName:ms,lineNumber:59,columnNumber:17},this)]},void 0,!0,{fileName:ms,lineNumber:50,columnNumber:15},this)]},void 0,!0,{fileName:ms,lineNumber:34,columnNumber:13},this)},i,!1,{fileName:ms,lineNumber:33,columnNumber:11},this)})},void 0,!1,{fileName:ms,lineNumber:27,columnNumber:5},this)}var z=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillPreview.tsx`;function _s({listing:e,detail:t,loading:n,failed:r,installed:i,busy:a,onInstall:o}){let[s,c]=(0,O.useState)(!0),[l,u]=(0,O.useState)(!1),d=qo(e.owner,e.repo,e.slug),f=Jo(e.owner,e.repo,e.slug),p=Eo({kind:`skills`,owner:e.owner,repo:e.repo,slug:e.slug},{activate:s,sync:l});return(0,A.jsxDEV)(`section`,{className:`skills__preview`,children:[(0,A.jsxDEV)(`header`,{className:`skills__preview-head`,children:[(0,A.jsxDEV)(`h2`,{className:`skills__preview-title`,children:[e.name,e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:z,lineNumber:55,columnNumber:34},this),i&&(0,A.jsxDEV)(`span`,{className:`chip`,children:`installed`},void 0,!1,{fileName:z,lineNumber:56,columnNumber:25},this)]},void 0,!0,{fileName:z,lineNumber:53,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__preview-source`,children:e.source},void 0,!1,{fileName:z,lineNumber:58,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__preview-links`,children:[(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:t?.catalogUrl??`https://www.skills.sh/${e.source}/${e.slug}`,target:`_blank`,rel:`noreferrer`,children:`skills.sh ↗`},void 0,!1,{fileName:z,lineNumber:61,columnNumber:11},this),(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:t?.repository.url??`https://github.com/${e.source}`,target:`_blank`,rel:`noreferrer`,children:`GitHub ↗`},void 0,!1,{fileName:z,lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:52,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`skills__stats`,children:[(0,A.jsxDEV)(vs,{label:`Installs`,value:Yo(e.installs),title:Zo(e.installs)},void 0,!1,{fileName:z,lineNumber:81,columnNumber:9},this),(0,A.jsxDEV)(vs,{label:`This week`,value:ys(e)},void 0,!1,{fileName:z,lineNumber:82,columnNumber:9},this),(0,A.jsxDEV)(vs,{label:`Stars`,value:t?.repository.stars===void 0?`—`:Yo(t.repository.stars)},void 0,!1,{fileName:z,lineNumber:83,columnNumber:9},this),(0,A.jsxDEV)(vs,{label:`License`,value:t?.repository.license??`—`},void 0,!1,{fileName:z,lineNumber:84,columnNumber:9},this),(0,A.jsxDEV)(vs,{label:`Pushed`,value:$o(t?.repository.pushedAt)??`—`},void 0,!1,{fileName:z,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:80,columnNumber:7},this),r?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`skills.sh could not describe this skill. Installing still works — the files come from GitHub.`},void 0,!1,{fileName:z,lineNumber:89,columnNumber:9},this):n?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`Loading the skill…`},void 0,!1,{fileName:z,lineNumber:94,columnNumber:9},this):(0,A.jsxDEV)(A.Fragment,{children:[t?.description&&(0,A.jsxDEV)(`p`,{className:`skills__description`,children:t.description},void 0,!1,{fileName:z,lineNumber:97,columnNumber:35},this),(0,A.jsxDEV)(`div`,{className:`skills__files`,children:[(0,A.jsxDEV)(`p`,{className:`field__label`,children:[`Files (`,t?.files.length??0,`)`]},void 0,!0,{fileName:z,lineNumber:100,columnNumber:13},this),(0,A.jsxDEV)(`ul`,{className:`skills__file-list`,children:t?.files.map(e=>(0,A.jsxDEV)(`li`,{children:[(0,A.jsxDEV)(`code`,{children:e.path},void 0,!1,{fileName:z,lineNumber:104,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`skills__file-size`,children:Qo(e.bytes)},void 0,!1,{fileName:z,lineNumber:105,columnNumber:19},this)]},e.path,!0,{fileName:z,lineNumber:103,columnNumber:17},this))},void 0,!1,{fileName:z,lineNumber:101,columnNumber:13},this)]},void 0,!0,{fileName:z,lineNumber:99,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:96,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__install-as`,children:[(0,A.jsxDEV)(`p`,{className:`field__label`,children:`Installs as`},void 0,!1,{fileName:z,lineNumber:114,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:d},void 0,!1,{fileName:z,lineNumber:115,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:f},void 0,!1,{fileName:z,lineNumber:116,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__note`,children:[`The whole `,(0,A.jsxDEV)(`code`,{children:e.source},void 0,!1,{fileName:z,lineNumber:118,columnNumber:21},this),` repository is cached as one package`,t&&(0,A.jsxDEV)(A.Fragment,{children:[` (`,(0,A.jsxDEV)(`code`,{children:t.install.packageName},void 0,!1,{fileName:z,lineNumber:119,columnNumber:26},this),`)`]},void 0,!0,{fileName:z,lineNumber:119,columnNumber:22},this),`; only this skill is activated. The name carries its package, which is why it is not just`,` `,(0,A.jsxDEV)(`code`,{children:e.slug},void 0,!1,{fileName:z,lineNumber:121,columnNumber:11},this),`.`]},void 0,!0,{fileName:z,lineNumber:117,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:113,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`skills__note`,children:[`Installing copies files into `,(0,A.jsxDEV)(`code`,{children:`.invariant/cache`},void 0,!1,{fileName:z,lineNumber:126,columnNumber:38},this),`. Nothing runs. Security audits live on`,` `,(0,A.jsxDEV)(`a`,{href:t?.catalogUrl??`https://www.skills.sh`,target:`_blank`,rel:`noreferrer`,children:`skills.sh ↗`},void 0,!1,{fileName:z,lineNumber:128,columnNumber:9},this),`.`]},void 0,!0,{fileName:z,lineNumber:125,columnNumber:7},this),t?.skillMarkdown&&(0,A.jsxDEV)(`details`,{className:`skills__skill-md`,children:[(0,A.jsxDEV)(`summary`,{children:`SKILL.md`},void 0,!1,{fileName:z,lineNumber:136,columnNumber:11},this),(0,A.jsxDEV)(Mi,{source:t.skillMarkdown,compact:!0},void 0,!1,{fileName:z,lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:135,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__actions`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked)},void 0,!1,{fileName:z,lineNumber:143,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:`Activate now`},void 0,!1,{fileName:z,lineNumber:144,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:142,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:l,onChange:e=>u(e.target.checked)},void 0,!1,{fileName:z,lineNumber:147,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:z,lineNumber:149,columnNumber:17},this),` after`]},void 0,!0,{fileName:z,lineNumber:148,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:146,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:141,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Command`},void 0,!1,{fileName:z,lineNumber:155,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:p},void 0,!1,{fileName:z,lineNumber:156,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:154,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:a,onClick:()=>o({activate:s,sync:l}),children:a?`Installing…`:i?`Reinstall skill`:`Install skill`},void 0,!1,{fileName:z,lineNumber:159,columnNumber:7},this)]},void 0,!0,{fileName:z,lineNumber:51,columnNumber:5},this)}function vs({label:e,value:t,title:n}){return(0,A.jsxDEV)(`div`,{className:`skills__stat`,children:[(0,A.jsxDEV)(`dt`,{className:`skills__stat-label`,children:e},void 0,!1,{fileName:z,lineNumber:174,columnNumber:7},this),(0,A.jsxDEV)(`dd`,{className:`skills__stat-value`,title:n,children:t},void 0,!1,{fileName:z,lineNumber:175,columnNumber:7},this)]},void 0,!0,{fileName:z,lineNumber:173,columnNumber:5},this)}function ys(e){let t=e.weeklyInstalls[e.weeklyInstalls.length-1];return t===void 0?`—`:Yo(t)}var bs=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillsBrowserPage.tsx`,xs=[{value:`all-time`,label:`Popular`},{value:`trending`,label:`Trending`},{value:`hot`,label:`Hot`}];function Ss({onBack:e}){let t=Fn(),[n,r]=(0,O.useState)(()=>Cs()),[i,a]=(0,O.useState)(0),[o,s]=(0,O.useState)(``),[c,l]=(0,O.useState)(``),[u,d]=(0,O.useState)(),[f,p]=(0,O.useState)([]),m=(0,O.useRef)(null),h=Br(n,i),g=Vr(c),_=zr(),v=Wr(),y=Hr(u?{owner:u.owner,repo:u.repo,slug:u.slug}:void 0);(0,O.useEffect)(()=>{let e=setTimeout(()=>l(o.trim()),200);return()=>clearTimeout(e)},[o]),(0,O.useEffect)(()=>{localStorage.setItem(`invariant.skills.view`,n),a(0),p([])},[n]),(0,O.useEffect)(()=>{h.data&&p(e=>h.data.page===0?h.data.skills:[...e,...h.data.skills])},[h.data]);let b=c.length>=2,x=b?g.data?.skills??[]:f,ee=(0,O.useMemo)(()=>{let e=new Set;for(let t of _.data?.packages??[]){let n=t.sourceUrl?.match(/^(?:skills|github):([^/#]+)\/([^/#]+)/);n&&e.add(`${n[1]}/${n[2]}`)}return e},[_.data]);(0,O.useEffect)(()=>{let t=t=>{let r=t.target instanceof HTMLElement&&[`INPUT`,`TEXTAREA`].includes(t.target.tagName);if(t.key===`/`&&!r){t.preventDefault(),m.current?.focus();return}r||(t.key===`ArrowDown`||t.key===`j`?n(1):t.key===`ArrowUp`||t.key===`k`?n(-1):t.key===`Escape`&&e())},n=e=>{if(x.length===0)return;let t=u?x.findIndex(e=>hs(e)===hs(u)):-1,n=Math.min(Math.max(t+e,0),x.length-1);d(x[n])};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[x,u,e]);let te=b?g.isError||g.data?.unavailable===!0:h.isError||h.data?.unavailable===!0,ne=async e=>{if(u)try{let n=await v.mutateAsync({source:{kind:`skills`,owner:u.owner,repo:u.repo,slug:u.slug},activate:e.activate,sync:e.sync});t(`Installed ${n.package?.name??u.name}`,`success`)}catch(e){t(e instanceof Bn?e.message:String(e),`danger`)}};return(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Browse skills`},void 0,!1,{fileName:bs,lineNumber:144,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,children:[`skills.sh`,h.data&&h.data.total>0&&(0,A.jsxDEV)(A.Fragment,{children:[` · `,new Intl.NumberFormat(`en-US`).format(h.data.total),` indexed`]},void 0,!0,{fileName:bs,lineNumber:148,columnNumber:15},this)]},void 0,!0,{fileName:bs,lineNumber:145,columnNumber:11},this)]},void 0,!0,{fileName:bs,lineNumber:143,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:e,children:`Back to packages`},void 0,!1,{fileName:bs,lineNumber:154,columnNumber:11},this)},void 0,!1,{fileName:bs,lineNumber:153,columnNumber:9},this)]},void 0,!0,{fileName:bs,lineNumber:142,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`skills`,children:[(0,A.jsxDEV)(`div`,{className:`skills__list`,children:[(0,A.jsxDEV)(`div`,{className:`skills__filters`,children:[(0,A.jsxDEV)(`input`,{ref:m,className:`filter__input`,value:o,placeholder:`Search skills… ( / )`,"aria-label":`Search skills`,spellCheck:!1,onChange:e=>s(e.target.value)},void 0,!1,{fileName:bs,lineNumber:163,columnNumber:13},this),(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Ranking`,children:xs.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":n===e.value,className:`segmented__item${n===e.value?` is-active`:``}`,disabled:b,onClick:()=>r(e.value),children:e.label},e.value,!1,{fileName:bs,lineNumber:175,columnNumber:17},this))},void 0,!1,{fileName:bs,lineNumber:173,columnNumber:13},this)]},void 0,!0,{fileName:bs,lineNumber:162,columnNumber:11},this),te?(0,A.jsxDEV)(`div`,{className:`skills__empty`,children:[(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`skills.sh is unreachable. Installing by identifier still works:`},void 0,!1,{fileName:bs,lineNumber:192,columnNumber:15},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:`invariant install skills:owner/repo/skill`},void 0,!1,{fileName:bs,lineNumber:195,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>b?g.refetch():h.refetch(),children:`Retry`},void 0,!1,{fileName:bs,lineNumber:198,columnNumber:15},this)]},void 0,!0,{fileName:bs,lineNumber:191,columnNumber:13},this):x.length===0?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:h.isLoading||g.isLoading?`Loading the catalogue…`:`No skill matches “${c}”.`},void 0,!1,{fileName:bs,lineNumber:207,columnNumber:13},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(gs,{skills:x,selected:u?hs(u):void 0,installedSources:ee,onSelect:d},void 0,!1,{fileName:bs,lineNumber:214,columnNumber:15},this),!b&&h.data?.hasMore&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle skills__more`,disabled:h.isFetching,onClick:()=>a(e=>e+1),children:h.isFetching?`Loading…`:`Load more`},void 0,!1,{fileName:bs,lineNumber:222,columnNumber:17},this)]},void 0,!0,{fileName:bs,lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:bs,lineNumber:161,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__pane`,children:u?(0,A.jsxDEV)(_s,{listing:u,detail:y.data,loading:y.isLoading,failed:y.isError,installed:ee.has(u.source),busy:v.isPending,onInstall:e=>void ne(e)},void 0,!1,{fileName:bs,lineNumber:237,columnNumber:13},this):(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Select a skill.`},void 0,!1,{fileName:bs,lineNumber:247,columnNumber:13},this)},void 0,!1,{fileName:bs,lineNumber:235,columnNumber:9},this)]},void 0,!0,{fileName:bs,lineNumber:160,columnNumber:7},this)]},void 0,!0,{fileName:bs,lineNumber:141,columnNumber:5},this)}function Cs(){let e=localStorage.getItem(`invariant.skills.view`);return e===`trending`||e===`hot`?e:`all-time`}var ws={project:`project`,machine:`this machine`,browser:`this browser`},Ts={project:`Written into this repository — everyone who clones it gets this.`,machine:`Held by the daemon on this machine, for every project it serves.`,browser:`Remembered by this browser only. Never leaves it.`},Es=[`project`,`machine`,`browser`],Ds=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/SectionRow.tsx`,Os={configured:`configured`,"not-configured":`not set up`,attention:`needs attention`,"read-only":``};function ks({section:e,summary:t,open:n,dirty:r,focused:i,linked:a,onToggle:o,onFocus:s,children:c}){let l=(0,O.useRef)(null),u=`settings-${e.id}-header`,d=`settings-${e.id}-body`;(0,O.useEffect)(()=>{a&&l.current?.scrollIntoView?.({block:`start`,behavior:`smooth`})},[a]);let f=r?`attention`:t.state;return(0,A.jsxDEV)(`section`,{ref:l,id:`settings-${e.id}`,className:[`config-row`,n?`is-open`:``,i?`is-focused`:``,a?`is-linked`:``,`config-row--${f}`].filter(Boolean).join(` `),"aria-labelledby":u,children:[(0,A.jsxDEV)(`button`,{type:`button`,id:u,className:`config-row__header`,"aria-expanded":n,"aria-controls":d,onClick:()=>{s(),o()},children:[(0,A.jsxDEV)(`span`,{className:`config-row__icon`,"aria-hidden":`true`,children:e.icon},void 0,!1,{fileName:Ds,lineNumber:87,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`config-row__identity`,children:[(0,A.jsxDEV)(`span`,{className:`config-row__title`,children:[e.title,r&&(0,A.jsxDEV)(`span`,{className:`config-row__dirty`,children:`unsaved`},void 0,!1,{fileName:Ds,lineNumber:94,columnNumber:23},this)]},void 0,!0,{fileName:Ds,lineNumber:92,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`config-row__summary${t.loading?` is-loading`:``}`,title:t.headline,children:t.headline},void 0,!1,{fileName:Ds,lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:Ds,lineNumber:91,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`config-row__meta`,children:[Os[f]&&(0,A.jsxDEV)(`span`,{className:`config-state config-state--${f}`,children:[(0,A.jsxDEV)(`span`,{className:`config-state__dot`,"aria-hidden":`true`},void 0,!1,{fileName:Ds,lineNumber:104,columnNumber:15},this),Os[f]]},void 0,!0,{fileName:Ds,lineNumber:103,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`chip config-row__scope`,title:Ts[e.scope],children:ws[e.scope]},void 0,!1,{fileName:Ds,lineNumber:108,columnNumber:11},this)]},void 0,!0,{fileName:Ds,lineNumber:101,columnNumber:9},this),(0,A.jsxDEV)(`svg`,{className:`config-row__chevron`,viewBox:`0 0 12 12`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M4.5 2.5 8 6l-3.5 3.5`},void 0,!1,{fileName:Ds,lineNumber:114,columnNumber:11},this)},void 0,!1,{fileName:Ds,lineNumber:113,columnNumber:9},this)]},void 0,!0,{fileName:Ds,lineNumber:76,columnNumber:7},this),t.alert&&(0,A.jsxDEV)(`p`,{className:`config-row__alert`,children:t.alert},void 0,!1,{fileName:Ds,lineNumber:120,columnNumber:25},this),(0,A.jsxDEV)(`div`,{className:`config-row__panel`,id:d,role:`region`,"aria-labelledby":u,inert:!n,children:(0,A.jsxDEV)(`div`,{className:`config-row__panel-inner`,children:c},void 0,!1,{fileName:Ds,lineNumber:132,columnNumber:9},this)},void 0,!1,{fileName:Ds,lineNumber:125,columnNumber:7},this)]},void 0,!0,{fileName:Ds,lineNumber:62,columnNumber:5},this)}var As=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/SectionSpine.tsx`;function js({sections:e,summaries:t,dirty:n,activeId:r,onSelect:i}){let a=Es.map(t=>({scope:t,sections:e.filter(e=>e.scope===t)})).filter(e=>e.sections.length>0);return(0,A.jsxDEV)(`nav`,{className:`config-spine`,"aria-label":`Configuration sections`,children:a.map(e=>(0,A.jsxDEV)(`div`,{className:`config-spine__group`,children:[(0,A.jsxDEV)(`h2`,{className:`config-spine__scope`,children:Ms(e.scope)},void 0,!1,{fileName:As,lineNumber:36,columnNumber:11},this),(0,A.jsxDEV)(`ul`,{className:`config-spine__list`,children:e.sections.map(e=>{let a=t[e.id],o=n.has(e.id)?`attention`:a?.state??`read-only`;return(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,className:`config-spine__item${r===e.id?` is-active`:``}`,"aria-current":r===e.id?`true`:void 0,onClick:()=>i(e.id),children:[(0,A.jsxDEV)(`span`,{className:`config-state__dot config-state__dot--${o}`,"aria-hidden":`true`},void 0,!1,{fileName:As,lineNumber:49,columnNumber:21},this),(0,A.jsxDEV)(`span`,{className:`config-spine__label`,children:e.title},void 0,!1,{fileName:As,lineNumber:50,columnNumber:21},this)]},void 0,!0,{fileName:As,lineNumber:43,columnNumber:19},this)},e.id,!1,{fileName:As,lineNumber:42,columnNumber:17},this)})},void 0,!1,{fileName:As,lineNumber:37,columnNumber:11},this)]},e.scope,!0,{fileName:As,lineNumber:35,columnNumber:9},this))},void 0,!1,{fileName:As,lineNumber:33,columnNumber:5},this)}function Ms(e){return ws[e]===`project`?`this project`:ws[e]}var Ns={state:`read-only`,headline:`…`,loading:!0};function Ps(e){return e?{state:`read-only`,headline:`${e.name} · ${nn(e.directory)}`,searchText:`${e.directory} ${e.sessionsDirectory}`}:Ns}function Fs(e){if(!e)return Ns;let t=e.options.filter(e=>e.enabled),n=`${t.map(e=>e.displayName).join(`, `)||`none`} · ${t.length} of ${e.options.length}`,r=e.options.map(e=>`${e.name} ${e.displayName}`).join(` `),i=t.filter(e=>!e.present);return i.length>0?{state:`attention`,headline:n,alert:`${i.map(e=>e.displayName).join(`, `)} ${i.length===1?`is`:`are`} configured but nothing has been written for ${i.length===1?`it`:`them`} yet. Sync to create the folders.`,searchText:r}:{state:`configured`,headline:n,searchText:r}}function Is(e){if(!e)return Ns;let t=e.projectPath??e.remote?.projectPath,n=e.tokenHint?`····${e.tokenHint}`:void 0,r=e.source===`environment`?`GITLAB_TOKEN from the environment`:n,i=e.configured?[t,r].filter(Boolean).join(` · `):`no token — publishing a review will ask for one`,a=`gitlab ${e.host??``} ${t??``} ${e.remote?.url??``}`;return e.mismatch?{state:`attention`,headline:i,alert:`Saved for ${e.mismatch.storedRemote}, but this project's origin is now ${e.mismatch.currentRemote}. Publishing is refused until you save again.`,searchText:a}:e.configured&&!e.gitignored?{state:`attention`,headline:i,alert:`${e.storedAt} is not git-ignored — check before you commit.`,searchText:a}:{state:e.configured?`configured`:`not-configured`,headline:i,searchText:a}}function Ls(e){if(!e)return Ns;let t=`linear issue spec sync template ${e.workspace??``} ${e.teamKey??``}`;if(!e.configured)return{state:e.enabled?`attention`:`not-configured`,headline:e.enabled?`declared, but this machine has no API key`:`not connected — sessions cannot link to an issue`,alert:e.enabled?`This project expects a Linear key and this machine does not have one. Paste one to link sessions to issues.`:void 0,searchText:t};let n=e.issueTemplateIsDefault?`default template`:`custom template`,r=e.apiKeyHint?`····${e.apiKeyHint}`:`key from the environment`,i=[e.workspace,e.teamKey,n,r].filter(Boolean).join(` · `);return!e.gitignored&&e.source===`stored`?{state:`attention`,headline:i,alert:`${e.storedAt} is not git-ignored — check before you commit.`,searchText:t}:{state:`configured`,headline:i,searchText:t}}function Rs(e){return{state:`configured`,headline:`${e.reviewCta===`publish`?`publish first`:`plan changes first`} · skills ${e.skillsView}`,searchText:`preferences remembered browser local storage draft reset`}}function zs(e){return e?{state:`read-only`,headline:`:${e.port} · pid ${e.pid} · v${e.version} · ${e.projectCount} project${e.projectCount===1?``:`s`}`,searchText:`daemon server port pid version registry ${e.registryPath} stop shutdown`}:Ns}var Bs=`invariant.skills.view`,Vs=[`popular`,`trending`,`hot`];function Hs(){try{let e=window.localStorage.getItem(Bs);return Vs.includes(e)?e:`popular`}catch{return`popular`}}function Us(e){try{window.localStorage.setItem(Bs,e)}catch{}}function Ws(e){return{reviewCta:Gs(e),skillsView:Hs(),hasSessionDraft:!Ea(Da(e))}}function Gs(e){try{return window.localStorage.getItem(Ji(e))===`publish`?`publish`:qi}catch{return qi}}function Ks(e){return[Bs,Ji(e),Ta(e)]}function qs(e){let t=[];for(let n of Ks(e))try{if(window.localStorage.getItem(n)===null)continue;window.localStorage.removeItem(n),t.push(n)}catch{}return t}var B=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/sections/ProjectSection.tsx`;function Js({onDirtyChange:e}){let t=Fn(),{data:n}=$n(),{projectId:r,card:i}=Yn(),a=ti(),{data:o}=Zr({poll:!1}),s=o?.groups??[],[c,l]=(0,O.useState)(``);(0,O.useEffect)(()=>{i&&l(e=>e||i.name)},[i]);let u=i!==void 0&&c.trim().length>0&&c.trim()!==i.name;return(0,O.useEffect)(()=>e(u),[u,e]),!n||!i?(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:B,lineNumber:37,columnNumber:33},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`p`,{className:`config-lede`,children:`This UI is pinned to one directory per project, and every project setting below is written inside it. Opening another project reads another set of files.`},void 0,!1,{fileName:B,lineNumber:41,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`config-facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Directory`},void 0,!1,{fileName:B,lineNumber:48,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`button`,{type:`button`,className:`config-copy`,title:`Copy`,onClick:async()=>t(await tn(n.directory)?`Path copied`:`Could not copy`,`success`),children:(0,A.jsxDEV)(`code`,{children:n.directory},void 0,!1,{fileName:B,lineNumber:58,columnNumber:15},this)},void 0,!1,{fileName:B,lineNumber:50,columnNumber:13},this)},void 0,!1,{fileName:B,lineNumber:49,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:47,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Name in the manifest`},void 0,!1,{fileName:B,lineNumber:63,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:n.name},void 0,!1,{fileName:B,lineNumber:64,columnNumber:15},this)},void 0,!1,{fileName:B,lineNumber:64,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:62,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Sessions`},void 0,!1,{fileName:B,lineNumber:67,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:n.sessionsDirectory},void 0,!1,{fileName:B,lineNumber:68,columnNumber:15},this)},void 0,!1,{fileName:B,lineNumber:68,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:66,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Packages`},void 0,!1,{fileName:B,lineNumber:71,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:[n.packageCount,` installed · `,n.activeItemCount,` item`,n.activeItemCount===1?``:`s`,` activated`]},void 0,!0,{fileName:B,lineNumber:72,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:70,columnNumber:9},this),i.git?.isRepository&&(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Branch`},void 0,!1,{fileName:B,lineNumber:79,columnNumber:13},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:i.git.branch??`detached`},void 0,!1,{fileName:B,lineNumber:80,columnNumber:17},this)},void 0,!1,{fileName:B,lineNumber:80,columnNumber:13},this)]},void 0,!0,{fileName:B,lineNumber:78,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:46,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`config-form`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Name on this machine`,(0,A.jsxDEV)(`span`,{className:`field__badge`,children:`hub card`},void 0,!1,{fileName:B,lineNumber:89,columnNumber:13},this)]},void 0,!0,{fileName:B,lineNumber:87,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:c,placeholder:n.name,onChange:e=>l(e.target.value)},void 0,!1,{fileName:B,lineNumber:91,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`What the hub and the rail call this project. It is stored in the machine's project registry, not in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:B,lineNumber:99,columnNumber:30},this),`, so it never reaches your colleagues.`,i.displayName!==void 0&&(0,A.jsxDEV)(A.Fragment,{children:[` `,(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a.mutate({projectId:r,displayName:null},{onSuccess:()=>{l(n.name),t(`Back to the manifest name`,`success`)}}),children:[`Reset to “`,n.name,`”`]},void 0,!0,{fileName:B,lineNumber:103,columnNumber:17},this)]},void 0,!0,{fileName:B,lineNumber:101,columnNumber:15},this)]},void 0,!0,{fileName:B,lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:86,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Group`},void 0,!1,{fileName:B,lineNumber:126,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`field__input`,value:i.groupId??``,onChange:e=>a.mutate({projectId:r,groupId:e.target.value===``?null:e.target.value},{onSuccess:()=>t(`Group updated`,`success`),onError:e=>t(e instanceof Error?e.message:`That did not work.`,`danger`)}),children:[(0,A.jsxDEV)(`option`,{value:``,children:`Ungrouped`},void 0,!1,{fileName:B,lineNumber:141,columnNumber:13},this),s.map(e=>(0,A.jsxDEV)(`option`,{value:e.id,children:e.name},e.id,!1,{fileName:B,lineNumber:143,columnNumber:15},this))]},void 0,!0,{fileName:B,lineNumber:127,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:s.length===0?`No groups yet — make one from the projects screen.`:`Which section this project sits under on the projects screen.`},void 0,!1,{fileName:B,lineNumber:148,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:125,columnNumber:9},this),(0,A.jsxDEV)(`fieldset`,{className:`config-swatches`,children:[(0,A.jsxDEV)(`legend`,{className:`field__label`,children:`Colour`},void 0,!1,{fileName:B,lineNumber:156,columnNumber:11},this),qt.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,className:`config-swatch config-swatch--${e}${i.color===e?` is-active`:``}`,"aria-label":e,"aria-pressed":i.color===e,title:e,onClick:()=>a.mutate({projectId:r,color:e})},e,!1,{fileName:B,lineNumber:158,columnNumber:13},this))]},void 0,!0,{fileName:B,lineNumber:155,columnNumber:9},this)]},void 0,!0,{fileName:B,lineNumber:85,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`config-actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:!u||a.isPending,onClick:()=>a.mutate({projectId:r,displayName:c.trim()},{onSuccess:()=>t(`Project renamed`,`success`),onError:e=>t(e instanceof Error?e.message:`That did not work.`,`danger`)}),children:a.isPending?`Saving…`:`Save`},void 0,!1,{fileName:B,lineNumber:172,columnNumber:9},this)},void 0,!1,{fileName:B,lineNumber:171,columnNumber:7},this)]},void 0,!0,{fileName:B,lineNumber:40,columnNumber:5},this)}function Ys(e){return{wanted:e.options.filter(e=>e.enabled).map(e=>e.name)}}function Xs(e,t,n,r){let i=new Set(e.wanted);return r?i.add(n):i.delete(n),{wanted:t.options.map(e=>e.name).filter(e=>i.has(e))}}function Zs(e,t){return e.wanted.includes(t)}function Qs(e,t){let n=t.options.filter(e=>e.enabled).map(e=>e.name);return{add:e.wanted.filter(e=>!n.includes(e)),remove:n.filter(t=>!e.wanted.includes(t))}}function $s(e,t){let n=Qs(e,t);return n.add.length>0||n.remove.length>0}function ec(e){if(e.wanted.length===0)return`A project needs at least one target — everything invariant writes is written for one.`}function tc(e,t){let{add:n,remove:r}=Qs(e,t),i=[];return n.length>0&&i.push(`invariant target add ${n.join(` `)}`),r.length>0&&i.push(`invariant target remove ${r.join(` `)}`),i}var nc=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/sections/TargetsSection.tsx`;function rc({onDirtyChange:e}){let t=Fn(),{data:n,isLoading:r}=Lr(),i=Rr(),a=qr(),[o,s]=(0,O.useState)(),[c,l]=(0,O.useState)(),[u,d]=(0,O.useState)();(0,O.useEffect)(()=>{n&&s(e=>e??Ys(n))},[n]);let f=n&&o?$s(o,n):!1;if((0,O.useEffect)(()=>e(f),[f,e]),r||!n||!o)return(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:nc,lineNumber:47,columnNumber:50},this);let p=ec(o),m=tc(o,n),h=i.isPending||a.isPending;return(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`p`,{className:`config-lede`,children:`Every activated item is stored once in the canonical store and written out for each target below. Turning one on writes its folders; turning one off leaves what is already there alone — those files may have been edited by hand.`},void 0,!1,{fileName:nc,lineNumber:73,columnNumber:7},this),(0,A.jsxDEV)(`ul`,{className:`config-choices`,children:n.options.map(e=>{let t=Zs(o,e.name),r=t!==e.enabled;return(0,A.jsxDEV)(`li`,{className:`config-choice${r?` is-staged`:``}`,children:[(0,A.jsxDEV)(`label`,{className:`config-choice__label`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:t,disabled:h,onChange:t=>s(Xs(o,n,e.name,t.target.checked))},void 0,!1,{fileName:nc,lineNumber:86,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`config-choice__name`,children:e.displayName},void 0,!1,{fileName:nc,lineNumber:94,columnNumber:17},this),(0,A.jsxDEV)(`code`,{className:`config-choice__id`,children:e.name},void 0,!1,{fileName:nc,lineNumber:95,columnNumber:17},this)]},void 0,!0,{fileName:nc,lineNumber:85,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`config-choice__paths`,title:e.generatedPaths.join(`
253
- `),children:e.generatedPaths.join(` `)},void 0,!1,{fileName:nc,lineNumber:98,columnNumber:15},this),r?(0,A.jsxDEV)(`span`,{className:`config-choice__flag`,children:t?`will add`:`will remove`},void 0,!1,{fileName:nc,lineNumber:103,columnNumber:17},this):e.enabled&&!e.present?(0,A.jsxDEV)(`span`,{className:`chip chip--warning`,title:`Nothing has been written for this target yet.`,children:`not synced`},void 0,!1,{fileName:nc,lineNumber:105,columnNumber:17},this):null]},e.name,!0,{fileName:nc,lineNumber:84,columnNumber:13},this)})},void 0,!1,{fileName:nc,lineNumber:79,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`config-facts`,children:(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Written to`},void 0,!1,{fileName:nc,lineNumber:116,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:n.manifestPath},void 0,!1,{fileName:nc,lineNumber:117,columnNumber:15},this)},void 0,!1,{fileName:nc,lineNumber:117,columnNumber:11},this)]},void 0,!0,{fileName:nc,lineNumber:115,columnNumber:9},this)},void 0,!1,{fileName:nc,lineNumber:114,columnNumber:7},this),m.length>0&&(0,A.jsxDEV)(`div`,{className:`config-plan`,children:[(0,A.jsxDEV)(`span`,{className:`config-plan__label`,children:`This will run`},void 0,!1,{fileName:nc,lineNumber:123,columnNumber:11},this),m.map(e=>(0,A.jsxDEV)(`code`,{className:`config-plan__line`,children:e},e,!1,{fileName:nc,lineNumber:125,columnNumber:13},this))]},void 0,!0,{fileName:nc,lineNumber:122,columnNumber:9},this),p&&(0,A.jsxDEV)(`p`,{className:`config-warning`,children:p},void 0,!1,{fileName:nc,lineNumber:130,columnNumber:19},this),c&&(0,A.jsxDEV)(`div`,{className:`config-failure`,children:[(0,A.jsxDEV)(`p`,{children:c.message},void 0,!1,{fileName:nc,lineNumber:134,columnNumber:11},this),c.transcript&&(0,A.jsxDEV)(Lo,{output:c.transcript},void 0,!1,{fileName:nc,lineNumber:135,columnNumber:34},this)]},void 0,!0,{fileName:nc,lineNumber:133,columnNumber:9},this),u&&(0,A.jsxDEV)(`div`,{className:`config-failure`,children:[(0,A.jsxDEV)(`p`,{children:u.message},void 0,!1,{fileName:nc,lineNumber:141,columnNumber:11},this),u.transcript&&(0,A.jsxDEV)(Lo,{output:u.transcript},void 0,!1,{fileName:nc,lineNumber:142,columnNumber:37},this)]},void 0,!0,{fileName:nc,lineNumber:140,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`config-actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:h,title:`Report drift without writing anything`,onClick:()=>{d(void 0),l(void 0),a.mutate({check:!0},{onSuccess:e=>d({message:e.drift?`Out of sync — the target folders do not match the canonical store.`:`In sync. Every target folder matches the canonical store.`,transcript:e.run.output}),onError:e=>l(ic(e))})},children:a.isPending?`Checking…`:`Check for drift`},void 0,!1,{fileName:nc,lineNumber:147,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:h,onClick:()=>{d(void 0),l(void 0),a.mutate({},{onSuccess:e=>{d({message:`Synced.`,transcript:e.run.output}),t(`Targets synced`,`success`)},onError:e=>l(ic(e))})},children:`Sync now`},void 0,!1,{fileName:nc,lineNumber:173,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:h||!f||p!==void 0,onClick:()=>{l(void 0),d(void 0),i.mutate([...o.wanted],{onSuccess:e=>{s(Ys(e.settings));let{add:r,remove:i}=Qs(o,n);t([r.length>0?`added ${r.join(`, `)}`:``,i.length>0?`removed ${i.join(`, `)}`:``].filter(Boolean).join(` · `)||`Targets unchanged`,`success`)},onError:e=>l(ic(e))})},children:i.isPending?`Applying…`:`Apply`},void 0,!1,{fileName:nc,lineNumber:195,columnNumber:9},this)]},void 0,!0,{fileName:nc,lineNumber:146,columnNumber:7},this)]},void 0,!0,{fileName:nc,lineNumber:72,columnNumber:5},this)}function ic(e){return e instanceof Bn?{message:e.message,transcript:e.transcript}:{message:e instanceof Error?e.message:`That did not work.`}}var V=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/sections/GitLabSection.tsx`;function ac({onDirtyChange:e}){let t=Fn(),{data:n,isLoading:r}=br(),i=xr(),a=Sr(),o=Cr(),[s,c]=(0,O.useState)(``),[l,u]=(0,O.useState)(``),[d,f]=(0,O.useState)(``),[p,m]=(0,O.useState)();(0,O.useEffect)(()=>{n&&(c(e=>e||n.host||``),u(e=>e||n.projectPath||``))},[n]);let h=d.trim().length>0;if((0,O.useEffect)(()=>e(h),[h,e]),r||!n)return(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:V,lineNumber:48,columnNumber:38},this);let g=n.remote?.projectPath,_=l.length>0&&g!==void 0&&l!==g;return(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`p`,{className:`config-lede`,children:[`Push a triaged review to GitLab as `,(0,A.jsxDEV)(`strong`,{children:`draft`},void 0,!1,{fileName:V,lineNumber:56,columnNumber:44},this),` merge-request comments. Nothing is submitted for you — you press `,(0,A.jsxDEV)(`em`,{children:`Submit review`},void 0,!1,{fileName:V,lineNumber:57,columnNumber:39},this),` in GitLab yourself.`]},void 0,!0,{fileName:V,lineNumber:55,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`config-facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`This project`},void 0,!1,{fileName:V,lineNumber:62,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:n.directory},void 0,!1,{fileName:V,lineNumber:63,columnNumber:15},this)},void 0,!1,{fileName:V,lineNumber:63,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:61,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Shared with the team`},void 0,!1,{fileName:V,lineNumber:66,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:[(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:V,lineNumber:68,columnNumber:13},this),` — the host and project path. The token is not.`]},void 0,!0,{fileName:V,lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:65,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Origin remote`},void 0,!1,{fileName:V,lineNumber:72,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:n.remote?.url?(0,A.jsxDEV)(`code`,{children:n.remote.url},void 0,!1,{fileName:V,lineNumber:73,columnNumber:39},this):`none — this project has no origin`},void 0,!1,{fileName:V,lineNumber:73,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:71,columnNumber:9},this)]},void 0,!0,{fileName:V,lineNumber:60,columnNumber:7},this),n.source===`environment`&&(0,A.jsxDEV)(`p`,{className:`config-note`,children:[`Using `,(0,A.jsxDEV)(`code`,{children:`GITLAB_TOKEN`},void 0,!1,{fileName:V,lineNumber:79,columnNumber:17},this),` from the environment this daemon was started in. Saving a token here replaces it for this project.`]},void 0,!0,{fileName:V,lineNumber:78,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`config-form`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`GitLab host`},void 0,!1,{fileName:V,lineNumber:86,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:s,placeholder:`https://gitlab.com`,onChange:e=>c(e.target.value)},void 0,!1,{fileName:V,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:85,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Project path`,(0,A.jsxDEV)(`span`,{className:`field__badge`,children:_?`overridden`:`from origin`},void 0,!1,{fileName:V,lineNumber:98,columnNumber:13},this)]},void 0,!0,{fileName:V,lineNumber:96,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:l,placeholder:`group/project`,onChange:e=>u(e.target.value)},void 0,!1,{fileName:V,lineNumber:100,columnNumber:11},this),_&&(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`This is not `,(0,A.jsxDEV)(`code`,{children:g},void 0,!1,{fileName:V,lineNumber:108,columnNumber:27},this),`, which is what origin says. Every publish will say so.`]},void 0,!0,{fileName:V,lineNumber:107,columnNumber:13},this)]},void 0,!0,{fileName:V,lineNumber:95,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Personal access token`,n.tokenHint&&(0,A.jsxDEV)(`span`,{className:`field__badge`,children:[`stored ····`,n.tokenHint]},void 0,!0,{fileName:V,lineNumber:116,columnNumber:36},this)]},void 0,!0,{fileName:V,lineNumber:114,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,type:`password`,autoComplete:`off`,value:d,placeholder:n.tokenHint?`Leave empty to keep the stored token`:`glpat-…`,onChange:e=>f(e.target.value)},void 0,!1,{fileName:V,lineNumber:118,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`Needs the `,(0,A.jsxDEV)(`code`,{children:`api`},void 0,!1,{fileName:V,lineNumber:127,columnNumber:23},this),` scope — `,(0,A.jsxDEV)(`code`,{children:`read_api`},void 0,!1,{fileName:V,lineNumber:127,columnNumber:48},this),` cannot write a comment. Stored in`,` `,(0,A.jsxDEV)(`code`,{children:n.storedAt},void 0,!1,{fileName:V,lineNumber:128,columnNumber:13},this),` (0600), for this project only. It is never sent to this page and never written to the repository.`]},void 0,!0,{fileName:V,lineNumber:126,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:113,columnNumber:9},this)]},void 0,!0,{fileName:V,lineNumber:84,columnNumber:7},this),p&&(0,A.jsxDEV)(`p`,{className:`config-verdict${p.ok?` is-ok`:` is-bad`}`,children:p.ok?`Connected as @${p.username} · ${p.projectPath}`:p.message},void 0,!1,{fileName:V,lineNumber:135,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`config-actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:o.isPending||!n.configured,title:n.configured?void 0:`Save a token first.`,onClick:()=>o.mutate(void 0,{onSuccess:m,onError:e=>m({publisher:`gitlab`,ok:!1,message:e instanceof Error?e.message:`That did not work.`})}),children:o.isPending?`Testing…`:`Test connection`},void 0,!1,{fileName:V,lineNumber:143,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:a.isPending||n.source!==`stored`,onClick:()=>a.mutate(void 0,{onSuccess:()=>{f(``),m(void 0),t(`Publishing settings removed`,`success`)}}),children:`Remove`},void 0,!1,{fileName:V,lineNumber:163,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:i.isPending||!n.configured&&d.trim().length===0,onClick:()=>i.mutate({host:s.trim()||void 0,projectPath:l.trim()||void 0,token:d.trim()||void 0},{onSuccess:()=>{f(``),m(void 0),t(`Publishing settings saved`,`success`)},onError:e=>t(e instanceof Error?e.message:`That did not work.`,`danger`)}),children:i.isPending?`Saving…`:`Save`},void 0,!1,{fileName:V,lineNumber:180,columnNumber:9},this)]},void 0,!0,{fileName:V,lineNumber:142,columnNumber:7},this)]},void 0,!0,{fileName:V,lineNumber:54,columnNumber:5},this)}var H=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/sections/LinearSection.tsx`;function oc({onDirtyChange:e}){let t=Fn(),{data:n,isLoading:r}=Er(),i=Dr(),a=Or(),o=kr(),[s,c]=(0,O.useState)(``),[l,u]=(0,O.useState)(``),[d,f]=(0,O.useState)(``),[p,m]=(0,O.useState)(!1),[h,g]=(0,O.useState)(!1),[_,v]=(0,O.useState)();(0,O.useEffect)(()=>{n&&(c(e=>e||n.teamKey||``),f(e=>e.length>0?e:n.issueTemplate))},[n]);let y=l.trim().length>0||p&&d!==n?.issueTemplate;if((0,O.useEffect)(()=>e(y),[y,e]),r||!n)return(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:H,lineNumber:53,columnNumber:38},this);let b=_?.workspace??n.workspace;return(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`p`,{className:`config-lede`,children:`Link a session to a Linear issue, and sync one block of it — the human-facing spec — in either direction. The session body itself is never sent: it is a conversation with an agent, and the issue is for a colleague.`},void 0,!1,{fileName:H,lineNumber:59,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`config-facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Workspace`},void 0,!1,{fileName:H,lineNumber:67,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:b?(0,A.jsxDEV)(`code`,{children:b},void 0,!1,{fileName:H,lineNumber:68,columnNumber:28},this):`unknown until you test the connection`},void 0,!1,{fileName:H,lineNumber:68,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:66,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Shared with the team`},void 0,!1,{fileName:H,lineNumber:71,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:[(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:H,lineNumber:73,columnNumber:13},this),` — the team key and the issue template. The API key is not.`]},void 0,!0,{fileName:H,lineNumber:72,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:H,lineNumber:65,columnNumber:7},this),n.enabled&&!n.configured&&(0,A.jsxDEV)(`p`,{className:`config-note`,children:`This project expects Linear, and this machine has no key for it. Sessions here cannot link to an issue until you paste one.`},void 0,!1,{fileName:H,lineNumber:79,columnNumber:9},this),n.source===`environment`&&(0,A.jsxDEV)(`p`,{className:`config-note`,children:[`Using `,(0,A.jsxDEV)(`code`,{children:`LINEAR_API_KEY`},void 0,!1,{fileName:H,lineNumber:87,columnNumber:17},this),` from the environment this daemon was started in. Saving a key here replaces it for this project.`]},void 0,!0,{fileName:H,lineNumber:86,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`config-form`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`API key`,n.apiKeyHint&&(0,A.jsxDEV)(`span`,{className:`field__badge`,children:[`stored ····`,n.apiKeyHint]},void 0,!0,{fileName:H,lineNumber:96,columnNumber:37},this)]},void 0,!0,{fileName:H,lineNumber:94,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,type:`password`,autoComplete:`off`,value:l,placeholder:n.apiKeyHint?`Leave empty to keep the stored key`:`lin_api_…`,onChange:e=>u(e.target.value)},void 0,!1,{fileName:H,lineNumber:98,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`A personal API key from Linear → Settings → Security & access. Stored in`,` `,(0,A.jsxDEV)(`code`,{children:n.storedAt},void 0,!1,{fileName:H,lineNumber:108,columnNumber:13},this),` (0600), for this project only. It is never sent to this page and never written to the repository.`]},void 0,!0,{fileName:H,lineNumber:106,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:93,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Default team`,(0,A.jsxDEV)(`span`,{className:`field__badge`,children:`shared`},void 0,!1,{fileName:H,lineNumber:116,columnNumber:13},this)]},void 0,!0,{fileName:H,lineNumber:114,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:s,placeholder:`ENG`,onChange:e=>c(e.target.value.toUpperCase())},void 0,!1,{fileName:H,lineNumber:118,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`Narrows the issue search when you link a session. A search across a whole workspace is a list nobody can pick from.`,_?.teamKeys&&_.teamKeys.length>0&&(0,A.jsxDEV)(A.Fragment,{children:[` This key can see: `,(0,A.jsxDEV)(`code`,{children:_.teamKeys.join(`, `)},void 0,!1,{fileName:H,lineNumber:128,columnNumber:36},this),`.`]},void 0,!0,{fileName:H,lineNumber:128,columnNumber:15},this)]},void 0,!0,{fileName:H,lineNumber:124,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:113,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Issue template`,(0,A.jsxDEV)(`span`,{className:`field__badge`,children:`shared`},void 0,!1,{fileName:H,lineNumber:136,columnNumber:13},this),n.issueTemplateIsDefault&&(0,A.jsxDEV)(`span`,{className:`field__badge`,children:`default`},void 0,!1,{fileName:H,lineNumber:137,columnNumber:49},this)]},void 0,!0,{fileName:H,lineNumber:134,columnNumber:11},this),(0,A.jsxDEV)(`textarea`,{className:`field__input field__input--area`,rows:12,spellCheck:!1,value:d,onChange:e=>{f(e.target.value),m(!0)}},void 0,!1,{fileName:H,lineNumber:139,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`The shape an agent aims its synthesis at — decisions and acceptance criteria, not implementation steps. Written into `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:H,lineNumber:151,columnNumber:48},this),`, so it arrives in a merge request like any other agreement. Empty it to go back to the default.`]},void 0,!0,{fileName:H,lineNumber:149,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:133,columnNumber:9},this)]},void 0,!0,{fileName:H,lineNumber:92,columnNumber:7},this),h&&(0,A.jsxDEV)(`div`,{className:`config-preview`,children:(0,A.jsxDEV)(Mi,{source:d,compact:!0},void 0,!1,{fileName:H,lineNumber:159,columnNumber:11},this)},void 0,!1,{fileName:H,lineNumber:158,columnNumber:9},this),_&&(0,A.jsxDEV)(`p`,{className:`config-verdict${_.ok?` is-ok`:` is-bad`}`,children:_.ok?`Connected as ${_.username}${b?` · ${b}`:``}`:_.message},void 0,!1,{fileName:H,lineNumber:164,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`config-actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>g(e=>!e),children:h?`Hide preview`:`Preview template`},void 0,!1,{fileName:H,lineNumber:172,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:o.isPending||!n.configured,title:n.configured?void 0:`Save a key first.`,onClick:()=>o.mutate(void 0,{onSuccess:v,onError:e=>v({integration:`linear`,ok:!1,message:e instanceof Error?e.message:`That did not work.`})}),children:o.isPending?`Testing…`:`Test connection`},void 0,!1,{fileName:H,lineNumber:180,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:a.isPending||n.source!==`stored`,onClick:()=>a.mutate(void 0,{onSuccess:()=>{u(``),v(void 0),t(`Linear API key removed`,`success`)}}),children:`Remove key`},void 0,!1,{fileName:H,lineNumber:200,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:i.isPending||!n.configured&&l.trim().length===0,onClick:()=>i.mutate({teamKey:s.trim()||void 0,issueTemplate:p?d:void 0,apiKey:l.trim()||void 0},{onSuccess:()=>{u(``),m(!1),v(void 0),t(`Linear settings saved`,`success`)},onError:e=>t(e instanceof Error?e.message:`That did not work.`,`danger`)}),children:i.isPending?`Saving…`:`Save`},void 0,!1,{fileName:H,lineNumber:217,columnNumber:9},this)]},void 0,!0,{fileName:H,lineNumber:171,columnNumber:7},this)]},void 0,!0,{fileName:H,lineNumber:58,columnNumber:5},this)}var sc=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/sections/WorkspaceSection.tsx`,cc=[{value:`plan-changes`,label:`Plan changes`,hint:`Turn the staged comments into work for an agent.`},{value:`publish`,label:`Publish`,hint:`Send the staged comments to the merge request as drafts.`}],lc=[{value:`popular`,label:`Popular`},{value:`trending`,label:`Trending`},{value:`hot`,label:`Hot`}];function uc({onDirtyChange:e}){let t=Fn(),{data:n}=$n(),r=n?.directory,[i,a]=(0,O.useState)(()=>Ws(r));return(0,O.useEffect)(()=>a(Ws(r)),[r]),(0,O.useEffect)(()=>e(!1),[e]),(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`p`,{className:`config-lede`,children:`Held in this browser's local storage, per project where it makes sense to be. Nothing here reaches the daemon, the repository, or anyone else — and a different browser, or a private window, starts from the defaults.`},void 0,!1,{fileName:sc,lineNumber:58,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`config-form`,children:[(0,A.jsxDEV)(`fieldset`,{className:`config-choice-group`,children:[(0,A.jsxDEV)(`legend`,{className:`field__label`,children:`Review footer offers first`},void 0,!1,{fileName:sc,lineNumber:66,columnNumber:11},this),cc.map(e=>(0,A.jsxDEV)(`label`,{className:`config-radio`,children:[(0,A.jsxDEV)(`input`,{type:`radio`,name:`review-cta`,checked:i.reviewCta===e.value,onChange:()=>{Xi(e.value,r),a(Ws(r))}},void 0,!1,{fileName:sc,lineNumber:69,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`config-radio__label`,children:e.label},void 0,!1,{fileName:sc,lineNumber:78,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`config-radio__hint`,children:e.hint},void 0,!1,{fileName:sc,lineNumber:79,columnNumber:15},this)]},e.value,!0,{fileName:sc,lineNumber:68,columnNumber:13},this))]},void 0,!0,{fileName:sc,lineNumber:65,columnNumber:9},this),(0,A.jsxDEV)(`fieldset`,{className:`config-choice-group`,children:[(0,A.jsxDEV)(`legend`,{className:`field__label`,children:`Skills catalogue opens on`},void 0,!1,{fileName:sc,lineNumber:85,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`segmented`,children:lc.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,className:`segmented__item${i.skillsView===e.value?` is-active`:``}`,"aria-pressed":i.skillsView===e.value,onClick:()=>{Us(e.value),a(Ws(r))},children:e.label},e.value,!1,{fileName:sc,lineNumber:88,columnNumber:15},this))},void 0,!1,{fileName:sc,lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:sc,lineNumber:84,columnNumber:9},this)]},void 0,!0,{fileName:sc,lineNumber:64,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`config-facts`,children:(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Unsent session draft`},void 0,!1,{fileName:sc,lineNumber:107,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:i.hasSessionDraft?`One is waiting — the New session dialog will open with it.`:`None.`},void 0,!1,{fileName:sc,lineNumber:108,columnNumber:11},this)]},void 0,!0,{fileName:sc,lineNumber:106,columnNumber:9},this)},void 0,!1,{fileName:sc,lineNumber:105,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`config-actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{let e=qs(r);a(Ws(r)),t(e.length===0?`Nothing was remembered for this project.`:`Forgot ${e.length} remembered value${e.length===1?``:`s`}`,`success`)},children:`Forget what this browser remembers`},void 0,!1,{fileName:sc,lineNumber:117,columnNumber:9},this)},void 0,!1,{fileName:sc,lineNumber:116,columnNumber:7},this)]},void 0,!0,{fileName:sc,lineNumber:57,columnNumber:5},this)}var dc=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/sections/ServerSection.tsx`;function fc({onDirtyChange:e}){let t=Fn(),{data:n}=Qr(),{data:r}=br(),[i,a]=(0,O.useState)(!1);return(0,O.useEffect)(()=>e(!1),[e]),n?(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`p`,{className:`config-lede`,children:`One daemon serves every project you have registered. It holds no credentials of its own — each project's are read from that project's directory when a publish asks for them.`},void 0,!1,{fileName:dc,lineNumber:28,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`config-facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Listening on`},void 0,!1,{fileName:dc,lineNumber:35,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:[`http://127.0.0.1:`,n.port]},void 0,!0,{fileName:dc,lineNumber:36,columnNumber:15},this)},void 0,!1,{fileName:dc,lineNumber:36,columnNumber:11},this)]},void 0,!0,{fileName:dc,lineNumber:34,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Process`},void 0,!1,{fileName:dc,lineNumber:39,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:[`pid `,n.pid,` · started `,Zt(pc(n.uptimeSeconds))]},void 0,!0,{fileName:dc,lineNumber:40,columnNumber:11},this)]},void 0,!0,{fileName:dc,lineNumber:38,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Version`},void 0,!1,{fileName:dc,lineNumber:43,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:n.version},void 0,!1,{fileName:dc,lineNumber:44,columnNumber:15},this)},void 0,!1,{fileName:dc,lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:dc,lineNumber:42,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Project registry`},void 0,!1,{fileName:dc,lineNumber:47,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:n.registryPath},void 0,!1,{fileName:dc,lineNumber:48,columnNumber:15},this)},void 0,!1,{fileName:dc,lineNumber:48,columnNumber:11},this)]},void 0,!0,{fileName:dc,lineNumber:46,columnNumber:9},this),r&&(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`This project's token file`},void 0,!1,{fileName:dc,lineNumber:52,columnNumber:13},this),(0,A.jsxDEV)(`dd`,{children:[(0,A.jsxDEV)(`code`,{children:r.storedAt},void 0,!1,{fileName:dc,lineNumber:54,columnNumber:15},this),r.configured?r.gitignored?` — git-ignored`:` — not git-ignored`:` — nothing stored`]},void 0,!0,{fileName:dc,lineNumber:53,columnNumber:13},this)]},void 0,!0,{fileName:dc,lineNumber:51,columnNumber:11},this)]},void 0,!0,{fileName:dc,lineNumber:33,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`config-actions config-actions--danger`,children:i?(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`config-confirm`,children:`Stop the server for every project? This page will stop responding.`},void 0,!1,{fileName:dc,lineNumber:68,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>a(!1),children:`Cancel`},void 0,!1,{fileName:dc,lineNumber:71,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,onClick:async()=>{a(!1),await Wn.shutdown().catch(()=>void 0),t(`UI stopping…`,`info`)},children:`Stop it`},void 0,!1,{fileName:dc,lineNumber:74,columnNumber:13},this)]},void 0,!0,{fileName:dc,lineNumber:67,columnNumber:11},this):(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,onClick:()=>a(!0),children:`Stop this UI server`},void 0,!1,{fileName:dc,lineNumber:87,columnNumber:11},this)},void 0,!1,{fileName:dc,lineNumber:65,columnNumber:7},this)]},void 0,!0,{fileName:dc,lineNumber:27,columnNumber:5},this):(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:dc,lineNumber:24,columnNumber:25},this)}function pc(e){return new Date(Date.now()-e*1e3).toISOString()}var mc=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/registry.tsx`,hc=[{id:`project`,title:`Project`,scope:`project`,keywords:`directory path name colour color rename identity sessions packages branch`,icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M3 5.5A1.5 1.5 0 0 1 4.5 4h3l1.5 2h6.5A1.5 1.5 0 0 1 17 7.5v7A1.5 1.5 0 0 1 15.5 16h-11A1.5 1.5 0 0 1 3 14.5z`},void 0,!1,{fileName:mc,lineNumber:46,columnNumber:9},void 0)},void 0,!1,{fileName:mc,lineNumber:45,columnNumber:7},void 0),useSummary:()=>Ps($n().data),Body:Js},{id:`targets`,title:`Agent targets`,scope:`project`,keywords:`claude cursor codex aider copilot sync materialize drift agents folder`,icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`circle`,{cx:`10`,cy:`10`,r:`6.5`},void 0,!1,{fileName:mc,lineNumber:59,columnNumber:9},void 0),(0,A.jsxDEV)(`circle`,{cx:`10`,cy:`10`,r:`2.5`},void 0,!1,{fileName:mc,lineNumber:60,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M10 1.5v2M10 16.5v2M1.5 10h2M16.5 10h2`},void 0,!1,{fileName:mc,lineNumber:61,columnNumber:9},void 0)]},void 0,!0,{fileName:mc,lineNumber:58,columnNumber:7},void 0),useSummary:()=>Fs(Lr().data),Body:rc},{id:`gitlab`,title:`GitLab`,scope:`project`,keywords:`gitlab token credentials merge request review publish api scope integration publishing`,icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M10 13.5V3.5M6.5 7 10 3.5 13.5 7`},void 0,!1,{fileName:mc,lineNumber:75,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M3.5 12.5v3a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-3`},void 0,!1,{fileName:mc,lineNumber:76,columnNumber:9},void 0)]},void 0,!0,{fileName:mc,lineNumber:74,columnNumber:7},void 0),useSummary:()=>Is(br().data),Body:ac},{id:`linear`,title:`Linear`,scope:`project`,keywords:`linear issue ticket spec sync template api key team workspace integration`,icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`3.5`,y:`3.5`,width:`13`,height:`13`,rx:`3`},void 0,!1,{fileName:mc,lineNumber:89,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M6.5 12.5 12.5 6.5`},void 0,!1,{fileName:mc,lineNumber:90,columnNumber:9},void 0)]},void 0,!0,{fileName:mc,lineNumber:88,columnNumber:7},void 0),useSummary:()=>Ls(Er().data),Body:oc},{id:`server`,title:`Server & data`,scope:`machine`,keywords:`daemon port pid version registry stop shutdown quit instance`,icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`3`,y:`4`,width:`14`,height:`5`,rx:`1.5`},void 0,!1,{fileName:mc,lineNumber:103,columnNumber:9},void 0),(0,A.jsxDEV)(`rect`,{x:`3`,y:`11`,width:`14`,height:`5`,rx:`1.5`},void 0,!1,{fileName:mc,lineNumber:104,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M6 6.5h.01M6 13.5h.01`},void 0,!1,{fileName:mc,lineNumber:105,columnNumber:9},void 0)]},void 0,!0,{fileName:mc,lineNumber:102,columnNumber:7},void 0),useSummary:()=>zs(Qr().data),Body:fc},{id:`workspace`,title:`This browser`,scope:`browser`,keywords:`preferences local storage draft review footer skills catalogue reset forget`,icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`2.5`,y:`4`,width:`15`,height:`10`,rx:`1.5`},void 0,!1,{fileName:mc,lineNumber:118,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M7 16.5h6M10 14v2.5`},void 0,!1,{fileName:mc,lineNumber:119,columnNumber:9},void 0)]},void 0,!0,{fileName:mc,lineNumber:117,columnNumber:7},void 0),useSummary:()=>Rs(Ws(Yn().card?.directory)),Body:uc}],gc=hc.map(e=>e.id),_c={publishing:`gitlab`};function vc(e){if(e!==void 0)return _c[e]??e}function yc(e,t){let n=t.trim();if(n.length===0)return{sections:e.map(e=>e.section)};let r=e.filter(e=>bc(e,n)).map(e=>e.section);return{sections:r,autoExpandId:r.length===1?r[0].id:void 0}}function bc(e,t){return xc(e).toLowerCase().includes(t.toLowerCase())?!0:en(e.section.title,t)!==null}function xc({section:e,summary:t}){return[e.title,e.keywords,ws[e.scope],t.headline,t.searchText??``].join(` `)}var Sc=`invariant.ui.settingsOpen`,Cc=new Set;function wc(e,t){let n=new Set(t);return new Set([...e].filter(e=>n.has(e)))}function Tc(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function Ec(e,t){return e.has(t)?new Set(e):new Set([...e,t])}function Dc(e){try{let t=window.localStorage.getItem(Sc);if(!t)return new Set;let n=JSON.parse(t);return Array.isArray(n)?wc(n.filter(e=>typeof e==`string`),e):new Set}catch{return new Set}}function Oc(e){try{window.localStorage.setItem(Sc,JSON.stringify([...e]))}catch{}}var kc=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/ConfigurationPage.tsx`;function Ac({section:e,onSectionChange:t}){let n=Fn(),{data:r}=$n(),[i,a]=(0,O.useState)(Cc),[o,s]=(0,O.useState)(Cc),[c,l]=(0,O.useState)(``),[u,d]=(0,O.useState)(),[f,p]=(0,O.useState)(),m=(0,O.useRef)(null);(0,O.useEffect)(()=>a(Dc(gc)),[]);let h=(0,O.useCallback)(e=>{a(e),Oc(e)},[]),g={};for(let e of hc)g[e.id]=e.useSummary();let{sections:_,autoExpandId:v}=(0,O.useMemo)(()=>yc(hc.map(e=>({section:e,summary:g[e.id]})),c),[c,...hc.map(e=>g[e.id].headline)]);(0,O.useEffect)(()=>{v&&h(Ec(i,v))},[v]),(0,O.useEffect)(()=>{let t=vc(e);if(!t||!gc.includes(t))return;a(e=>{let n=Ec(e,t);return Oc(n),n}),d(t),p(t);let n=window.setTimeout(()=>p(void 0),1200);return()=>window.clearTimeout(n)},[e]);let y=(0,O.useCallback)(e=>{let n=Tc(i,e);h(n),t(n.has(e)?e:void 0)},[i,h,t]),b=(0,O.useCallback)((e,t)=>{s(n=>{if(n.has(e)===t)return n;let r=new Set(n);return t?r.add(e):r.delete(e),r})},[]),x=hc.filter(e=>o.has(e.id)),ee=hc.filter(e=>g[e.id].state===`attention`);(0,O.useEffect)(()=>{if(x.length===0)return;let e=e=>e.preventDefault();return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[x.length]);let te=(0,O.useCallback)(e=>{a(t=>{let n=Ec(t,e);return Oc(n),n}),d(e),p(e),window.setTimeout(()=>p(void 0),1200),t(e)},[t]);return Mc({ids:_.map(e=>e.id),focusedId:u,onFocus:d,onToggle:y,onOpen:e=>h(Ec(i,e)),onClose:e=>i.has(e)&&y(e),onFilter:()=>document.querySelector(`.config-filter__input`)?.focus()}),(0,A.jsxDEV)(`div`,{className:`config`,children:[(0,A.jsxDEV)(`header`,{className:`topbar config__topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Configuration`},void 0,!1,{fileName:kc,lineNumber:158,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`topbar__path`,title:r?`${r.directory} — click to copy`:void 0,onClick:async()=>{r&&n(await tn(r.directory)?`Path copied`:`Could not copy`,`success`)},children:r?nn(r.directory):``},void 0,!1,{fileName:kc,lineNumber:159,columnNumber:11},this)]},void 0,!0,{fileName:kc,lineNumber:157,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[ee.length>0&&(0,A.jsxDEV)(`button`,{type:`button`,className:`config-attention`,onClick:()=>te(ee[0].id),title:ee.map(e=>e.title).join(`, `),children:[(0,A.jsxDEV)(`span`,{className:`config-state__dot config-state__dot--attention`,"aria-hidden":`true`},void 0,!1,{fileName:kc,lineNumber:180,columnNumber:15},this),ee.length,` need`,ee.length===1?`s`:``,` attention`]},void 0,!0,{fileName:kc,lineNumber:174,columnNumber:13},this),(0,A.jsxDEV)(`div`,{className:`filter filter--compact config-filter`,children:(0,A.jsxDEV)(`input`,{className:`filter__input config-filter__input`,value:c,placeholder:`Filter options… /`,"aria-label":`Filter options`,onChange:e=>l(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(l(``),e.currentTarget.blur())}},void 0,!1,{fileName:kc,lineNumber:186,columnNumber:13},this)},void 0,!1,{fileName:kc,lineNumber:185,columnNumber:11},this)]},void 0,!0,{fileName:kc,lineNumber:172,columnNumber:9},this)]},void 0,!0,{fileName:kc,lineNumber:156,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`config__body`,children:[(0,A.jsxDEV)(js,{sections:_,summaries:g,dirty:o,activeId:u,onSelect:te},void 0,!1,{fileName:kc,lineNumber:204,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`config__list`,ref:m,children:_.length===0?(0,A.jsxDEV)(`p`,{className:`page-state`,children:[`Nothing matches “`,c,`”.`]},void 0,!0,{fileName:kc,lineNumber:214,columnNumber:13},this):_.map(e=>(0,A.jsxDEV)(ks,{section:e,summary:g[e.id],open:i.has(e.id),dirty:o.has(e.id),focused:u===e.id,linked:f===e.id,onToggle:()=>y(e.id),onFocus:()=>d(e.id),children:i.has(e.id)||o.has(e.id)?(0,A.jsxDEV)(e.Body,{onDirtyChange:t=>b(e.id,t)},void 0,!1,{fileName:kc,lineNumber:231,columnNumber:19},this):null},e.id,!1,{fileName:kc,lineNumber:217,columnNumber:15},this))},void 0,!1,{fileName:kc,lineNumber:212,columnNumber:9},this)]},void 0,!0,{fileName:kc,lineNumber:203,columnNumber:7},this),x.length>0&&(0,A.jsxDEV)(`footer`,{className:`config-unsaved`,children:[(0,A.jsxDEV)(`span`,{className:`config-unsaved__text`,children:[`Unsaved changes in `,x.map(e=>e.title).join(`, `)]},void 0,!0,{fileName:kc,lineNumber:241,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>te(x[0].id),children:`Review`},void 0,!1,{fileName:kc,lineNumber:244,columnNumber:11},this)]},void 0,!0,{fileName:kc,lineNumber:240,columnNumber:9},this)]},void 0,!0,{fileName:kc,lineNumber:155,columnNumber:5},this)}function jc(e){let t=e;return t?t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable:!1}function Mc(e){let t=(0,O.useRef)(e);(0,O.useEffect)(()=>{t.current=e}),(0,O.useEffect)(()=>{let e=e=>{let{ids:n,focusedId:r,onFocus:i,onToggle:a,onOpen:o,onClose:s,onFilter:c}=t.current;if(e.key===`/`&&!jc(e.target)){e.preventDefault(),c();return}if(jc(e.target)||e.metaKey||e.ctrlKey||n.length===0)return;let l=r?n.indexOf(r):-1,u=t=>{e.preventDefault();let r=l===-1?0:Math.min(Math.max(l+t,0),n.length-1);i(n[r])};switch(e.key){case`j`:case`ArrowDown`:u(1);return;case`k`:case`ArrowUp`:u(-1);return;case`ArrowRight`:r&&o(r);return;case`ArrowLeft`:r&&s(r);return;case`Enter`:case` `:r&&(e.preventDefault(),a(r));return}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[])}var Nc=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/CommandPalette.tsx`,Pc=40,Fc={root:`Search sessions and commands…`,projects:`Switch to a project…`,groups:`Move to a group…`},Ic={root:``,projects:`Project`,groups:`Group`};function Lc({actions:e,initialScope:t=`root`,onClose:n}){let[r,i]=(0,O.useState)(t),[a,o]=(0,O.useState)(``),[s,c]=(0,O.useState)(0),l=(0,O.useRef)(null),u=(0,O.useMemo)(()=>e.filter(e=>(e.scopedTo??`root`)===r),[e,r]),d=(0,O.useMemo)(()=>a.trim().length===0?u.slice(0,Pc):u.map(e=>({action:e,score:en(`${e.title} ${e.group} ${e.keywords??``}`,a.trim())})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).slice(0,Pc).map(e=>e.action),[u,a]);(0,O.useEffect)(()=>{c(0)},[a,r]),(0,O.useEffect)(()=>{let e=l.current?.querySelector(`[data-active="true"]`);e instanceof HTMLElement&&e.scrollIntoView?.({block:`nearest`})},[s,d]);let f=e=>{if(e.scope){i(e.scope),o(``);return}n(),e.run()},p=e=>{if(e.key===`ArrowDown`||e.key===`n`&&e.ctrlKey){e.preventDefault(),c(e=>(e+1)%Math.max(d.length,1));return}if(e.key===`ArrowUp`||e.key===`p`&&e.ctrlKey){e.preventDefault(),c(e=>(e-1+Math.max(d.length,1))%Math.max(d.length,1));return}if(e.key===`Enter`){e.preventDefault();let t=d[s];t&&f(t);return}if(e.key===`Backspace`&&a.length===0&&r!==`root`){e.preventDefault(),i(`root`);return}if(e.key===`Escape`){if(e.preventDefault(),r!==`root`){i(`root`);return}n()}},m=``;return(0,A.jsxDEV)(`div`,{className:`overlay overlay--top`,onMouseDown:e=>{e.target===e.currentTarget&&n()},children:(0,A.jsxDEV)(`div`,{className:`palette`,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,A.jsxDEV)(`div`,{className:`palette__field`,children:[r!==`root`&&(0,A.jsxDEV)(`span`,{className:`palette__scope`,children:Ic[r]},void 0,!1,{fileName:Nc,lineNumber:138,columnNumber:32},this),(0,A.jsxDEV)(`input`,{className:`palette__input`,autoFocus:!0,value:a,placeholder:Fc[r],onChange:e=>o(e.target.value),onKeyDown:p,"aria-label":Fc[r]},void 0,!1,{fileName:Nc,lineNumber:139,columnNumber:11},this)]},void 0,!0,{fileName:Nc,lineNumber:137,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`palette__list`,ref:l,role:`listbox`,children:[d.length===0&&(0,A.jsxDEV)(`p`,{className:`palette__empty`,children:`No matches`},void 0,!1,{fileName:Nc,lineNumber:151,columnNumber:36},this),d.map((e,t)=>{let n=e.group===m?void 0:e.group;return m=e.group,(0,A.jsxDEV)(`div`,{children:[n&&(0,A.jsxDEV)(`div`,{className:`palette__group`,children:n},void 0,!1,{fileName:Nc,lineNumber:159,columnNumber:28},this),(0,A.jsxDEV)(`button`,{type:`button`,role:`option`,"aria-selected":t===s,"data-active":t===s,className:`palette__item${t===s?` is-active`:``}`,onMouseMove:()=>c(t),onClick:()=>f(e),children:[e.status&&(0,A.jsxDEV)(jt,{status:e.status},void 0,!1,{fileName:Nc,lineNumber:169,columnNumber:37},this),(0,A.jsxDEV)(`span`,{className:`palette__title`,children:e.title},void 0,!1,{fileName:Nc,lineNumber:170,columnNumber:19},this),e.hint&&(0,A.jsxDEV)(`span`,{className:`palette__hint`,children:e.hint},void 0,!1,{fileName:Nc,lineNumber:171,columnNumber:35},this),e.shortcut&&(0,A.jsxDEV)(`kbd`,{className:`palette__shortcut`,children:e.shortcut},void 0,!1,{fileName:Nc,lineNumber:172,columnNumber:39},this)]},void 0,!0,{fileName:Nc,lineNumber:160,columnNumber:17},this)]},e.id,!0,{fileName:Nc,lineNumber:158,columnNumber:15},this)})]},void 0,!0,{fileName:Nc,lineNumber:150,columnNumber:9},this),(0,A.jsxDEV)(`footer`,{className:`palette__foot`,children:[(0,A.jsxDEV)(`kbd`,{children:`↑`},void 0,!1,{fileName:Nc,lineNumber:180,columnNumber:11},this),(0,A.jsxDEV)(`kbd`,{children:`↓`},void 0,!1,{fileName:Nc,lineNumber:180,columnNumber:23},this),` navigate `,(0,A.jsxDEV)(`kbd`,{children:`↵`},void 0,!1,{fileName:Nc,lineNumber:180,columnNumber:45},this),` run`,` `,r===`root`?(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`kbd`,{children:`esc`},void 0,!1,{fileName:Nc,lineNumber:181,columnNumber:33},this),` close`]},void 0,!0,{fileName:Nc,lineNumber:181,columnNumber:31},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`kbd`,{children:`⌫`},void 0,!1,{fileName:Nc,lineNumber:181,columnNumber:61},this),` back`]},void 0,!0,{fileName:Nc,lineNumber:181,columnNumber:59},this)]},void 0,!0,{fileName:Nc,lineNumber:179,columnNumber:9},this)]},void 0,!0,{fileName:Nc,lineNumber:136,columnNumber:7},this)},void 0,!1,{fileName:Nc,lineNumber:135,columnNumber:5},this)}var Rc=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/ShortcutSheet.tsx`,zc=[{title:`Projects`,rows:[[`⌘P`,`Switch project`],[`⇧⌘H`,`All projects`],[`⌫`,`Leave the project list, back to the full palette`]]},{title:`Global`,rows:[[`⌘K`,`Command palette`],[`N`,`New session`],[`/`,`Focus the filter`],[`⇧⌘R`,`Copy the execute line of the session in front of you`],[`?`,`This sheet`]]},{title:`Dashboard`,rows:[[`J / K`,`Move between sessions`],[`← / →`,`Collapse / expand a session's reviews`],[`↵`,`Open the focused session`],[`1 – 5`,`Set status: Review is machine-set, so it is not one of the five`]]},{title:`Selection`,rows:[[`X`,`Tick the focused row`],[`⇧X`,`Tick it and everything back to the last one you ticked`],[`⌘A`,`Tick every row on screen`],[`1 – 5`,`Send the whole selection to that status`],[`⌘⌫`,`Archive the selection`],[`Esc`,`Let the selection go`]]},{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`],[`Esc`,`Back to the dashboard`]]}];function Bc({onClose:e}){return(0,A.jsxDEV)(Mn,{title:`Keyboard shortcuts`,onClose:e,width:520,children:(0,A.jsxDEV)(`div`,{className:`shortcuts`,children:zc.map(e=>(0,A.jsxDEV)(`section`,{className:`shortcuts__group`,children:[(0,A.jsxDEV)(`h3`,{className:`shortcuts__title`,children:e.title},void 0,!1,{fileName:Rc,lineNumber:70,columnNumber:13},this),e.rows.map(([e,t])=>(0,A.jsxDEV)(`div`,{className:`shortcuts__row`,children:[(0,A.jsxDEV)(`kbd`,{children:e},void 0,!1,{fileName:Rc,lineNumber:73,columnNumber:17},this),(0,A.jsxDEV)(`span`,{children:t},void 0,!1,{fileName:Rc,lineNumber:74,columnNumber:17},this)]},e,!0,{fileName:Rc,lineNumber:72,columnNumber:15},this))]},e.title,!0,{fileName:Rc,lineNumber:69,columnNumber:11},this))},void 0,!1,{fileName:Rc,lineNumber:67,columnNumber:7},this)},void 0,!1,{fileName:Rc,lineNumber:66,columnNumber:5},this)}var Vc=`Ungrouped`;function Hc({projects:e,groups:t,currentProjectId:n,onSwitch:r}){let i=[...t].sort((e,t)=>e.order-t.order),a=new Map(i.map(e=>[e.id,e.name])),o=i.map(t=>({label:t.name,cards:e.filter(e=>e.groupId===t.id)}));return o.push({label:t.length===0?`Switch project`:Vc,cards:e.filter(e=>!e.groupId||!a.has(e.groupId))}),o.flatMap(e=>e.cards.map(t=>({id:`switch-to-${t.id}`,group:e.label,scopedTo:`projects`,title:t.name,hint:Uc(t,n),keywords:[t.directory,t.manifestName??``,t.groupId?a.get(t.groupId)??``:``,`project switch`].join(` `),run:()=>r(t.id)})))}function Uc(e,t){if(e.id===t)return`current`;let n=e.attention?.awaitingDecision??0,r=e.attention?.openReviewComments??0,i=[n>0?`${n} awaiting you`:``,r>0?`${r} comments`:``].filter(e=>e.length>0);return i.length>0?i.join(` · `):nn(e.directory)}function Wc({groups:e,card:t,onPick:n,onCreate:r}){let i=[...e].sort((e,t)=>e.order-t.order).map(e=>({id:`move-to-${e.id}`,group:`Move to group`,scopedTo:`groups`,title:e.name,hint:t?.groupId===e.id?`current`:void 0,keywords:`group move file`,run:()=>n(e)}));return t?.groupId&&i.push({id:`move-to-none`,group:`Move to group`,scopedTo:`groups`,title:Vc,hint:`take it out of its group`,keywords:`ungroup none remove`,run:()=>n(null)}),i.push({id:`move-to-new`,group:`Move to group`,scopedTo:`groups`,title:`New group…`,hint:`create one and move it there`,keywords:`new group create`,run:r}),i}var U=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ProjectApp.tsx`;function Gc({projectId:e,route:t,navigate:n,projects:r,groups:i,card:a,onOpenHub:o,onSwitchProject:s}){let c=Fn(),l=Xr(),{data:u}=$n(),{data:d,isLoading:f}=er(),p=nr(),m=ar(),h=lr(),g=gr(),{data:_}=dr(),{data:v}=ur(),[y,b]=(0,O.useState)(_n),[x,ee]=(0,O.useState)(`preview`),[te,ne]=(0,O.useState)(``),[re,ie]=(0,O.useState)(),[ae,S]=(0,O.useState)(),[oe,C]=(0,O.useState)(!1),[w,se]=(0,O.useState)(!1),[T,ce]=(0,O.useState)(!1),[le,ue]=(0,O.useState)(!1),[de,fe]=(0,O.useState)(!1),pe=(0,O.useCallback)(()=>C(!1),[]),me=(0,O.useCallback)(()=>se(!1),[]),he=(0,O.useCallback)(()=>S(void 0),[]),ge=(0,O.useCallback)(()=>fe(!1),[]),[_e,ve]=(0,O.useState)(),[ye,be]=(0,O.useState)(!1),xe=(0,O.useMemo)(()=>d?.sessions??[],[d]),Se=(0,O.useMemo)(()=>{let e=te.trim();return e.length===0?xe:xe.map(t=>({session:t,score:en(`${t.title} ${t.excerpt} ${t.tags.join(` `)}`,e)})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).map(e=>e.session)},[xe,te]),Ce=(0,O.useMemo)(()=>yn(vn(xe,te.trim().length>0?new Set(Se.map(e=>e.id)):void 0,_?.reviews??[],y)),[xe,Se,te,_,y]),we=Ya((0,O.useMemo)(()=>Ce.map(e=>e.id),[Ce]),(0,O.useMemo)(()=>xe.map(e=>e.id),[xe])),E=(0,O.useMemo)(()=>xe.filter(e=>we.isSelected(e.id)),[xe,we]),Te=we.clear;(0,O.useEffect)(()=>{t.name!==`sessions`&&Te()},[t.name,Te]);let Ee=(0,O.useCallback)(e=>{b(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),De=(0,O.useCallback)(e=>{let t=xe.find(t=>t.id===e);if(!(!t||!u))return`execute instructions from ${u.sessionsDirectory}/${t.file}`},[xe,u]),Oe=(0,O.useCallback)(()=>{let e=t.name===`session`?t.sessionId:re,n=e?De(e):void 0;if(!n){c(`No session in focus — open one, or pick one from the list.`,`info`);return}tn(n).then(e=>c(e?`Execute line copied`:`Could not copy`,e?`success`:`danger`))},[t,re,De,c]),D=(0,O.useCallback)(()=>{let e=t.name===`session`?t.sessionId:re,n=e?xe.find(t=>t.id===e):void 0;if(!n||!u){c(`No session in focus — open one, or pick one from the list.`,`info`);return}if(!n.issue){c(`That session is not linked to an issue.`,`info`);return}tn(`synthesise the plan of ${u.sessionsDirectory}/${n.file} into its <issue-spec> block, following the project issue template`).then(e=>c(e?`Synthesis line copied`:`Could not copy`,e?`success`:`danger`))},[t,re,xe,u,c]),ke=(0,O.useCallback)(t=>{ie(t),n({name:`session`,projectId:e,sessionId:t})},[n]),Ae=(0,O.useCallback)(t=>n({name:`review`,projectId:e,slug:t}),[n]),je=(0,O.useCallback)(e=>{g.mutate(e,{onSuccess:async e=>{se(!1),await tn(e.executeLine),c(e.guidance,`success`),ke(e.session.id)},onError:e=>c(e instanceof Error?e.message:`Could not create the review.`,`danger`)})},[g,ke,c]),Me=(0,O.useCallback)(e=>je({sessionId:e}),[je]),Ne=(0,O.useCallback)((e,t)=>{p.mutate({sessionId:e,status:t},{onError:()=>c(`Could not change the status.`,`danger`),onSuccess:e=>{e.status===`executed`&&e.kind!==`review`&&(e.reviewSessionIds.length>0||v&&!v.canReview||c(`Marked done — request a review from the session page.`,`info`))}})},[p,c,v]),Pe=(0,O.useCallback)(e=>{m.mutate(e,{onSuccess:async e=>{C(!1),await tn(e.executeLine),c(`Session created — execute line copied`,`success`),ee(`edit`),ke(e.session.id)},onError:e=>c(e instanceof Error?e.message:`Could not create the session.`,`danger`)})},[m,ke,c]),Fe=qc({sessions:xe,route:t,project:u?.directory,projects:r,groups:i,currentProjectId:e,onSwitchProject:s,onOpenHub:o,onOpenSession:ke,onChangeStatus:Ne,onNew:()=>C(!0),onSetMode:ee,onShortcuts:()=>fe(!0),onMigrateAll:()=>h.mutate(void 0,{onSuccess:e=>c(`Migrated ${e.migrated.length} session(s)`,`success`),onError:()=>c(`Could not migrate headers.`,`danger`)}),onGoToSessions:()=>n({name:`sessions`,projectId:e}),onGoToReviews:()=>n({name:`reviews`,projectId:e}),onGoToPackages:()=>n({name:`packages`,projectId:e}),onGoToSettings:t=>n({name:`settings`,projectId:e,...t?{section:t}:{}}),onInstallPackage:()=>{n({name:`packages`,projectId:e}),ce(!0)},onSyncProject:()=>{n({name:`packages`,projectId:e}),ue(!0)},onBrowseSkills:()=>n({name:`skills`,projectId:e}),onReviewBranch:()=>se(!0),onCopyExecuteLine:Oe,onCopySynthesisLine:D,onOpenReview:Ae,onRequestReview:Me,reviews:_?.reviews??[],canReview:v?.canReview??!1,onStop:async()=>{window.confirm(`Stop this UI server? The page will stop responding.`)&&(await Wn.shutdown().catch(()=>void 0),c(`UI stopping…`,`info`))},toast:c});return Yc({enabled:!oe&&!de&&!w,paletteOpen:ae!==void 0,onPalette:()=>S(e=>e===void 0?`root`:void 0),onSwitcher:()=>S(`projects`),onHub:o,onNew:()=>C(!0),onShortcuts:()=>fe(!0),onCopyExecuteLine:Oe,onFilter:()=>document.querySelector(`.filter__input`)?.focus(),onTogglePreview:()=>ee(e=>e===`edit`?`preview`:`edit`),onSplit:()=>ee(`split`),onEscape:()=>{if(we.count>0){we.clear();return}t.name===`session`?n({name:`sessions`,projectId:e}):t.name===`review`&&n({name:`reviews`,projectId:e})},onMove:e=>{if(t.name!==`sessions`||Ce.length===0)return;let n=Ce.findIndex(e=>e.id===re),r=n===-1?0:Math.min(Math.max(n+e,0),Ce.length-1);ie(Ce[r].id)},onOpenFocused:()=>{t.name===`sessions`&&re&&ke(re)},onStatusDigit:e=>{let n=Bt[e];if(!n)return;if(t.name===`sessions`&&we.count>0){ve(n);return}let r=t.name===`session`?t.sessionId:re;r&&Ne(r,n)},onToggleSelect:e=>{t.name!==`sessions`||!re||we.toggle(re,{range:e})},onSelectAll:()=>{t.name===`sessions`&&we.selectAll()},onArchiveSelected:()=>{t.name===`sessions`&&we.count>0&&be(!0)},hasSelection:we.count>0,isSessionRoute:t.name===`session`}),(0,A.jsxDEV)(`div`,{className:`app app--project app--${a?.color??`indigo`}`,children:[(0,A.jsxDEV)(Et,{route:t,projectId:e,card:a,onNavigate:n,onOpenPalette:()=>S(`root`),onOpenHub:o,onSwitchProject:()=>S(`projects`),live:l},void 0,!1,{fileName:U,lineNumber:410,columnNumber:7},this),(0,A.jsxDEV)(`main`,{className:`main`,children:t.name===`session`?(0,A.jsxDEV)(Ca,{sessionId:t.sessionId,mode:x,onModeChange:ee,onBack:()=>n({name:`sessions`,projectId:e}),onArchived:()=>n({name:`sessions`,projectId:e}),onOpenSession:ke,onOpenSettings:()=>n({name:`settings`,projectId:e,section:`publishing`})},void 0,!1,{fileName:U,lineNumber:423,columnNumber:11},this):t.name===`reviews`?(0,A.jsxDEV)(Xa,{onOpen:Ae,onOpenSession:ke,onReviewBranch:()=>se(!0)},void 0,!1,{fileName:U,lineNumber:433,columnNumber:11},this):t.name===`review`?(0,A.jsxDEV)(to,{slug:t.slug,onBack:()=>n({name:`reviews`,projectId:e}),onOpenSession:ke,onOpenSettings:()=>n({name:`settings`,projectId:e,section:`publishing`})},void 0,!1,{fileName:U,lineNumber:439,columnNumber:11},this):t.name===`settings`?(0,A.jsxDEV)(Ac,{section:t.section,onSectionChange:t=>n({name:`settings`,projectId:e,...t?{section:t}:{}})},void 0,!1,{fileName:U,lineNumber:446,columnNumber:11},this):t.name===`packages`?(0,A.jsxDEV)(us,{installOpen:T,syncOpen:le,onInstallOpenChange:ce,onSyncOpenChange:ue,onBrowseSkills:()=>n({name:`skills`,projectId:e})},void 0,!1,{fileName:U,lineNumber:453,columnNumber:11},this):t.name===`skills`?(0,A.jsxDEV)(Ss,{onBack:()=>n({name:`packages`,projectId:e})},void 0,!1,{fileName:U,lineNumber:461,columnNumber:11},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`nav`,{className:`crumbs`,"aria-label":`Breadcrumb`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`crumbs__link`,onClick:o,children:`Projects`},void 0,!1,{fileName:U,lineNumber:467,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`crumbs__sep`,children:`/`},void 0,!1,{fileName:U,lineNumber:470,columnNumber:19},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`crumbs__link`,onClick:()=>S(`projects`),children:a?.name??u?.name??`Project`},void 0,!1,{fileName:U,lineNumber:473,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`crumbs__sep`,children:`/`},void 0,!1,{fileName:U,lineNumber:480,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`crumbs__here`,children:`Sessions`},void 0,!1,{fileName:U,lineNumber:481,columnNumber:19},this)]},void 0,!0,{fileName:U,lineNumber:466,columnNumber:17},this),(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:u?.name??`Sessions`},void 0,!1,{fileName:U,lineNumber:483,columnNumber:17},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`topbar__path`,title:u?`${u.directory} — click to copy`:void 0,onClick:async()=>{u&&c(await tn(u.directory)?`Path copied`:`Could not copy`,`success`)},children:u?nn(u.directory):``},void 0,!1,{fileName:U,lineNumber:484,columnNumber:17},this)]},void 0,!0,{fileName:U,lineNumber:465,columnNumber:15},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:Rt.map(e=>(0,A.jsxDEV)(`span`,{className:`count count--${e}`,title:zt[e],children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:d?.counts[e]??0},void 0,!1,{fileName:U,lineNumber:502,columnNumber:23},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:zt[e]},void 0,!1,{fileName:U,lineNumber:503,columnNumber:23},this)]},e,!0,{fileName:U,lineNumber:501,columnNumber:21},this))},void 0,!1,{fileName:U,lineNumber:499,columnNumber:17},this),(0,A.jsxDEV)(`div`,{className:`filter filter--compact`,children:(0,A.jsxDEV)(`input`,{className:`filter__input`,value:te,placeholder:`Filter… /`,onChange:e=>ne(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(ne(``),e.currentTarget.blur())},"aria-label":`Filter sessions`},void 0,!1,{fileName:U,lineNumber:511,columnNumber:19},this)},void 0,!1,{fileName:U,lineNumber:510,columnNumber:17},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>C(!0),children:`New session`},void 0,!1,{fileName:U,lineNumber:521,columnNumber:17},this)]},void 0,!0,{fileName:U,lineNumber:498,columnNumber:15},this)]},void 0,!0,{fileName:U,lineNumber:464,columnNumber:13},this),d&&d.needingMigration>0&&(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:[d.needingMigration,` session(s)`]},void 0,!0,{fileName:U,lineNumber:530,columnNumber:19},this),` have no canonical `,(0,A.jsxDEV)(`code`,{children:`<session-meta>`},void 0,!1,{fileName:U,lineNumber:530,columnNumber:89},this),` header.`]},void 0,!0,{fileName:U,lineNumber:529,columnNumber:17},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>h.mutate(void 0,{onSuccess:e=>c(`Migrated ${e.migrated.length} session(s)`,`success`),onError:()=>c(`Could not migrate headers.`,`danger`)}),children:`Migrate all`},void 0,!1,{fileName:U,lineNumber:533,columnNumber:19},this)},void 0,!1,{fileName:U,lineNumber:532,columnNumber:17},this)]},void 0,!0,{fileName:U,lineNumber:528,columnNumber:15},this),f?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading sessions…`},void 0,!1,{fileName:U,lineNumber:550,columnNumber:15},this):xe.length===0?(0,A.jsxDEV)(Kc,{onNew:()=>C(!0)},void 0,!1,{fileName:U,lineNumber:552,columnNumber:15},this):(0,A.jsxDEV)(xn,{sessions:Se,allSessions:xe,reviews:_?.reviews??[],filter:te,focusedId:re,onFocus:ie,onOpen:ke,onStatusChange:Ne,collapsed:y,onToggleCollapsed:Ee,selection:we},void 0,!1,{fileName:U,lineNumber:554,columnNumber:15},this),we.count>0&&(0,A.jsxDEV)(fi,{sessions:E,count:we.count,hiddenCount:we.hiddenCount,onClear:we.clear,onNarrow:we.replace,pendingStatus:_e,onPendingStatusHandled:()=>ve(void 0),archiveRequested:ye,onArchiveRequestHandled:()=>be(!1)},void 0,!1,{fileName:U,lineNumber:570,columnNumber:15},this)]},void 0,!0,{fileName:U,lineNumber:463,columnNumber:11},this)},void 0,!1,{fileName:U,lineNumber:421,columnNumber:7},this),ae&&(0,A.jsxDEV)(Lc,{actions:Fe,initialScope:ae,onClose:he},void 0,!1,{fileName:U,lineNumber:587,columnNumber:9},this),oe&&(0,A.jsxDEV)(ja,{busy:m.isPending,projectDirectory:u?.directory,onClose:pe,onSubmit:Pe},void 0,!1,{fileName:U,lineNumber:590,columnNumber:9},this),w&&(0,A.jsxDEV)(io,{busy:g.isPending,onClose:me,onSubmit:({base:e})=>je({standalone:!0,base:e})},void 0,!1,{fileName:U,lineNumber:598,columnNumber:9},this),de&&(0,A.jsxDEV)(Bc,{onClose:ge},void 0,!1,{fileName:U,lineNumber:604,columnNumber:25},this)]},void 0,!0,{fileName:U,lineNumber:409,columnNumber:5},this)}function Kc({onNew:e}){return(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No sessions yet`},void 0,!1,{fileName:U,lineNumber:612,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A session is a markdown file in `,(0,A.jsxDEV)(`code`,{children:`.invariant/sessions`},void 0,!1,{fileName:U,lineNumber:614,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:U,lineNumber:613,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:e,children:`New session`},void 0,!1,{fileName:U,lineNumber:617,columnNumber:7},this)]},void 0,!0,{fileName:U,lineNumber:611,columnNumber:5},this)}function qc(e){return(0,O.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:`switch-project`,group:`Actions`,title:`Switch project…`,shortcut:`⌘P`,keywords:`project switch change repository workspace`,scope:`projects`,run:()=>void 0},{id:`go-hub`,group:`Actions`,title:`All projects`,shortcut:`⇧⌘H`,keywords:`hub projects home overview`,run:e.onOpenHub},{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:`go-packages`,group:`Actions`,title:`Go to packages`,keywords:`package install add remove inspect`,run:e.onGoToPackages},...hc.map(t=>({id:`go-settings-${t.id}`,group:`Settings`,title:`Settings: ${t.title}`,hint:ws[t.scope],keywords:`settings configuration ${t.keywords}`,run:()=>e.onGoToSettings(t.id)})),{id:`install-package`,group:`Packages`,title:`Install package…`,keywords:`github skills.sh registry add dependency`,run:e.onInstallPackage},{id:`browse-skills`,group:`Packages`,title:`Browse skills…`,hint:`The skills.sh catalogue`,keywords:`skills.sh catalogue browse search install skill agent`,run:e.onBrowseSkills},{id:`sync-project`,group:`Packages`,title:`Sync…`,hint:`Regenerate target folders`,keywords:`sync regenerate claude cursor drift check`,run:e.onSyncProject},{id:`review-branch`,group:`Actions`,title:`Review a branch…`,hint:`Tied to no session`,keywords:`standalone review branch diff someone else`,run:e.onReviewBranch},{id:`copy-synthesis-line`,group:`Actions`,title:`Copy the synthesis line`,hint:`Ask an agent to write the issue spec`,keywords:`linear issue spec synthesis summary paste agent`,run:e.onCopySynthesisLine},{id:`copy-execute-line`,group:`Actions`,title:`Copy the execute line`,shortcut:`⇧⌘R`,keywords:`paste agent run session`,run:e.onCopyExecuteLine},{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 tn(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(an(n.reviewFile))});for(let t of Bt)t!==n.status&&r.push({id:`status-${t}`,group:`This session`,title:`Set status: ${Pt({kind:n.kind,status:t}).label}`,status:t,run:()=>e.onChangeStatus(n.id,t)});n.status===`review`&&r.push({id:`status-locked`,group:`This session`,title:`Why can I not change this status?`,hint:Vt,keywords:`review status locked triage`,run:()=>e.toast(Vt,`info`)})}r.push(...Hc({projects:e.projects,groups:e.groups,currentProjectId:e.currentProjectId,onSwitch:e.onSwitchProject}));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){let n=Pt(t,dn(t,e.reviews));r.push({id:`open-${t.id}`,group:t.kind===`review`?`Go to review session`:`Go to session`,title:t.title,hint:t.kind===`review`?`${n.label} · ${t.branch??``}`.trim():n.label,status:t.status,keywords:`${t.excerpt} ${t.tags.join(` `)} ${t.branch??``}`,run:()=>e.onOpenSession(t.id)})}return r},[e])}function Jc(e){let t=e;return t?t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable||t.closest(`.cm-editor`)!==null:!1}function Yc(e){(0,O.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()===`p`){t.preventDefault(),e.onSwitcher();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`h`){t.preventDefault(),e.onHub();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`v`){t.preventDefault(),e.onTogglePreview();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`r`){t.preventDefault(),e.onCopyExecuteLine();return}if(!(!e.enabled||e.paletteOpen)){if(t.key===`Escape`&&!Jc(t.target)){e.onEscape();return}if(!Jc(t.target)){if(n&&t.key.toLowerCase()===`a`&&!e.isSessionRoute){t.preventDefault(),e.onSelectAll();return}if(n&&t.key===`Backspace`&&e.hasSelection){t.preventDefault(),e.onArchiveSelected();return}switch(t.key){case`x`:case`X`:t.preventDefault(),e.onToggleSelect(t.shiftKey);return;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`:case`5`:e.onStatusDigit(Number(t.key)-1);return}}}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var Xc=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/hub/ProjectRow.tsx`;function Zc({card:e,focused:t,renaming:n,onFocus:r,onOpen:i,onRename:a,onCommitRename:o,onCancelRename:s,onMove:c,onCopyPath:l,onRemove:u,onInitialize:d}){let f=e.state!==`ok`,p=xt(e.lastActivityAt),m=e.counts,h=(m?.[`in-progress`]??0)+(m?.planning??0),g=e.attention?.awaitingDecision??0,_=e.attention?.openReviewComments??0,v=e.displayName&&e.manifestName&&e.manifestName!==e.displayName?e.manifestName:void 0,y=(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`project-row__monogram`,"aria-hidden":`true`,children:bt(e.name)},void 0,!1,{fileName:Xc,lineNumber:61,columnNumber:7},this),(0,A.jsxDEV)(`span`,{className:`project-row__identity`,children:n?(0,A.jsxDEV)($c,{initial:e.displayName??e.name,canReset:e.displayName!==void 0,onCommit:o,onCancel:s},void 0,!1,{fileName:Xc,lineNumber:67,columnNumber:11},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`project-row__name`,children:e.name},void 0,!1,{fileName:Xc,lineNumber:75,columnNumber:13},this),v&&(0,A.jsxDEV)(`span`,{className:`project-row__secondary`,children:v},void 0,!1,{fileName:Xc,lineNumber:76,columnNumber:27},this)]},void 0,!0,{fileName:Xc,lineNumber:74,columnNumber:11},this)},void 0,!1,{fileName:Xc,lineNumber:65,columnNumber:7},this),(0,A.jsxDEV)(`span`,{className:`project-row__path`,title:e.directory,children:nn(e.directory)},void 0,!1,{fileName:Xc,lineNumber:81,columnNumber:7},this),f?(0,A.jsxDEV)(`span`,{className:`project-row__problem`,children:e.problem??el(e.state)},void 0,!1,{fileName:Xc,lineNumber:86,columnNumber:9},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`project-row__branch`,children:e.git?.branch&&(0,A.jsxDEV)(`span`,{className:`chip chip--branch`,children:e.git.branch},void 0,!1,{fileName:Xc,lineNumber:90,columnNumber:34},this)},void 0,!1,{fileName:Xc,lineNumber:89,columnNumber:11},this),(0,A.jsxDEV)(Qc,{value:h,label:`in flight`},void 0,!1,{fileName:Xc,lineNumber:92,columnNumber:11},this),(0,A.jsxDEV)(Qc,{value:g,label:`awaiting you`,tone:`waiting`},void 0,!1,{fileName:Xc,lineNumber:93,columnNumber:11},this),(0,A.jsxDEV)(Qc,{value:_,label:`open comments`},void 0,!1,{fileName:Xc,lineNumber:94,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`project-row__activity`,children:p??``},void 0,!1,{fileName:Xc,lineNumber:95,columnNumber:11},this)]},void 0,!0,{fileName:Xc,lineNumber:88,columnNumber:9},this)]},void 0,!0,{fileName:Xc,lineNumber:60,columnNumber:5},this);return(0,A.jsxDEV)(`div`,{className:`project-row project-row--${e.color}${t?` is-focused`:``}${f?` is-unavailable`:``}`,"data-project-id":e.id,onMouseEnter:r,children:[n?(0,A.jsxDEV)(`div`,{className:`project-row__open is-renaming`,children:y},void 0,!1,{fileName:Xc,lineNumber:113,columnNumber:9},this):(0,A.jsxDEV)(`button`,{type:`button`,className:`project-row__open`,onClick:i,disabled:f,"aria-label":`Open ${e.name}`,children:y},void 0,!1,{fileName:Xc,lineNumber:115,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`project-row__actions`,children:[e.state===`uninitialized`&&(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:d,children:`How to fix`},void 0,!1,{fileName:Xc,lineNumber:128,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:a,children:`Rename`},void 0,!1,{fileName:Xc,lineNumber:132,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:c,children:`Move to…`},void 0,!1,{fileName:Xc,lineNumber:135,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:l,children:`Copy path`},void 0,!1,{fileName:Xc,lineNumber:138,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:u,children:`Remove`},void 0,!1,{fileName:Xc,lineNumber:143,columnNumber:9},this)]},void 0,!0,{fileName:Xc,lineNumber:126,columnNumber:7},this)]},void 0,!0,{fileName:Xc,lineNumber:102,columnNumber:5},this)}function Qc({value:e,label:t,tone:n}){return e===0?(0,A.jsxDEV)(`span`,{className:`project-row__count is-zero`,"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:Xc,lineNumber:155,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`project-row__count${n?` is-${n}`:``}`,title:`${e} ${t}`,children:e},void 0,!1,{fileName:Xc,lineNumber:161,columnNumber:5},this)}function $c({initial:e,canReset:t,onCommit:n,onCancel:r}){let[i,a]=(0,O.useState)(e),o=(0,O.useRef)(null),s=(0,O.useRef)(!1);(0,O.useEffect)(()=>{o.current?.focus(),o.current?.select()},[]);let c=e=>{s.current||(s.current=!0,n(e))};return(0,A.jsxDEV)(`span`,{className:`project-row__rename`,children:[(0,A.jsxDEV)(`input`,{ref:o,className:`project-row__rename-input`,value:i,"aria-label":`Project name on this machine`,onChange:e=>a(e.target.value),onBlur:()=>c(i.trim().length>0?i.trim():null),onKeyDown:e=>{e.stopPropagation(),e.key===`Enter`&&(e.preventDefault(),c(i.trim().length>0?i.trim():null)),e.key===`Escape`&&(e.preventDefault(),s.current=!0,r())}},void 0,!1,{fileName:Xc,lineNumber:203,columnNumber:7},this),t&&(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onMouseDown:e=>{e.preventDefault(),c(null)},children:`Reset`},void 0,!1,{fileName:Xc,lineNumber:224,columnNumber:9},this)]},void 0,!0,{fileName:Xc,lineNumber:202,columnNumber:5},this)}function el(e){switch(e){case`missing`:return`missing`;case`uninitialized`:return`not initialized`;case`unreadable`:return`unreadable`;default:return``}}var tl=`__ungrouped__`;function nl({projects:e,groups:t,filter:n}){let r=n.trim(),i=r.length>0,a=new Map(t.map(e=>[e.id,e.name])),o=i?rl(e,r,a):e;if(t.length===0){let e={id:tl,name:`Projects`,projects:o,collapsed:!1,synthetic:!0};return{sections:o.length>0?[e]:[],rows:o.map(e=>({kind:`project`,id:e.id,card:e,sectionId:tl})),flat:!0,matched:o.length}}let s=[...t].sort((e,t)=>e.order-t.order).map(e=>({id:e.id,name:e.name,color:e.color,projects:o.filter(t=>t.groupId===e.id),collapsed:!i&&e.collapsed,synthetic:!1})),c=o.filter(e=>!e.groupId||!a.has(e.groupId));c.length>0&&s.push({id:tl,name:`Ungrouped`,projects:c,collapsed:!1,synthetic:!0});let l=s.filter(e=>e.projects.length>0||!i&&!e.synthetic),u=[];for(let e of l)if(u.push({kind:`group`,id:e.id,section:e}),!e.collapsed)for(let t of e.projects)u.push({kind:`project`,id:t.id,card:t,sectionId:e.id});return{sections:l,rows:u,flat:!1,matched:o.length}}function rl(e,t,n){return e.map(e=>({project:e,score:en([e.name,e.displayName??``,e.manifestName??``,e.directory,e.groupId?n.get(e.groupId)??``:``].join(` `),t)})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).map(e=>e.project)}function il(e,t,n){if(e.length===0)return;let r=e.findIndex(e=>e.id===t);return r===-1?e[n===1?0:e.length-1].id:e[Math.min(Math.max(r+n,0),e.length-1)].id}function al(e,t){let n=e.find(e=>e.id===t);if(n)return n.kind===`group`?n.id:n.sectionId}function ol(e){return e.reduce((e,t)=>({working:e.working+(t.counts?.[`in-progress`]??0)+(t.counts?.planning??0),waiting:e.waiting+(t.attention?.awaitingDecision??0),comments:e.comments+(t.attention?.openReviewComments??0)}),{working:0,waiting:0,comments:0})}var sl=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/hub/ProjectGroupSection.tsx`;function cl({section:e,focused:t,headerless:n,onFocus:r,onToggle:i,onRename:a,onDelete:o,children:s}){if(n)return(0,A.jsxDEV)(`div`,{className:`hub-group__rows`,children:s},void 0,!1,{fileName:sl,lineNumber:36,columnNumber:26},this);let c=ol(e.projects),l=`group-${e.id}`;return(0,A.jsxDEV)(`section`,{className:`hub-group${e.color?` hub-group--${e.color}`:``}${t?` is-focused`:``}`,"data-group-id":e.id,children:[(0,A.jsxDEV)(`div`,{className:`hub-group__head`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`hub-group__toggle`,"aria-expanded":!e.collapsed,"aria-controls":l,onClick:i,onMouseEnter:r,children:[(0,A.jsxDEV)(`svg`,{className:`hub-group__caret${e.collapsed?` is-collapsed`:``}`,viewBox:`0 0 12 12`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M4 2.5 8 6l-4 3.5z`},void 0,!1,{fileName:sl,lineNumber:62,columnNumber:13},this)},void 0,!1,{fileName:sl,lineNumber:57,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`hub-group__name`,children:e.name},void 0,!1,{fileName:sl,lineNumber:64,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`hub-group__count`,children:e.projects.length===0?`empty`:e.projects.length},void 0,!1,{fileName:sl,lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:sl,lineNumber:49,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`hub-group__totals`,children:[c.working>0&&(0,A.jsxDEV)(`span`,{children:[c.working,` in flight`]},void 0,!0,{fileName:sl,lineNumber:71,columnNumber:34},this),c.waiting>0&&(0,A.jsxDEV)(`span`,{className:`hub-group__waiting`,children:[c.waiting,` awaiting you`]},void 0,!0,{fileName:sl,lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:sl,lineNumber:70,columnNumber:9},this),!e.synthetic&&(0,A.jsxDEV)(`span`,{className:`hub-group__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:a,children:`Rename`},void 0,!1,{fileName:sl,lineNumber:81,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:o,children:`Delete`},void 0,!1,{fileName:sl,lineNumber:84,columnNumber:13},this)]},void 0,!0,{fileName:sl,lineNumber:80,columnNumber:11},this)]},void 0,!0,{fileName:sl,lineNumber:48,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`hub-group__rows`,id:l,role:`group`,"aria-label":e.name,hidden:e.collapsed,children:e.projects.length===0?(0,A.jsxDEV)(`p`,{className:`hub-group__empty`,children:`No projects — move one here with “Move to…”.`},void 0,!1,{fileName:sl,lineNumber:93,columnNumber:11},this):s},void 0,!1,{fileName:sl,lineNumber:91,columnNumber:7},this)]},void 0,!0,{fileName:sl,lineNumber:42,columnNumber:5},this)}var ll=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/hub/AddProjectModal.tsx`;function ul({busy:e,onClose:t,onSubmit:n,error:r}){let[i,a]=(0,O.useState)(``),o=i.trim();return(0,A.jsxDEV)(Mn,{title:`Add project`,onClose:t,children:(0,A.jsxDEV)(`form`,{className:`form`,onSubmit:t=>{t.preventDefault(),o.length>0&&!e&&n(o)},children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Project folder`},void 0,!1,{fileName:ll,lineNumber:34,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,autoFocus:!0,value:i,placeholder:`~/dev/my-project`,spellCheck:!1,onChange:e=>a(e.target.value)},void 0,!1,{fileName:ll,lineNumber:35,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`The folder holding `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:ll,lineNumber:44,columnNumber:32},this),`. `,(0,A.jsxDEV)(`code`,{children:`~`},void 0,!1,{fileName:ll,lineNumber:44,columnNumber:61},this),` works.`]},void 0,!0,{fileName:ll,lineNumber:43,columnNumber:11},this)]},void 0,!0,{fileName:ll,lineNumber:33,columnNumber:9},this),r!==void 0&&(0,A.jsxDEV)(dl,{error:r},void 0,!1,{fileName:ll,lineNumber:48,columnNumber:33},this),(0,A.jsxDEV)(`div`,{className:`form__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:ll,lineNumber:51,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`submit`,className:`button button--solid`,disabled:e||o.length===0,children:e?`Adding…`:`Add project`},void 0,!1,{fileName:ll,lineNumber:54,columnNumber:11},this)]},void 0,!0,{fileName:ll,lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:ll,lineNumber:26,columnNumber:7},this)},void 0,!1,{fileName:ll,lineNumber:25,columnNumber:5},this)}function dl({error:e}){return e instanceof Bn&&e.code===`PROJECT_NOT_INITIALIZED`?(0,A.jsxDEV)(`p`,{className:`form__error`,children:[`That folder is not an Invariant project yet. Run `,(0,A.jsxDEV)(`code`,{children:`invariant init`},void 0,!1,{fileName:ll,lineNumber:71,columnNumber:58},this),` there, then add it.`]},void 0,!0,{fileName:ll,lineNumber:70,columnNumber:7},this):e instanceof Bn&&e.code===`PROJECT_ALREADY_REGISTERED`?(0,A.jsxDEV)(`p`,{className:`form__error`,children:e.message},void 0,!1,{fileName:ll,lineNumber:76,columnNumber:12},this):e instanceof Bn&&e.code===`PROJECT_PATH_MISSING`?(0,A.jsxDEV)(`p`,{className:`form__error`,children:`No such folder. Check the path and try again.`},void 0,!1,{fileName:ll,lineNumber:79,columnNumber:12},this):(0,A.jsxDEV)(`p`,{className:`form__error`,children:e instanceof Error?e.message:`That project could not be added.`},void 0,!1,{fileName:ll,lineNumber:82,columnNumber:5},this)}var fl=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/hub/GroupModal.tsx`;function pl({initial:e,busy:t,error:n,onClose:r,onSubmit:i}){let[a,o]=(0,O.useState)(e?.name??``),[s,c]=(0,O.useState)(e?.color),l=a.trim();return(0,A.jsxDEV)(Mn,{title:e?`Rename group`:`New group`,onClose:r,children:(0,A.jsxDEV)(`form`,{className:`form`,onSubmit:e=>{e.preventDefault(),l.length>0&&!t&&i({name:l,color:s})},children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Name`},void 0,!1,{fileName:fl,lineNumber:36,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,autoFocus:!0,value:a,placeholder:`Work`,maxLength:64,onChange:e=>o(e.target.value)},void 0,!1,{fileName:fl,lineNumber:37,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:`Groups live in this machine's project registry — they never reach your colleagues.`},void 0,!1,{fileName:fl,lineNumber:45,columnNumber:11},this)]},void 0,!0,{fileName:fl,lineNumber:35,columnNumber:9},this),(0,A.jsxDEV)(`fieldset`,{className:`config-swatches`,children:[(0,A.jsxDEV)(`legend`,{className:`field__label`,children:`Colour`},void 0,!1,{fileName:fl,lineNumber:51,columnNumber:11},this),qt.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,className:`config-swatch config-swatch--${e}${s===e?` is-active`:``}`,"aria-label":e,"aria-pressed":s===e,title:e,onClick:()=>c(t=>t===e?void 0:e)},e,!1,{fileName:fl,lineNumber:53,columnNumber:13},this))]},void 0,!0,{fileName:fl,lineNumber:50,columnNumber:9},this),n!==void 0&&(0,A.jsxDEV)(`p`,{className:`form__error`,children:n instanceof Bn&&n.code===`PROJECT_GROUP_NAME_TAKEN`||n instanceof Error?n.message:`That group could not be saved.`},void 0,!1,{fileName:fl,lineNumber:68,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`form__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:r,children:`Cancel`},void 0,!1,{fileName:fl,lineNumber:78,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`submit`,className:`button button--solid`,disabled:t||l.length===0,children:t?`Saving…`:e?`Rename`:`Create group`},void 0,!1,{fileName:fl,lineNumber:81,columnNumber:11},this)]},void 0,!0,{fileName:fl,lineNumber:77,columnNumber:9},this)]},void 0,!0,{fileName:fl,lineNumber:28,columnNumber:7},this)},void 0,!1,{fileName:fl,lineNumber:27,columnNumber:5},this)}var ml=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/hub/HubPage.tsx`;function hl({onOpenProject:e,onRequestMove:t}){let n=Fn(),{data:r,isLoading:i}=Zr(),{data:a}=Qr(),o=$r(),s=ei(),c=ti(),l=ni(),u=ii(),d=ri(),[f,p]=(0,O.useState)(``),[m,h]=(0,O.useState)(!1),[g,_]=(0,O.useState)(),[v,y]=(0,O.useState)(),[b,x]=(0,O.useState)(),[ee,te]=(0,O.useState)(),[ne,re]=(0,O.useState)(),ie=(0,O.useMemo)(()=>r?.projects??[],[r]),ae=(0,O.useMemo)(()=>r?.groups??[],[r]),S=(0,O.useMemo)(()=>nl({projects:ie,groups:ae,filter:f}),[ie,ae,f]),oe=(0,O.useCallback)(t=>e(t),[e]),C=(0,O.useCallback)(async e=>{n(await tn(e)?`Path copied`:`Could not copy`,`success`)},[n]),w=(0,O.useCallback)(e=>{let t=ae.find(t=>t.id===e);t&&u.mutate({groupId:e,collapsed:!t.collapsed})},[ae,u]),se=(0,O.useCallback)((e,t)=>{re(void 0),(t??void 0)!==e.displayName&&c.mutate({projectId:e.id,displayName:t},{onSuccess:()=>n(t?`Renamed to ${t}`:`Back to the manifest name`,`success`),onError:e=>n(e instanceof Error?e.message:`That rename did not work.`,`danger`)})},[n,c]),T=(0,O.useCallback)(e=>{if(t){t(e);return}n(`Press ⌘K, then “Move to group…”.`,`info`)},[t,n]),ce=(0,O.useCallback)(e=>{h(!1),o.reset();let t=ie.some(t=>t.id!==e.id&&t.name.toLowerCase()===e.name.toLowerCase());if(te(e.id),t){re(e.id),n(`Another project is called “${e.name}” — give this one a name.`,`info`);return}n(`Added ${e.name}`,`success`)},[o,ie,n]),le=m||g!==void 0||v!==void 0||b!==void 0,ue=(0,O.useRef)({list:S,focusedId:ee,renamingId:ne,modalOpen:le});return ue.current={list:S,focusedId:ee,renamingId:ne,modalOpen:le},(0,O.useEffect)(()=>{let e=e=>{let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`))return;let{list:n,focusedId:r,renamingId:i,modalOpen:a}=ue.current;if(a||i)return;let o=n.rows,s=o.find(e=>e.id===r),c=t=>{e.preventDefault(),te(il(o,r,t))};if(e.key===`j`||e.key===`ArrowDown`)return c(1);if(e.key===`k`||e.key===`ArrowUp`)return c(-1);if(e.key===`/`){e.preventDefault(),document.querySelector(`.filter__input`)?.focus();return}if(e.key===`h`||e.key===`ArrowLeft`){e.preventDefault();let t=al(o,r);if(!t||t===`__ungrouped__`)return;te(t);let i=n.sections.find(e=>e.id===t);i&&!i.collapsed&&w(t);return}if(e.key===`l`||e.key===`ArrowRight`){e.preventDefault(),s?.kind===`group`&&s.section.collapsed&&w(s.id);return}if(e.key===` `&&s?.kind===`group`){e.preventDefault(),s.section.synthetic||w(s.id);return}if(e.key===`Enter`&&s){if(e.preventDefault(),s.kind===`group`){s.section.synthetic||w(s.id);return}s.card.state===`ok`&&oe(s.card.id);return}if((e.key===`F2`||e.key===`r`)&&s?.kind===`project`){e.preventDefault(),re(s.card.id);return}e.key===`m`&&s?.kind===`project`&&(e.preventDefault(),T(s.card))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[oe,T,w]),(0,A.jsxDEV)(`div`,{className:`hub`,children:[(0,A.jsxDEV)(`header`,{className:`hub__head`,children:[(0,A.jsxDEV)(`div`,{className:`hub__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`hub__title`,children:`Projects`},void 0,!1,{fileName:ml,lineNumber:235,columnNumber:11},this),(0,A.jsxDEV)(`p`,{className:`hub__subtitle`,children:ie.length===0?`None yet`:`${ie.length} project${ie.length===1?``:`s`} on this machine`},void 0,!1,{fileName:ml,lineNumber:236,columnNumber:11},this)]},void 0,!0,{fileName:ml,lineNumber:234,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`hub__controls`,children:[(0,A.jsxDEV)(`div`,{className:`filter filter--compact`,children:(0,A.jsxDEV)(`input`,{className:`filter__input`,value:f,placeholder:`Filter… /`,onChange:e=>p(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(p(``),e.currentTarget.blur())},"aria-label":`Filter projects`},void 0,!1,{fileName:ml,lineNumber:245,columnNumber:13},this)},void 0,!1,{fileName:ml,lineNumber:244,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>_({}),children:`New group`},void 0,!1,{fileName:ml,lineNumber:259,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>h(!0),children:`Add project`},void 0,!1,{fileName:ml,lineNumber:266,columnNumber:11},this)]},void 0,!0,{fileName:ml,lineNumber:243,columnNumber:9},this)]},void 0,!0,{fileName:ml,lineNumber:233,columnNumber:7},this),i?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading projects…`},void 0,!1,{fileName:ml,lineNumber:273,columnNumber:9},this):ie.length===0&&ae.length===0?(0,A.jsxDEV)(gl,{registryPath:r?.registryPath,onAdd:()=>h(!0)},void 0,!1,{fileName:ml,lineNumber:275,columnNumber:9},this):S.rows.length===0?(0,A.jsxDEV)(`div`,{className:`page-state`,children:[`No project matches “`,f,`”.`]},void 0,!0,{fileName:ml,lineNumber:277,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`hub__list`,role:`list`,children:S.sections.map(e=>(0,A.jsxDEV)(cl,{section:e,headerless:S.flat,focused:e.id===ee,onFocus:()=>te(e.id),onToggle:()=>w(e.id),onRename:()=>_({editing:ae.find(t=>t.id===e.id)}),onDelete:()=>x(ae.find(t=>t.id===e.id)),children:e.projects.map(e=>(0,A.jsxDEV)(Zc,{card:e,focused:e.id===ee,renaming:e.id===ne,onFocus:()=>te(e.id),onOpen:()=>oe(e.id),onRename:()=>re(e.id),onCommitRename:t=>se(e,t),onCancelRename:()=>re(void 0),onMove:()=>T(e),onCopyPath:()=>void C(e.directory),onRemove:()=>y(e),onInitialize:()=>n(`Run \`invariant init\` in ${e.directory}, then reload.`,`info`)},e.id,!1,{fileName:ml,lineNumber:296,columnNumber:17},this))},e.id,!1,{fileName:ml,lineNumber:281,columnNumber:13},this))},void 0,!1,{fileName:ml,lineNumber:279,columnNumber:9},this),a&&(0,A.jsxDEV)(`footer`,{className:`hub__foot`,children:[(0,A.jsxDEV)(`span`,{children:[`invariant ui v`,a.version,` · port `,a.port,` · pid `,a.pid]},void 0,!0,{fileName:ml,lineNumber:321,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`hub__registry`,title:a.registryPath,children:a.registryPath},void 0,!1,{fileName:ml,lineNumber:324,columnNumber:11},this)]},void 0,!0,{fileName:ml,lineNumber:320,columnNumber:9},this),m&&(0,A.jsxDEV)(ul,{busy:o.isPending,error:o.error??void 0,onClose:()=>{o.reset(),h(!1)},onSubmit:e=>o.mutate(e,{onSuccess:ce})},void 0,!1,{fileName:ml,lineNumber:331,columnNumber:9},this),g&&(0,A.jsxDEV)(pl,{initial:g.editing?{name:g.editing.name,color:g.editing.color}:void 0,busy:l.isPending||u.isPending,error:(g.editing?u.error:l.error)??void 0,onClose:()=>{l.reset(),u.reset(),_(void 0)},onSubmit:({name:e,color:t})=>{let n=g.editing,r=()=>{l.reset(),u.reset(),_(void 0)};if(n){u.mutate({groupId:n.id,name:e,color:t},{onSuccess:r});return}l.mutate({name:e,color:t},{onSuccess:r})}},void 0,!1,{fileName:ml,lineNumber:343,columnNumber:9},this),b&&(0,A.jsxDEV)(Tn,{title:`Delete ${b.name}?`,body:`The projects in it stay registered — they move back to Ungrouped.`,confirmLabel:`Delete group`,cancelLabel:`Keep`,onCancel:()=>x(void 0),onConfirm:()=>{let e=b;x(void 0),d.mutate(e.id,{onSuccess:t=>n(t.ungrouped>0?`Deleted ${e.name} — ${t.ungrouped} project${t.ungrouped===1?``:`s`} ungrouped`:`Deleted ${e.name}`,`success`),onError:()=>n(`Could not delete that group.`,`danger`)})}},void 0,!1,{fileName:ml,lineNumber:373,columnNumber:9},this),v&&(0,A.jsxDEV)(Tn,{title:`Remove ${v.name}?`,body:`This only removes it from this list. Nothing in ${v.directory} is touched, and adding the path again restores everything.`,confirmLabel:`Remove`,cancelLabel:`Keep`,onCancel:()=>y(void 0),onConfirm:()=>{let e=v;y(void 0),s.mutate(e.id,{onSuccess:()=>n(`Removed ${e.name} from the list`,`success`),onError:()=>n(`Could not remove that project.`,`danger`)})}},void 0,!1,{fileName:ml,lineNumber:399,columnNumber:9},this)]},void 0,!0,{fileName:ml,lineNumber:232,columnNumber:5},this)}function gl({registryPath:e,onAdd:t}){return(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No projects yet`},void 0,!1,{fileName:ml,lineNumber:423,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`Add the folder of a project you have run `,(0,A.jsxDEV)(`code`,{children:`invariant init`},void 0,!1,{fileName:ml,lineNumber:425,columnNumber:50},this),` in. The UI serves them all from here — one server, one tab, however many repositories you work in.`]},void 0,!0,{fileName:ml,lineNumber:424,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:t,children:`Add project`},void 0,!1,{fileName:ml,lineNumber:428,columnNumber:7},this),e&&(0,A.jsxDEV)(`p`,{className:`empty__footnote`,children:[`The list lives in `,(0,A.jsxDEV)(`code`,{children:e},void 0,!1,{fileName:ml,lineNumber:431,columnNumber:29},this),`.`]},void 0,!0,{fileName:ml,lineNumber:430,columnNumber:9},this)]},void 0,!0,{fileName:ml,lineNumber:422,columnNumber:5},this)}var _l=/^\/p\/([^/]+)(\/.*)?$/;function vl(e){return e.name!==`hub`&&e.name!==`not-found`}function yl(e){if(e===`/`||e===``||e===`/projects`)return{name:`hub`};let t=e.match(_l);if(!t)return{name:`not-found`,path:e};let n=decodeURIComponent(t[1]),r=t[2]??`/`;if(r===`/`||r===`/sessions`)return{name:`sessions`,projectId:n};let i=r.match(/^\/sessions\/([^/]+)$/);if(i)return{name:`session`,projectId:n,sessionId:decodeURIComponent(i[1])};if(r===`/reviews`)return{name:`reviews`,projectId:n};let a=r.match(/^\/reviews\/([^/]+)$/);if(a)return{name:`review`,projectId:n,slug:decodeURIComponent(a[1])};if(r===`/packages`)return{name:`packages`,projectId:n};if(r===`/packages/skills`)return{name:`skills`,projectId:n};if(r===`/settings`)return{name:`settings`,projectId:n};let o=r.match(/^\/settings\/([^/]+)$/);return o?{name:`settings`,projectId:n,section:decodeURIComponent(o[1])}:{name:`not-found`,path:e}}function bl(e){if(e.name===`hub`||e.name===`not-found`)return`/`;let t=`/p/${encodeURIComponent(e.projectId)}`;switch(e.name){case`sessions`:return`${t}/sessions`;case`session`:return`${t}/sessions/${encodeURIComponent(e.sessionId)}`;case`reviews`:return`${t}/reviews`;case`review`:return`${t}/reviews/${encodeURIComponent(e.slug)}`;case`packages`:return`${t}/packages`;case`skills`:return`${t}/packages/skills`;case`settings`:return e.section?`${t}/settings/${encodeURIComponent(e.section)}`:`${t}/settings`;default:return`/`}}function xl(e,t){if(e.startsWith(`/p/`))return;let n=yl(`/p/${encodeURIComponent(t)}${e}`);return n.name===`not-found`?void 0:n}function Sl(){let[e,t]=(0,O.useState)(()=>yl(window.location.pathname));return(0,O.useEffect)(()=>{let e=()=>t(yl(window.location.pathname));return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),{route:e,navigate:(0,O.useCallback)(e=>{let n=bl(e);n!==window.location.pathname&&window.history.pushState({},``,n),t(e)},[]),back:(0,O.useCallback)(()=>window.history.back(),[])}}var Cl=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/App.tsx`;function wl(){let{route:e,navigate:t}=Sl(),{data:n}=Zr({poll:e.name===`hub`}),r=oi(),i=(0,O.useMemo)(()=>n?.projects??[],[n]),a=(0,O.useMemo)(()=>n?.groups??[],[n]),o=vl(e)?e.projectId:void 0,s=i.find(e=>e.id===o),c=(0,O.useRef)(void 0);(0,O.useEffect)(()=>{o&&c.current!==o&&(r(o,c.current),c.current=o),o||(c.current=void 0)},[o,r]);let l=(0,O.useCallback)(e=>t({name:`sessions`,projectId:e}),[t]);(0,O.useEffect)(()=>{if(e.name!==`not-found`||!n)return;let r=n.lastActiveProjectId??i[0]?.id;if(!r)return;let a=xl(e.path,r);a&&(window.history.replaceState({},``,bl(a)),t(a))},[e,n,i,t]);let[u,d]=(0,O.useState)(),f=Tl(),p=(0,O.useCallback)(e=>{e!==o&&l(e)},[o,l]);if((0,O.useEffect)(()=>{if(vl(e))return;let t=e=>{(e.metaKey||e.ctrlKey)&&(e.key.toLowerCase()===`p`||e.key.toLowerCase()===`k`)&&(e.preventDefault(),d(`projects`))};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e]),vl(e))return(0,A.jsxDEV)(Jn,{projectId:e.projectId,card:s,children:(0,A.jsxDEV)(Gc,{projectId:e.projectId,route:e,navigate:t,projects:i,groups:a,card:s,onOpenHub:()=>t({name:`hub`}),onSwitchProject:p},e.projectId,!1,{fileName:Cl,lineNumber:98,columnNumber:9},this)},e.projectId,!1,{fileName:Cl,lineNumber:97,columnNumber:7},this);let m=[...Hc({projects:i,groups:a,currentProjectId:o,onSwitch:p}),...f.card?Wc({groups:a,card:f.card,onPick:f.pick,onCreate:f.startCreate}):[]];return(0,A.jsxDEV)(`div`,{className:`app app--hub`,children:[(0,A.jsxDEV)(`main`,{className:`main`,children:(0,A.jsxDEV)(hl,{onOpenProject:l,onRequestMove:e=>{f.start(e),d(`groups`)}},void 0,!1,{fileName:Cl,lineNumber:133,columnNumber:9},this)},void 0,!1,{fileName:Cl,lineNumber:132,columnNumber:7},this),u&&(0,A.jsxDEV)(Lc,{actions:m,initialScope:u,onClose:()=>{d(void 0),f.cancel()}},void 0,!1,{fileName:Cl,lineNumber:143,columnNumber:9},this),f.creating&&(0,A.jsxDEV)(pl,{busy:f.busy,error:f.error,onClose:f.cancel,onSubmit:f.createAndFile},void 0,!1,{fileName:Cl,lineNumber:154,columnNumber:9},this)]},void 0,!0,{fileName:Cl,lineNumber:131,columnNumber:5},this)}function Tl(){let e=Fn(),t=ti(),n=ni(),[r,i]=(0,O.useState)(),[a,o]=(0,O.useState)(!1),s=(0,O.useCallback)((n,r,i)=>{t.mutate({projectId:n.id,groupId:r},{onSuccess:()=>e(r?`${n.name} → ${i}`:`${n.name} is no longer in a group`,`success`),onError:t=>e(t instanceof Error?t.message:`That move did not work.`,`danger`)})},[e,t]),c=(0,O.useCallback)(()=>{o(!1),i(void 0),n.reset()},[n]);return{card:r,creating:a,busy:n.isPending||t.isPending,error:n.error??void 0,start:e=>{o(!1),i(e)},startCreate:()=>o(!0),cancel:c,pick:e=>{r&&s(r,e?.id??null,e?.name??``),i(void 0)},createAndFile:({name:e,color:t})=>{let i=r;n.mutate({name:e,color:t},{onSuccess:e=>{i&&s(i,e.id,e.name),c()}})}}}var El=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/main.tsx`,Dl=new Qe({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:5e3}}});(0,yt.createRoot)(document.getElementById(`root`)).render((0,A.jsxDEV)(O.StrictMode,{children:(0,A.jsxDEV)(rt,{client:Dl,children:(0,A.jsxDEV)(Ln,{children:(0,A.jsxDEV)(wl,{},void 0,!1,{fileName:El,lineNumber:27,columnNumber:9},void 0)},void 0,!1,{fileName:El,lineNumber:26,columnNumber:7},void 0)},void 0,!1,{fileName:El,lineNumber:25,columnNumber:5},void 0)},void 0,!1,{fileName:El,lineNumber:24,columnNumber:3},void 0));export{d as a,l as c,Ct as i,Vi as n,o,Mi as r,s,Hi as t};