cntx-ui 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cntx-ui.js +1 -1
- package/lib/mcp-server.js +1 -1
- package/package.json +1 -1
- package/web/dist/assets/index-DJxMcuOy.css +1 -0
- package/web/dist/assets/index-DLYztakI.js +531 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-DZnz-iQT.js +0 -526
- package/web/dist/assets/index-dtGilZT4.css +0 -1
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
var bN=i=>{throw TypeError(i)};var wh=(i,a,c)=>a.has(i)||bN("Cannot "+c);var D=(i,a,c)=>(wh(i,a,"read from private field"),c?c.call(i):a.get(i)),Re=(i,a,c)=>a.has(i)?bN("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(i):a.set(i,c),me=(i,a,c,d)=>(wh(i,a,"write to private field"),d?d.call(i,c):a.set(i,c),c),Fe=(i,a,c)=>(wh(i,a,"access private method"),c);var Cd=(i,a,c,d)=>({set _(p){me(i,a,p,c)},get _(){return D(i,a,d)}});function zj(i,a){for(var c=0;c<a.length;c++){const d=a[c];if(typeof d!="string"&&!Array.isArray(d)){for(const p in d)if(p!=="default"&&!(p in i)){const v=Object.getOwnPropertyDescriptor(d,p);v&&Object.defineProperty(i,p,v.get?v:{enumerable:!0,get:()=>d[p]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))d(p);new MutationObserver(p=>{for(const v of p)if(v.type==="childList")for(const N of v.addedNodes)N.tagName==="LINK"&&N.rel==="modulepreload"&&d(N)}).observe(document,{childList:!0,subtree:!0});function c(p){const v={};return p.integrity&&(v.integrity=p.integrity),p.referrerPolicy&&(v.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?v.credentials="include":p.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function d(p){if(p.ep)return;p.ep=!0;const v=c(p);fetch(p.href,v)}})();function u1(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Sh={exports:{}},Rd={},Eh={exports:{}},Dc={exports:{}};Dc.exports;var vN;function Hj(){return vN||(vN=1,function(i,a){/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/(function(){function c(h,R){Object.defineProperty(v.prototype,h,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})}function d(h){return h===null||typeof h!="object"?null:(h=Tt&&h[Tt]||h["@@iterator"],typeof h=="function"?h:null)}function p(h,R){h=(h=h.constructor)&&(h.displayName||h.name)||"ReactClass";var ee=h+"."+R;Nt[ee]||(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.",R,h),Nt[ee]=!0)}function v(h,R,ee){this.props=h,this.context=R,this.refs=Us,this.updater=ee||tn}function N(){}function j(h,R,ee){this.props=h,this.context=R,this.refs=Us,this.updater=ee||tn}function y(h){return""+h}function U(h){try{y(h);var R=!1}catch{R=!0}if(R){R=console;var ee=R.error,le=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return ee.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",le),y(h)}}function M(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===On?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case w:return"Fragment";case Z:return"Profiler";case q:return"StrictMode";case he:return"Suspense";case Ge:return"SuspenseList";case Ve:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case J:return"Portal";case Ee:return(h.displayName||"Context")+".Provider";case ne:return(h._context.displayName||"Context")+".Consumer";case ze:var R=h.render;return h=h.displayName,h||(h=R.displayName||R.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case Ce:return R=h.displayName||null,R!==null?R:M(h.type)||"Memo";case Ie:R=h._payload,h=h._init;try{return M(h(R))}catch{}}return null}function f(h){if(h===w)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===Ie)return"<...>";try{var R=M(h);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function g(){var h=Be.A;return h===null?null:h.getOwner()}function A(){return Error("react-stack-top-frame")}function I(h){if(er.call(h,"key")){var R=Object.getOwnPropertyDescriptor(h,"key").get;if(R&&R.isReactWarning)return!1}return h.key!==void 0}function X(h,R){function ee(){cn||(cn=!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)",R))}ee.isReactWarning=!0,Object.defineProperty(h,"key",{get:ee,configurable:!0})}function k(){var h=M(this.type);return Uo[h]||(Uo[h]=!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.")),h=this.props.ref,h!==void 0?h:null}function $(h,R,ee,le,Ne,He,Oe,ie){return ee=He.ref,h={$$typeof:V,type:h,key:R,props:He,_owner:Ne},(ee!==void 0?ee:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:k}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Oe}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function ye(h,R){return R=$(h.type,R,void 0,void 0,h._owner,h.props,h._debugStack,h._debugTask),h._store&&(R._store.validated=h._store.validated),R}function se(h){return typeof h=="object"&&h!==null&&h.$$typeof===V}function de(h){var R={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(ee){return R[ee]})}function ue(h,R){return typeof h=="object"&&h!==null&&h.key!=null?(U(h.key),de(""+h.key)):R.toString(36)}function we(){}function Ue(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(we,we):(h.status="pending",h.then(function(R){h.status==="pending"&&(h.status="fulfilled",h.value=R)},function(R){h.status==="pending"&&(h.status="rejected",h.reason=R)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function W(h,R,ee,le,Ne){var He=typeof h;(He==="undefined"||He==="boolean")&&(h=null);var Oe=!1;if(h===null)Oe=!0;else switch(He){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(h.$$typeof){case V:case J:Oe=!0;break;case Ie:return Oe=h._init,W(Oe(h._payload),R,ee,le,Ne)}}if(Oe){Oe=h,Ne=Ne(Oe);var ie=le===""?"."+ue(Oe,0):le;return ms(Ne)?(ee="",ie!=null&&(ee=ie.replace(nr,"$&/")+"/"),W(Ne,R,ee,"",function(We){return We})):Ne!=null&&(se(Ne)&&(Ne.key!=null&&(Oe&&Oe.key===Ne.key||U(Ne.key)),ee=ye(Ne,ee+(Ne.key==null||Oe&&Oe.key===Ne.key?"":(""+Ne.key).replace(nr,"$&/")+"/")+ie),le!==""&&Oe!=null&&se(Oe)&&Oe.key==null&&Oe._store&&!Oe._store.validated&&(ee._store.validated=2),Ne=ee),R.push(Ne)),1}if(Oe=0,ie=le===""?".":le+":",ms(h))for(var je=0;je<h.length;je++)le=h[je],He=ie+ue(le,je),Oe+=W(le,R,ee,He,Ne);else if(je=d(h),typeof je=="function")for(je===h.entries&&(Pr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Pr=!0),h=je.call(h),je=0;!(le=h.next()).done;)le=le.value,He=ie+ue(le,je++),Oe+=W(le,R,ee,He,Ne);else if(He==="object"){if(typeof h.then=="function")return W(Ue(h),R,ee,le,Ne);throw R=String(h),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function K(h,R,ee){if(h==null)return h;var le=[],Ne=0;return W(h,le,"","",function(He){return R.call(ee,He,Ne++)}),le}function Se(h){if(h._status===-1){var R=h._result;R=R(),R.then(function(ee){(h._status===0||h._status===-1)&&(h._status=1,h._result=ee)},function(ee){(h._status===0||h._status===-1)&&(h._status=2,h._result=ee)}),h._status===-1&&(h._status=0,h._result=R)}if(h._status===1)return R=h._result,R===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
10
|
+
|
|
11
|
+
Your code should look like:
|
|
12
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
13
|
+
|
|
14
|
+
Did you accidentally put curly braces around the import?`,R),"default"in R||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
+
|
|
16
|
+
Your code should look like:
|
|
17
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,R),R.default;throw h._result}function ae(){var h=Be.H;return h===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:
|
|
18
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
|
+
2. You might be breaking the Rules of Hooks
|
|
20
|
+
3. You might have more than one copy of React in the same app
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}function Q(){}function H(h){if(kn===null)try{var R=("require"+Math.random()).slice(0,7);kn=(i&&i[R]).call(i,"timers").setImmediate}catch{kn=function(le){kr===!1&&(kr=!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 Ne=new MessageChannel;Ne.port1.onmessage=le,Ne.port2.postMessage(void 0)}}return kn(h)}function fe(h){return 1<h.length&&typeof AggregateError=="function"?new AggregateError(h):h[0]}function pe(h,R){R!==Cs-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. "),Cs=R}function z(h,R,ee){var le=Be.actQueue;if(le!==null)if(le.length!==0)try{C(le),H(function(){return z(h,R,ee)});return}catch(Ne){Be.thrownErrors.push(Ne)}else Be.actQueue=null;0<Be.thrownErrors.length?(le=fe(Be.thrownErrors),Be.thrownErrors.length=0,ee(le)):R(h)}function C(h){if(!yn){yn=!0;var R=0;try{for(;R<h.length;R++){var ee=h[R];do{Be.didUsePromise=!1;var le=ee(!1);if(le!==null){if(Be.didUsePromise){h[R]=ee,h.splice(0,R);return}ee=le}else break}while(!0)}h.length=0}catch(Ne){h.splice(0,R+1),Be.thrownErrors.push(Ne)}finally{yn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var V=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),Ee=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),Ge=Symbol.for("react.suspense_list"),Ce=Symbol.for("react.memo"),Ie=Symbol.for("react.lazy"),Ve=Symbol.for("react.activity"),Tt=Symbol.iterator,Nt={},tn={isMounted:function(){return!1},enqueueForceUpdate:function(h){p(h,"forceUpdate")},enqueueReplaceState:function(h){p(h,"replaceState")},enqueueSetState:function(h){p(h,"setState")}},Ts=Object.assign,Us={};Object.freeze(Us),v.prototype.isReactComponent={},v.prototype.setState=function(h,R){if(typeof h!="object"&&typeof h!="function"&&h!=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,h,R,"setState")},v.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};var Et={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)."]},ln;for(ln in Et)Et.hasOwnProperty(ln)&&c(ln,Et[ln]);N.prototype=v.prototype,Et=j.prototype=new N,Et.constructor=j,Ts(Et,v.prototype),Et.isPureReactComponent=!0;var ms=Array.isArray,On=Symbol.for("react.client.reference"),Be={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},er=Object.prototype.hasOwnProperty,kt=console.createTask?console.createTask:function(){return null};Et={"react-stack-bottom-frame":function(h){return h()}};var cn,ja,Uo={},tr=Et["react-stack-bottom-frame"].bind(Et,A)(),Co=kt(f(A)),Pr=!1,nr=/\/+/g,Pn=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},kr=!1,kn=null,Cs=0,zn=!1,yn=!1,fs=typeof queueMicrotask=="function"?function(h){queueMicrotask(function(){return queueMicrotask(h)})}:H;Et=Object.freeze({__proto__:null,c:function(h){return ae().useMemoCache(h)}}),a.Children={map:K,forEach:function(h,R,ee){K(h,function(){R.apply(this,arguments)},ee)},count:function(h){var R=0;return K(h,function(){R++}),R},toArray:function(h){return K(h,function(R){return R})||[]},only:function(h){if(!se(h))throw Error("React.Children.only expected to receive a single React element child.");return h}},a.Component=v,a.Fragment=w,a.Profiler=Z,a.PureComponent=j,a.StrictMode=q,a.Suspense=he,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Be,a.__COMPILER_RUNTIME=Et,a.act=function(h){var R=Be.actQueue,ee=Cs;Cs++;var le=Be.actQueue=R!==null?R:[],Ne=!1;try{var He=h()}catch(je){Be.thrownErrors.push(je)}if(0<Be.thrownErrors.length)throw pe(R,ee),h=fe(Be.thrownErrors),Be.thrownErrors.length=0,h;if(He!==null&&typeof He=="object"&&typeof He.then=="function"){var Oe=He;return fs(function(){Ne||zn||(zn=!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(je,We){Ne=!0,Oe.then(function(jt){if(pe(R,ee),ee===0){try{C(le),H(function(){return z(jt,je,We)})}catch(At){Be.thrownErrors.push(At)}if(0<Be.thrownErrors.length){var zr=fe(Be.thrownErrors);Be.thrownErrors.length=0,We(zr)}}else je(jt)},function(jt){pe(R,ee),0<Be.thrownErrors.length&&(jt=fe(Be.thrownErrors),Be.thrownErrors.length=0),We(jt)})}}}var ie=He;if(pe(R,ee),ee===0&&(C(le),le.length!==0&&fs(function(){Ne||zn||(zn=!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(() => ...)"))}),Be.actQueue=null),0<Be.thrownErrors.length)throw h=fe(Be.thrownErrors),Be.thrownErrors.length=0,h;return{then:function(je,We){Ne=!0,ee===0?(Be.actQueue=le,H(function(){return z(ie,je,We)})):je(ie)}}},a.cache=function(h){return function(){return h.apply(null,arguments)}},a.captureOwnerStack=function(){var h=Be.getCurrentStack;return h===null?null:h()},a.cloneElement=function(h,R,ee){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var le=Ts({},h.props),Ne=h.key,He=h._owner;if(R!=null){var Oe;e:{if(er.call(R,"ref")&&(Oe=Object.getOwnPropertyDescriptor(R,"ref").get)&&Oe.isReactWarning){Oe=!1;break e}Oe=R.ref!==void 0}Oe&&(He=g()),I(R)&&(U(R.key),Ne=""+R.key);for(ie in R)!er.call(R,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&R.ref===void 0||(le[ie]=R[ie])}var ie=arguments.length-2;if(ie===1)le.children=ee;else if(1<ie){Oe=Array(ie);for(var je=0;je<ie;je++)Oe[je]=arguments[je+2];le.children=Oe}for(le=$(h.type,Ne,void 0,void 0,He,le,h._debugStack,h._debugTask),Ne=2;Ne<arguments.length;Ne++)He=arguments[Ne],se(He)&&He._store&&(He._store.validated=1);return le},a.createContext=function(h){return h={$$typeof:Ee,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:ne,_context:h},h._currentRenderer=null,h._currentRenderer2=null,h},a.createElement=function(h,R,ee){for(var le=2;le<arguments.length;le++){var Ne=arguments[le];se(Ne)&&Ne._store&&(Ne._store.validated=1)}if(le={},Ne=null,R!=null)for(je in ja||!("__self"in R)||"key"in R||(ja=!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")),I(R)&&(U(R.key),Ne=""+R.key),R)er.call(R,je)&&je!=="key"&&je!=="__self"&&je!=="__source"&&(le[je]=R[je]);var He=arguments.length-2;if(He===1)le.children=ee;else if(1<He){for(var Oe=Array(He),ie=0;ie<He;ie++)Oe[ie]=arguments[ie+2];Object.freeze&&Object.freeze(Oe),le.children=Oe}if(h&&h.defaultProps)for(je in He=h.defaultProps,He)le[je]===void 0&&(le[je]=He[je]);Ne&&X(le,typeof h=="function"?h.displayName||h.name||"Unknown":h);var je=1e4>Be.recentlyCreatedOwnerStacks++;return $(h,Ne,void 0,void 0,g(),le,je?Error("react-stack-top-frame"):tr,je?kt(f(h)):Co)},a.createRef=function(){var h={current:null};return Object.seal(h),h},a.forwardRef=function(h){h!=null&&h.$$typeof===Ce?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof h!="function"?console.error("forwardRef requires a render function but was given %s.",h===null?"null":typeof h):h.length!==0&&h.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",h.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),h!=null&&h.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var R={$$typeof:ze,render:h},ee;return Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(le){ee=le,h.name||h.displayName||(Object.defineProperty(h,"name",{value:le}),h.displayName=le)}}),R},a.isValidElement=se,a.lazy=function(h){return{$$typeof:Ie,_payload:{_status:-1,_result:h},_init:Se}},a.memo=function(h,R){h==null&&console.error("memo: The first argument must be a component. Instead received: %s",h===null?"null":typeof h),R={$$typeof:Ce,type:h,compare:R===void 0?null:R};var ee;return Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(le){ee=le,h.name||h.displayName||(Object.defineProperty(h,"name",{value:le}),h.displayName=le)}}),R},a.startTransition=function(h){var R=Be.T,ee={};Be.T=ee,ee._updatedFibers=new Set;try{var le=h(),Ne=Be.S;Ne!==null&&Ne(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(Q,Pn)}catch(He){Pn(He)}finally{R===null&&ee._updatedFibers&&(h=ee._updatedFibers.size,ee._updatedFibers.clear(),10<h&&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.")),Be.T=R}},a.unstable_useCacheRefresh=function(){return ae().useCacheRefresh()},a.use=function(h){return ae().use(h)},a.useActionState=function(h,R,ee){return ae().useActionState(h,R,ee)},a.useCallback=function(h,R){return ae().useCallback(h,R)},a.useContext=function(h){var R=ae();return h.$$typeof===ne&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),R.useContext(h)},a.useDebugValue=function(h,R){return ae().useDebugValue(h,R)},a.useDeferredValue=function(h,R){return ae().useDeferredValue(h,R)},a.useEffect=function(h,R,ee){h==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var le=ae();if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return le.useEffect(h,R)},a.useId=function(){return ae().useId()},a.useImperativeHandle=function(h,R,ee){return ae().useImperativeHandle(h,R,ee)},a.useInsertionEffect=function(h,R){return h==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ae().useInsertionEffect(h,R)},a.useLayoutEffect=function(h,R){return h==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ae().useLayoutEffect(h,R)},a.useMemo=function(h,R){return ae().useMemo(h,R)},a.useOptimistic=function(h,R){return ae().useOptimistic(h,R)},a.useReducer=function(h,R,ee){return ae().useReducer(h,R,ee)},a.useRef=function(h){return ae().useRef(h)},a.useState=function(h){return ae().useState(h)},a.useSyncExternalStore=function(h,R,ee){return ae().useSyncExternalStore(h,R,ee)},a.useTransition=function(){return ae().useTransition()},a.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Dc,Dc.exports)),Dc.exports}var xN;function Oc(){return xN||(xN=1,Eh.exports=Hj()),Eh.exports}var gN;function _j(){if(gN)return Rd;gN=1;/**
|
|
22
|
+
* @license React
|
|
23
|
+
* react-jsx-dev-runtime.development.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/return function(){function i(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===Se?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case X:return"Fragment";case $:return"Profiler";case k:return"StrictMode";case ue:return"Suspense";case we:return"SuspenseList";case K:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case I:return"Portal";case se:return(w.displayName||"Context")+".Provider";case ye:return(w._context.displayName||"Context")+".Consumer";case de:var q=w.render;return w=w.displayName,w||(w=q.displayName||q.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case Ue:return q=w.displayName||null,q!==null?q:i(w.type)||"Memo";case W:q=w._payload,w=w._init;try{return i(w(q))}catch{}}return null}function a(w){return""+w}function c(w){try{a(w);var q=!1}catch{q=!0}if(q){q=console;var Z=q.error,ne=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return Z.call(q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),a(w)}}function d(w){if(w===X)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===W)return"<...>";try{var q=i(w);return q?"<"+q+">":"<...>"}catch{return"<...>"}}function p(){var w=ae.A;return w===null?null:w.getOwner()}function v(){return Error("react-stack-top-frame")}function N(w){if(Q.call(w,"key")){var q=Object.getOwnPropertyDescriptor(w,"key").get;if(q&&q.isReactWarning)return!1}return w.key!==void 0}function j(w,q){function Z(){pe||(pe=!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)",q))}Z.isReactWarning=!0,Object.defineProperty(w,"key",{get:Z,configurable:!0})}function y(){var w=i(this.type);return z[w]||(z[w]=!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.")),w=this.props.ref,w!==void 0?w:null}function U(w,q,Z,ne,Ee,ze,he,Ge){return Z=ze.ref,w={$$typeof:A,type:w,key:q,props:ze,_owner:Ee},(Z!==void 0?Z:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:y}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ge}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function M(w,q,Z,ne,Ee,ze,he,Ge){var Ce=q.children;if(Ce!==void 0)if(ne)if(H(Ce)){for(ne=0;ne<Ce.length;ne++)f(Ce[ne]);Object.freeze&&Object.freeze(Ce)}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 f(Ce);if(Q.call(q,"key")){Ce=i(w);var Ie=Object.keys(q).filter(function(Tt){return Tt!=="key"});ne=0<Ie.length?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}",J[Ce+ne]||(Ie=0<Ie.length?"{"+Ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
30
|
+
let props = %s;
|
|
31
|
+
<%s {...props} />
|
|
32
|
+
React keys must be passed directly to JSX without using spread:
|
|
33
|
+
let props = %s;
|
|
34
|
+
<%s key={someKey} {...props} />`,ne,Ce,Ie,Ce),J[Ce+ne]=!0)}if(Ce=null,Z!==void 0&&(c(Z),Ce=""+Z),N(q)&&(c(q.key),Ce=""+q.key),"key"in q){Z={};for(var Ve in q)Ve!=="key"&&(Z[Ve]=q[Ve])}else Z=q;return Ce&&j(Z,typeof w=="function"?w.displayName||w.name||"Unknown":w),U(w,Ce,ze,Ee,p(),Z,he,Ge)}function f(w){typeof w=="object"&&w!==null&&w.$$typeof===A&&w._store&&(w._store.validated=1)}var g=Oc(),A=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),ye=Symbol.for("react.consumer"),se=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Se=Symbol.for("react.client.reference"),ae=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,H=Array.isArray,fe=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(w){return w()}};var pe,z={},C=g["react-stack-bottom-frame"].bind(g,v)(),V=fe(d(v)),J={};Rd.Fragment=X,Rd.jsxDEV=function(w,q,Z,ne,Ee,ze){var he=1e4>ae.recentlyCreatedOwnerStacks++;return M(w,q,Z,ne,Ee,ze,he?Error("react-stack-top-frame"):C,he?fe(d(w)):V)}}(),Rd}var yN;function Bj(){return yN||(yN=1,Sh.exports=_j()),Sh.exports}var l=Bj(),G=Oc();const re=u1(G),d1=zj({__proto__:null,default:re},[G]);var jh={exports:{}},wc={},Dh={exports:{}},Th={},NN;function Lj(){return NN||(NN=1,function(i){/**
|
|
35
|
+
* @license React
|
|
36
|
+
* scheduler.development.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/(function(){function a(){if(ue=!1,K){var z=i.unstable_now();Q=z;var C=!0;try{e:{se=!1,de&&(de=!1,Ue(Se),Se=-1),ye=!0;var V=$;try{t:{for(N(z),k=d(A);k!==null&&!(k.expirationTime>z&&y());){var J=k.callback;if(typeof J=="function"){k.callback=null,$=k.priorityLevel;var w=J(k.expirationTime<=z);if(z=i.unstable_now(),typeof w=="function"){k.callback=w,N(z),C=!0;break t}k===d(A)&&p(A),N(z)}else p(A);k=d(A)}if(k!==null)C=!0;else{var q=d(I);q!==null&&U(j,q.startTime-z),C=!1}}break e}finally{k=null,$=V,ye=!1}C=void 0}}finally{C?H():K=!1}}}function c(z,C){var V=z.length;z.push(C);e:for(;0<V;){var J=V-1>>>1,w=z[J];if(0<v(w,C))z[J]=C,z[V]=w,V=J;else break e}}function d(z){return z.length===0?null:z[0]}function p(z){if(z.length===0)return null;var C=z[0],V=z.pop();if(V!==C){z[0]=V;e:for(var J=0,w=z.length,q=w>>>1;J<q;){var Z=2*(J+1)-1,ne=z[Z],Ee=Z+1,ze=z[Ee];if(0>v(ne,V))Ee<w&&0>v(ze,ne)?(z[J]=ze,z[Ee]=V,J=Ee):(z[J]=ne,z[Z]=V,J=Z);else if(Ee<w&&0>v(ze,V))z[J]=ze,z[Ee]=V,J=Ee;else break e}}return C}function v(z,C){var V=z.sortIndex-C.sortIndex;return V!==0?V:z.id-C.id}function N(z){for(var C=d(I);C!==null;){if(C.callback===null)p(I);else if(C.startTime<=z)p(I),C.sortIndex=C.expirationTime,c(A,C);else break;C=d(I)}}function j(z){if(de=!1,N(z),!se)if(d(A)!==null)se=!0,K||(K=!0,H());else{var C=d(I);C!==null&&U(j,C.startTime-z)}}function y(){return ue?!0:!(i.unstable_now()-Q<ae)}function U(z,C){Se=we(function(){z(i.unstable_now())},C)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var M=performance;i.unstable_now=function(){return M.now()}}else{var f=Date,g=f.now();i.unstable_now=function(){return f.now()-g}}var A=[],I=[],X=1,k=null,$=3,ye=!1,se=!1,de=!1,ue=!1,we=typeof setTimeout=="function"?setTimeout:null,Ue=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null,K=!1,Se=-1,ae=5,Q=-1;if(typeof W=="function")var H=function(){W(a)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,pe=fe.port2;fe.port1.onmessage=a,H=function(){pe.postMessage(null)}}else H=function(){we(a,0)};i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(z){z.callback=null},i.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<z?Math.floor(1e3/z):5},i.unstable_getCurrentPriorityLevel=function(){return $},i.unstable_next=function(z){switch($){case 1:case 2:case 3:var C=3;break;default:C=$}var V=$;$=C;try{return z()}finally{$=V}},i.unstable_requestPaint=function(){ue=!0},i.unstable_runWithPriority=function(z,C){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var V=$;$=z;try{return C()}finally{$=V}},i.unstable_scheduleCallback=function(z,C,V){var J=i.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?J+V:J):V=J,z){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=V+w,z={id:X++,callback:C,priorityLevel:z,startTime:V,expirationTime:w,sortIndex:-1},V>J?(z.sortIndex=V,c(I,z),d(A)===null&&z===d(I)&&(de?(Ue(Se),Se=-1):de=!0,U(j,V-J))):(z.sortIndex=w,c(A,z),se||ye||(se=!0,K||(K=!0,H()))),z},i.unstable_shouldYield=y,i.unstable_wrapCallback=function(z){var C=$;return function(){var V=$;$=C;try{return z.apply(this,arguments)}finally{$=V}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Th)),Th}var wN;function qj(){return wN||(wN=1,Dh.exports=Lj()),Dh.exports}var Uh={exports:{}},on={},SN;function Fj(){if(SN)return on;SN=1;/**
|
|
43
|
+
* @license React
|
|
44
|
+
* react-dom.development.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/return function(){function i(){}function a(f){return""+f}function c(f,g,A){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(I);var X=!1}catch{X=!0}return X&&(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"),a(I)),{$$typeof:U,key:I==null?null:""+I,children:f,containerInfo:g,implementation:A}}function d(f,g){if(f==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}function p(f){return f===null?"`null`":f===void 0?"`undefined`":f===""?"an empty string":'something with type "'+typeof f+'"'}function v(f){return f===null?"`null`":f===void 0?"`undefined`":f===""?"an empty string":typeof f=="string"?JSON.stringify(f):typeof f=="number"?"`"+f+"`":'something with type "'+typeof f+'"'}function N(){var f=M.H;return f===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:
|
|
51
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
52
|
+
2. You might be breaking the Rules of Hooks
|
|
53
|
+
3. You might have more than one copy of React in the same app
|
|
54
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var j=Oc(),y={d:{f:i,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},U=Symbol.for("react.portal"),M=j.__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"),on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,on.createPortal=function(f,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error("Target container is not a DOM element.");return c(f,g,null,A)},on.flushSync=function(f){var g=M.T,A=y.p;try{if(M.T=null,y.p=2,f)return f()}finally{M.T=g,y.p=A,y.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.")}},on.preconnect=function(f,g){typeof f=="string"&&f?g!=null&&typeof g!="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.",v(g)):g!=null&&typeof g.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.",p(g.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f)),typeof f=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,y.d.C(f,g))},on.prefetchDNS=function(f){if(typeof f!="string"||!f)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f));else if(1<arguments.length){var g=arguments[1];typeof g=="object"&&g.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`.",v(g)):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`.",v(g))}typeof f=="string"&&y.d.D(f)},on.preinit=function(f,g){if(typeof f=="string"&&f?g==null||typeof g!="object"?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.",v(g)):g.as!=="style"&&g.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".',v(g.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(f)),typeof f=="string"&&g&&typeof g.as=="string"){var A=g.as,I=d(A,g.crossOrigin),X=typeof g.integrity=="string"?g.integrity:void 0,k=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?y.d.S(f,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:I,integrity:X,fetchPriority:k}):A==="script"&&y.d.X(f,{crossOrigin:I,integrity:X,fetchPriority:k,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},on.preinitModule=function(f,g){var A="";if(typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g!==void 0&&typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":g&&"as"in g&&g.as!=="script"&&(A+=" The `as` option encountered was "+v(g.as)+"."),A)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",A);else switch(A=g&&typeof g.as=="string"?g.as:"script",A){case"script":break;default:A=v(A),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)',A,f)}typeof f=="string"&&(typeof g=="object"&&g!==null?(g.as==null||g.as==="script")&&(A=d(g.as,g.crossOrigin),y.d.M(f,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})):g==null&&y.d.M(f))},on.preload=function(f,g){var A="";if(typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g==null||typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":typeof g.as=="string"&&g.as||(A+=" The `as` option encountered was "+p(g.as)+"."),A&&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',A),typeof f=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){A=g.as;var I=d(A,g.crossOrigin);y.d.L(f,A,{crossOrigin:I,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},on.preloadModule=function(f,g){var A="";typeof f=="string"&&f||(A+=" The `href` argument encountered was "+p(f)+"."),g!==void 0&&typeof g!="object"?A+=" The `options` argument encountered was "+p(g)+".":g&&"as"in g&&typeof g.as!="string"&&(A+=" The `as` option encountered was "+p(g.as)+"."),A&&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',A),typeof f=="string"&&(g?(A=d(g.as,g.crossOrigin),y.d.m(f,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})):y.d.m(f))},on.requestFormReset=function(f){y.d.r(f)},on.unstable_batchedUpdates=function(f,g){return f(g)},on.useFormState=function(f,g,A){return N().useFormState(f,g,A)},on.useFormStatus=function(){return N().useHostTransitionStatus()},on.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),on}var EN;function m1(){return EN||(EN=1,Uh.exports=Fj()),Uh.exports}var jN;function Yj(){if(jN)return wc;jN=1;/**
|
|
55
|
+
* @license React
|
|
56
|
+
* react-dom-client.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/return function(){function i(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function a(e,t,n,s){if(n>=t.length)return s;var r=t[n],o=Kt(e)?e.slice():qe({},e);return o[r]=a(e[r],t,n+1,s),o}function c(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<n.length-1;s++)if(t[s]!==n[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,n,0)}}function d(e,t,n,s){var r=t[s],o=Kt(e)?e.slice():qe({},e);return s+1===t.length?(o[n[s]]=o[r],Kt(o)?o.splice(r,1):delete o[r]):o[r]=d(e[r],t,n,s+1),o}function p(e,t,n){var s=t[n],r=Kt(e)?e.slice():qe({},e);return n+1===t.length?(Kt(r)?r.splice(s,1):delete r[s],r):(r[s]=p(e[s],t,n+1),r)}function v(){return!1}function N(){return null}function j(){}function y(){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 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().")}function M(){}function f(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function g(e,t,n,s){return new Pw(e,t,n,s)}function A(e,t){e.context===eo&&(If(e.current,2,t,e,null,null),ka())}function I(e,t){if(ts!==null){var n=t.staleFamilies;t=t.updatedFamilies,ji(),mm(e.current,t,n),ka()}}function X(e){ts=e}function k(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ye(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 se(e){if($(e)!==e)throw Error("Unable to find node on an unmounted component.")}function de(e){var t=e.alternate;if(!t){if(t=$(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,s=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return se(r),e;if(o===s)return se(r),t;o=o.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==s.return)n=r,s=o;else{for(var u=!1,m=r.child;m;){if(m===n){u=!0,n=r,s=o;break}if(m===s){u=!0,s=r,n=o;break}m=m.sibling}if(!u){for(m=o.child;m;){if(m===n){u=!0,n=o,s=r;break}if(m===s){u=!0,s=o,n=r;break}m=m.sibling}if(!u)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!==s)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 ue(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ue(e),t!==null)return t;e=e.sibling}return null}function we(e){return e===null||typeof e!="object"?null:(e=Hg&&e[Hg]||e["@@iterator"],typeof e=="function"?e:null)}function Ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===KS?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fa:return"Fragment";case tp:return"Profiler";case Pu:return"StrictMode";case sp:return"Suspense";case rp:return"SuspenseList";case op: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 qa:return"Portal";case Hs:return(e.displayName||"Context")+".Provider";case np:return(e._context.displayName||"Context")+".Consumer";case Oi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ku:return t=e.displayName||null,t!==null?t:Ue(e.type)||"Memo";case Yn:t=e._payload,e=e._init;try{return Ue(e(t))}catch{}}return null}function W(e){return typeof e.tag=="number"?K(e):typeof e.name=="string"?e.name:null}function K(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")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");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 Ue(t);case 8:return t===Pu?"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 K(e.return)}return null}function Se(e){return{current:e}}function ae(e,t){0>mr?console.error("Unexpected pop."):(t!==lp[mr]&&console.error("Unexpected Fiber popped."),e.current=ap[mr],ap[mr]=null,lp[mr]=null,mr--)}function Q(e,t,n){mr++,ap[mr]=e.current,lp[mr]=n,e.current=t}function H(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 fe(e,t){Q(Zr,t,e),Q(Pi,e,e),Q(Xr,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?mg(t):Er;break;default:if(n=t.tagName,t=t.namespaceURI)t=mg(t),t=fg(t,n);else switch(n){case"svg":t=El;break;case"math":t=wd;break;default:t=Er}}n=n.toLowerCase(),n=wb(null,n),n={context:t,ancestorInfo:n},ae(Xr,e),Q(Xr,n,e)}function pe(e){ae(Xr,e),ae(Pi,e),ae(Zr,e)}function z(){return H(Xr.current)}function C(e){e.memoizedState!==null&&Q(zu,e,e);var t=H(Xr.current),n=e.type,s=fg(t.context,n);n=wb(t.ancestorInfo,n),s={context:s,ancestorInfo:n},t!==s&&(Q(Pi,e,e),Q(Xr,s,e))}function V(e){Pi.current===e&&(ae(Xr,e),ae(Pi,e)),zu.current===e&&(ae(zu,e),gc._currentValue=da)}function J(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function w(e){try{return q(e),!1}catch{return!0}}function q(e){return""+e}function Z(e,t){if(w(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,J(e)),q(e)}function ne(e,t){if(w(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,J(e)),q(e)}function Ee(e){if(w(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.",J(e)),q(e)}function ze(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{Ga=t.inject(e),nn=t}catch(n){console.error("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function he(e){if(typeof rE=="function"&&oE(e),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(Ga,e)}catch(t){Bs||(Bs=!0,console.error("React instrumentation encountered an error: %s",t))}}function Ge(e){ce=e}function Ce(){ce!==null&&typeof ce.markCommitStopped=="function"&&ce.markCommitStopped()}function Ie(e){ce!==null&&typeof ce.markComponentRenderStarted=="function"&&ce.markComponentRenderStarted(e)}function Ve(){ce!==null&&typeof ce.markComponentRenderStopped=="function"&&ce.markComponentRenderStopped()}function Tt(e){ce!==null&&typeof ce.markRenderStarted=="function"&&ce.markRenderStarted(e)}function Nt(){ce!==null&&typeof ce.markRenderStopped=="function"&&ce.markRenderStopped()}function tn(e,t){ce!==null&&typeof ce.markStateUpdateScheduled=="function"&&ce.markStateUpdateScheduled(e,t)}function Ts(e){return e>>>=0,e===0?32:31-(aE(e)/lE|0)|0}function Us(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function Et(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 ln(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var r=0,o=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var m=s&134217727;return m!==0?(s=m&~o,s!==0?r=Et(s):(u&=m,u!==0?r=Et(u):n||(n=m&~e,n!==0&&(r=Et(n))))):(m=s&~o,m!==0?r=Et(m):u!==0?r=Et(u):n||(n=s&~e,n!==0&&(r=Et(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function ms(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function On(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 Be(){var e=Hu;return Hu<<=1,(Hu&4194048)===0&&(Hu=256),e}function er(){var e=_u;return _u<<=1,(_u&62914560)===0&&(_u=4194304),e}function kt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ja(e,t,n,s,r,o){var u=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 m=e.entanglements,b=e.expirationTimes,x=e.hiddenUpdates;for(n=u&~n;0<n;){var P=31-un(n),L=1<<P;m[P]=0,b[P]=-1;var O=x[P];if(O!==null)for(x[P]=null,P=0;P<O.length;P++){var F=O[P];F!==null&&(F.lane&=-536870913)}n&=~L}s!==0&&Uo(e,s,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(u&~t))}function Uo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-un(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&4194090}function tr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-un(n),r=1<<s;r&t|e[s]&t&&(e[s]|=t),n&=~r}}function Co(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 Pr(e,t,n){if(bs)for(e=e.pendingUpdatersLaneMap;0<n;){var s=31-un(n),r=1<<s;e[s].add(t),n&=~r}}function nr(e,t){if(bs)for(var n=e.pendingUpdatersLaneMap,s=e.memoizedUpdaters;0<t;){var r=31-un(t);e=1<<r,r=n[r],0<r.size&&(r.forEach(function(o){var u=o.alternate;u!==null&&s.has(u)||s.add(o)}),r.clear()),t&=~e}}function Pn(e){return e&=-e,Wn<e?Ls<e?(e&134217727)!==0?pr:Bu:Ls:Wn}function kr(){var e=st.p;return e!==0?e:(e=window.event,e===void 0?pr:Vg(e.type))}function kn(e,t){var n=st.p;try{return st.p=e,t()}finally{st.p=n}}function Cs(e){delete e[sn],delete e[Dn],delete e[mp],delete e[iE],delete e[cE]}function zn(e){var t=e[sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jr]||n[sn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gg(e);e!==null;){if(n=e[sn])return n;e=gg(e)}return t}e=n,n=e.parentNode}return null}function yn(e){if(e=e[sn]||e[Jr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function fs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function h(e){var t=e[_g];return t||(t=e[_g]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function R(e){e[ki]=!0}function ee(e,t){le(e,t),le(e+"Capture",t)}function le(e,t){$o[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),$o[e]=t;var n=e.toLowerCase();for(fp[n]=e,e==="onDoubleClick"&&(fp.ondblclick=e),e=0;e<t.length;e++)Bg.add(t[e])}function Ne(e,t){uE[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 He(e){return fr.call(qg,e)?!0:fr.call(Lg,e)?!1:dE.test(e)?qg[e]=!0:(Lg[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Oe(e,t,n){if(He(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(Z(n,t),e===""+n?n:e)}}function ie(e,t,n){if(He(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}Z(n,t),e.setAttribute(t,""+n)}}function je(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}Z(n,t),e.setAttribute(t,""+n)}}function We(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}Z(s,n),e.setAttributeNS(t,n,""+s)}}function jt(){}function zr(){if(zi===0){Fg=console.log,Yg=console.info,Gg=console.warn,$g=console.error,Qg=console.group,Ig=console.groupCollapsed,Xg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:jt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}zi++}function At(){if(zi--,zi===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:qe({},e,{value:Fg}),info:qe({},e,{value:Yg}),warn:qe({},e,{value:Gg}),error:qe({},e,{value:$g}),group:qe({},e,{value:Qg}),groupCollapsed:qe({},e,{value:Ig}),groupEnd:qe({},e,{value:Xg})})}0>zi&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function xt(e){if(pp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pp=t&&t[1]||"",Zg=-1<n.stack.indexOf(`
|
|
63
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
64
|
+
`+pp+e+Zg}function Hr(e,t){if(!e||hp)return"";var n=bp.get(e);if(n!==void 0)return n;hp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=B.H,B.H=null,zr();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(be){var F=be}Reflect.construct(e,[],O)}else{try{O.call()}catch(be){F=be}e.call(O.prototype)}}else{try{throw Error()}catch(be){F=be}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(be){if(be&&F&&typeof be.stack=="string")return[be.stack,F.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),m=u[0],b=u[1];if(m&&b){var x=m.split(`
|
|
65
|
+
`),P=b.split(`
|
|
66
|
+
`);for(u=o=0;o<x.length&&!x[o].includes("DetermineComponentFrameRoot");)o++;for(;u<P.length&&!P[u].includes("DetermineComponentFrameRoot");)u++;if(o===x.length||u===P.length)for(o=x.length-1,u=P.length-1;1<=o&&0<=u&&x[o]!==P[u];)u--;for(;1<=o&&0<=u;o--,u--)if(x[o]!==P[u]){if(o!==1||u!==1)do if(o--,u--,0>u||x[o]!==P[u]){var L=`
|
|
67
|
+
`+x[o].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),typeof e=="function"&&bp.set(e,L),L}while(1<=o&&0<=u);break}}}finally{hp=!1,B.H=s,At(),Error.prepareStackTrace=n}return x=(x=e?e.displayName||e.name:"")?xt(x):"",typeof e=="function"&&bp.set(e,x),x}function Nn(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
68
|
+
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
69
|
+
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react-stack-bottom-frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
70
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Hn(e){switch(e.tag){case 26:case 27:case 5:return xt(e.type);case 16:return xt("Lazy");case 13:return xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return Hr(e.type,!1);case 11:return Hr(e.type.render,!1);case 1:return Hr(e.type,!0);case 31:return xt("Activity");default:return""}}function Jl(e){try{var t="";do{t+=Hn(e);var n=e._debugInfo;if(n)for(var s=n.length-1;0<=s;s--){var r=n[s];if(typeof r.name=="string"){var o=t,u=r.env,m=xt(r.name+(u?" ["+u+"]":""));t=o+m}}e=e.return}while(e);return t}catch(b){return`
|
|
71
|
+
Error generating stack: `+b.message+`
|
|
72
|
+
`+b.stack}}function Rs(e){return(e=e?e.displayName||e.name:"")?xt(e):""}function Wl(){if(Gn===null)return null;var e=Gn._debugOwner;return e!=null?W(e):null}function hw(){if(Gn===null)return"";var e=Gn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=xt(e.type);break;case 13:t+=xt("Suspense");break;case 19:t+=xt("SuspenseList");break;case 31:t+=xt("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Rs(e.type));break;case 11:e._debugOwner||t!==""||(t+=Rs(e.type.render))}for(;e;)if(typeof e.tag=="number"){var n=e;e=n._debugOwner;var s=n._debugStack;e&&s&&(typeof s!="string"&&(n._debugStack=s=Nn(s)),s!==""&&(t+=`
|
|
73
|
+
`+s))}else if(e.debugStack!=null){var r=e.debugStack;(e=e.owner)&&r&&(t+=`
|
|
74
|
+
`+Nn(r))}else break;var o=t}catch(u){o=`
|
|
75
|
+
Error generating stack: `+u.message+`
|
|
76
|
+
`+u.stack}return o}function De(e,t,n,s,r,o,u){var m=Gn;Wd(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,s,r,o,u)):t(n,s,r,o,u)}finally{Wd(m)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Wd(e){B.getCurrentStack=e===null?null:hw,qs=!1,Gn=e}function Xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ee(e),e;default:return""}}function ib(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bw(e){var t=ib(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Ee(e[t]);var s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(u){Ee(u),s=""+u,o.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(u){Ee(u),s=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kc(e){e._valueTracker||(e._valueTracker=bw(e))}function cb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=ib(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zn(e){return e.replace(mE,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ub(e,t){t.checked===void 0||t.defaultChecked===void 0||Jg||(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",Wl()||"A component",t.type),Jg=!0),t.value===void 0||t.defaultValue===void 0||Kg||(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",Wl()||"A component",t.type),Kg=!0)}function em(e,t,n,s,r,o,u,m){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?(Z(u,"type"),e.type=u):e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xn(t)):e.value!==""+Xn(t)&&(e.value=""+Xn(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?tm(e,u,Xn(t)):n!=null?tm(e,u,Xn(n)):s!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?(Z(m,"name"),e.name=""+Xn(m)):e.removeAttribute("name")}function db(e,t,n,s,r,o,u,m){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(Z(o,"type"),e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;n=n!=null?""+Xn(n):"",t=t!=null?""+Xn(t):n,m||t===e.value||(e.value=t),e.defaultValue=t}s=s??r,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=m?e.checked:!!s,e.defaultChecked=!!s,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(Z(u,"name"),e.name=u)}function tm(e,t,n){t==="number"&&zc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function mb(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?ep.Children.forEach(t.children,function(n){n==null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"||ey||(ey=!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||ty||(ty=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Wg||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Wg=!0)}function fb(){var e=Wl();return e?`
|
|
77
|
+
|
|
78
|
+
Check the render method of \``+e+"`.":""}function Da(e,t,n,s){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Xn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,s&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function pb(e,t){for(e=0;e<sy.length;e++){var n=sy[e];if(t[n]!=null){var s=Kt(t[n]);t.multiple&&!s?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,fb()):!t.multiple&&s&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,fb())}}t.value===void 0||t.defaultValue===void 0||ny||(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"),ny=!0)}function hb(e,t){t.value===void 0||t.defaultValue===void 0||ry||(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",Wl()||"A component"),ry=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function bb(e,t,n){if(t!=null&&(t=""+Xn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Xn(n):""}function vb(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Kt(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");s=s[0]}n=s}n==null&&(n=""),t=n}n=Xn(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s)}function xb(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?xb(e.children[0],t):e}function _n(e){return" "+" ".repeat(e)}function Ta(e){return"+ "+" ".repeat(e)}function Ro(e){return"- "+" ".repeat(e)}function gb(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";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 ei(e,t){return oy.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 Hc(e,t,n){var s=120-2*n;if(t===null)return Ta(n)+ei(e,s)+`
|
|
79
|
+
`;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>s-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),Ta(n)+ei(e,s)+`
|
|
80
|
+
`+Ro(n)+ei(t,s)+`
|
|
81
|
+
`}return _n(n)+ei(e,s)+`
|
|
82
|
+
`}function nm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function ti(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(Kt(e))return"[...]";if(e.$$typeof===Ir)return(t=Ue(e.type))?"<"+t+">":"<...>";var n=nm(e);if(n==="Object"){n="",t-=2;for(var s in e)if(e.hasOwnProperty(s)){var r=JSON.stringify(s);if(r!=='"'+s+'"'&&(s=r),t-=s.length-2,r=ti(e[s],15>t?t:15),t-=r.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+s+":"+r}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Ua(e,t){return typeof e!="string"||oy.test(e)?"{"+ti(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function sm(e,t,n){var s=120-n.length-e.length,r=[],o;for(o in t)if(t.hasOwnProperty(o)&&o!=="children"){var u=Ua(t[o],120-n.length-o.length-1);s-=o.length+u.length+2,r.push(o+"="+u)}return r.length===0?n+"<"+e+`>
|
|
83
|
+
`:0<s?n+"<"+e+" "+r.join(" ")+`>
|
|
84
|
+
`:n+"<"+e+`
|
|
85
|
+
`+n+" "+r.join(`
|
|
86
|
+
`+n+" ")+`
|
|
87
|
+
`+n+`>
|
|
88
|
+
`}function vw(e,t,n){var s="",r=qe({},t),o;for(o in e)if(e.hasOwnProperty(o)){delete r[o];var u=120-2*n-o.length-2,m=ti(e[o],u);t.hasOwnProperty(o)?(u=ti(t[o],u),s+=Ta(n)+o+": "+m+`
|
|
89
|
+
`,s+=Ro(n)+o+": "+u+`
|
|
90
|
+
`):s+=Ta(n)+o+": "+m+`
|
|
91
|
+
`}for(var b in r)r.hasOwnProperty(b)&&(e=ti(r[b],120-2*n-b.length-2),s+=Ro(n)+b+": "+e+`
|
|
92
|
+
`);return s}function xw(e,t,n,s){var r="",o=new Map;for(x in n)n.hasOwnProperty(x)&&o.set(x.toLowerCase(),x);if(o.size===1&&o.has("children"))r+=sm(e,t,_n(s));else{for(var u in t)if(t.hasOwnProperty(u)&&u!=="children"){var m=120-2*(s+1)-u.length-1,b=o.get(u.toLowerCase());if(b!==void 0){o.delete(u.toLowerCase());var x=t[u];b=n[b];var P=Ua(x,m);m=Ua(b,m),typeof x=="object"&&x!==null&&typeof b=="object"&&b!==null&&nm(x)==="Object"&&nm(b)==="Object"&&(2<Object.keys(x).length||2<Object.keys(b).length||-1<P.indexOf("...")||-1<m.indexOf("..."))?r+=_n(s+1)+u+`={{
|
|
93
|
+
`+vw(x,b,s+2)+_n(s+1)+`}}
|
|
94
|
+
`:(r+=Ta(s+1)+u+"="+P+`
|
|
95
|
+
`,r+=Ro(s+1)+u+"="+m+`
|
|
96
|
+
`)}else r+=_n(s+1)+u+"="+Ua(t[u],m)+`
|
|
97
|
+
`}o.forEach(function(L){if(L!=="children"){var O=120-2*(s+1)-L.length-1;r+=Ro(s+1)+L+"="+Ua(n[L],O)+`
|
|
98
|
+
`}}),r=r===""?_n(s)+"<"+e+`>
|
|
99
|
+
`:_n(s)+"<"+e+`
|
|
100
|
+
`+r+_n(s)+`>
|
|
101
|
+
`}return e=n.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(o="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(o=""+t),r+=Hc(o,""+e,s+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+Hc(""+t,null,s+1):r+Hc(""+t,void 0,s+1)),r}function yb(e,t){var n=gb(e);if(n===null){for(n="",e=e.child;e;)n+=yb(e,t),e=e.sibling;return n}return _n(t)+"<"+n+`>
|
|
102
|
+
`}function rm(e,t){var n=xb(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return _n(t)+`...
|
|
103
|
+
`+rm(n,t+1);n="";var s=e.fiber._debugInfo;if(s)for(var r=0;r<s.length;r++){var o=s[r].name;typeof o=="string"&&(n+=_n(t)+"<"+o+`>
|
|
104
|
+
`,t++)}if(s="",r=e.fiber.pendingProps,e.fiber.tag===6)s=Hc(r,e.serverProps,t),t++;else if(o=gb(e.fiber),o!==null)if(e.serverProps===void 0){s=t;var u=120-2*s-o.length-2,m="";for(x in r)if(r.hasOwnProperty(x)&&x!=="children"){var b=Ua(r[x],15);if(u-=x.length+b.length+2,0>u){m+=" ...";break}m+=" "+x+"="+b}s=_n(s)+"<"+o+m+`>
|
|
105
|
+
`,t++}else e.serverProps===null?(s=sm(o,r,Ta(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."):(s=xw(o,r,e.serverProps,t),t++);var x="";for(r=e.fiber.child,o=0;r&&o<e.children.length;)u=e.children[o],u.fiber===r?(x+=rm(u,t),o++):x+=yb(r,t),r=r.sibling;for(r&&0<e.children.length&&(x+=_n(t)+`...
|
|
106
|
+
`),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)o=r[e],x=typeof o=="string"?x+(Ro(t)+ei(o,120-2*t)+`
|
|
107
|
+
`):x+sm(o.type,o.props,Ro(t));return n+s+x}function om(e){try{return`
|
|
108
|
+
|
|
109
|
+
`+rm(e,0)}catch{return""}}function Nb(e,t,n){for(var s=t,r=null,o=0;s;)s===e&&(o=0),r={fiber:s,children:r!==null?[r]:[],serverProps:s===t?n:s===e?null:void 0,serverTail:[],distanceFromLeaf:o},o++,s=s.return;return r!==null?om(r).replaceAll(/^[+-]/gm,">"):""}function wb(e,t){var n=qe({},e||ly),s={tag:t};return ay.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),pE.indexOf(t)!==-1&&(n.pTagInButtonScope=null),fE.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=s,t==="form"&&(n.formTag=s),t==="a"&&(n.aTagInScope=s),t==="button"&&(n.buttonTagInScope=s),t==="nobr"&&(n.nobrTagInScope=s),t==="p"&&(n.pTagInButtonScope=s),t==="li"&&(n.listItemTagAutoclosing=s),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=s),t==="#document"||t==="html"?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=s),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?n.implicitRootScope===!0&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Sb(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 hE.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 gw(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 Eb(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 am(e,t){t=t||ly;var n=t.current;if(t=(n=Sb(e,n&&n.tag,t.implicitRootScope)?null:n)?null:gw(e,t),t=n||t,!t)return!0;var s=t.tag;if(t=String(!!n)+"|"+e+"|"+s,Lu[t])return!1;Lu[t]=!0;var r=(t=Gn)?Eb(t.return,s):null,o=t!==null&&r!==null?Nb(r,t,null):"",u="<"+e+">";return n?(n="",s==="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
|
|
110
|
+
This will cause a hydration error.%s`,u,s,n,o)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
111
|
+
This will cause a hydration error.%s`,u,s,o),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||De(r,function(){console.error(`<%s> cannot contain a nested %s.
|
|
112
|
+
See this log for the ancestor stack trace.`,s,u)})),!1}function _c(e,t,n){if(n||Sb("#text",t,!1))return!0;if(n="#text|"+t,Lu[n])return!1;Lu[n]=!0;var s=(n=Gn)?Eb(n,t):null;return n=n!==null&&s!==null?Nb(s,n,n.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
113
|
+
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.
|
|
114
|
+
This will cause a hydration error.%s`,t,n),!1}function ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function yw(e){return e.replace(xE,function(t,n){return n.toUpperCase()})}function jb(e,t,n){var s=t.indexOf("--")===0;s||(-1<t.indexOf("-")?$a.hasOwnProperty(t)&&$a[t]||($a[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,yw(t.replace(vE,"ms-")))):bE.test(t)?$a.hasOwnProperty(t)&&$a[t]||($a[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!uy.test(n)||xp.hasOwnProperty(n)&&xp[n]||(xp[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(uy,""))),typeof n=="number"&&(isNaN(n)?dy||(dy=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||my||(my=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||fy.has(t)?t==="float"?e.cssFloat=n:(ne(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function Db(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 s={};if(n){for(var r in n)if(n.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var o=vp[r]||[r],u=0;u<o.length;u++)s[o[u]]=r}for(var m in t)if(t.hasOwnProperty(m)&&(!n||n[m]!==t[m]))for(r=vp[m]||[m],o=0;o<r.length;o++)s[r[o]]=m;m={};for(var b in t)for(r=vp[b]||[b],o=0;o<r.length;o++)m[r[o]]=b;b={};for(var x in s)if(r=s[x],(o=m[x])&&r!==o&&(u=r+","+o,!b[u])){b[u]=!0,u=console;var P=t[r];u.error.call(u,"%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.",P==null||typeof P=="boolean"||P===""?"Removing":"Updating",r,o)}}for(var L in n)!n.hasOwnProperty(L)||t!=null&&t.hasOwnProperty(L)||(L.indexOf("--")===0?e.setProperty(L,""):L==="float"?e.cssFloat="":e[L]="");for(var O in t)x=t[O],t.hasOwnProperty(O)&&n[O]!==x&&jb(e,O,x)}else for(s in t)t.hasOwnProperty(s)&&jb(e,s,t[s])}function si(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 Tb(e){return gE.get(e)||e}function Nw(e,t){if(fr.call(Ia,t)&&Ia[t])return!0;if(NE.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=py.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ia[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ia[t]=!0}if(yE.test(t)){if(e=t.toLowerCase(),e=py.hasOwnProperty(e)?e:null,e==null)return Ia[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ia[t]=!0)}return!0}function ww(e,t){var n=[],s;for(s in t)Nw(e,s)||n.push(s);t=n.map(function(r){return"`"+r+"`"}).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 Sw(e,t,n,s){if(fr.call(dn,t)&&dn[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="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."),dn[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(s!=null){if(e=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(t))return!0;if(s=e.hasOwnProperty(r)?e[r]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,s),dn[t]=!0;if(by.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),dn[t]=!0}else if(by.test(t))return wE.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),dn[t]=!0;if(SE.test(t)||EE.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dn[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dn[t]=!0;if(r==="is"&&n!==null&&n!==void 0&&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),dn[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),dn[t]=!0;if(Fu.hasOwnProperty(r)){if(r=Fu[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),dn[t]=!0}else if(t!==r)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,r),dn[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 r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(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`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),dn[t]=!0)}case"function":case"symbol":return dn[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),dn[t]=!0}}return!0}function Ew(e,t,n){var s=[],r;for(r in t)Sw(e,r,t[r],n)||s.push(r);t=s.map(function(o){return"`"+o+"`"}).join(", "),s.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<s.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 ri(e){return jE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function lm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Ub(e){var t=yn(e);if(t&&(e=t.stateNode)){var n=e[Dn]||null;e:switch(e=t.stateNode,t.type){case"input":if(em(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(Z(t,"name"),n=n.querySelectorAll('input[name="'+Zn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var r=s[Dn]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");em(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&cb(s)}break e;case"textarea":bb(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Da(e,!!n.multiple,t,!1)}}}function Cb(e,t,n){if(gp)return e(t,n);gp=!0;try{var s=e(t);return s}finally{if(gp=!1,(Xa!==null||Za!==null)&&(ka(),Xa&&(t=Xa,e=Za,Za=Xa=null,Ub(t),e)))for(t=0;t<e.length;t++)Ub(e[t])}}function oi(e,t){var n=e.stateNode;if(n===null)return null;var s=n[Dn]||null;if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;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 Rb(){if(Yu)return Yu;var e,t=Np,n=t.length,s,r="value"in Wr?Wr.value:Wr.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var u=n-e;for(s=1;s<=u&&t[n-s]===r[o-s];s++);return Yu=r.slice(e,1<s?1-s:void 0)}function Bc(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 Lc(){return!0}function Ab(){return!1}function wn(e){function t(n,s,r,o,u){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=o,this.target=u,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(n=e[m],this[m]=n?n(o):o[m]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Lc:Ab,this.isPropagationStopped=Ab,this}return qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lc)},persist:function(){},isPersistent:Lc}),t}function jw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HE[e])?!!t[e]:!1}function im(){return jw}function Vb(e,t){switch(e){case"keyup":return ZE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==yy;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Dw(e,t){switch(e){case"compositionend":return Mb(t);case"keypress":return t.which!==wy?null:(Ey=!0,Sy);case"textInput":return e=t.data,e===Sy&&Ey?null:e;default:return null}}function Tw(e,t){if(Ka)return e==="compositionend"||!jp&&Vb(e,t)?(e=Rb(),Yu=Np=Wr=null,Ka=!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 Ny&&t.locale!=="ko"?null:t.data;default:return null}}function Ob(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JE[e.type]:t==="textarea"}function Uw(e){if(!Fs)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Pb(e,t,n,s){Xa?Za?Za.push(s):Za=[s]:Xa=s,t=ju(t,"onChange"),0<t.length&&(n=new Gu("onChange","change",null,n,s),e.push({event:n,listeners:t}))}function Cw(e){ng(e,0)}function qc(e){var t=fs(e);if(cb(t))return e}function kb(e,t){if(e==="change")return t}function zb(){Fi&&(Fi.detachEvent("onpropertychange",Hb),Yi=Fi=null)}function Hb(e){if(e.propertyName==="value"&&qc(Yi)){var t=[];Pb(t,Yi,e,lm(e)),Cb(Cw,t)}}function Rw(e,t,n){e==="focusin"?(zb(),Fi=t,Yi=n,Fi.attachEvent("onpropertychange",Hb)):e==="focusout"&&zb()}function Aw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qc(Yi)}function Vw(e,t){if(e==="click")return qc(t)}function Mw(e,t){if(e==="input"||e==="change")return qc(t)}function Ow(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ai(e,t){if(mn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!fr.call(t,r)||!mn(e[r],t[r]))return!1}return!0}function _b(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bb(e,t){var n=_b(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_b(n)}}function Lb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zc(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=zc(e.document)}return t}function cm(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 Fb(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tp||Ja==null||Ja!==zc(s)||(s=Ja,"selectionStart"in s&&cm(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Gi&&ai(Gi,s)||(Gi=s,s=ju(Dp,"onSelect"),0<s.length&&(t=new Gu("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Ja)))}function Ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Vo(e){if(Up[e])return Up[e];if(!Wa[e])return e;var t=Wa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dy)return Up[e]=t[n];return e}function ps(e,t){Ay.set(e,t),ee(t,[e])}function Bn(e,t){if(typeof e=="object"&&e!==null){var n=Rp.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Jl(t)},Rp.set(e,t),t)}return{value:e,source:t,stack:Jl(t)}}function Fc(){for(var e=el,t=Ap=el=0;t<e;){var n=es[t];es[t++]=null;var s=es[t];es[t++]=null;var r=es[t];es[t++]=null;var o=es[t];if(es[t++]=null,s!==null&&r!==null){var u=s.pending;u===null?r.next=r:(r.next=u.next,u.next=r),s.pending=r}o!==0&&Yb(n,r,o)}}function Yc(e,t,n,s){es[el++]=e,es[el++]=t,es[el++]=n,es[el++]=s,Ap|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function um(e,t,n,s){return Yc(e,t,n,s),Gc(e)}function Sn(e,t){return Yc(e,null,null,t),Gc(e)}function Yb(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,s=o.alternate,s!==null&&(s.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&Qu||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-un(n),e=o.hiddenUpdates,s=e[r],s===null?e[r]=[t]:s.push(t),t.lane=n|536870912),o):null}function Gc(e){if(fc>Nj)throw aa=fc=0,pc=lh=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.");aa>wj&&(aa=0,pc=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)!==0&&Xx(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&Xx(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Mo(e){if(ts===null)return e;var t=ts(e);return t===void 0?e:t.current}function dm(e){if(ts===null)return e;var t=ts(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Mo(e.render),e.render!==t)?(t={$$typeof:Oi,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Gb(e,t){if(ts===null)return!1;var n=e.elementType;t=t.type;var s=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(s=!0);break;case 0:(typeof t=="function"||r===Yn)&&(s=!0);break;case 11:(r===Oi||r===Yn)&&(s=!0);break;case 14:case 15:(r===ku||r===Yn)&&(s=!0);break;default:return!1}return!!(s&&(e=ts(n),e!==void 0&&e===ts(t)))}function $b(e){ts!==null&&typeof WeakSet=="function"&&(tl===null&&(tl=new WeakSet),tl.add(e))}function mm(e,t,n){var s=e.alternate,r=e.child,o=e.sibling,u=e.tag,m=e.type,b=null;switch(u){case 0:case 15:case 1:b=m;break;case 11:b=m.render}if(ts===null)throw Error("Expected resolveFamily to be set during hot reload.");var x=!1;m=!1,b!==null&&(b=ts(b),b!==void 0&&(n.has(b)?m=!0:t.has(b)&&(u===1?m=!0:x=!0))),tl!==null&&(tl.has(e)||s!==null&&tl.has(s))&&(m=!0),m&&(e._debugNeedsRemount=!0),(m||x)&&(s=Sn(e,2),s!==null&&Mt(s,e,2)),r===null||m||mm(r,t,n),o!==null&&mm(o,t,n)}function Pw(e,t,n,s){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=s,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,My||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function fm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sr(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=Mo(e.type);break;case 1:n.type=Mo(e.type);break;case 11:n.type=dm(e.type)}return n}function Qb(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 pm(e,t,n,s,r,o){var u=0,m=e;if(typeof e=="function")fm(e)&&(u=1),m=Mo(m);else if(typeof e=="string")u=z(),u=PS(e,n,u)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case op:return t=g(31,n,t,r),t.elementType=op,t.lanes=o,t;case Fa:return Oo(n.children,r,o,t);case Pu:u=8,r|=rn,r|=vs;break;case tp:return e=n,s=r,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,s|Jt),t.elementType=tp,t.lanes=o,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case sp:return t=g(13,n,t,r),t.elementType=sp,t.lanes=o,t;case rp:return t=g(19,n,t,r),t.elementType=rp,t.lanes=o,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case XS:case Hs:u=10;break e;case np:u=9;break e;case Oi:u=11,m=dm(m);break e;case ku:u=14;break e;case Yn:u=16,m=null;break e}m="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" 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":Kt(e)?n="array":e!==void 0&&e.$$typeof===Ir?(n="<"+(Ue(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(u=s?W(s):null)&&(m+=`
|
|
115
|
+
|
|
116
|
+
Check the render method of \``+u+"`."),u=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+m)),m=null}return t=g(u,n,t,r),t.elementType=e,t.type=m,t.lanes=o,t._debugOwner=s,t}function $c(e,t,n){return t=pm(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Oo(e,t,n,s){return e=g(7,e,s,t),e.lanes=n,e}function hm(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function bm(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 Po(e,t){ko(),nl[sl++]=Xu,nl[sl++]=Iu,Iu=e,Xu=t}function Ib(e,t,n){ko(),ns[ss++]=br,ns[ss++]=vr,ns[ss++]=Io,Io=e;var s=br;e=vr;var r=32-un(s)-1;s&=~(1<<r),n+=1;var o=32-un(t)+r;if(30<o){var u=r-r%5;o=(s&(1<<u)-1).toString(32),s>>=u,r-=u,br=1<<32-un(t)+r|n<<r|s,vr=o+e}else br=1<<o|n<<r|s,vr=e}function vm(e){ko(),e.return!==null&&(Po(e,1),Ib(e,1,0))}function xm(e){for(;e===Iu;)Iu=nl[--sl],nl[sl]=null,Xu=nl[--sl],nl[sl]=null;for(;e===Io;)Io=ns[--ss],ns[ss]=null,vr=ns[--ss],ns[ss]=null,br=ns[--ss],ns[ss]=null}function ko(){tt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function zo(e,t){if(e.return===null){if(rs===null)rs={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(rs.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");rs.distanceFromLeaf>t&&(rs.distanceFromLeaf=t)}return rs}var n=zo(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 gm(e,t){xr||(e=zo(e,0),e.serverProps=null,t!==null&&(t=bg(t),e.serverTail.push(t)))}function Ho(e){var t="",n=rs;throw n!==null&&(rs=null,t=om(n)),ci(Bn(Error(`Hydration failed because the server rendered 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:
|
|
117
|
+
|
|
118
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
119
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
120
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
121
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
122
|
+
- Invalid HTML tag nesting.
|
|
123
|
+
|
|
124
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
125
|
+
|
|
126
|
+
https://react.dev/link/hydration-mismatch`+t),e)),Vp}function Xb(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[sn]=e,t[Dn]=s,zf(n,s),n){case"dialog":Ke("cancel",t),Ke("close",t);break;case"iframe":case"object":case"embed":Ke("load",t);break;case"video":case"audio":for(n=0;n<hc.length;n++)Ke(hc[n],t);break;case"source":Ke("error",t);break;case"img":case"image":case"link":Ke("error",t),Ke("load",t);break;case"details":Ke("toggle",t);break;case"input":Ne("input",s),Ke("invalid",t),ub(t,s),db(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),kc(t);break;case"option":mb(t,s);break;case"select":Ne("select",s),Ke("invalid",t),pb(t,s);break;case"textarea":Ne("textarea",s),Ke("invalid",t),hb(t,s),vb(t,s.value,s.defaultValue,s.children),kc(t)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||ag(t.textContent,n)?(s.popover!=null&&(Ke("beforetoggle",t),Ke("toggle",t)),s.onScroll!=null&&Ke("scroll",t),s.onScrollEnd!=null&&Ke("scrollend",t),s.onClick!=null&&(t.onclick=Du),t=!0):t=!1,t||Ho(e)}function Zb(e){for(fn=e.return;fn;)switch(fn.tag){case 5:case 13:Ys=!1;return;case 27:case 3:Ys=!0;return;default:fn=fn.return}}function li(e){if(e!==fn)return!1;if(!tt)return Zb(e),tt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||qf(e.type,e.memoizedProps)),n=!n),n&&Ut){for(n=Ut;n;){var s=zo(e,0),r=bg(n);s.serverTail.push(r),n=r.type==="Suspense"?xg(n):Jn(n.nextSibling)}Ho(e)}if(Zb(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Ut=xg(e)}else t===27?(t=Ut,Qr(e.type)?(e=gh,gh=null,Ut=e):Ut=t):Ut=fn?Jn(e.stateNode.nextSibling):null;return!0}function ii(){Ut=fn=null,xr=tt=!1}function Kb(){var e=Xo;return e!==null&&(bn===null?bn=e:bn.push.apply(bn,e),Xo=null),e}function ci(e){Xo===null?Xo=[e]:Xo.push(e)}function Jb(){var e=rs;if(e!==null){rs=null;for(var t=om(e);0<e.children.length;)e=e.children[0];De(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:
|
|
127
|
+
|
|
128
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
129
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
130
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
131
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
132
|
+
- Invalid HTML tag nesting.
|
|
133
|
+
|
|
134
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
135
|
+
|
|
136
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Qc(){rl=Zu=null,ol=!1}function _r(e,t,n){Q(Mp,t._currentValue,e),t._currentValue=n,Q(Op,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==zy&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=zy}function rr(e,t){e._currentValue=Mp.current;var n=Op.current;ae(Op,t),e._currentRenderer=n,ae(Mp,t)}function ym(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.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 Nm(e,t,n,s){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var u=r.child;o=o.firstContext;e:for(;o!==null;){var m=o;o=r;for(var b=0;b<t.length;b++)if(m.context===t[b]){o.lanes|=n,m=o.alternate,m!==null&&(m.lanes|=n),ym(o.return,n,e),s||(u=null);break e}o=m.next}}else if(r.tag===18){if(u=r.return,u===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),ym(u,n,e),u=null}else u=r.child;if(u!==null)u.return=r;else for(u=r;u!==null;){if(u===e){u=null;break}if(r=u.sibling,r!==null){r.return=u.return,u=r;break}u=u.return}r=u}}function ui(e,t,n,s){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var u=r.alternate;if(u===null)throw Error("Should have a current fiber. This is a bug in React.");if(u=u.memoizedProps,u!==null){var m=r.type;mn(r.pendingProps.value,u.value)||(e!==null?e.push(m):e=[m])}}else if(r===zu.current){if(u=r.alternate,u===null)throw Error("Should have a current fiber. This is a bug in React.");u.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(gc):e=[gc])}r=r.return}e!==null&&Nm(t,e,n,s),t.flags|=262144}function Ic(e){for(e=e.firstContext;e!==null;){if(!mn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _o(e){Zu=e,rl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return ol&&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()."),Wb(Zu,e)}function Xc(e,t){return Zu===null&&_o(e),Wb(e,t)}function Wb(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},rl===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().");rl=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else rl=rl.next=t;return n}function wm(){return{controller:new aj,data:new Map,refCount:0}}function Bo(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 di(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&&lj(ij,function(){e.controller.abort()})}function or(){var e=Zo;return Zo=0,e}function Zc(e){var t=Zo;return Zo=e,t}function mi(e){var t=Zo;return Zo+=e,t}function Sm(e){Tn=al(),0>e.actualStartTime&&(e.actualStartTime=Tn)}function Em(e){if(0<=Tn){var t=al()-Tn;e.actualDuration+=t,e.selfBaseDuration=t,Tn=-1}}function ev(e){if(0<=Tn){var t=al()-Tn;e.actualDuration+=t,Tn=-1}}function As(){if(0<=Tn){var e=al()-Tn;Tn=-1,Zo+=e}}function Vs(){Tn=al()}function Kc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function kw(e,t){if($i===null){var n=$i=[];Pp=0,Ko=Mf(),ll={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Pp++,t.then(tv,tv),t}function tv(){if(--Pp===0&&$i!==null){ll!==null&&(ll.status="fulfilled");var e=$i;$i=null,Ko=0,ll=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zw(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(s.status="rejected",s.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),s}function jm(){var e=Jo.current;return e!==null?e:ft.pooledCache}function Jc(e,t){t===null?Q(Jo,Jo.current,e):Q(Jo,t.pool,e)}function nv(){var e=jm();return e===null?null:{parent:Bt._currentValue,pool:e}}function sv(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function rv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wc(){}function ov(e,t,n){B.actQueue!==null&&(B.didUsePromise=!0);var s=e.thenables;switch(n=s[n],n===void 0?s.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(Wc,Wc),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lv(e),e;default:if(typeof t.status=="string")t.then(Wc,Wc);else{if(e=ft,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(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lv(e),e}throw ec=t,nd=!0,Wi}}function av(){if(ec===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=ec;return ec=null,nd=!1,e}function lv(e){if(e===Wi||e===td)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 Dm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tm(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 Br(e){return{lane:e,tag:qy,payload:null,callback:null,next:null}}function Lr(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Hp===s&&!Gy){var r=K(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.
|
|
137
|
+
|
|
138
|
+
Please update the following component: %s`,r),Gy=!0}return(rt&hn)!==$n?(r=s.pending,r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,t=Gc(e),Yb(e,null,n),t):(Yc(e,s,t,n),Gc(e))}function fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,tr(e,n)}}function eu(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pi(){if(_p){var e=ll;if(e!==null)throw e}}function hi(e,t,n,s){_p=!1;var r=e.updateQueue;to=!1,Hp=r.shared;var o=r.firstBaseUpdate,u=r.lastBaseUpdate,m=r.shared.pending;if(m!==null){r.shared.pending=null;var b=m,x=b.next;b.next=null,u===null?o=x:u.next=x,u=b;var P=e.alternate;P!==null&&(P=P.updateQueue,m=P.lastBaseUpdate,m!==u&&(m===null?P.firstBaseUpdate=x:m.next=x,P.lastBaseUpdate=b))}if(o!==null){var L=r.baseState;u=0,P=x=b=null,m=o;do{var O=m.lane&-536870913,F=O!==m.lane;if(F?(Ze&O)===O:(s&O)===O){O!==0&&O===Ko&&(_p=!0),P!==null&&(P=P.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{O=e;var be=m,Ae=t,pt=n;switch(be.tag){case Fy:if(be=be.payload,typeof be=="function"){ol=!0;var Je=be.call(pt,L,Ae);if(O.mode&rn){he(!0);try{be.call(pt,L,Ae)}finally{he(!1)}}ol=!1,L=Je;break e}L=be;break e;case zp:O.flags=O.flags&-65537|128;case qy:if(Je=be.payload,typeof Je=="function"){if(ol=!0,be=Je.call(pt,L,Ae),O.mode&rn){he(!0);try{Je.call(pt,L,Ae)}finally{he(!1)}}ol=!1}else be=Je;if(be==null)break e;L=qe({},L,be);break e;case Yy:to=!0}}O=m.callback,O!==null&&(e.flags|=64,F&&(e.flags|=8192),F=r.callbacks,F===null?r.callbacks=[O]:F.push(O))}else F={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},P===null?(x=P=F,b=L):P=P.next=F,u|=O;if(m=m.next,m===null){if(m=r.shared.pending,m===null)break;F=m,m=F.next,F.next=null,r.lastBaseUpdate=F,r.shared.pending=null}}while(!0);P===null&&(b=L),r.baseState=b,r.firstBaseUpdate=x,r.lastBaseUpdate=P,o===null&&(r.shared.lanes=0),oo|=u,e.lanes=u,e.memoizedState=L}Hp=null}function iv(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Hw(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)iv(n[e],t)}function cv(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)iv(n[e],t)}function uv(e,t){var n=Qs;Q(sd,n,e),Q(il,t,e),Qs=n|t.baseLanes}function Um(e){Q(sd,Qs,e),Q(il,il.current,e)}function Cm(e){Qs=sd.current,ae(il,e),ae(sd,e)}function Xe(){var e=_;ls===null?ls=[e]:ls.push(e)}function te(){var e=_;if(ls!==null&&(yr++,ls[yr]!==e)){var t=K(Me);if(!$y.has(t)&&($y.add(t),ls!==null)){for(var n="",s=0;s<=yr;s++){var r=ls[s],o=s===yr?e:r;for(r=s+1+". "+r;30>r.length;)r+=" ";r+=o+`
|
|
139
|
+
`,n+=r}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
|
|
140
|
+
|
|
141
|
+
Previous render Next render
|
|
142
|
+
------------------------------------------------------
|
|
143
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
144
|
+
`,t,n)}}}function Ca(e){e==null||Kt(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.",_,typeof e)}function tu(){var e=K(Me);Iy.has(e)||(Iy.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Vt(){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:
|
|
145
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
146
|
+
2. You might be breaking the Rules of Hooks
|
|
147
|
+
3. You might have more than one copy of React in the same app
|
|
148
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Rm(e,t){if(nc)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.",_),!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.
|
|
149
|
+
|
|
150
|
+
Previous: %s
|
|
151
|
+
Incoming: %s`,_,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!mn(e[n],t[n]))return!1;return!0}function Am(e,t,n,s,r,o){no=o,Me=t,ls=e!==null?e._debugHookTypes:null,yr=-1,nc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")&&(o=K(Me),Bp.has(o)||(Bp.add(o),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.",o===null?"An unknown Component":"<"+o+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e!==null&&e.memoizedState!==null?qp:ls!==null?Xy:Lp,ea=o=(t.mode&rn)!==ht;var u=Fp(n,s,r);if(ea=!1,ul&&(u=Vm(t,n,s,r)),o){he(!0);try{u=Vm(t,n,s,r)}finally{he(!1)}}return dv(e,t),u}function dv(e,t){t._debugHookTypes=ls,t.dependencies===null?gr!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:gr}):t.dependencies._debugThenableState=gr,B.H=ad;var n=mt!==null&&mt.next!==null;if(no=0,ls=_=Ht=mt=Me=null,yr=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),rd=!1,tc=0,gr=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||$t||(e=e.dependencies,e!==null&&Ic(e)&&($t=!0)),nd?(nd=!1,e=!0):e=!1,e&&(t=K(t)||"Unknown",Qy.has(t)||Bp.has(t)||(Qy.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 Vm(e,t,n,s){Me=e;var r=0;do{if(ul&&(gr=null),tc=0,ul=!1,r>=uj)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,nc=!1,Ht=mt=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}yr=-1,B.H=Zy,o=Fp(t,n,s)}while(ul);return o}function _w(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?bi(t):t,e=e.useState()[0],(mt!==null?mt.memoizedState:null)!==e&&(Me.flags|=1024),t}function Mm(){var e=od!==0;return od=0,e}function Om(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&vs)!==ht?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function Pm(e){if(rd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}rd=!1}no=0,ls=Ht=mt=Me=null,yr=-1,_=null,ul=!1,tc=od=0,gr=null}function En(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ht===null?Me.memoizedState=Ht=e:Ht=Ht.next=e,Ht}function ct(){if(mt===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var t=Ht===null?Me.memoizedState:Ht.next;if(t!==null)Ht=t,mt=e;else{if(e===null)throw Me.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.");mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Ht===null?Me.memoizedState=Ht=e:Ht=Ht.next=e}return Ht}function km(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bi(e){var t=tc;return tc+=1,gr===null&&(gr=sv()),e=ov(gr,e,t),t=Me,(Ht===null?t.memoizedState:Ht.next)===null&&(t=t.alternate,B.H=t!==null&&t.memoizedState!==null?qp:Lp),e}function qr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bi(e);if(e.$$typeof===Hs)return wt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Lo(e){var t=null,n=Me.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=Me.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=km(),Me.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||nc)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=ZS;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 hs(e,t){return typeof t=="function"?t(e):t}function zm(e,t,n){var s=En();if(n!==void 0){var r=n(t);if(ea){he(!0);try{n(t)}finally{he(!1)}}}else r=t;return s.memoizedState=s.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},s.queue=e,e=e.dispatch=Fw.bind(null,Me,e),[s.memoizedState,e]}function Ra(e){var t=ct();return Hm(t,mt,e)}function Hm(e,t,n){var s=e.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=n;var r=e.baseQueue,o=s.pending;if(o!==null){if(r!==null){var u=r.next;r.next=o.next,o.next=u}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=o,s.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var m=u=null,b=null,x=t,P=!1;do{var L=x.lane&-536870913;if(L!==x.lane?(Ze&L)===L:(no&L)===L){var O=x.revertLane;if(O===0)b!==null&&(b=b.next={lane:0,revertLane:0,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),L===Ko&&(P=!0);else if((no&O)===O){x=x.next,O===Ko&&(P=!0);continue}else L={lane:0,revertLane:x.revertLane,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},b===null?(m=b=L,u=o):b=b.next=L,Me.lanes|=O,oo|=O;L=x.action,ea&&n(o,L),o=x.hasEagerState?x.eagerState:n(o,L)}else O={lane:L,revertLane:x.revertLane,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},b===null?(m=b=O,u=o):b=b.next=O,Me.lanes|=L,oo|=L;x=x.next}while(x!==null&&x!==t);if(b===null?u=o:b.next=m,!mn(o,e.memoizedState)&&($t=!0,P&&(n=ll,n!==null)))throw n;e.memoizedState=o,e.baseState=u,e.baseQueue=b,s.lastRenderedState=o}return r===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function vi(e){var t=ct(),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 s=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var u=r=r.next;do o=e(o,u.action),u=u.next;while(u!==r);mn(o,t.memoizedState)||($t=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,s]}function _m(e,t,n){var s=Me,r=En();if(tt){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var o=n();cl||o===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),cl=!0)}else{if(o=t(),cl||(n=t(),mn(o,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),cl=!0)),ft===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ze&124)!==0||mv(s,t,o)}return r.memoizedState=o,n={value:o,getSnapshot:t},r.queue=n,au(pv.bind(null,s,n,e),[e]),s.flags|=2048,Va(as|Lt,ou(),fv.bind(null,s,n,o,t),null),o}function nu(e,t,n){var s=Me,r=ct(),o=tt;if(o){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(),!cl){var u=t();mn(n,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),cl=!0)}(u=!mn((mt||r).memoizedState,n))&&(r.memoizedState=n,$t=!0),r=r.queue;var m=pv.bind(null,s,r,e);if(jn(2048,Lt,m,[e]),r.getSnapshot!==t||u||Ht!==null&&Ht.memoizedState.tag&as){if(s.flags|=2048,Va(as|Lt,ou(),fv.bind(null,s,r,n,t),null),ft===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");o||(no&124)!==0||mv(s,t,n)}return n}function mv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Me.updateQueue,t===null?(t=km(),Me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fv(e,t,n,s){t.value=n,t.getSnapshot=s,hv(t)&&bv(e)}function pv(e,t,n){return n(function(){hv(t)&&bv(e)})}function hv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mn(e,n)}catch{return!0}}function bv(e){var t=Sn(e,2);t!==null&&Mt(t,e,2)}function Bm(e){var t=En();if(typeof e=="function"){var n=e;if(e=n(),ea){he(!0);try{n()}finally{he(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t}function Lm(e){e=Bm(e);var t=e.queue,n=Pv.bind(null,Me,t);return t.dispatch=n,[e.memoizedState,n]}function qm(e){var t=En();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=tf.bind(null,Me,!0,n),n.dispatch=t,[e,t]}function vv(e,t){var n=ct();return xv(n,mt,e,t)}function xv(e,t,n,s){return e.baseState=n,Hm(e,mt,typeof s=="function"?s:hs)}function gv(e,t){var n=ct();return mt!==null?xv(n,mt,e,t):(n.baseState=e,[e,n.queue.dispatch])}function Bw(e,t,n,s,r){if(uu(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){o.listeners.push(u)}};B.T!==null?n(!0):o.isTransition=!1,s(o),n=t.pending,n===null?(o.next=t.pending=o,yv(t,o)):(o.next=n.next,t.pending=n.next=o)}}function yv(e,t){var n=t.action,s=t.payload,r=e.state;if(t.isTransition){var o=B.T,u={};B.T=u,B.T._updatedFibers=new Set;try{var m=n(r,s),b=B.S;b!==null&&b(u,m),Nv(e,t,m)}catch(x){Fm(e,t,x)}finally{B.T=o,o===null&&u._updatedFibers&&(e=u._updatedFibers.size,u._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{u=n(r,s),Nv(e,t,u)}catch(x){Fm(e,t,x)}}function Nv(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?(n.then(function(s){wv(e,t,s)},function(s){return Fm(e,t,s)}),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.")):wv(e,t,n)}function wv(e,t,n){t.status="fulfilled",t.value=n,Sv(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,yv(e,n)))}function Fm(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,Sv(t),t=t.next;while(t!==s)}e.action=null}function Sv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ev(e,t){return t}function Aa(e,t){if(tt){var n=ft.formState;if(n!==null){e:{var s=Me;if(tt){if(Ut){t:{for(var r=Ut,o=Ys;r.nodeType!==8;){if(!o){r=null;break t}if(r=Jn(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o===hh||o===I0?r:null}if(r){Ut=Jn(r.nextSibling),s=r.data===hh;break e}}Ho(s)}s=!1}s&&(t=n[0])}}return n=En(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ev,lastRenderedState:t},n.queue=s,n=Pv.bind(null,Me,s),s.dispatch=n,s=Bm(!1),o=tf.bind(null,Me,!1,s.queue),s=En(),r={state:t,dispatch:null,action:e,pending:null},s.queue=r,n=Bw.bind(null,Me,r,o,n),r.dispatch=n,s.memoizedState=e,[t,n,!1]}function su(e){var t=ct();return jv(t,mt,e)}function jv(e,t,n){if(t=Hm(e,t,Ev)[0],e=Ra(hs)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=bi(t)}catch(u){throw u===Wi?td:u}else s=t;t=ct();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(Me.flags|=2048,Va(as|Lt,ou(),Lw.bind(null,r,n),null)),[s,o,e]}function Lw(e,t){e.action=t}function ru(e){var t=ct(),n=mt;if(n!==null)return jv(t,n,e);ct(),t=t.memoizedState,n=ct();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function Va(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=Me.updateQueue,t===null&&(t=km(),Me.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function ou(){return{destroy:void 0,resource:void 0}}function Ym(e){var t=En();return e={current:e},t.memoizedState=e}function qo(e,t,n,s){var r=En();s=s===void 0?null:s,Me.flags|=e,r.memoizedState=Va(as|t,ou(),n,s)}function jn(e,t,n,s){var r=ct();s=s===void 0?null:s;var o=r.memoizedState.inst;mt!==null&&s!==null&&Rm(s,mt.memoizedState.deps)?r.memoizedState=Va(t,o,n,s):(Me.flags|=e,r.memoizedState=Va(as|t,o,n,s))}function au(e,t){(Me.mode&vs)!==ht&&(Me.mode&Vy)===ht?qo(276826112,Lt,e,t):qo(8390656,Lt,e,t)}function Gm(e,t){var n=4194308;return(Me.mode&vs)!==ht&&(n|=134217728),qo(n,Wt,e,t)}function Dv(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 $m(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?typeof t:"null"),n=n!=null?n.concat([e]):null;var s=4194308;(Me.mode&vs)!==ht&&(s|=134217728),qo(s,Wt,Dv.bind(null,t,e),n)}function lu(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?typeof t:"null"),n=n!=null?n.concat([e]):null,jn(4,Wt,Dv.bind(null,t,e),n)}function Qm(e,t){return En().memoizedState=[e,t===void 0?null:t],e}function iu(e,t){var n=ct();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&Rm(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Im(e,t){var n=En();t=t===void 0?null:t;var s=e();if(ea){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[s,t],s}function cu(e,t){var n=ct();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&Rm(t,s[1]))return s[0];if(s=e(),ea){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[s,t],s}function Xm(e,t){var n=En();return Zm(n,e,t)}function Tv(e,t){var n=ct();return Cv(n,mt.memoizedState,e,t)}function Uv(e,t){var n=ct();return mt===null?Zm(n,e,t):Cv(n,mt.memoizedState,e,t)}function Zm(e,t,n){return n===void 0||(no&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Rx(),Me.lanes|=e,oo|=e,n)}function Cv(e,t,n,s){return mn(n,t)?n:il.current!==null?(e=Zm(e,n,s),mn(e,t)||($t=!0),e):(no&42)===0?($t=!0,e.memoizedState=n):(e=Rx(),Me.lanes|=e,oo|=e,t)}function Rv(e,t,n,s,r){var o=st.p;st.p=o!==0&&o<Ls?o:Ls;var u=B.T,m={};B.T=m,tf(e,!1,t,n),m._updatedFibers=new Set;try{var b=r(),x=B.S;if(x!==null&&x(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var P=zw(b,s);xi(e,t,P,Fn(e))}else xi(e,t,s,Fn(e))}catch(L){xi(e,t,{then:function(){},status:"rejected",reason:L},Fn(e))}finally{st.p=o,B.T=u,u===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._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 Km(e,t,n,s){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=Av(e).queue;Rv(e,r,t,da,n===null?M:function(){return Vv(e),n(s)})}function Av(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:da,baseState:da,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:da},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vv(e){B.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Av(e).next.queue;xi(e,t,{},Fn(e))}function Jm(){var e=Bm(!1);return e=Rv.bind(null,Me,e.queue,!0,!1),En().memoizedState=e,[!1,e]}function Mv(){var e=Ra(hs)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:bi(e),t]}function Ov(){var e=vi(hs)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:bi(e),t]}function Fo(){return wt(gc)}function Wm(){var e=En(),t=ft.identifierPrefix;if(tt){var n=vr,s=br;n=(s&~(1<<32-un(s)-1)).toString(32)+n,t="«"+t+"R"+n,n=od++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=cj++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t}function ef(){return En().memoizedState=qw.bind(null,Me)}function qw(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=Fn(n);e=Br(s);var r=Lr(n,e,s);r!==null&&(Mt(r,n,s),fi(r,n,s)),n=wm(),t!=null&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:n};return}n=n.return}}function Fw(e,t,n){var s=arguments;typeof s[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()."),s=Fn(e);var r={lane:s,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};uu(e)?kv(t,r):(r=um(e,t,r,s),r!==null&&(Mt(r,e,s),zv(r,t,s))),tn(e,s)}function Pv(e,t,n){var s=arguments;typeof s[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()."),s=Fn(e),xi(e,t,n,s),tn(e,s)}function xi(e,t,n,s){var r={lane:s,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(uu(e))kv(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null)){var u=B.H;B.H=gs;try{var m=t.lastRenderedState,b=o(m,n);if(r.hasEagerState=!0,r.eagerState=b,mn(b,m))return Yc(e,t,r,0),ft===null&&Fc(),!1}catch{}finally{B.H=u}}if(n=um(e,t,r,s),n!==null)return Mt(n,e,s),zv(n,t,s),!0}return!1}function tf(e,t,n,s){if(B.T===null&&Ko===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."),s={lane:2,revertLane:Mf(),action:s,hasEagerState:!1,eagerState:null,next:null},uu(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=um(e,n,s,2),t!==null&&Mt(t,e,2);tn(e,2)}function uu(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function kv(e,t){ul=rd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zv(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,tr(e,n)}}function It(e){var t=Le;return e!=null&&(Le=t===null?e:t.concat(e)),t}function du(e,t,n){for(var s=Object.keys(e.props),r=0;r<s.length;r++){var o=s[r];if(o!=="children"&&o!=="key"){t===null&&(t=$c(e,n.mode,0),t._debugInfo=Le,t.return=n),De(t,function(u){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u)},o);break}}}function mu(e){var t=sc;return sc+=1,dl===null&&(dl=sv()),ov(dl,e,t)}function gi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===IS?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
152
|
+
- Multiple copies of the "react" package is used.
|
|
153
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
154
|
+
- 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 pu(e,t){var n=K(e)||"Component";d0[n]||(d0[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.
|
|
155
|
+
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.
|
|
156
|
+
<%s>{%s}</%s>`,t,t,n,t,n))}function hu(e,t){var n=K(e)||"Component";m0[n]||(m0[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
157
|
+
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
158
|
+
<%s>%s</%s>`,n,t,n))}function Hv(e){function t(S,E){if(e){var T=S.deletions;T===null?(S.deletions=[E],S.flags|=16):T.push(E)}}function n(S,E){if(!e)return null;for(;E!==null;)t(S,E),E=E.sibling;return null}function s(S){for(var E=new Map;S!==null;)S.key!==null?E.set(S.key,S):E.set(S.index,S),S=S.sibling;return E}function r(S,E){return S=sr(S,E),S.index=0,S.sibling=null,S}function o(S,E,T){return S.index=T,e?(T=S.alternate,T!==null?(T=T.index,T<E?(S.flags|=67108866,E):T):(S.flags|=67108866,E)):(S.flags|=1048576,E)}function u(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function m(S,E,T,Y){return E===null||E.tag!==6?(E=hm(T,S.mode,Y),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E):(E=r(E,T),E.return=S,E._debugInfo=Le,E)}function b(S,E,T,Y){var oe=T.type;return oe===Fa?(E=P(S,E,T.props.children,Y,T.key),du(T,E,S),E):E!==null&&(E.elementType===oe||Gb(E,T)||typeof oe=="object"&&oe!==null&&oe.$$typeof===Yn&&so(oe)===E.type)?(E=r(E,T.props),gi(E,T),E.return=S,E._debugOwner=T._owner,E._debugInfo=Le,E):(E=$c(T,S.mode,Y),gi(E,T),E.return=S,E._debugInfo=Le,E)}function x(S,E,T,Y){return E===null||E.tag!==4||E.stateNode.containerInfo!==T.containerInfo||E.stateNode.implementation!==T.implementation?(E=bm(T,S.mode,Y),E.return=S,E._debugInfo=Le,E):(E=r(E,T.children||[]),E.return=S,E._debugInfo=Le,E)}function P(S,E,T,Y,oe){return E===null||E.tag!==7?(E=Oo(T,S.mode,Y,oe),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E):(E=r(E,T),E.return=S,E._debugInfo=Le,E)}function L(S,E,T){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=hm(""+E,S.mode,T),E.return=S,E._debugOwner=S,E._debugTask=S._debugTask,E._debugInfo=Le,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Ir:return T=$c(E,S.mode,T),gi(T,E),T.return=S,S=It(E._debugInfo),T._debugInfo=Le,Le=S,T;case qa:return E=bm(E,S.mode,T),E.return=S,E._debugInfo=Le,E;case Yn:var Y=It(E._debugInfo);return E=so(E),S=L(S,E,T),Le=Y,S}if(Kt(E)||we(E))return T=Oo(E,S.mode,T,null),T.return=S,T._debugOwner=S,T._debugTask=S._debugTask,S=It(E._debugInfo),T._debugInfo=Le,Le=S,T;if(typeof E.then=="function")return Y=It(E._debugInfo),S=L(S,mu(E),T),Le=Y,S;if(E.$$typeof===Hs)return L(S,Xc(S,E),T);fu(S,E)}return typeof E=="function"&&pu(S,E),typeof E=="symbol"&&hu(S,E),null}function O(S,E,T,Y){var oe=E!==null?E.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return oe!==null?null:m(S,E,""+T,Y);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Ir:return T.key===oe?(oe=It(T._debugInfo),S=b(S,E,T,Y),Le=oe,S):null;case qa:return T.key===oe?x(S,E,T,Y):null;case Yn:return oe=It(T._debugInfo),T=so(T),S=O(S,E,T,Y),Le=oe,S}if(Kt(T)||we(T))return oe!==null?null:(oe=It(T._debugInfo),S=P(S,E,T,Y,null),Le=oe,S);if(typeof T.then=="function")return oe=It(T._debugInfo),S=O(S,E,mu(T),Y),Le=oe,S;if(T.$$typeof===Hs)return O(S,E,Xc(S,T),Y);fu(S,T)}return typeof T=="function"&&pu(S,T),typeof T=="symbol"&&hu(S,T),null}function F(S,E,T,Y,oe){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return S=S.get(T)||null,m(E,S,""+Y,oe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Ir:return T=S.get(Y.key===null?T:Y.key)||null,S=It(Y._debugInfo),E=b(E,T,Y,oe),Le=S,E;case qa:return S=S.get(Y.key===null?T:Y.key)||null,x(E,S,Y,oe);case Yn:var Pe=It(Y._debugInfo);return Y=so(Y),E=F(S,E,T,Y,oe),Le=Pe,E}if(Kt(Y)||we(Y))return T=S.get(T)||null,S=It(Y._debugInfo),E=P(E,T,Y,oe,null),Le=S,E;if(typeof Y.then=="function")return Pe=It(Y._debugInfo),E=F(S,E,T,mu(Y),oe),Le=Pe,E;if(Y.$$typeof===Hs)return F(S,E,T,Xc(E,Y),oe);fu(E,Y)}return typeof Y=="function"&&pu(E,Y),typeof Y=="symbol"&&hu(E,Y),null}function be(S,E,T,Y){if(typeof T!="object"||T===null)return Y;switch(T.$$typeof){case Ir:case qa:j(S,E,T);var oe=T.key;if(typeof oe!="string")break;if(Y===null){Y=new Set,Y.add(oe);break}if(!Y.has(oe)){Y.add(oe);break}De(E,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.",oe)});break;case Yn:T=so(T),be(S,E,T,Y)}return Y}function Ae(S,E,T,Y){for(var oe=null,Pe=null,ve=null,ke=E,_e=E=0,bt=null;ke!==null&&_e<T.length;_e++){ke.index>_e?(bt=ke,ke=null):bt=ke.sibling;var Pt=O(S,ke,T[_e],Y);if(Pt===null){ke===null&&(ke=bt);break}oe=be(S,Pt,T[_e],oe),e&&ke&&Pt.alternate===null&&t(S,ke),E=o(Pt,E,_e),ve===null?Pe=Pt:ve.sibling=Pt,ve=Pt,ke=bt}if(_e===T.length)return n(S,ke),tt&&Po(S,_e),Pe;if(ke===null){for(;_e<T.length;_e++)ke=L(S,T[_e],Y),ke!==null&&(oe=be(S,ke,T[_e],oe),E=o(ke,E,_e),ve===null?Pe=ke:ve.sibling=ke,ve=ke);return tt&&Po(S,_e),Pe}for(ke=s(ke);_e<T.length;_e++)bt=F(ke,S,_e,T[_e],Y),bt!==null&&(oe=be(S,bt,T[_e],oe),e&&bt.alternate!==null&&ke.delete(bt.key===null?_e:bt.key),E=o(bt,E,_e),ve===null?Pe=bt:ve.sibling=bt,ve=bt);return e&&ke.forEach(function(Dr){return t(S,Dr)}),tt&&Po(S,_e),Pe}function pt(S,E,T,Y){if(T==null)throw Error("An iterable object provided no iterator.");for(var oe=null,Pe=null,ve=E,ke=E=0,_e=null,bt=null,Pt=T.next();ve!==null&&!Pt.done;ke++,Pt=T.next()){ve.index>ke?(_e=ve,ve=null):_e=ve.sibling;var Dr=O(S,ve,Pt.value,Y);if(Dr===null){ve===null&&(ve=_e);break}bt=be(S,Dr,Pt.value,bt),e&&ve&&Dr.alternate===null&&t(S,ve),E=o(Dr,E,ke),Pe===null?oe=Dr:Pe.sibling=Dr,Pe=Dr,ve=_e}if(Pt.done)return n(S,ve),tt&&Po(S,ke),oe;if(ve===null){for(;!Pt.done;ke++,Pt=T.next())ve=L(S,Pt.value,Y),ve!==null&&(bt=be(S,ve,Pt.value,bt),E=o(ve,E,ke),Pe===null?oe=ve:Pe.sibling=ve,Pe=ve);return tt&&Po(S,ke),oe}for(ve=s(ve);!Pt.done;ke++,Pt=T.next())_e=F(ve,S,ke,Pt.value,Y),_e!==null&&(bt=be(S,_e,Pt.value,bt),e&&_e.alternate!==null&&ve.delete(_e.key===null?ke:_e.key),E=o(_e,E,ke),Pe===null?oe=_e:Pe.sibling=_e,Pe=_e);return e&&ve.forEach(function(kj){return t(S,kj)}),tt&&Po(S,ke),oe}function Je(S,E,T,Y){if(typeof T=="object"&&T!==null&&T.type===Fa&&T.key===null&&(du(T,null,S),T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case Ir:var oe=It(T._debugInfo);e:{for(var Pe=T.key;E!==null;){if(E.key===Pe){if(Pe=T.type,Pe===Fa){if(E.tag===7){n(S,E.sibling),Y=r(E,T.props.children),Y.return=S,Y._debugOwner=T._owner,Y._debugInfo=Le,du(T,Y,S),S=Y;break e}}else if(E.elementType===Pe||Gb(E,T)||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===Yn&&so(Pe)===E.type){n(S,E.sibling),Y=r(E,T.props),gi(Y,T),Y.return=S,Y._debugOwner=T._owner,Y._debugInfo=Le,S=Y;break e}n(S,E);break}else t(S,E);E=E.sibling}T.type===Fa?(Y=Oo(T.props.children,S.mode,Y,T.key),Y.return=S,Y._debugOwner=S,Y._debugTask=S._debugTask,Y._debugInfo=Le,du(T,Y,S),S=Y):(Y=$c(T,S.mode,Y),gi(Y,T),Y.return=S,Y._debugInfo=Le,S=Y)}return S=u(S),Le=oe,S;case qa:e:{for(oe=T,T=oe.key;E!==null;){if(E.key===T)if(E.tag===4&&E.stateNode.containerInfo===oe.containerInfo&&E.stateNode.implementation===oe.implementation){n(S,E.sibling),Y=r(E,oe.children||[]),Y.return=S,S=Y;break e}else{n(S,E);break}else t(S,E);E=E.sibling}Y=bm(oe,S.mode,Y),Y.return=S,S=Y}return u(S);case Yn:return oe=It(T._debugInfo),T=so(T),S=Je(S,E,T,Y),Le=oe,S}if(Kt(T))return oe=It(T._debugInfo),S=Ae(S,E,T,Y),Le=oe,S;if(we(T)){if(oe=It(T._debugInfo),Pe=we(T),typeof Pe!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ve=Pe.call(T);return ve===T?(S.tag!==0||Object.prototype.toString.call(S.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ve)!=="[object Generator]")&&(c0||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."),c0=!0):T.entries!==Pe||Gp||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Gp=!0),S=pt(S,E,ve,Y),Le=oe,S}if(typeof T.then=="function")return oe=It(T._debugInfo),S=Je(S,E,mu(T),Y),Le=oe,S;if(T.$$typeof===Hs)return Je(S,E,Xc(S,T),Y);fu(S,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(oe=""+T,E!==null&&E.tag===6?(n(S,E.sibling),Y=r(E,oe),Y.return=S,S=Y):(n(S,E),Y=hm(oe,S.mode,Y),Y.return=S,Y._debugOwner=S,Y._debugTask=S._debugTask,Y._debugInfo=Le,S=Y),u(S)):(typeof T=="function"&&pu(S,T),typeof T=="symbol"&&hu(S,T),n(S,E))}return function(S,E,T,Y){var oe=Le;Le=null;try{sc=0;var Pe=Je(S,E,T,Y);return dl=null,Pe}catch(bt){if(bt===Wi||bt===td)throw bt;var ve=g(29,bt,null,S.mode);ve.lanes=Y,ve.return=S;var ke=ve._debugInfo=Le;if(ve._debugOwner=S._debugOwner,ve._debugTask=S._debugTask,ke!=null){for(var _e=ke.length-1;0<=_e;_e--)if(typeof ke[_e].stack=="string"){ve._debugOwner=ke[_e],ve._debugTask=ke[_e].debugTask;break}}return ve}finally{Le=oe}}}function Fr(e){var t=e.alternate;Q(qt,qt.current&fl,e),Q(is,e,e),$s===null&&(t===null||il.current!==null||t.memoizedState!==null)&&($s=e)}function _v(e){if(e.tag===22){if(Q(qt,qt.current,e),Q(is,e,e),$s===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&($s=e)}}else Yr(e)}function Yr(e){Q(qt,qt.current,e),Q(is,is.current,e)}function ar(e){ae(is,e),$s===e&&($s=null),ae(qt,e)}function bu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===Sr||Yf(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 nf(e){if(e!==null&&typeof e!="function"){var t=String(e);E0.has(t)||(E0.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function sf(e,t,n,s){var r=e.memoizedState,o=n(s,r);if(e.mode&rn){he(!0);try{o=n(s,r)}finally{he(!1)}}o===void 0&&(t=Ue(t)||"Component",y0.has(t)||(y0.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=o==null?r:qe({},r,o),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function Bv(e,t,n,s,r,o,u){var m=e.stateNode;if(typeof m.shouldComponentUpdate=="function"){if(n=m.shouldComponentUpdate(s,o,u),e.mode&rn){he(!0);try{n=m.shouldComponentUpdate(s,o,u)}finally{he(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Ue(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!ai(n,s)||!ai(r,o):!0}function Lv(e,t,n,s){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==r&&(e=K(e)||"Component",h0.has(e)||(h0.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),$p.enqueueReplaceState(t,t.state,null))}function Yo(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=qe({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function qv(e){Qp(e),console.warn(`%s
|
|
159
|
+
|
|
160
|
+
%s
|
|
161
|
+
`,pl?"An error occurred in the <"+pl+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
162
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Fv(e){var t=pl?"The above error occurred in the <"+pl+"> 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, "+((Ip||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var s=e.environmentName;e=[`%o
|
|
163
|
+
|
|
164
|
+
%s
|
|
165
|
+
|
|
166
|
+
%s
|
|
167
|
+
`,e,t,n].slice(0),typeof e[0]=="string"?e.splice(0,1,nN+e[0],sN,jd+s+jd,rN):e.splice(0,0,nN,sN,jd+s+jd,rN),e.unshift(console),s=Oj.apply(console.error,e),s()}else console.error(`%o
|
|
168
|
+
|
|
169
|
+
%s
|
|
170
|
+
|
|
171
|
+
%s
|
|
172
|
+
`,e,t,n)}function Yv(e){Qp(e)}function vu(e,t){try{pl=t.source?K(t.source):null,Ip=null;var n=t.value;if(B.actQueue!==null)B.thrownErrors.push(n);else{var s=e.onUncaughtError;s(n,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function Gv(e,t,n){try{pl=n.source?K(n.source):null,Ip=K(t);var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function rf(e,t,n){return n=Br(n),n.tag=zp,n.payload={element:null},n.callback=function(){De(t.source,vu,e,t)},n}function of(e){return e=Br(e),e.tag=zp,e}function af(e,t,n,s){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=s.value;e.payload=function(){return r(o)},e.callback=function(){$b(n),De(s.source,Gv,t,n,s)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){$b(n),De(s.source,Gv,t,n,s),typeof r!="function"&&(lo===null?lo=new Set([this]):lo.add(this)),dj(this,s),typeof r=="function"||(n.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",K(n)||"Unknown")})}function Yw(e,t,n,s,r){if(n.flags|=32768,bs&&Di(e,r),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&ui(t,n,r,!0),tt&&(xr=!0),n=is.current,n!==null){switch(n.tag){case 13:return $s===null?Df():n.alternate===null&&Ct===wr&&(Ct=Jp),n.flags&=-257,n.flags|=65536,n.lanes=r,s===kp?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),Cf(e,s,r)),!1;case 22:return n.flags|=65536,s===kp?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),Cf(e,s,r)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return Cf(e,s,r),Df(),!1}if(tt)return xr=!0,t=is.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,s!==Vp&&ci(Bn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),n))):(s!==Vp&&ci(Bn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),n)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,s=Bn(s,n),r=rf(e.stateNode,s,r),eu(e,r),Ct!==ta&&(Ct=xl)),!1;var o=Bn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),n);if(dc===null?dc=[o]:dc.push(o),Ct!==ta&&(Ct=xl),t===null)return!0;s=Bn(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=rf(n.stateNode,s,e),eu(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(lo===null||!lo.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=of(r),af(r,e,n,s),eu(n,r),!1}n=n.return}while(n!==null);return!1}function Xt(e,t,n,s){t.child=e===null?f0(t,null,n,s):ml(t,e.child,n,s)}function $v(e,t,n,s,r){n=n.render;var o=t.ref;if("ref"in s){var u={};for(var m in s)m!=="ref"&&(u[m]=s[m])}else u=s;return _o(t),Ie(t),s=Am(e,t,n,u,o,r),m=Mm(),Ve(),e!==null&&!$t?(Om(e,t,r),lr(e,t,r)):(tt&&m&&vm(t),t.flags|=1,Xt(e,t,s,r),t.child)}function Qv(e,t,n,s,r){if(e===null){var o=n.type;return typeof o=="function"&&!fm(o)&&o.defaultProps===void 0&&n.compare===null?(n=Mo(o),t.tag=15,t.type=n,cf(t,o),Iv(e,t,n,s,r)):(e=pm(n.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!hf(e,r)){var u=o.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(u,s)&&e.ref===t.ref)return lr(e,t,r)}return t.flags|=1,e=sr(o,s),e.ref=t.ref,e.return=t,t.child=e}function Iv(e,t,n,s,r){if(e!==null){var o=e.memoizedProps;if(ai(o,s)&&e.ref===t.ref&&t.type===e.type)if($t=!1,t.pendingProps=s=o,hf(e,r))(e.flags&131072)!==0&&($t=!0);else return t.lanes=e.lanes,lr(e,t,r)}return lf(e,t,n,s,r)}function Xv(e,t,n){var s=t.pendingProps,r=s.children,o=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;t.childLanes=o&~s}else t.childLanes=0,t.child=null;return Zv(e,t,s,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jc(t,o!==null?o.cachePool:null),o!==null?uv(t,o):Um(t),_v(t);else return t.lanes=t.childLanes=536870912,Zv(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Jc(t,o.cachePool),uv(t,o),Yr(t),t.memoizedState=null):(e!==null&&Jc(t,null),Um(t),Yr(t));return Xt(e,t,r,n),t.child}function Zv(e,t,n,s){var r=jm();return r=r===null?null:{parent:Bt._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Jc(t,null),Um(t),_v(t),e!==null&&ui(e,t,s,!0),null}function xu(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 lf(e,t,n,s,r){if(n.prototype&&typeof n.prototype.render=="function"){var o=Ue(n)||"Unknown";D0[o]||(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.",o,o),D0[o]=!0)}return t.mode&rn&&xs.recordLegacyContextWarning(t,null),e===null&&(cf(t,t.type),n.contextTypes&&(o=Ue(n)||"Unknown",U0[o]||(U0[o]=!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)",o)))),_o(t),Ie(t),n=Am(e,t,n,s,void 0,r),s=Mm(),Ve(),e!==null&&!$t?(Om(e,t,r),lr(e,t,r)):(tt&&s&&vm(t),t.flags|=1,Xt(e,t,n,r),t.child)}function Kv(e,t,n,s,r,o){return _o(t),Ie(t),yr=-1,nc=e!==null&&e.type!==t.type,t.updateQueue=null,n=Vm(t,s,n,r),dv(e,t),s=Mm(),Ve(),e!==null&&!$t?(Om(e,t,o),lr(e,t,o)):(tt&&s&&vm(t),t.flags|=1,Xt(e,t,n,o),t.child)}function Jv(e,t,n,s,r){switch(N(t)){case!1:var o=t.stateNode,u=new t.type(t.memoizedProps,o.context).state;o.updater.enqueueSetState(o,u,null);break;case!0:t.flags|=128,t.flags|=65536,o=Error("Simulated error coming from DevTools");var m=r&-r;if(t.lanes|=m,u=ft,u===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m=of(m),af(m,u,t,Bn(o,t)),eu(t,m)}if(_o(t),t.stateNode===null){if(u=eo,o=n.contextType,"contextType"in n&&o!==null&&(o===void 0||o.$$typeof!==Hs)&&!S0.has(n)&&(S0.add(n),m=o===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 o!="object"?" However, it is set to a "+typeof o+".":o.$$typeof===np?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Ue(n)||"Component",m)),typeof o=="object"&&o!==null&&(u=wt(o)),o=new n(s,u),t.mode&rn){he(!0);try{o=new n(s,u)}finally{he(!1)}}if(u=t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=$p,t.stateNode=o,o._reactInternals=t,o._reactInternalInstance=p0,typeof n.getDerivedStateFromProps=="function"&&u===null&&(u=Ue(n)||"Component",b0.has(u)||(b0.add(u),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.",u,o.state===null?"null":"undefined",u))),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"){var b=m=u=null;if(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0?u="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0?m="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(m="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(b="UNSAFE_componentWillUpdate"),u!==null||m!==null||b!==null){o=Ue(n)||"Component";var x=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";x0.has(o)||(x0.add(o),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
173
|
+
|
|
174
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
175
|
+
|
|
176
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
177
|
+
https://react.dev/link/unsafe-component-lifecycles`,o,x,u!==null?`
|
|
178
|
+
`+u:"",m!==null?`
|
|
179
|
+
`+m:"",b!==null?`
|
|
180
|
+
`+b:""))}}o=t.stateNode,u=Ue(n)||"Component",o.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?",u):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",u)),!o.getInitialState||o.getInitialState.isReactClassApproved||o.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?",u),o.getDefaultProps&&!o.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.",u),o.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",u),n.childContextTypes&&!w0.has(n)&&(w0.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)",u)),n.contextTypes&&!N0.has(n)&&(N0.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)",u)),typeof o.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.",u),n.prototype&&n.prototype.isPureReactComponent&&typeof o.shouldComponentUpdate<"u"&&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.",Ue(n)||"A pure component"),typeof o.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",u),typeof o.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().",u),typeof o.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",u),typeof o.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",u),m=o.props!==s,o.props!==void 0&&m&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",u),o.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.",u,u),typeof o.getSnapshotBeforeUpdate!="function"||typeof o.componentDidUpdate=="function"||v0.has(n)||(v0.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Ue(n))),typeof o.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof o.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),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.",u),(m=o.state)&&(typeof m!="object"||Kt(m))&&console.error("%s.state: must be set to an object or null",u),typeof o.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",u),o=t.stateNode,o.props=s,o.state=t.memoizedState,o.refs={},Dm(t),u=n.contextType,o.context=typeof u=="object"&&u!==null?wt(u):eo,o.state===s&&(u=Ue(n)||"Component",g0.has(u)||(g0.add(u),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.",u))),t.mode&rn&&xs.recordLegacyContextWarning(t,o),xs.recordUnsafeLifecycleWarnings(t,o),o.state=t.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(sf(t,n,u,s),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(u=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),u!==o.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",K(t)||"Component"),$p.enqueueReplaceState(o,o.state,null)),hi(t,s,o,r),pi(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),o=!0}else if(e===null){o=t.stateNode;var P=t.memoizedProps;m=Yo(n,P),o.props=m;var L=o.context;b=n.contextType,u=eo,typeof b=="object"&&b!==null&&(u=wt(b)),x=n.getDerivedStateFromProps,b=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function",P=t.pendingProps!==P,b||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(P||L!==u)&&Lv(t,o,s,u),to=!1;var O=t.memoizedState;o.state=O,hi(t,s,o,r),pi(),L=t.memoizedState,P||O!==L||to?(typeof x=="function"&&(sf(t,n,x,s),L=t.memoizedState),(m=to||Bv(t,n,m,s,O,L,u))?(b||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),t.memoizedProps=s,t.memoizedState=L),o.props=s,o.state=L,o.context=u,o=m):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&vs)!==ht&&(t.flags|=134217728),o=!1)}else{o=t.stateNode,Tm(e,t),u=t.memoizedProps,b=Yo(n,u),o.props=b,x=t.pendingProps,O=o.context,L=n.contextType,m=eo,typeof L=="object"&&L!==null&&(m=wt(L)),P=n.getDerivedStateFromProps,(L=typeof P=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==x||O!==m)&&Lv(t,o,s,m),to=!1,O=t.memoizedState,o.state=O,hi(t,s,o,r),pi();var F=t.memoizedState;u!==x||O!==F||to||e!==null&&e.dependencies!==null&&Ic(e.dependencies)?(typeof P=="function"&&(sf(t,n,P,s),F=t.memoizedState),(b=to||Bv(t,n,b,s,O,F,m)||e!==null&&e.dependencies!==null&&Ic(e.dependencies))?(L||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(s,F,m),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(s,F,m)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=F),o.props=s,o.state=F,o.context=m,o=b):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),o=!1)}if(m=o,xu(e,t),u=(t.flags&128)!==0,m||u){if(m=t.stateNode,Wd(t),u&&typeof n.getDerivedStateFromError!="function")n=null,Tn=-1;else{if(Ie(t),n=Wy(m),t.mode&rn){he(!0);try{Wy(m)}finally{he(!1)}}Ve()}t.flags|=1,e!==null&&u?(t.child=ml(t,e.child,null,r),t.child=ml(t,null,n,r)):Xt(e,t,n,r),t.memoizedState=m.state,e=t.child}else e=lr(e,t,r);return r=t.stateNode,o&&r.props!==s&&(hl||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",K(t)||"a component"),hl=!0),e}function Wv(e,t,n,s){return ii(),t.flags|=256,Xt(e,t,n,s),t.child}function cf(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
181
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=Ue(t)||"Unknown",C0[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),C0[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=Ue(t)||"Unknown",T0[t]||(console.error("%s: Function components do not support contextType.",t),T0[t]=!0))}function uf(e){return{baseLanes:e,cachePool:nv()}}function df(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=In),e}function ex(e,t,n){var s,r=t.pendingProps;v(t)&&(t.flags|=128);var o=!1,u=(t.flags&128)!==0;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(qt.current&rc)!==0),s&&(o=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(tt){if(o?Fr(t):Yr(t),tt){var m=Ut,b;if(!(b=!m)){e:{var x=m;for(b=Ys;x.nodeType!==8;){if(!b){b=null;break e}if(x=Jn(x.nextSibling),x===null){b=null;break e}}b=x}b!==null?(ko(),t.memoizedState={dehydrated:b,treeContext:Io!==null?{id:br,overflow:vr}:null,retryLane:536870912,hydrationErrors:null},x=g(18,null,null,ht),x.stateNode=b,x.return=t,t.child=x,fn=t,Ut=null,b=!0):b=!1,b=!b}b&&(gm(t,m),Ho(t))}if(m=t.memoizedState,m!==null&&(m=m.dehydrated,m!==null))return Yf(m)?t.lanes=32:t.lanes=536870912,null;ar(t)}return m=r.children,r=r.fallback,o?(Yr(t),o=t.mode,m=gu({mode:"hidden",children:m},o),r=Oo(r,o,n,null),m.return=t,r.return=t,m.sibling=r,t.child=m,o=t.child,o.memoizedState=uf(n),o.childLanes=df(e,s,n),t.memoizedState=Zp,r):(Fr(t),mf(t,m))}var P=e.memoizedState;if(P!==null&&(m=P.dehydrated,m!==null)){if(u)t.flags&256?(Fr(t),t.flags&=-257,t=ff(e,t,n)):t.memoizedState!==null?(Yr(t),t.child=e.child,t.flags|=128,t=null):(Yr(t),o=r.fallback,m=t.mode,r=gu({mode:"visible",children:r.children},m),o=Oo(o,m,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,ml(t,e.child,null,n),r=t.child,r.memoizedState=uf(n),r.childLanes=df(e,s,n),t.memoizedState=Zp,t=o);else if(Fr(t),tt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Yf(m)){if(s=m.nextSibling&&m.nextSibling.dataset,s){b=s.dgst;var L=s.msg;x=s.stck;var O=s.cstck}m=L,s=b,r=x,b=o=O,o=Error(m||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),o.stack=r||"",o.digest=s,s=b===void 0?null:b,r={value:o,source:null,stack:s},typeof s=="string"&&Rp.set(o,r),ci(r),t=ff(e,t,n)}else if($t||ui(e,t,n,!1),s=(n&e.childLanes)!==0,$t||s){if(s=ft,s!==null&&(r=n&-n,r=(r&42)!==0?1:Co(r),r=(r&(s.suspendedLanes|n))!==0?0:r,r!==0&&r!==P.retryLane))throw P.retryLane=r,Sn(e,r),Mt(s,e,r),j0;m.data===Sr||Df(),t=ff(e,t,n)}else m.data===Sr?(t.flags|=192,t.child=e.child,t=null):(e=P.treeContext,Ut=Jn(m.nextSibling),fn=t,tt=!0,Xo=null,xr=!1,rs=null,Ys=!1,e!==null&&(ko(),ns[ss++]=br,ns[ss++]=vr,ns[ss++]=Io,br=e.id,vr=e.overflow,Io=t),t=mf(t,r.children),t.flags|=4096);return t}return o?(Yr(t),o=r.fallback,m=t.mode,b=e.child,x=b.sibling,r=sr(b,{mode:"hidden",children:r.children}),r.subtreeFlags=b.subtreeFlags&65011712,x!==null?o=sr(x,o):(o=Oo(o,m,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,m=e.child.memoizedState,m===null?m=uf(n):(b=m.cachePool,b!==null?(x=Bt._currentValue,b=b.parent!==x?{parent:x,pool:x}:b):b=nv(),m={baseLanes:m.baseLanes|n,cachePool:b}),o.memoizedState=m,o.childLanes=df(e,s,n),t.memoizedState=Zp,r):(Fr(t),n=e.child,e=n.sibling,n=sr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function mf(e,t){return t=gu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function gu(e,t){return e=g(22,e,null,t),e.lanes=0,e.stateNode={_visibility:Qu,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ff(e,t,n){return ml(t,e.child,null,n),e=mf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tx(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),ym(e.return,t,n)}function nx(e,t){var n=Kt(e);return e=!n&&typeof we(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 pf(e,t,n,s,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=s,o.tail=n,o.tailMode=r)}function sx(e,t,n){var s=t.pendingProps,r=s.revealOrder,o=s.tail;if(s=s.children,r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!R0[r])if(R0[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.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.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);o===void 0||Xp[o]||(o!=="collapsed"&&o!=="hidden"?(Xp[o]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):r!=="forwards"&&r!=="backwards"&&(Xp[o]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o)));e:if((r==="forwards"||r==="backwards")&&s!==void 0&&s!==null&&s!==!1)if(Kt(s)){for(var u=0;u<s.length;u++)if(!nx(s[u],u))break e}else if(u=we(s),typeof u=="function"){if(u=u.call(s))for(var m=u.next(),b=0;!m.done;m=u.next()){if(!nx(m.value,b))break e;b++}}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?',r);if(Xt(e,t,s,n),s=qt.current,(s&rc)!==0)s=s&fl|rc,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tx(e,n,t);else if(e.tag===19)tx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=fl}switch(Q(qt,s,t),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&bu(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),pf(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&bu(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}pf(t,!0,n,null,o);break;case"together":pf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Tn=-1,oo|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ui(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=sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ic(e)))}function Gw(e,t,n){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),_r(t,Bt,e.memoizedState.cache),ii();break;case 27:case 5:C(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:_r(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var s=t.stateNode;s.effectDuration=-0,s.passiveEffectDuration=-0;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Fr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ex(e,t,n):(Fr(t),e=lr(e,t,n),e!==null?e.sibling:null);Fr(t);break;case 19:var r=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(ui(e,t,n,!1),s=(n&t.childLanes)!==0),r){if(s)return sx(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Q(qt,qt.current,t),s)break;return null;case 22:case 23:return t.lanes=0,Xv(e,t,n);case 24:_r(t,Bt,e.memoizedState.cache)}return lr(e,t,n)}function bf(e,t,n){if(t._debugNeedsRemount&&e!==null){n=pm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var s=t.return;if(s===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===s.child)s.child=n;else{var r=s.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=n}return t=s.deletions,t===null?(s.deletions=[e],s.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)$t=!0;else{if(!hf(e,n)&&(t.flags&128)===0)return $t=!1,Gw(e,t,n);$t=(e.flags&131072)!==0}else $t=!1,(s=tt)&&(ko(),s=(t.flags&1048576)!==0),s&&(s=t.index,ko(),Ib(t,Xu,s));switch(t.lanes=0,t.tag){case 16:e:if(s=t.pendingProps,e=so(t.elementType),t.type=e,typeof e=="function")fm(e)?(s=Yo(e,s),t.tag=1,t.type=e=Mo(e),t=Jv(null,t,e,s,n)):(t.tag=0,cf(t,e),t.type=e=Mo(e),t=lf(null,t,e,s,n));else{if(e!=null){if(r=e.$$typeof,r===Oi){t.tag=11,t.type=e=dm(e),t=$v(null,t,e,s,n);break e}else if(r===ku){t.tag=14,t=Qv(null,t,e,s,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Yn&&(t=" Did you wrap a component in React.lazy() more than once?"),e=Ue(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return lf(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,r=Yo(s,t.pendingProps),Jv(e,t,s,r,n);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");s=t.pendingProps;var o=t.memoizedState;r=o.element,Tm(e,t),hi(t,s,null,n);var u=t.memoizedState;if(s=u.cache,_r(t,Bt,s),s!==o.cache&&Nm(t,[Bt],n,!0),pi(),s=u.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Wv(e,t,s,n);break e}else if(s!==r){r=Bn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),ci(r),t=Wv(e,t,s,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ut=Jn(e.firstChild),fn=t,tt=!0,Xo=null,xr=!1,rs=null,Ys=!0,e=f0(t,null,s,n),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(ii(),s===r){t=lr(e,t,n);break e}Xt(e,t,s,n)}t=t.child}return t;case 26:return xu(e,t),e===null?(e=wg(t.type,null,t.pendingProps,null))?t.memoizedState=e:tt||(e=t.type,n=t.pendingProps,s=H(Zr.current),s=Tu(s).createElement(e),s[sn]=t,s[Dn]=n,Zt(s,e,n),R(s),t.stateNode=s):t.memoizedState=wg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return C(t),e===null&&tt&&(s=H(Zr.current),r=z(),s=t.stateNode=yg(t.type,t.pendingProps,s,r,!1),xr||(r=dg(s,t.type,t.pendingProps,r),r!==null&&(zo(t,0).serverProps=r)),fn=t,Ys=!0,r=Ut,Qr(t.type)?(gh=r,Ut=Jn(s.firstChild)):Ut=r),Xt(e,t,t.pendingProps.children,n),xu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&tt&&(o=z(),s=am(t.type,o.ancestorInfo),r=Ut,(u=!r)||(u=US(r,t.type,t.pendingProps,Ys),u!==null?(t.stateNode=u,xr||(o=dg(u,t.type,t.pendingProps,o),o!==null&&(zo(t,0).serverProps=o)),fn=t,Ut=Jn(u.firstChild),Ys=!1,o=!0):o=!1,u=!o),u&&(s&&gm(t,r),Ho(t))),C(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,s=o.children,qf(r,o)?s=null:u!==null&&qf(r,u)&&(t.flags|=32),t.memoizedState!==null&&(r=Am(e,t,_w,null,null,n),gc._currentValue=r),xu(e,t),Xt(e,t,s,n),t.child;case 6:return e===null&&tt&&(e=t.pendingProps,n=z(),s=n.ancestorInfo.current,e=s!=null?_c(e,s.tag,n.ancestorInfo.implicitRootScope):!0,n=Ut,(s=!n)||(s=CS(n,t.pendingProps,Ys),s!==null?(t.stateNode=s,fn=t,Ut=null,s=!0):s=!1,s=!s),s&&(e&&gm(t,n),Ho(t))),null;case 13:return ex(e,t,n);case 4:return fe(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ml(t,null,s,n):Xt(e,t,s,n),t.child;case 11:return $v(e,t,t.type,t.pendingProps,n);case 7:return Xt(e,t,t.pendingProps,n),t.child;case 8:return Xt(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,s=t.stateNode,s.effectDuration=-0,s.passiveEffectDuration=-0,Xt(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.type,r=t.pendingProps,o=r.value,"value"in r||A0||(A0=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),_r(t,s,o),Xt(e,t,r.children,n),t.child;case 9:return r=t.type._context,s=t.pendingProps.children,typeof s!="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."),_o(t),r=wt(r),Ie(t),s=Fp(s,r,void 0),Ve(),t.flags|=1,Xt(e,t,s,n),t.child;case 14:return Qv(e,t,t.type,t.pendingProps,n);case 15:return Iv(e,t,t.type,t.pendingProps,n);case 19:return sx(e,t,n);case 31:return s=t.pendingProps,n=t.mode,s={mode:s.mode,children:s.children},e===null?(e=gu(s,n),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=sr(e.child,s),e.ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return Xv(e,t,n);case 24:return _o(t),s=wt(Bt),e===null?(r=jm(),r===null&&(r=ft,o=wm(),r.pooledCache=o,Bo(o),o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:s,cache:r},Dm(t),_r(t,Bt,r)):((e.lanes&n)!==0&&(Tm(e,t),hi(t,null,null,n),pi()),r=e.memoizedState,o=t.memoizedState,r.parent!==s?(r={parent:s,cache:s},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),_r(t,Bt,s)):(s=o.cache,_r(t,Bt,s),s!==r.cache&&Nm(t,[Bt],n,!0))),Xt(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 ir(e){e.flags|=4}function rx(e,t){if(t.type!=="stylesheet"||(t.state.loading&cs)!==ua)e.flags&=-16777217;else if(e.flags|=16777216,!Tg(t)){if(t=is.current,t!==null&&((Ze&4194048)===Ze?$s!==null:(Ze&62914560)!==Ze&&(Ze&536870912)===0||t!==$s))throw ec=kp,Ly;e.flags|=8192}}function yu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?er():536870912,e.lanes|=t,ra|=t)}function yi(e,t){if(!tt)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 s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function St(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)if((e.mode&Jt)!==ht){for(var r=e.selfBaseDuration,o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,r+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Jt)!==ht){r=e.actualDuration,o=e.selfBaseDuration;for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,r+=u.actualDuration,o+=u.treeBaseDuration,u=u.sibling;e.actualDuration=r,e.treeBaseDuration=o}else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function $w(e,t,n){var s=t.pendingProps;switch(xm(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(t),null;case 1:return St(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),rr(Bt,t),pe(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(li(t)?(Jb(),ir(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kb())),St(t),null;case 26:return n=t.memoizedState,e===null?(ir(t),n!==null?(St(t),rx(t,n)):(St(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ir(t),St(t),rx(t,n)):(St(t),t.flags&=-16777217):(e.memoizedProps!==s&&ir(t),St(t),t.flags&=-16777217),null;case 27:V(t),n=H(Zr.current);var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ir(t);else{if(!s){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 St(t),null}e=z(),li(t)?Xb(t):(e=yg(r,s,n,e,!0),t.stateNode=e,ir(t))}return St(t),null;case 5:if(V(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ir(t);else{if(!s){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 St(t),null}if(r=z(),li(t))Xb(t);else{switch(e=H(Zr.current),am(n,r.ancestorInfo),r=r.context,e=Tu(e),r){case El:e=e.createElementNS(Qa,n);break;case wd:e=e.createElementNS(qu,n);break;default:switch(n){case"svg":e=e.createElementNS(Qa,n);break;case"math":e=e.createElementNS(qu,n);break;case"script":e=e.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?e.createElement("select",{is:s.is}):e.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?e.createElement(n,{is:s.is}):e.createElement(n),n.indexOf("-")===-1&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),Object.prototype.toString.call(e)!=="[object HTMLUnknownElement]"||fr.call(Z0,n)||(Z0[n]=!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.",n)))}}e[sn]=t,e[Dn]=s;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Zt(e,n,s),n){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ir(t)}}return St(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&ir(t);else{if(typeof s!="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=H(Zr.current),n=z(),li(t)){e=t.stateNode,n=t.memoizedProps,r=!xr,s=null;var o=fn;if(o!==null)switch(o.tag){case 3:r&&(r=vg(e,n,s),r!==null&&(zo(t,0).serverProps=r));break;case 27:case 5:s=o.memoizedProps,r&&(r=vg(e,n,s),r!==null&&(zo(t,0).serverProps=r))}e[sn]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||ag(e.nodeValue,n)),e||Ho(t)}else r=n.ancestorInfo.current,r!=null&&_c(s,r.tag,n.ancestorInfo.implicitRootScope),e=Tu(e).createTextNode(s),e[sn]=t,t.stateNode=e}return St(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=li(t),s!==null&&s.dehydrated!==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(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[sn]=t,St(t),(t.mode&Jt)!==ht&&s!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else Jb(),ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4,St(t),(t.mode&Jt)!==ht&&s!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=Kb(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ar(t),t):(ar(t),null)}return ar(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&Jt)!==ht&&Kc(t),t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==r&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),yu(t,t.updateQueue),St(t),(t.mode&Jt)!==ht&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return pe(t),e===null&&Pf(t.stateNode.containerInfo),St(t),null;case 10:return rr(t.type,t),St(t),null;case 19:if(ae(qt,t),r=t.memoizedState,r===null)return St(t),null;if(s=(t.flags&128)!==0,o=r.rendering,o===null)if(s)yi(r,!1);else{if(Ct!==wr||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=bu(e),o!==null){for(t.flags|=128,yi(r,!1),e=o.updateQueue,t.updateQueue=e,yu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qb(n,e),n=n.sibling;return Q(qt,qt.current&fl|rc,t),t.child}e=e.sibling}r.tail!==null&&_s()>ud&&(t.flags|=128,s=!0,yi(r,!1),t.lanes=4194304)}else{if(!s)if(e=bu(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,yu(t,e),yi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!tt)return St(t),null}else 2*_s()-r.renderingStartTime>ud&&n!==536870912&&(t.flags|=128,s=!0,yi(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_s(),e.sibling=null,n=qt.current,n=s?n&fl|rc:n&fl,Q(qt,n,t),e):(St(t),null);case 22:case 23:return ar(t),Cm(t),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),n=t.updateQueue,n!==null&&yu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&ae(Jo,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),rr(Bt,t),St(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 Qw(e,t){switch(xm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Jt)!==ht&&Kc(t),t):null;case 3:return rr(Bt,t),pe(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return V(t),null;case 13:if(ar(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.");ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Jt)!==ht&&Kc(t),t):null;case 19:return ae(qt,t),null;case 4:return pe(t),null;case 10:return rr(t.type,t),null;case 22:case 23:return ar(t),Cm(t),e!==null&&ae(Jo,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Jt)!==ht&&Kc(t),t):null;case 24:return rr(Bt,t),null;case 25:return null;default:return null}}function ox(e,t){switch(xm(t),t.tag){case 3:rr(Bt,t),pe(t);break;case 26:case 27:case 5:V(t);break;case 4:pe(t);break;case 13:ar(t);break;case 19:ae(qt,t);break;case 10:rr(t.type,t);break;case 22:case 23:ar(t),Cm(t),e!==null&&ae(Jo,t);break;case 24:rr(Bt,t)}}function Ms(e){return(e.mode&Jt)!==ht}function ax(e,t){Ms(e)?(Vs(),Ni(t,e),As()):Ni(t,e)}function vf(e,t,n){Ms(e)?(Vs(),Ma(n,e,t),As()):Ma(n,e,t)}function Ni(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var r=s.next;n=r;do{if((n.tag&e)===e&&((e&Lt)!==os?ce!==null&&typeof ce.markComponentPassiveEffectMountStarted=="function"&&ce.markComponentPassiveEffectMountStarted(t):(e&Wt)!==os&&ce!==null&&typeof ce.markComponentLayoutEffectMountStarted=="function"&&ce.markComponentLayoutEffectMountStarted(t),s=void 0,(e&pn)!==os&&(wl=!0),s=De(t,mj,n),(e&pn)!==os&&(wl=!1),(e&Lt)!==os?ce!==null&&typeof ce.markComponentPassiveEffectMountStopped=="function"&&ce.markComponentPassiveEffectMountStopped():(e&Wt)!==os&&ce!==null&&typeof ce.markComponentLayoutEffectMountStopped=="function"&&ce.markComponentLayoutEffectMountStopped(),s!==void 0&&typeof s!="function")){var o=void 0;o=(n.tag&Wt)!==0?"useLayoutEffect":(n.tag&pn)!==0?"useInsertionEffect":"useEffect";var u=void 0;u=s===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof s.then=="function"?`
|
|
182
|
+
|
|
183
|
+
It looks like you wrote `+o+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
184
|
+
|
|
185
|
+
`+o+`(() => {
|
|
186
|
+
async function fetchData() {
|
|
187
|
+
// You can await here
|
|
188
|
+
const response = await MyAPI.getData(someId);
|
|
189
|
+
// ...
|
|
190
|
+
}
|
|
191
|
+
fetchData();
|
|
192
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
193
|
+
|
|
194
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,De(t,function(m,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",m,b)},o,u)}n=n.next}while(n!==r)}}catch(m){ut(t,t.return,m)}}function Ma(e,t,n){try{var s=t.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var o=r.next;s=o;do{if((s.tag&e)===e){var u=s.inst,m=u.destroy;m!==void 0&&(u.destroy=void 0,(e&Lt)!==os?ce!==null&&typeof ce.markComponentPassiveEffectUnmountStarted=="function"&&ce.markComponentPassiveEffectUnmountStarted(t):(e&Wt)!==os&&ce!==null&&typeof ce.markComponentLayoutEffectUnmountStarted=="function"&&ce.markComponentLayoutEffectUnmountStarted(t),(e&pn)!==os&&(wl=!0),r=t,De(r,fj,r,n,m),(e&pn)!==os&&(wl=!1),(e&Lt)!==os?ce!==null&&typeof ce.markComponentPassiveEffectUnmountStopped=="function"&&ce.markComponentPassiveEffectUnmountStopped():(e&Wt)!==os&&ce!==null&&typeof ce.markComponentLayoutEffectUnmountStopped=="function"&&ce.markComponentLayoutEffectUnmountStopped())}s=s.next}while(s!==o)}}catch(b){ut(t,t.return,b)}}function lx(e,t){Ms(e)?(Vs(),Ni(t,e),As()):Ni(t,e)}function xf(e,t,n){Ms(e)?(Vs(),Ma(n,e,t),As()):Ma(n,e,t)}function ix(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||hl||(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.",K(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.",K(e)||"instance"));try{De(e,cv,t,n)}catch(s){ut(e,e.return,s)}}}function Iw(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Xw(e,t){var n=t.memoizedProps,s=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||hl||(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.",K(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.",K(e)||"instance"));try{var r=Yo(e.type,n,e.elementType===e.type),o=De(e,Iw,t,r,s);n=V0,o!==void 0||n.has(e.type)||(n.add(e.type),De(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",K(e))})),t.__reactInternalSnapshotBeforeUpdate=o}catch(u){ut(e,e.return,u)}}function cx(e,t,n){n.props=Yo(e.type,e.memoizedProps),n.state=e.memoizedState,Ms(e)?(Vs(),De(e,o0,e,t,n),As()):De(e,o0,e,t,n)}function Zw(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(Ms(e))try{Vs(),e.refCleanup=t(n)}finally{As()}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().",K(e)),t.current=n}}function wi(e,t){try{De(e,Zw,e)}catch(n){ut(e,t,n)}}function Os(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{if(Ms(e))try{Vs(),De(e,s)}finally{As(e)}else De(e,s)}catch(r){ut(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(Ms(e))try{Vs(),De(e,n,null)}finally{As(e)}else De(e,n,null)}catch(r){ut(e,t,r)}else n.current=null}function ux(e,t,n,s){var r=e.memoizedProps,o=r.id,u=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Ju&&(t="nested-update"),typeof r=="function"&&r(o,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof u=="function"&&u(e.memoizedProps.id,t,s,n)}function Kw(e,t,n,s){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Ju&&(t="nested-update"),typeof r=="function"&&r(e,t,s,n)}function dx(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{De(e,gS,s,t,n,e)}catch(r){ut(e,e.return,r)}}function gf(e,t,n){try{De(e,yS,e.stateNode,e.type,n,t,e)}catch(s){ut(e,e.return,s)}}function mx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qr(e.type)||e.tag===4}function yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mx(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&&Qr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nf(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(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=Du));else if(s!==4&&(s===27&&Qr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nf(e,t,n),e=e.sibling;e!==null;)Nf(e,t,n),e=e.sibling}function Nu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&Qr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}function Jw(e){for(var t,n=e.return;n!==null;){if(mx(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=yf(e),Nu(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(pg(n),t.flags&=-33),t=yf(e),Nu(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=yf(e),Nf(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 fx(e){var t=e.stateNode,n=e.memoizedProps;try{De(e,MS,e.type,n,t,e)}catch(s){ut(e,e.return,s)}}function Ww(e,t){if(e=e.containerInfo,bh=Dd,e=qb(e),cm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,m=-1,b=-1,x=0,P=0,L=e,O=null;t:for(;;){for(var F;L!==n||r!==0&&L.nodeType!==3||(m=u+r),L!==o||s!==0&&L.nodeType!==3||(b=u+s),L.nodeType===3&&(u+=L.nodeValue.length),(F=L.firstChild)!==null;)O=L,L=F;for(;;){if(L===e)break t;if(O===n&&++x===r&&(m=u),O===o&&++P===s&&(b=u),(F=L.nextSibling)!==null)break;L=O,O=L.parentNode}L=F}n=m===-1||b===-1?null:{start:m,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(vh={focusedElem:e,selectionRange:n},Dd=!1,Qt=t;Qt!==null;)if(t=Qt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Qt=e;else for(;Qt!==null;){switch(e=t=Qt,n=e.alternate,r=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(r&1024)!==0&&n!==null&&Xw(e,n);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)Ff(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ff(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)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,Qt=e;break}Qt=t.return}}function px(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:ur(e,n),s&4&&ax(n,Wt|as);break;case 1:if(ur(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||hl||(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.",K(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.",K(n)||"instance")),Ms(n)?(Vs(),De(n,Yp,n,e),As()):De(n,Yp,n,e);else{var r=Yo(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||hl||(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.",K(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.",K(n)||"instance")),Ms(n)?(Vs(),De(n,n0,n,e,r,t,e.__reactInternalSnapshotBeforeUpdate),As()):De(n,n0,n,e,r,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&ix(n),s&512&&wi(n,n.return);break;case 3:if(t=or(),ur(e,n),s&64&&(s=n.updateQueue,s!==null)){if(r=null,n.child!==null)switch(n.child.tag){case 27:case 5:r=n.child.stateNode;break;case 1:r=n.child.stateNode}try{De(n,cv,s,r)}catch(u){ut(n,n.return,u)}}e.effectDuration+=Zc(t);break;case 27:t===null&&s&4&&fx(n);case 26:case 5:ur(e,n),t===null&&s&4&&dx(n),s&512&&wi(n,n.return);break;case 12:if(s&4){s=or(),ur(e,n),e=n.stateNode,e.effectDuration+=mi(s);try{De(n,ux,n,t,Ku,e.effectDuration)}catch(u){ut(n,n.return,u)}}else ur(e,n);break;case 13:ur(e,n),s&4&&vx(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=iS.bind(null,n),RS(e,n))));break;case 22:if(s=n.memoizedState!==null||Nr,!s){t=t!==null&&t.memoizedState!==null||Ot,r=Nr;var o=Ot;Nr=s,(Ot=t)&&!o?dr(e,n,(n.subtreeFlags&8772)!==0):ur(e,n),Nr=r,Ot=o}break;case 30:break;default:ur(e,n)}}function hx(e){var t=e.alternate;t!==null&&(e.alternate=null,hx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cs(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 cr(e,t,n){for(n=n.child;n!==null;)bx(e,t,n),n=n.sibling}function bx(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Ga,n)}catch(o){Bs||(Bs=!0,console.error("React instrumentation encountered an error: %s",o))}switch(n.tag){case 26:Ot||Os(n,t),cr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ot||Os(n,t);var s=_t,r=Un;Qr(n.type)&&(_t=n.stateNode,Un=!1),cr(e,t,n),De(n,Ci,n.stateNode),_t=s,Un=r;break;case 5:Ot||Os(n,t);case 6:if(s=_t,r=Un,_t=null,cr(e,t,n),_t=s,Un=r,_t!==null)if(Un)try{De(n,SS,_t,n.stateNode)}catch(o){ut(n,t,o)}else try{De(n,wS,_t,n.stateNode)}catch(o){ut(n,t,o)}break;case 18:_t!==null&&(Un?(e=_t,hg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Mi(e)):hg(_t,n.stateNode));break;case 4:s=_t,r=Un,_t=n.stateNode.containerInfo,Un=!0,cr(e,t,n),_t=s,Un=r;break;case 0:case 11:case 14:case 15:Ot||Ma(pn,n,t),Ot||vf(n,t,Wt),cr(e,t,n);break;case 1:Ot||(Os(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&cx(n,t,s)),cr(e,t,n);break;case 21:cr(e,t,n);break;case 22:Ot=(s=Ot)||n.memoizedState!==null,cr(e,t,n),Ot=s;break;default:cr(e,t,n)}}function vx(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{De(t,VS,e)}catch(n){ut(t,t.return,n)}}function eS(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new M0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new M0),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function wf(e,t){var n=eS(e);t.forEach(function(s){var r=cS.bind(null,e,s);if(!n.has(s)){if(n.add(s),bs)if(bl!==null&&vl!==null)Di(vl,bl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");s.then(r,r)}})}function Ln(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=e,o=t,u=n[s],m=o;e:for(;m!==null;){switch(m.tag){case 27:if(Qr(m.type)){_t=m.stateNode,Un=!1;break e}break;case 5:_t=m.stateNode,Un=!1;break e;case 3:case 4:_t=m.stateNode.containerInfo,Un=!0;break e}m=m.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.");bx(r,o,u),_t=null,Un=!1,r=u,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)xx(t,e),t=t.sibling}function xx(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ln(t,e),qn(e),s&4&&(Ma(pn|as,e,e.return),Ni(pn|as,e),vf(e,e.return,Wt|as));break;case 1:Ln(t,e),qn(e),s&512&&(Ot||n===null||Os(n,n.return)),s&64&&Nr&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var r=ys;if(Ln(t,e),qn(e),s&512&&(Ot||n===null||Os(n,n.return)),s&4)if(t=n!==null?n.memoizedState:null,s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,t=r.ownerDocument||r;t:switch(s){case"title":r=t.getElementsByTagName("title")[0],(!r||r[ki]||r[sn]||r.namespaceURI===Qa||r.hasAttribute("itemprop"))&&(r=t.createElement(s),t.head.insertBefore(r,t.querySelector("head > title"))),Zt(r,s,n),r[sn]=e,R(r),s=r;break e;case"link":var o=jg("link","href",t).get(s+(n.href||""));if(o){for(var u=0;u<o.length;u++)if(r=o[u],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(u,1);break t}}r=t.createElement(s),Zt(r,s,n),t.head.appendChild(r);break;case"meta":if(o=jg("meta","content",t).get(s+(n.content||""))){for(u=0;u<o.length;u++)if(r=o[u],Z(n.content,"content"),r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(u,1);break t}}r=t.createElement(s),Zt(r,s,n),t.head.appendChild(r);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+s+'". This is a bug in React.')}r[sn]=e,R(r),s=r}e.stateNode=s}else Dg(r,e.type,e.stateNode);else e.stateNode=Eg(r,s,e.memoizedProps);else t!==s?(t===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):t.count--,s===null?Dg(r,e.type,e.stateNode):Eg(r,s,e.memoizedProps)):s===null&&e.stateNode!==null&&gf(e,e.memoizedProps,n.memoizedProps);break;case 27:Ln(t,e),qn(e),s&512&&(Ot||n===null||Os(n,n.return)),n!==null&&s&4&&gf(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ln(t,e),qn(e),s&512&&(Ot||n===null||Os(n,n.return)),e.flags&32){t=e.stateNode;try{De(e,pg,t)}catch(P){ut(e,e.return,P)}}s&4&&e.stateNode!=null&&(t=e.memoizedProps,gf(e,t,n!==null?n.memoizedProps:t)),s&1024&&(Kp=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ln(t,e),qn(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,n=n!==null?n.memoizedProps:s,t=e.stateNode;try{De(e,NS,t,n,s)}catch(P){ut(e,e.return,P)}}break;case 3:if(r=or(),Sd=null,o=ys,ys=Uu(t.containerInfo),Ln(t,e),ys=o,qn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{De(e,AS,t.containerInfo)}catch(P){ut(e,e.return,P)}Kp&&(Kp=!1,gx(e)),t.effectDuration+=Zc(r);break;case 4:s=ys,ys=Uu(e.stateNode.containerInfo),Ln(t,e),qn(e),ys=s;break;case 12:s=or(),Ln(t,e),qn(e),e.stateNode.effectDuration+=mi(s);break;case 13:Ln(t,e),qn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sh=_s()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,wf(e,s)));break;case 22:r=e.memoizedState!==null;var m=n!==null&&n.memoizedState!==null,b=Nr,x=Ot;if(Nr=b||r,Ot=x||m,Ln(t,e),Ot=x,Nr=b,qn(e),s&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&~Qu:t._visibility|Qu,r&&(n===null||m||Nr||Ot||Go(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){m=n=t;try{o=m.stateNode,r?De(m,ES,o):De(m,DS,m.stateNode,m.memoizedProps)}catch(P){ut(m,m.return,P)}}}else if(t.tag===6){if(n===null){m=t;try{u=m.stateNode,r?De(m,jS,u):De(m,TS,u,m.memoizedProps)}catch(P){ut(m,m.return,P)}}}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 e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,wf(e,n))));break;case 19:Ln(t,e),qn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,wf(e,s)));break;case 30:break;case 21:break;default:Ln(t,e),qn(e)}}function qn(e){var t=e.flags;if(t&2){try{De(e,Jw,e)}catch(n){ut(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ur(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)px(e,t.alternate,t),t=t.sibling}function yx(e){switch(e.tag){case 0:case 11:case 14:case 15:vf(e,e.return,Wt),Go(e);break;case 1:Os(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&cx(e,e.return,t),Go(e);break;case 27:De(e,Ci,e.stateNode);case 26:case 5:Os(e,e.return),Go(e);break;case 22:e.memoizedState===null&&Go(e);break;case 30:Go(e);break;default:Go(e)}}function Go(e){for(e=e.child;e!==null;)yx(e),e=e.sibling}function Nx(e,t,n,s){var r=n.flags;switch(n.tag){case 0:case 11:case 15:dr(e,n,s),ax(n,Wt);break;case 1:if(dr(e,n,s),t=n.stateNode,typeof t.componentDidMount=="function"&&De(n,Yp,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{De(n,Hw,t,e)}catch(o){ut(n,n.return,o)}}s&&r&64&&ix(n),wi(n,n.return);break;case 27:fx(n);case 26:case 5:dr(e,n,s),s&&t===null&&r&4&&dx(n),wi(n,n.return);break;case 12:if(s&&r&4){r=or(),dr(e,n,s),s=n.stateNode,s.effectDuration+=mi(r);try{De(n,ux,n,t,Ku,s.effectDuration)}catch(o){ut(n,n.return,o)}}else dr(e,n,s);break;case 13:dr(e,n,s),s&&r&4&&vx(e,n);break;case 22:n.memoizedState===null&&dr(e,n,s),wi(n,n.return);break;case 30:break;default:dr(e,n,s)}}function dr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Nx(e,t.alternate,t,n),t=t.sibling}function Sf(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&&Bo(e),n!=null&&di(n))}function Ef(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Bo(t),e!=null&&di(e))}function Ps(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wx(e,t,n,s),t=t.sibling}function wx(e,t,n,s){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ps(e,t,n,s),r&2048&&lx(t,Lt|as);break;case 1:Ps(e,t,n,s);break;case 3:var o=or();Ps(e,t,n,s),r&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(Bo(t),n!=null&&di(n))),e.passiveEffectDuration+=Zc(o);break;case 12:if(r&2048){r=or(),Ps(e,t,n,s),e=t.stateNode,e.passiveEffectDuration+=mi(r);try{De(t,Kw,t,t.alternate,Ku,e.passiveEffectDuration)}catch(m){ut(t,t.return,m)}}else Ps(e,t,n,s);break;case 13:Ps(e,t,n,s);break;case 23:break;case 22:o=t.stateNode;var u=t.alternate;t.memoizedState!==null?o._visibility&hr?Ps(e,t,n,s):Si(e,t):o._visibility&hr?Ps(e,t,n,s):(o._visibility|=hr,Oa(e,t,n,s,(t.subtreeFlags&10256)!==0)),r&2048&&Sf(u,t);break;case 24:Ps(e,t,n,s),r&2048&&Ef(t.alternate,t);break;default:Ps(e,t,n,s)}}function Oa(e,t,n,s,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;)Sx(e,t,n,s,r),t=t.sibling}function Sx(e,t,n,s,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Oa(e,t,n,s,r),lx(t,Lt);break;case 23:break;case 22:var u=t.stateNode;t.memoizedState!==null?u._visibility&hr?Oa(e,t,n,s,r):Si(e,t):(u._visibility|=hr,Oa(e,t,n,s,r)),r&&o&2048&&Sf(t.alternate,t);break;case 24:Oa(e,t,n,s,r),r&&o&2048&&Ef(t.alternate,t);break;default:Oa(e,t,n,s,r)}}function Si(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,r=s.flags;switch(s.tag){case 22:Si(n,s),r&2048&&Sf(s.alternate,s);break;case 24:Si(n,s),r&2048&&Ef(s.alternate,s);break;default:Si(n,s)}t=t.sibling}}function Pa(e){if(e.subtreeFlags&oc)for(e=e.child;e!==null;)Ex(e),e=e.sibling}function Ex(e){switch(e.tag){case 26:Pa(e),e.flags&oc&&e.memoizedState!==null&&zS(ys,e.memoizedState,e.memoizedProps);break;case 5:Pa(e);break;case 3:case 4:var t=ys;ys=Uu(e.stateNode.containerInfo),Pa(e),ys=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=oc,oc=16777216,Pa(e),oc=t):Pa(e));break;default:Pa(e)}}function jx(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 Ei(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];Qt=s,Ux(s,e)}jx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dx(e),e=e.sibling}function Dx(e){switch(e.tag){case 0:case 11:case 15:Ei(e),e.flags&2048&&xf(e,e.return,Lt|as);break;case 3:var t=or();Ei(e),e.stateNode.passiveEffectDuration+=Zc(t);break;case 12:t=or(),Ei(e),e.stateNode.passiveEffectDuration+=mi(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&hr&&(e.return===null||e.return.tag!==13)?(t._visibility&=~hr,wu(e)):Ei(e);break;default:Ei(e)}}function wu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];Qt=s,Ux(s,e)}jx(e)}for(e=e.child;e!==null;)Tx(e),e=e.sibling}function Tx(e){switch(e.tag){case 0:case 11:case 15:xf(e,e.return,Lt),wu(e);break;case 22:var t=e.stateNode;t._visibility&hr&&(t._visibility&=~hr,wu(e));break;default:wu(e)}}function Ux(e,t){for(;Qt!==null;){var n=Qt,s=n;switch(s.tag){case 0:case 11:case 15:xf(s,t,Lt);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(s=s.memoizedState.cachePool.pool,s!=null&&Bo(s));break;case 24:di(s.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,Qt=s;else e:for(n=e;Qt!==null;){s=Qt;var r=s.sibling,o=s.return;if(hx(s),s===n){Qt=null;break e}if(r!==null){r.return=o,Qt=r;break e}Qt=o}}}function tS(){hj.forEach(function(e){return e()})}function Cx(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||B.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Fn(e){if((rt&hn)!==$n&&Ze!==0)return Ze&-Ze;var t=B.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=Ko,e!==0?e:Mf()):kr()}function Rx(){In===0&&(In=(Ze&536870912)===0||tt?Be():536870912);var e=is.current;return e!==null&&(e.flags|=32),In}function Mt(e,t,n){if(wl&&console.error("useInsertionEffect must not schedule updates."),ih&&(dd=!0),(e===ft&&(lt===na||lt===sa)||e.cancelPendingCommit!==null)&&(za(e,0),Gr(e,Ze,In,!1)),cn(e,n),(rt&hn)!==0&&e===ft){if(qs)switch(t.tag){case 0:case 11:case 15:e=$e&&K($e)||"Unknown",F0.has(e)||(F0.add(e),t=K(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:q0||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),q0=!0)}}else bs&&Pr(e,t,n),dS(t),e===ft&&((rt&hn)===$n&&(ao|=n),Ct===ta&&Gr(e,Ze,In,!1)),ks(e)}function Ax(e,t,n){if((rt&(hn|Ns))!==$n)throw Error("Should not already be working.");var s=!n&&(t&124)===0&&(t&e.expiredLanes)===0||ms(e,t),r=s?sS(e,t):Tf(e,t,!0),o=s;do{if(r===wr){yl&&!s&&Gr(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!nS(n)){r=Tf(e,t,!1),o=!1;continue}if(r===xl){if(o=t,e.errorRecoveryDisabledLanes&o)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{r=e;var m=u;u=dc;var b=r.current.memoizedState.isDehydrated;if(b&&(za(r,m).flags|=256),m=Tf(r,m,!1),m!==xl){if(th&&!b){r.errorRecoveryDisabledLanes|=o,ao|=o,r=ta;break e}r=bn,bn=u,r!==null&&(bn===null?bn=r:bn.push.apply(bn,r))}r=m}if(o=!1,r!==xl)continue}}if(r===lc){za(e,0),Gr(e,t,0,!0);break}e:{switch(s=e,r){case wr:case lc:throw Error("Root did not complete. This is a bug in React.");case ta:if((t&4194048)!==t)break;case id:Gr(s,t,In,!ro);break e;case xl:bn=null;break;case Jp:case O0:break;default:throw Error("Unknown root exit status.")}if(B.actQueue!==null)Uf(s,n,t,bn,mc,cd,In,ao,ra);else{if((t&62914560)===t&&(o=sh+k0-_s(),10<o)){if(Gr(s,t,In,!ro),ln(s,0,!0)!==0)break e;s.timeoutHandle=K0(Vx.bind(null,s,n,bn,mc,cd,t,In,ao,ra,ro,r,gj,Hy,0),o);break e}Vx(s,n,bn,mc,cd,t,In,ao,ra,ro,r,vj,Hy,0)}}}break}while(!0);ks(e)}function Vx(e,t,n,s,r,o,u,m,b,x,P,L,O,F){if(e.timeoutHandle=ca,L=t.subtreeFlags,(L&8192||(L&16785408)===16785408)&&(xc={stylesheets:null,count:0,unsuspend:kS},Ex(t),L=HS(),L!==null)){e.cancelPendingCommit=L(Uf.bind(null,e,t,o,n,s,r,u,m,b,P,xj,O,F)),Gr(e,o,u,!x);return}Uf(e,t,o,n,s,r,u,m,b)}function nS(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 s=0;s<n.length;s++){var r=n[s],o=r.getSnapshot;r=r.value;try{if(!mn(o(),r))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 Gr(e,t,n,s){t&=~nh,t&=~ao,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var r=t;0<r;){var o=31-un(r),u=1<<o;s[o]=-1,r&=~u}n!==0&&Uo(e,n,t)}function ka(){return(rt&(hn|Ns))===$n?(Ti(0),!1):!0}function jf(){if($e!==null){if(lt===Cn)var e=$e.return;else e=$e,Qc(),Pm(e),dl=null,sc=0,e=$e;for(;e!==null;)ox(e.alternate,e),e=e.return;$e=null}}function za(e,t){var n=e.timeoutHandle;n!==ca&&(e.timeoutHandle=ca,Vj(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jf(),ft=e,$e=n=sr(e.current,null),Ze=t,lt=Cn,Qn=null,ro=!1,yl=ms(e,t),th=!1,Ct=wr,ra=In=nh=ao=oo=0,bn=dc=null,cd=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var r=31-un(s),o=1<<r;t|=e[r],s&=~o}return Qs=t,Fc(),t=ky(),1e3<t-Py&&(B.recentlyCreatedOwnerStacks=0,Py=t),xs.discardPendingWarnings(),n}function Mx(e,t){Me=null,B.H=ad,B.getCurrentStack=null,qs=!1,Gn=null,t===Wi||t===td?(t=av(),lt=cc):t===Ly?(t=av(),lt=P0):lt=t===j0?eh:t!==null&&typeof t=="object"&&typeof t.then=="function"?gl:ic,Qn=t;var n=$e;if(n===null)Ct=lc,vu(e,Bn(t,e.current));else switch(n.mode&Jt&&Em(n),Ve(),lt){case ic:ce!==null&&typeof ce.markComponentErrored=="function"&&ce.markComponentErrored(n,t,Ze);break;case na:case sa:case cc:case gl:case uc:ce!==null&&typeof ce.markComponentSuspended=="function"&&ce.markComponentSuspended(n,t,Ze)}}function Ox(){var e=B.H;return B.H=ad,e===null?ad:e}function Px(){var e=B.A;return B.A=pj,e}function Df(){Ct=ta,ro||(Ze&4194048)!==Ze&&is.current!==null||(yl=!0),(oo&134217727)===0&&(ao&134217727)===0||ft===null||Gr(ft,Ze,In,!1)}function Tf(e,t,n){var s=rt;rt|=hn;var r=Ox(),o=Px();if(ft!==e||Ze!==t){if(bs){var u=e.memoizedUpdaters;0<u.size&&(Di(e,Ze),u.clear()),nr(e,t)}mc=null,za(e,t)}Tt(t),t=!1,u=Ct;e:do try{if(lt!==Cn&&$e!==null){var m=$e,b=Qn;switch(lt){case eh:jf(),u=id;break e;case cc:case na:case sa:case gl:is.current===null&&(t=!0);var x=lt;if(lt=Cn,Qn=null,Ha(e,m,b,x),n&&yl){u=wr;break e}break;default:x=lt,lt=Cn,Qn=null,Ha(e,m,b,x)}}kx(),u=Ct;break}catch(P){Mx(e,P)}while(!0);return t&&e.shellSuspendCounter++,Qc(),rt=s,B.H=r,B.A=o,Nt(),$e===null&&(ft=null,Ze=0,Fc()),u}function kx(){for(;$e!==null;)zx($e)}function sS(e,t){var n=rt;rt|=hn;var s=Ox(),r=Px();if(ft!==e||Ze!==t){if(bs){var o=e.memoizedUpdaters;0<o.size&&(Di(e,Ze),o.clear()),nr(e,t)}mc=null,ud=_s()+z0,za(e,t)}else yl=ms(e,t);Tt(t);e:do try{if(lt!==Cn&&$e!==null)t:switch(t=$e,o=Qn,lt){case ic:lt=Cn,Qn=null,Ha(e,t,o,ic);break;case na:case sa:if(rv(o)){lt=Cn,Qn=null,Hx(t);break}t=function(){lt!==na&<!==sa||ft!==e||(lt=uc),ks(e)},o.then(t,t);break e;case cc:lt=uc;break e;case P0:lt=Wp;break e;case uc:rv(o)?(lt=Cn,Qn=null,Hx(t)):(lt=Cn,Qn=null,Ha(e,t,o,uc));break;case Wp:var u=null;switch($e.tag){case 26:u=$e.memoizedState;case 5:case 27:var m=$e;if(!u||Tg(u)){lt=Cn,Qn=null;var b=m.sibling;if(b!==null)$e=b;else{var x=m.return;x!==null?($e=x,Su(x)):$e=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}lt=Cn,Qn=null,Ha(e,t,o,Wp);break;case gl:lt=Cn,Qn=null,Ha(e,t,o,gl);break;case eh:jf(),Ct=id;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}B.actQueue!==null?kx():rS();break}catch(P){Mx(e,P)}while(!0);return Qc(),B.H=s,B.A=r,rt=n,$e!==null?(ce!==null&&typeof ce.markRenderYielded=="function"&&ce.markRenderYielded(),wr):(Nt(),ft=null,Ze=0,Fc(),Ct)}function rS(){for(;$e!==null&&!eE();)zx($e)}function zx(e){var t=e.alternate;(e.mode&Jt)!==ht?(Sm(e),t=De(e,bf,t,e,Qs),Em(e)):t=De(e,bf,t,e,Qs),e.memoizedProps=e.pendingProps,t===null?Su(e):$e=t}function Hx(e){var t=De(e,oS,e);e.memoizedProps=e.pendingProps,t===null?Su(e):$e=t}function oS(e){var t=e.alternate,n=(e.mode&Jt)!==ht;switch(n&&Sm(e),e.tag){case 15:case 0:t=Kv(t,e,e.pendingProps,e.type,void 0,Ze);break;case 11:t=Kv(t,e,e.pendingProps,e.type.render,e.ref,Ze);break;case 5:Pm(e);default:ox(t,e),e=$e=Qb(e,Qs),t=bf(t,e,Qs)}return n&&Em(e),t}function Ha(e,t,n,s){Qc(),Pm(t),dl=null,sc=0;var r=t.return;try{if(Yw(e,r,t,n,Ze)){Ct=lc,vu(e,Bn(n,e.current)),$e=null;return}}catch(o){if(r!==null)throw $e=r,o;Ct=lc,vu(e,Bn(n,e.current)),$e=null;return}t.flags&32768?(tt||s===ic?e=!0:yl||(Ze&536870912)!==0?e=!1:(ro=e=!0,(s===na||s===sa||s===cc||s===gl)&&(s=is.current,s!==null&&s.tag===13&&(s.flags|=16384))),_x(t,e)):Su(t)}function Su(e){var t=e;do{if((t.flags&32768)!==0){_x(t,ro);return}var n=t.alternate;if(e=t.return,Sm(t),n=De(t,$w,n,t,Qs),(t.mode&Jt)!==ht&&ev(t),n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Ct===wr&&(Ct=O0)}function _x(e,t){do{var n=Qw(e.alternate,e);if(n!==null){n.flags&=32767,$e=n;return}if((e.mode&Jt)!==ht){ev(e),n=e.actualDuration;for(var s=e.child;s!==null;)n+=s.actualDuration,s=s.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)){$e=e;return}$e=e=n}while(e!==null);Ct=id,$e=null}function Uf(e,t,n,s,r,o,u,m,b){e.cancelPendingCommit=null;do ji();while(en!==oa);if(xs.flushLegacyContextWarning(),xs.flushPendingUnsafeLifecycleWarnings(),(rt&(hn|Ns))!==$n)throw Error("Should not already be working.");if(ce!==null&&typeof ce.markCommitStarted=="function"&&ce.markCommitStarted(n),t===null)Ce();else{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(o=t.lanes|t.childLanes,o|=Ap,ja(e,n,o,u,m,b),e===ft&&($e=ft=null,Ze=0),Nl=t,io=e,co=n,oh=o,ah=r,L0=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,uS(Ya,function(){return Yx(),null})):(e.callbackNode=null,e.callbackPriority=0),Ku=al(),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null,r=st.p,st.p=Wn,u=rt,rt|=Ns;try{Ww(e,t,n)}finally{rt=u,st.p=r,B.T=s}}en=H0,Bx(),Lx(),qx()}}function Bx(){if(en===H0){en=oa;var e=io,t=Nl,n=co,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=B.T,B.T=null;var r=st.p;st.p=Wn;var o=rt;rt|=Ns;try{bl=n,vl=e,xx(t,e),vl=bl=null,n=vh;var u=qb(e.containerInfo),m=n.focusedElem,b=n.selectionRange;if(u!==m&&m&&m.ownerDocument&&Lb(m.ownerDocument.documentElement,m)){if(b!==null&&cm(m)){var x=b.start,P=b.end;if(P===void 0&&(P=x),"selectionStart"in m)m.selectionStart=x,m.selectionEnd=Math.min(P,m.value.length);else{var L=m.ownerDocument||document,O=L&&L.defaultView||window;if(O.getSelection){var F=O.getSelection(),be=m.textContent.length,Ae=Math.min(b.start,be),pt=b.end===void 0?Ae:Math.min(b.end,be);!F.extend&&Ae>pt&&(u=pt,pt=Ae,Ae=u);var Je=Bb(m,Ae),S=Bb(m,pt);if(Je&&S&&(F.rangeCount!==1||F.anchorNode!==Je.node||F.anchorOffset!==Je.offset||F.focusNode!==S.node||F.focusOffset!==S.offset)){var E=L.createRange();E.setStart(Je.node,Je.offset),F.removeAllRanges(),Ae>pt?(F.addRange(E),F.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),F.addRange(E))}}}}for(L=[],F=m;F=F.parentNode;)F.nodeType===1&&L.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<L.length;m++){var T=L[m];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Dd=!!bh,vh=bh=null}finally{rt=o,st.p=r,B.T=s}}e.current=t,en=_0}}function Lx(){if(en===_0){en=oa;var e=io,t=Nl,n=co,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=B.T,B.T=null;var r=st.p;st.p=Wn;var o=rt;rt|=Ns;try{ce!==null&&typeof ce.markLayoutEffectsStarted=="function"&&ce.markLayoutEffectsStarted(n),bl=n,vl=e,px(e,t.alternate,t),vl=bl=null,ce!==null&&typeof ce.markLayoutEffectsStopped=="function"&&ce.markLayoutEffectsStopped()}finally{rt=o,st.p=r,B.T=s}}en=B0}}function qx(){if(en===yj||en===B0){en=oa,tE();var e=io,t=Nl,n=co,s=L0,r=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;r?en=rh:(en=oa,Nl=io=null,Fx(e,e.pendingLanes),aa=0,pc=null);var o=e.pendingLanes;if(o===0&&(lo=null),r||Ix(e),r=Pn(n),t=t.stateNode,nn&&typeof nn.onCommitFiberRoot=="function")try{var u=(t.current.flags&128)===128;switch(r){case Wn:var m=cp;break;case Ls:m=up;break;case pr:m=Ya;break;case Bu:m=dp;break;default:m=Ya}nn.onCommitFiberRoot(Ga,t,m,u)}catch(L){Bs||(Bs=!0,console.error("React instrumentation encountered an error: %s",L))}if(bs&&e.memoizedUpdaters.clear(),tS(),s!==null){u=B.T,m=st.p,st.p=Wn,B.T=null;try{var b=e.onRecoverableError;for(t=0;t<s.length;t++){var x=s[t],P=aS(x.stack);De(x.source,b,x.value,P)}}finally{B.T=u,st.p=m}}(co&3)!==0&&ji(),ks(e),o=e.pendingLanes,(n&4194090)!==0&&(o&42)!==0?(Wu=!0,e===lh?fc++:(fc=0,lh=e)):fc=0,Ti(0),Ce()}}function aS(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 Fx(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,di(t)))}function ji(e){return Bx(),Lx(),qx(),Yx()}function Yx(){if(en!==rh)return!1;var e=io,t=oh;oh=0;var n=Pn(co),s=pr>n?pr:n;n=B.T;var r=st.p;try{st.p=s,B.T=null,s=ah,ah=null;var o=io,u=co;if(en=oa,Nl=io=null,co=0,(rt&(hn|Ns))!==$n)throw Error("Cannot flush passive effects while already rendering.");ih=!0,dd=!1,ce!==null&&typeof ce.markPassiveEffectsStarted=="function"&&ce.markPassiveEffectsStarted(u);var m=rt;if(rt|=Ns,Dx(o.current),wx(o,o.current,u,s),ce!==null&&typeof ce.markPassiveEffectsStopped=="function"&&ce.markPassiveEffectsStopped(),Ix(o),rt=m,Ti(0,!1),dd?o===pc?aa++:(aa=0,pc=o):aa=0,dd=ih=!1,nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Ga,o)}catch(x){Bs||(Bs=!0,console.error("React instrumentation encountered an error: %s",x))}var b=o.current.stateNode;return b.effectDuration=0,b.passiveEffectDuration=0,!0}finally{st.p=r,B.T=n,Fx(e,t)}}function Gx(e,t,n){t=Bn(n,t),t=rf(e.stateNode,t,2),e=Lr(e,t,2),e!==null&&(cn(e,2),ks(e))}function ut(e,t,n){if(wl=!1,e.tag===3)Gx(e,e,n);else{for(;t!==null;){if(t.tag===3){Gx(t,e,n);return}if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(lo===null||!lo.has(s))){e=Bn(n,e),n=of(2),s=Lr(t,n,2),s!==null&&(af(n,s,t,e),cn(s,2),ks(s));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.
|
|
195
|
+
|
|
196
|
+
Error message:
|
|
197
|
+
|
|
198
|
+
%s`,n)}}function Cf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new bj;var r=new Set;s.set(t,r)}else r=s.get(t),r===void 0&&(r=new Set,s.set(t,r));r.has(n)||(th=!0,r.add(n),s=lS.bind(null,e,t,n),bs&&Di(e,n),t.then(s,s))}function lS(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Cx()&&B.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
199
|
+
|
|
200
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
201
|
+
|
|
202
|
+
act(() => {
|
|
203
|
+
/* finish loading suspended data */
|
|
204
|
+
});
|
|
205
|
+
/* assert on the output */
|
|
206
|
+
|
|
207
|
+
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`),ft===e&&(Ze&n)===n&&(Ct===ta||Ct===Jp&&(Ze&62914560)===Ze&&_s()-sh<k0?(rt&hn)===$n&&za(e,0):nh|=n,ra===Ze&&(ra=0)),ks(e)}function $x(e,t){t===0&&(t=er()),e=Sn(e,t),e!==null&&(cn(e,t),ks(e))}function iS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$x(e,n)}function cS(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}s!==null&&s.delete(t),$x(e,n)}function Rf(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var s=e,r=t,o=r.type===Pu;o=n||o,r.tag!==22?r.flags&67108864?o&&De(r,Qx,s,r,(r.mode&Vy)===ht):Rf(s,r,o):r.memoizedState===null&&(o&&r.flags&8192?De(r,Qx,s,r):r.subtreeFlags&67108864&&De(r,Rf,s,r,o)),t=t.sibling}}function Qx(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;he(!0);try{yx(t),n&&Tx(t),Nx(e,t.alternate,t,!1),n&&Sx(e,t,0,null,!1,0)}finally{he(!1)}}function Ix(e){var t=!0;e.current.mode&(rn|vs)||(t=!1),Rf(e,e.current,t)}function Xx(e){if((rt&hn)===$n){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=K(e)||"ReactComponent",md!==null){if(md.has(t))return;md.add(t)}else md=new Set([t]);De(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 later calls tries to update the component. Move this work to useEffect instead.")})}}}function Di(e,t){bs&&e.memoizedUpdaters.forEach(function(n){Pr(e,n,t)})}function uS(e,t){var n=B.actQueue;return n!==null?(n.push(t),Sj):ip(e,t)}function dS(e){Cx()&&B.actQueue===null&&De(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
208
|
+
|
|
209
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
210
|
+
|
|
211
|
+
act(() => {
|
|
212
|
+
/* fire events that update state */
|
|
213
|
+
});
|
|
214
|
+
/* assert on the output */
|
|
215
|
+
|
|
216
|
+
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`,K(e))})}function ks(e){e!==Sl&&e.next===null&&(Sl===null?fd=Sl=e:Sl=Sl.next=e),pd=!0,B.actQueue!==null?uh||(uh=!0,Wx()):ch||(ch=!0,Wx())}function Ti(e,t){if(!dh&&pd){dh=!0;do for(var n=!1,s=fd;s!==null;){if(e!==0){var r=s.pendingLanes;if(r===0)var o=0;else{var u=s.suspendedLanes,m=s.pingedLanes;o=(1<<31-un(42|e)+1)-1,o&=r&~(u&~m),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Jx(s,o))}else o=Ze,o=ln(s,s===ft?o:0,s.cancelPendingCommit!==null||s.timeoutHandle!==ca),(o&3)===0||ms(s,o)||(n=!0,Jx(s,o));s=s.next}while(n);dh=!1}}function mS(){Af()}function Af(){pd=uh=ch=!1;var e=0;la!==0&&(vS()&&(e=la),la=0);for(var t=_s(),n=null,s=fd;s!==null;){var r=s.next,o=Zx(s,t);o===0?(s.next=null,n===null?fd=r:n.next=r,r===null&&(Sl=n)):(n=s,(e!==0||(o&3)!==0)&&(pd=!0)),s=r}Ti(e)}function Zx(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var u=31-un(o),m=1<<u,b=r[u];b===-1?((m&n)===0||(m&s)!==0)&&(r[u]=On(m,t)):b<=t&&(e.expiredLanes|=m),o&=~m}if(t=ft,n=Ze,n=ln(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ca),s=e.callbackNode,n===0||e===t&&(lt===na||lt===sa)||e.cancelPendingCommit!==null)return s!==null&&Vf(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ms(e,n)){if(t=n&-n,t!==e.callbackPriority||B.actQueue!==null&&s!==mh)Vf(s);else return t;switch(Pn(n)){case Wn:case Ls:n=up;break;case pr:n=Ya;break;case Bu:n=dp;break;default:n=Ya}return s=Kx.bind(null,e),B.actQueue!==null?(B.actQueue.push(s),n=mh):n=ip(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&Vf(s),e.callbackPriority=2,e.callbackNode=null,2}function Kx(e,t){if(Wu=Ju=!1,en!==oa&&en!==rh)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ji()&&e.callbackNode!==n)return null;var s=Ze;return s=ln(e,e===ft?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ca),s===0?null:(Ax(e,s,t),Zx(e,_s()),e.callbackNode!=null&&e.callbackNode===n?Kx.bind(null,e):null)}function Jx(e,t){if(ji())return null;Ju=Wu,Wu=!1,Ax(e,t,!0)}function Vf(e){e!==mh&&e!==null&&WS(e)}function Wx(){B.actQueue!==null&&B.actQueue.push(function(){return Af(),null}),Mj(function(){(rt&(hn|Ns))!==$n?ip(cp,mS):Af()})}function Mf(){return la===0&&(la=Be()),la}function eg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Z(e,"action"),ri(""+e))}function tg(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 fS(e,t,n,s,r){if(t==="submit"&&n&&n.stateNode===r){var o=eg((r[Dn]||null).action),u=s.submitter;u&&(t=(t=u[Dn]||null)?eg(t.formAction):u.getAttribute("formAction"),t!==null&&(o=t,u=null));var m=new Gu("action","action",null,s,r);e.push({event:m,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(la!==0){var b=u?tg(r,u):new FormData(r),x={pending:!0,data:b,method:r.method,action:o};Object.freeze(x),Km(n,x,null,b)}}else typeof o=="function"&&(m.preventDefault(),b=u?tg(r,u):new FormData(r),x={pending:!0,data:b,method:r.method,action:o},Object.freeze(x),Km(n,x,o,b))},currentTarget:r}]})}}function Eu(e,t,n){e.currentTarget=n;try{t(e)}catch(s){Qp(s)}e.currentTarget=null}function ng(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n];e:{var r=void 0,o=s.event;if(s=s.listeners,t)for(var u=s.length-1;0<=u;u--){var m=s[u],b=m.instance,x=m.currentTarget;if(m=m.listener,b!==r&&o.isPropagationStopped())break e;b!==null?De(b,Eu,o,m,x):Eu(o,m,x),r=b}else for(u=0;u<s.length;u++){if(m=s[u],b=m.instance,x=m.currentTarget,m=m.listener,b!==r&&o.isPropagationStopped())break e;b!==null?De(b,Eu,o,m,x):Eu(o,m,x),r=b}}}}function Ke(e,t){fh.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[mp];n===void 0&&(n=t[mp]=new Set);var s=e+"__bubble";n.has(s)||(sg(t,e,2,!1),n.add(s))}function Of(e,t,n){fh.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 s=0;t&&(s|=4),sg(n,e,s,t)}function Pf(e){if(!e[hd]){e[hd]=!0,Bg.forEach(function(n){n!=="selectionchange"&&(fh.has(n)||Of(n,!1,e),Of(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hd]||(t[hd]=!0,Of("selectionchange",!1,t))}}function sg(e,t,n,s){switch(Vg(t)){case Wn:var r=FS;break;case Ls:r=YS;break;default:r=Zf}n=r.bind(null,t,n,e),r=void 0,!yp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function kf(e,t,n,s,r){var o=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var u=s.tag;if(u===3||u===4){var m=s.stateNode.containerInfo;if(m===r)break;if(u===4)for(u=s.return;u!==null;){var b=u.tag;if((b===3||b===4)&&u.stateNode.containerInfo===r)return;u=u.return}for(;m!==null;){if(u=zn(m),u===null)return;if(b=u.tag,b===5||b===6||b===26||b===27){s=o=u;continue e}m=m.parentNode}}s=s.return}Cb(function(){var x=o,P=lm(n),L=[];e:{var O=Ay.get(e);if(O!==void 0){var F=Gu,be=e;switch(e){case"keypress":if(Bc(n)===0)break e;case"keydown":case"keyup":F=BE;break;case"focusin":be="focus",F=Ep;break;case"focusout":be="blur",F=Ep;break;case"beforeblur":case"afterblur":F=Ep;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=vy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=UE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=FE;break;case Ty:case Uy:case Cy:F=AE;break;case Ry:F=GE;break;case"scroll":case"scrollend":F=DE;break;case"wheel":F=QE;break;case"copy":case"cut":case"paste":F=ME;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=gy;break;case"toggle":case"beforetoggle":F=XE}var Ae=(t&4)!==0,pt=!Ae&&(e==="scroll"||e==="scrollend"),Je=Ae?O!==null?O+"Capture":null:O;Ae=[];for(var S=x,E;S!==null;){var T=S;if(E=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||E===null||Je===null||(T=oi(S,Je),T!=null&&Ae.push(Ui(S,T,E))),pt)break;S=S.return}0<Ae.length&&(O=new F(O,be,null,n,P),L.push({event:O,listeners:Ae}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",O&&n!==Hi&&(be=n.relatedTarget||n.fromElement)&&(zn(be)||be[Jr]))break e;if((F||O)&&(O=P.window===P?P:(O=P.ownerDocument)?O.defaultView||O.parentWindow:window,F?(be=n.relatedTarget||n.toElement,F=x,be=be?zn(be):null,be!==null&&(pt=$(be),Ae=be.tag,be!==pt||Ae!==5&&Ae!==27&&Ae!==6)&&(be=null)):(F=null,be=x),F!==be)){if(Ae=vy,T="onMouseLeave",Je="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(Ae=gy,T="onPointerLeave",Je="onPointerEnter",S="pointer"),pt=F==null?O:fs(F),E=be==null?O:fs(be),O=new Ae(T,S+"leave",F,n,P),O.target=pt,O.relatedTarget=E,T=null,zn(P)===x&&(Ae=new Ae(Je,S+"enter",be,n,P),Ae.target=E,Ae.relatedTarget=pt,T=Ae),pt=T,F&&be)t:{for(Ae=F,Je=be,S=0,E=Ae;E;E=_a(E))S++;for(E=0,T=Je;T;T=_a(T))E++;for(;0<S-E;)Ae=_a(Ae),S--;for(;0<E-S;)Je=_a(Je),E--;for(;S--;){if(Ae===Je||Je!==null&&Ae===Je.alternate)break t;Ae=_a(Ae),Je=_a(Je)}Ae=null}else Ae=null;F!==null&&rg(L,O,F,Ae,!1),be!==null&&pt!==null&&rg(L,pt,be,Ae,!0)}}e:{if(O=x?fs(x):window,F=O.nodeName&&O.nodeName.toLowerCase(),F==="select"||F==="input"&&O.type==="file")var Y=kb;else if(Ob(O))if(jy)Y=Mw;else{Y=Aw;var oe=Rw}else F=O.nodeName,!F||F.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?x&&si(x.elementType)&&(Y=kb):Y=Vw;if(Y&&(Y=Y(e,x))){Pb(L,Y,n,P);break e}oe&&oe(e,O,x),e==="focusout"&&x&&O.type==="number"&&x.memoizedProps.value!=null&&tm(O,"number",O.value)}switch(oe=x?fs(x):window,e){case"focusin":(Ob(oe)||oe.contentEditable==="true")&&(Ja=oe,Dp=x,Gi=null);break;case"focusout":Gi=Dp=Ja=null;break;case"mousedown":Tp=!0;break;case"contextmenu":case"mouseup":case"dragend":Tp=!1,Fb(L,n,P);break;case"selectionchange":if(WE)break;case"keydown":case"keyup":Fb(L,n,P)}var Pe;if(jp)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Ka?Vb(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===yy&&(ve="onCompositionStart");ve&&(Ny&&n.locale!=="ko"&&(Ka||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Ka&&(Pe=Rb()):(Wr=P,Np="value"in Wr?Wr.value:Wr.textContent,Ka=!0)),oe=ju(x,ve),0<oe.length&&(ve=new xy(ve,e,null,n,P),L.push({event:ve,listeners:oe}),Pe?ve.data=Pe:(Pe=Mb(n),Pe!==null&&(ve.data=Pe)))),(Pe=KE?Dw(e,n):Tw(e,n))&&(ve=ju(x,"onBeforeInput"),0<ve.length&&(oe=new PE("onBeforeInput","beforeinput",null,n,P),L.push({event:oe,listeners:ve}),oe.data=Pe)),fS(L,e,x,n,P)}ng(L,t)})}function Ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ju(e,t){for(var n=t+"Capture",s=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=oi(e,n),r!=null&&s.unshift(Ui(e,r,o)),r=oi(e,t),r!=null&&s.push(Ui(e,r,o))),e.tag===3)return s;e=e.return}return[]}function _a(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rg(e,t,n,s,r){for(var o=t._reactName,u=[];n!==null&&n!==s;){var m=n,b=m.alternate,x=m.stateNode;if(m=m.tag,b!==null&&b===s)break;m!==5&&m!==26&&m!==27||x===null||(b=x,r?(x=oi(n,o),x!=null&&u.unshift(Ui(n,x,b))):r||(x=oi(n,o),x!=null&&u.push(Ui(n,x,b)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}function zf(e,t){ww(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||hy||(hy=!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:$o,possibleRegistrationNames:fp};si(e)||typeof t.is=="string"||Ew(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 Gt(e,t,n,s){t!==n&&(n=$r(n),$r(t)!==n&&(s[e]=t))}function pS(e,t,n){t.forEach(function(s){n[lg(s)]=s==="style"?_f(e):e.getAttribute(s)})}function zs(e,t){t===!1?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 og(e,t){return e=e.namespaceURI===qu||e.namespaceURI===Qa?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function $r(e){return w(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.",J(e)),q(e)),(typeof e=="string"?e:""+e).replace(Ej,`
|
|
217
|
+
`).replace(jj,"")}function ag(e,t){return t=$r(t),$r(e)===t}function Du(){}function dt(e,t,n,s,r,o){switch(n){case"children":typeof s=="string"?(_c(s,t,!1),t==="body"||t==="textarea"&&s===""||ni(e,s)):(typeof s=="number"||typeof s=="bigint")&&(_c(""+s,t,!1),t!=="body"&&ni(e,""+s));break;case"className":je(e,"class",s);break;case"tabIndex":je(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":je(e,n,s);break;case"style":Db(e,s,o);break;case"data":if(t!=="object"){je(e,"data",s);break}case"src":case"href":if(s===""&&(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(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}Z(s,n),s=ri(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(s!=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 s=="function"&&(r.encType==null&&r.method==null||xd||(xd=!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.")),r.target==null||vd||(vd=!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"||r.type==="submit"||r.type==="image"||bd?t!=="button"||r.type==null||r.type==="submit"||bd?typeof s=="function"&&(r.name==null||$0||($0=!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.')),r.formEncType==null&&r.formMethod==null||xd||(xd=!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.")),r.formTarget==null||vd||(vd=!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."))):(bd=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(bd=!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 s=="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}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&dt(e,t,"name",r.name,r,null),dt(e,t,"formEncType",r.formEncType,r,null),dt(e,t,"formMethod",r.formMethod,r,null),dt(e,t,"formTarget",r.formTarget,r,null)):(dt(e,t,"encType",r.encType,r,null),dt(e,t,"method",r.method,r,null),dt(e,t,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}Z(s,n),s=ri(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(typeof s!="function"&&zs(n,s),e.onclick=Du);break;case"onScroll":s!=null&&(typeof s!="function"&&zs(n,s),Ke("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&zs(n,s),Ke("scrollend",e));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))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=s.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}Z(s,n),n=ri(""+s),e.setAttributeNS(ia,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(Z(s,n),e.setAttribute(n,""+s)):e.removeAttribute(n);break;case"inert":s!==""||gd[n]||(gd[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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(Z(s,n),e.setAttribute(n,s)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(Z(s,n),e.setAttribute(n,s)):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):(Z(s,n),e.setAttribute(n,s));break;case"popover":Ke("beforetoggle",e),Ke("toggle",e),ie(e,"popover",s);break;case"xlinkActuate":We(e,ia,"xlink:actuate",s);break;case"xlinkArcrole":We(e,ia,"xlink:arcrole",s);break;case"xlinkRole":We(e,ia,"xlink:role",s);break;case"xlinkShow":We(e,ia,"xlink:show",s);break;case"xlinkTitle":We(e,ia,"xlink:title",s);break;case"xlinkType":We(e,ia,"xlink:type",s);break;case"xmlBase":We(e,ph,"xml:base",s);break;case"xmlLang":We(e,ph,"xml:lang",s);break;case"xmlSpace":We(e,ph,"xml:space",s);break;case"is":o!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),ie(e,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":Q0||s==null||typeof s!="object"||(Q0=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=Tb(n),ie(e,n,s)):$o.hasOwnProperty(n)&&s!=null&&typeof s!="function"&&zs(n,s)}}function Hf(e,t,n,s,r,o){switch(n){case"style":Db(e,s,o);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))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=s.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof s=="string"?ni(e,s):(typeof s=="number"||typeof s=="bigint")&&ni(e,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&zs(n,s),Ke("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&zs(n,s),Ke("scrollend",e));break;case"onClick":s!=null&&(typeof s!="function"&&zs(n,s),e.onclick=Du);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if($o.hasOwnProperty(n))s!=null&&typeof s!="function"&&zs(n,s);else e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[Dn]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof s=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,r);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):ie(e,n,s)}}}function Zt(e,t,n){switch(zf(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ke("error",e),Ke("load",e);var s=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var u=n[o];if(u!=null)switch(o){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,o,u,n,null)}}r&&dt(e,t,"srcSet",n.srcSet,n,null),s&&dt(e,t,"src",n.src,n,null);return;case"input":Ne("input",n),Ke("invalid",e);var m=o=u=r=null,b=null,x=null;for(s in n)if(n.hasOwnProperty(s)){var P=n[s];if(P!=null)switch(s){case"name":r=P;break;case"type":u=P;break;case"checked":b=P;break;case"defaultChecked":x=P;break;case"value":o=P;break;case"defaultValue":m=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:dt(e,t,s,P,n,null)}}ub(e,n),db(e,o,m,b,x,u,r,!1),kc(e);return;case"select":Ne("select",n),Ke("invalid",e),s=u=o=null;for(r in n)if(n.hasOwnProperty(r)&&(m=n[r],m!=null))switch(r){case"value":o=m;break;case"defaultValue":u=m;break;case"multiple":s=m;default:dt(e,t,r,m,n,null)}pb(e,n),t=o,n=u,e.multiple=!!s,t!=null?Da(e,!!s,t,!1):n!=null&&Da(e,!!s,n,!0);return;case"textarea":Ne("textarea",n),Ke("invalid",e),o=r=s=null;for(u in n)if(n.hasOwnProperty(u)&&(m=n[u],m!=null))switch(u){case"value":s=m;break;case"defaultValue":r=m;break;case"children":o=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:dt(e,t,u,m,n,null)}hb(e,n),vb(e,s,r,o),kc(e);return;case"option":mb(e,n);for(b in n)if(n.hasOwnProperty(b)&&(s=n[b],s!=null))switch(b){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:dt(e,t,b,s,n,null)}return;case"dialog":Ke("beforetoggle",e),Ke("toggle",e),Ke("cancel",e),Ke("close",e);break;case"iframe":case"object":Ke("load",e);break;case"video":case"audio":for(s=0;s<hc.length;s++)Ke(hc[s],e);break;case"image":Ke("error",e),Ke("load",e);break;case"details":Ke("toggle",e);break;case"embed":case"source":case"link":Ke("error",e),Ke("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(x in n)if(n.hasOwnProperty(x)&&(s=n[x],s!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,x,s,n,null)}return;default:if(si(t)){for(P in n)n.hasOwnProperty(P)&&(s=n[P],s!==void 0&&Hf(e,t,P,s,n,void 0));return}}for(m in n)n.hasOwnProperty(m)&&(s=n[m],s!=null&&dt(e,t,m,s,n,null))}function hS(e,t,n,s){switch(zf(t,s),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,u=null,m=null,b=null,x=null,P=null;for(F in n){var L=n[F];if(n.hasOwnProperty(F)&&L!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":b=L;default:s.hasOwnProperty(F)||dt(e,t,F,null,s,L)}}for(var O in s){var F=s[O];if(L=n[O],s.hasOwnProperty(O)&&(F!=null||L!=null))switch(O){case"type":o=F;break;case"name":r=F;break;case"checked":x=F;break;case"defaultChecked":P=F;break;case"value":u=F;break;case"defaultValue":m=F;break;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:F!==L&&dt(e,t,O,F,s,L)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,t||!s||G0||(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"),G0=!0),!t||s||Y0||(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"),Y0=!0),em(e,u,m,b,x,P,o,r);return;case"select":F=u=m=O=null;for(o in n)if(b=n[o],n.hasOwnProperty(o)&&b!=null)switch(o){case"value":break;case"multiple":F=b;default:s.hasOwnProperty(o)||dt(e,t,o,null,s,b)}for(r in s)if(o=s[r],b=n[r],s.hasOwnProperty(r)&&(o!=null||b!=null))switch(r){case"value":O=o;break;case"defaultValue":m=o;break;case"multiple":u=o;default:o!==b&&dt(e,t,r,o,s,b)}s=m,t=u,n=F,O!=null?Da(e,!!t,O,!1):!!n!=!!t&&(s!=null?Da(e,!!t,s,!0):Da(e,!!t,t?[]:"",!1));return;case"textarea":F=O=null;for(m in n)if(r=n[m],n.hasOwnProperty(m)&&r!=null&&!s.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:dt(e,t,m,null,s,r)}for(u in s)if(r=s[u],o=n[u],s.hasOwnProperty(u)&&(r!=null||o!=null))switch(u){case"value":O=r;break;case"defaultValue":F=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==o&&dt(e,t,u,r,s,o)}bb(e,O,F);return;case"option":for(var be in n)if(O=n[be],n.hasOwnProperty(be)&&O!=null&&!s.hasOwnProperty(be))switch(be){case"selected":e.selected=!1;break;default:dt(e,t,be,null,s,O)}for(b in s)if(O=s[b],F=n[b],s.hasOwnProperty(b)&&O!==F&&(O!=null||F!=null))switch(b){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:dt(e,t,b,O,s,F)}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 Ae in n)O=n[Ae],n.hasOwnProperty(Ae)&&O!=null&&!s.hasOwnProperty(Ae)&&dt(e,t,Ae,null,s,O);for(x in s)if(O=s[x],F=n[x],s.hasOwnProperty(x)&&O!==F&&(O!=null||F!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,x,O,s,F)}return;default:if(si(t)){for(var pt in n)O=n[pt],n.hasOwnProperty(pt)&&O!==void 0&&!s.hasOwnProperty(pt)&&Hf(e,t,pt,void 0,s,O);for(P in s)O=s[P],F=n[P],!s.hasOwnProperty(P)||O===F||O===void 0&&F===void 0||Hf(e,t,P,O,s,F);return}}for(var Je in n)O=n[Je],n.hasOwnProperty(Je)&&O!=null&&!s.hasOwnProperty(Je)&&dt(e,t,Je,null,s,O);for(L in s)O=s[L],F=n[L],!s.hasOwnProperty(L)||O===F||O==null&&F==null||dt(e,t,L,O,s,F)}function lg(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function _f(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var s=e[n];t[s]=e.getPropertyValue(s)}return t}function ig(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 s,r=s="",o;for(o in t)if(t.hasOwnProperty(o)){var u=t[o];u!=null&&typeof u!="boolean"&&u!==""&&(o.indexOf("--")===0?(ne(u,o),s+=r+o+":"+(""+u).trim()):typeof u!="number"||u===0||fy.has(o)?(ne(u,o),s+=r+o.replace(iy,"-$1").toLowerCase().replace(cy,"-ms-")+":"+(""+u).trim()):s+=r+o.replace(iy,"-$1").toLowerCase().replace(cy,"-ms-")+":"+u+"px",r=";")}s=s||null,t=e.getAttribute("style"),t!==s&&(s=$r(s),$r(t)!==s&&(n.style=_f(e)))}}function Kn(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Z(s,t),e===""+s)return}Gt(t,e,s,o)}function cg(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}Gt(t,e,s,o)}function Bf(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(Z(s,n),e===""+s)return}Gt(t,e,s,o)}function ug(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(Z(s,t),e===""+s))return}Gt(t,e,s,o)}function Lf(e,t,n,s,r,o){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(Z(s,t),n=ri(""+s),e===n)return}Gt(t,e,s,o)}function dg(e,t,n,s){for(var r={},o=new Set,u=e.attributes,m=0;m<u.length;m++)switch(u[m].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:o.add(u[m].name)}if(si(t)){for(var b in n)if(n.hasOwnProperty(b)){var x=n[b];if(x!=null){if($o.hasOwnProperty(b))typeof x!="function"&&zs(b,x);else if(n.suppressHydrationWarning!==!0)switch(b){case"children":typeof x!="string"&&typeof x!="number"||Gt("children",e.textContent,x,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=og(e,x),Gt(b,u,x,r));continue;case"style":o.delete(b),ig(e,x,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":o.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":o.delete("class"),u=Oe(e,"class",x),Gt("className",u,x,r);continue;default:s.context===Er&&t!=="svg"&&t!=="math"?o.delete(b.toLowerCase()):o.delete(b),u=Oe(e,b,x),Gt(b,u,x,r)}}}}else for(x in n)if(n.hasOwnProperty(x)&&(b=n[x],b!=null)){if($o.hasOwnProperty(x))typeof b!="function"&&zs(x,b);else if(n.suppressHydrationWarning!==!0)switch(x){case"children":typeof b!="string"&&typeof b!="number"||Gt("children",e.textContent,b,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=og(e,b),u!==b&&(r[x]={__html:u}));continue;case"className":Kn(e,x,"class",b,o,r);continue;case"tabIndex":Kn(e,x,"tabindex",b,o,r);continue;case"style":o.delete(x),ig(e,b,r);continue;case"multiple":o.delete(x),Gt(x,e.multiple,b,r);continue;case"muted":o.delete(x),Gt(x,e.muted,b,r);continue;case"autoFocus":o.delete("autofocus"),Gt(x,e.autofocus,b,r);continue;case"data":if(t!=="object"){o.delete(x),u=e.getAttribute("data"),Gt(x,u,b,r);continue}case"src":case"href":if(!(b!==""||t==="a"&&x==="href"||t==="object"&&x==="data")){console.error(x==="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.',x,x);continue}Lf(e,x,x,b,o,r);continue;case"action":case"formAction":if(u=e.getAttribute(x),typeof b=="function"){o.delete(x.toLowerCase()),x==="formAction"?(o.delete("name"),o.delete("formenctype"),o.delete("formmethod"),o.delete("formtarget")):(o.delete("enctype"),o.delete("method"),o.delete("target"));continue}else if(u===Dj){o.delete(x.toLowerCase()),Gt(x,"function",b,r);continue}Lf(e,x,x.toLowerCase(),b,o,r);continue;case"xlinkHref":Lf(e,x,"xlink:href",b,o,r);continue;case"contentEditable":Bf(e,x,"contenteditable",b,o,r);continue;case"spellCheck":Bf(e,x,"spellcheck",b,o,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Bf(e,x,x,b,o,r);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":cg(e,x,x.toLowerCase(),b,o,r);continue;case"capture":case"download":e:{m=e;var P=u=x,L=r;if(o.delete(P),m=m.getAttribute(P),m===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&m==="")break e;break;default:if(Z(b,u),m===""+b)break e}Gt(u,m,b,L)}continue;case"cols":case"rows":case"size":case"span":e:{if(m=e,P=u=x,L=r,o.delete(P),m=m.getAttribute(P),m===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(Z(b,u),m===""+b))break e}Gt(u,m,b,L)}continue;case"rowSpan":ug(e,x,"rowspan",b,o,r);continue;case"start":ug(e,x,x,b,o,r);continue;case"xHeight":Kn(e,x,"x-height",b,o,r);continue;case"xlinkActuate":Kn(e,x,"xlink:actuate",b,o,r);continue;case"xlinkArcrole":Kn(e,x,"xlink:arcrole",b,o,r);continue;case"xlinkRole":Kn(e,x,"xlink:role",b,o,r);continue;case"xlinkShow":Kn(e,x,"xlink:show",b,o,r);continue;case"xlinkTitle":Kn(e,x,"xlink:title",b,o,r);continue;case"xlinkType":Kn(e,x,"xlink:type",b,o,r);continue;case"xmlBase":Kn(e,x,"xml:base",b,o,r);continue;case"xmlLang":Kn(e,x,"xml:lang",b,o,r);continue;case"xmlSpace":Kn(e,x,"xml:space",b,o,r);continue;case"inert":b!==""||gd[x]||(gd[x]=!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.",x)),cg(e,x,x,b,o,r);continue;default:if(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N"){m=Tb(x),u=!1,s.context===Er&&t!=="svg"&&t!=="math"?o.delete(m.toLowerCase()):(P=x.toLowerCase(),P=Fu.hasOwnProperty(P)&&Fu[P]||null,P!==null&&P!==x&&(u=!0,o.delete(P)),o.delete(m));e:if(P=e,L=m,m=b,He(L))if(P.hasAttribute(L))P=P.getAttribute(L),Z(m,L),m=P===""+m?m:P;else{switch(typeof m){case"function":case"symbol":break e;case"boolean":if(P=L.toLowerCase().slice(0,5),P!=="data-"&&P!=="aria-")break e}m=m===void 0?void 0:null}else m=void 0;u||Gt(x,m,b,r)}}}return 0<o.size&&n.suppressHydrationWarning!==!0&&pS(e,o,r),Object.keys(r).length===0?null:r}function bS(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 Tu(e){return e.nodeType===9?e:e.ownerDocument}function mg(e){switch(e){case Qa:return El;case qu:return wd;default:return Er}}function fg(e,t){if(e===Er)switch(t){case"svg":return El;case"math":return wd;default:return Er}return e===El&&t==="foreignObject"?Er:e}function qf(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 vS(){var e=window.event;return e&&e.type==="popstate"?e===xh?!1:(xh=e,!0):(xh=null,!1)}function xS(e){setTimeout(function(){throw e})}function gS(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 yS(e,t,n,s){hS(e,t,n,s),e[Dn]=s}function pg(e){ni(e,"")}function NS(e,t,n){e.nodeValue=n}function Qr(e){return e==="head"}function wS(e,t){e.removeChild(t)}function SS(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function hg(e,t){var n=t,s=0,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n===Nd){if(0<s&&8>s){n=s;var u=e.ownerDocument;if(n&Uj&&Ci(u.documentElement),n&Cj&&Ci(u.body),n&Rj)for(n=u.head,Ci(n),u=n.firstChild;u;){var m=u.nextSibling,b=u.nodeName;u[ki]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}if(r===0){e.removeChild(o),Mi(t);return}r--}else n===yd||n===Sr||n===bc?r++:s=n.charCodeAt(0)-48;else s=0;n=o}while(n);Mi(t)}function ES(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function jS(e){e.nodeValue=""}function DS(e,t){t=t[Aj],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function TS(e,t){e.nodeValue=t}function Ff(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":Ff(n),Cs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function US(e,t,n,s){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ki])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Z(r.name,"name");var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Jn(e.nextSibling),e===null)break}return null}function CS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Jn(e.nextSibling),e===null))return null;return e}function Yf(e){return e.data===bc||e.data===Sr&&e.ownerDocument.readyState===X0}function RS(e,t){var n=e.ownerDocument;if(e.data!==Sr||n.readyState===X0)t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Jn(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===yd||t===bc||t===Sr||t===hh||t===I0)break;if(t===Nd)return null}}return e}function bg(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},s=e.attributes,r=0;r<s.length;r++){var o=s[r];n[lg(o.name)]=o.name.toLowerCase()==="style"?_f(e):o.value}return{type:t,props:n}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function vg(e,t,n){return n===null||n[Tj]!==!0?(e.nodeValue===t?e=null:(t=$r(t),e=$r(e.nodeValue)===t?null:e.nodeValue),e):null}function xg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Nd){if(t===0)return Jn(e.nextSibling);t--}else n!==yd&&n!==bc&&n!==Sr||t++}e=e.nextSibling}return null}function gg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===yd||n===bc||n===Sr){if(t===0)return e;t--}else n===Nd&&t++}e=e.previousSibling}return null}function AS(e){Mi(e)}function VS(e){Mi(e)}function yg(e,t,n,s,r){switch(r&&am(e,s.ancestorInfo),t=Tu(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 MS(e,t,n,s){if(!n[Jr]&&yn(n)){var r=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.",r,r,r)}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(r=n.attributes;r.length;)n.removeAttributeNode(r[0]);Zt(n,e,t),n[sn]=s,n[Dn]=t}function Ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cs(e)}function Uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Ng(e,t,n){var s=jl;if(s&&typeof t=="string"&&t){var r=Zn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),tN.has(r)||(tN.add(r),e={rel:e,crossOrigin:n,href:t},s.querySelector(r)===null&&(t=s.createElement("link"),Zt(t,"link",e),R(t),s.head.appendChild(t)))}}function wg(e,t,n,s){var r=(r=Zr.current)?Uu(r):null;if(!r)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=Ba(n.href),t=h(r).hoistableStyles,s=t.get(n),s||(s={type:"style",instance:null,count:0,state:null},t.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ba(n.href);var o=h(r).hoistableStyles,u=o.get(e);if(!u&&(r=r.ownerDocument||r,u={type:"stylesheet",instance:null,count:0,state:{loading:ua,preload:null}},o.set(e,u),(o=r.querySelector(Ri(e)))&&!o._p&&(u.instance=o,u.state.loading=vc|cs),!us.has(e))){var m={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};us.set(e,m),o||OS(r,e,m,u.state)}if(t&&s===null)throw n=`
|
|
218
|
+
|
|
219
|
+
- `+Cu(t)+`
|
|
220
|
+
+ `+Cu(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 u}if(t&&s!==null)throw n=`
|
|
221
|
+
|
|
222
|
+
- `+Cu(t)+`
|
|
223
|
+
+ `+Cu(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=La(n),t=h(r).hoistableScripts,s=t.get(n),s||(s={type:"script",instance:null,count:0,state:null},t.set(n,s)),s):{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 Cu(e){var t=0,n="<link";return typeof e.rel=="string"?(t++,n+=' rel="'+e.rel+'"'):fr.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,n+=' href="'+e.href+'"'):fr.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,n+=' precedence="'+e.precedence+'"'):fr.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Ba(e){return'href="'+Zn(e)+'"'}function Ri(e){return'link[rel="stylesheet"]['+e+"]"}function Sg(e){return qe({},e,{"data-precedence":e.precedence,precedence:null})}function OS(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=vc:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=vc}),t.addEventListener("error",function(){return s.loading|=W0}),Zt(t,"link",n),R(t),e.head.appendChild(t))}function La(e){return'[src="'+Zn(e)+'"]'}function Ai(e){return"script[async]"+e}function Eg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Zn(n.href)+'"]');if(s)return t.instance=s,R(s),s;var r=qe({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),R(s),Zt(s,"style",r),Ru(s,n.precedence,e),t.instance=s;case"stylesheet":r=Ba(n.href);var o=e.querySelector(Ri(r));if(o)return t.state.loading|=cs,t.instance=o,R(o),o;s=Sg(n),(r=us.get(r))&&Gf(s,r),o=(e.ownerDocument||e).createElement("link"),R(o);var u=o;return u._p=new Promise(function(m,b){u.onload=m,u.onerror=b}),Zt(o,"link",s),t.state.loading|=cs,Ru(o,n.precedence,e),t.instance=o;case"script":return o=La(n.src),(r=e.querySelector(Ai(o)))?(t.instance=r,R(r),r):(s=n,(r=us.get(o))&&(s=qe({},n),$f(s,r)),e=e.ownerDocument||e,r=e.createElement("script"),R(r),Zt(r,"link",s),e.head.appendChild(r),t.instance=r);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&cs)===ua&&(s=t.instance,t.state.loading|=cs,Ru(s,n.precedence,e));return t.instance}function Ru(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=s.length?s[s.length-1]:null,o=r,u=0;u<s.length;u++){var m=s[u];if(m.dataset.precedence===t)o=m;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $f(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function jg(e,t,n){if(Sd===null){var s=new Map,r=Sd=new Map;r.set(n,s)}else r=Sd,s=r.get(n),s||(s=new Map,r.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[ki]||o[sn]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!==Qa){var u=o.getAttribute(t)||"";u=e+u;var m=s.get(u);m?m.push(o):s.set(u,[o])}}return s}function Dg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function PS(e,t,n){var s=!n.ancestorInfo.containerTagInScope;if(n.context===El||t.itemProp!=null)return!s||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===""){s&&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 r=t.onError,o=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),r&&n.push("`onError`"),o!=null&&n.push("`disabled`"),r=bS(n,"and"),r+=n.length===1?" prop":" props",o=n.length===1?"an "+r:"the "+r,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,o,r)}s&&(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"&&s&&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"){s&&(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":s&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Tg(e){return!(e.type==="stylesheet"&&(e.state.loading&eN)===ua)}function kS(){}function zS(e,t,n){if(xc===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var s=xc;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&cs)===ua){if(t.instance===null){var r=Ba(n.href),o=e.querySelector(Ri(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=Au.bind(s),e.then(s,s)),t.state.loading|=cs,t.instance=o,R(o);return}o=e.ownerDocument||e,n=Sg(n),(r=us.get(r))&&Gf(n,r),o=o.createElement("link"),R(o);var u=o;u._p=new Promise(function(m,b){u.onload=m,u.onerror=b}),Zt(o,"link",n),t.instance=o}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&eN)===ua&&(s.count++,t=Au.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function HS(){if(xc===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=xc;return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Au(){if(this.count--,this.count===0){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ed=new Map,t.forEach(_S,e),Ed=null,Au.call(e))}function _S(e,t){if(!(t.state.loading&cs)){var n=Ed.get(e);if(n)var s=n.get(yh);else{n=new Map,Ed.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var u=r[o];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(n.set(u.dataset.precedence,u),s=u)}s&&n.set(yh,s)}r=t.instance,u=r.getAttribute("data-precedence"),o=n.get(u)||s,o===s&&n.set(yh,r),n.set(u,r),this.count++,s=Au.bind(this),r.addEventListener("load",s),r.addEventListener("error",s),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=cs}}function BS(e,t,n,s,r,o,u,m){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ca,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kt(0),this.hiddenUpdates=kt(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,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 Ug(e,t,n,s,r,o,u,m,b,x,P,L){return e=new BS(e,t,n,u,m,b,x,L),t=sj,o===!0&&(t|=rn|vs),bs&&(t|=Jt),o=g(3,null,null,t),e.current=o,o.stateNode=e,t=wm(),Bo(t),e.pooledCache=t,Bo(t),o.memoizedState={element:s,isDehydrated:n,cache:t},Dm(o),e}function Cg(e){return e?(e=eo,e):eo}function If(e,t,n,s,r,o){if(nn&&typeof nn.onScheduleFiberRoot=="function")try{nn.onScheduleFiberRoot(Ga,s,n)}catch(u){Bs||(Bs=!0,console.error("React instrumentation encountered an error: %s",u))}ce!==null&&typeof ce.markRenderScheduled=="function"&&ce.markRenderScheduled(t),r=Cg(r),s.context===null?s.context=r:s.pendingContext=r,qs&&Gn!==null&&!oN&&(oN=!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.
|
|
224
|
+
|
|
225
|
+
Check the render method of %s.`,K(Gn)||"Unknown")),s=Br(t),s.payload={element:n},o=o===void 0?null:o,o!==null&&(typeof o!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",o),s.callback=o),n=Lr(e,s,t),n!==null&&(Mt(n,e,t),fi(n,e,t))}function Rg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xf(e,t){Rg(e,t),(e=e.alternate)&&Rg(e,t)}function Ag(e){if(e.tag===13){var t=Sn(e,67108864);t!==null&&Mt(t,e,67108864),Xf(e,67108864)}}function LS(){return Gn}function qS(){for(var e=new Map,t=1,n=0;31>n;n++){var s=Us(t);e.set(t,s),t*=2}return e}function FS(e,t,n,s){var r=B.T;B.T=null;var o=st.p;try{st.p=Wn,Zf(e,t,n,s)}finally{st.p=o,B.T=r}}function YS(e,t,n,s){var r=B.T;B.T=null;var o=st.p;try{st.p=Ls,Zf(e,t,n,s)}finally{st.p=o,B.T=r}}function Zf(e,t,n,s){if(Dd){var r=Kf(s);if(r===null)kf(e,t,s,Td,n),Mg(e,s);else if(GS(r,e,t,n,s))s.stopPropagation();else if(Mg(e,s),t&4&&-1<Pj.indexOf(e)){for(;r!==null;){var o=yn(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var u=Et(o.pendingLanes);if(u!==0){var m=o;for(m.pendingLanes|=2,m.entangledLanes|=2;u;){var b=1<<31-un(u);m.entanglements[1]|=b,u&=~b}ks(o),(rt&(hn|Ns))===$n&&(ud=_s()+z0,Ti(0))}}break;case 13:m=Sn(o,2),m!==null&&Mt(m,o,2),ka(),Xf(o,2)}if(o=Kf(s),o===null&&kf(e,t,s,Td,n),o===r)break;r=o}r!==null&&s.stopPropagation()}else kf(e,t,s,null,n)}}function Kf(e){return e=lm(e),Jf(e)}function Jf(e){if(Td=null,e=zn(e),e!==null){var t=$(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ye(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 Td=e,null}function Vg(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 Wn;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 Ls;case"message":switch(nE()){case cp:return Wn;case up:return Ls;case Ya:case sE:return pr;case dp:return Bu;default:return pr}default:return pr}}function Mg(e,t){switch(e){case"focusin":case"focusout":uo=null;break;case"dragenter":case"dragleave":mo=null;break;case"mouseover":case"mouseout":fo=null;break;case"pointerover":case"pointerout":yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nc.delete(t.pointerId)}}function Vi(e,t,n,s,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:o,targetContainers:[r]},t!==null&&(t=yn(t),t!==null&&Ag(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function GS(e,t,n,s,r){switch(t){case"focusin":return uo=Vi(uo,e,t,n,s,r),!0;case"dragenter":return mo=Vi(mo,e,t,n,s,r),!0;case"mouseover":return fo=Vi(fo,e,t,n,s,r),!0;case"pointerover":var o=r.pointerId;return yc.set(o,Vi(yc.get(o)||null,e,t,n,s,r)),!0;case"gotpointercapture":return o=r.pointerId,Nc.set(o,Vi(Nc.get(o)||null,e,t,n,s,r)),!0}return!1}function Og(e){var t=zn(e.target);if(t!==null){var n=$(t);if(n!==null){if(t=n.tag,t===13){if(t=ye(n),t!==null){e.blockedOn=t,kn(e.priority,function(){if(n.tag===13){var s=Fn(n);s=Co(s);var r=Sn(n,s);r!==null&&Mt(r,n,s),Xf(n,s)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kf(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n),r=s;Hi!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Hi=r,n.target.dispatchEvent(s),Hi===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."),Hi=null}else return t=yn(n),t!==null&&Ag(t),e.blockedOn=n,!1;t.shift()}return!0}function Pg(e,t,n){Vu(e)&&n.delete(t)}function $S(){Nh=!1,uo!==null&&Vu(uo)&&(uo=null),mo!==null&&Vu(mo)&&(mo=null),fo!==null&&Vu(fo)&&(fo=null),yc.forEach(Pg),Nc.forEach(Pg)}function Mu(e,t){e.blockedOn===t&&(e.blockedOn=null,Nh||(Nh=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,$S)))}function kg(e){Ud!==e&&(Ud=e,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,function(){Ud===e&&(Ud=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],r=e[t+2];if(typeof s!="function"){if(Jf(s||n)===null)continue;break}var o=yn(n);o!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:r,method:n.method,action:s},Object.freeze(n),Km(o,n,s,r))}}))}function Mi(e){function t(b){return Mu(b,e)}uo!==null&&Mu(uo,e),mo!==null&&Mu(mo,e),fo!==null&&Mu(fo,e),yc.forEach(t),Nc.forEach(t);for(var n=0;n<po.length;n++){var s=po[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<po.length&&(n=po[0],n.blockedOn===null);)Og(n),n.blockedOn===null&&po.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var r=n[s],o=n[s+1],u=r[Dn]||null;if(typeof o=="function")u||kg(n);else if(u){var m=null;if(o&&o.hasAttribute("formAction")){if(r=o,u=o[Dn]||null)m=u.formAction;else if(Jf(r)!==null)continue}else m=u.action;typeof m=="function"?n[s+1]=m:(n.splice(s,3),s-=3),kg(n)}}}function Wf(e){this._internalRoot=e}function Ou(e){this._internalRoot=e}function zg(e){e[Jr]&&(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 zt=qj(),ep=Oc(),QS=m1(),qe=Object.assign,IS=Symbol.for("react.element"),Ir=Symbol.for("react.transitional.element"),qa=Symbol.for("react.portal"),Fa=Symbol.for("react.fragment"),Pu=Symbol.for("react.strict_mode"),tp=Symbol.for("react.profiler"),XS=Symbol.for("react.provider"),np=Symbol.for("react.consumer"),Hs=Symbol.for("react.context"),Oi=Symbol.for("react.forward_ref"),sp=Symbol.for("react.suspense"),rp=Symbol.for("react.suspense_list"),ku=Symbol.for("react.memo"),Yn=Symbol.for("react.lazy"),op=Symbol.for("react.activity"),ZS=Symbol.for("react.memo_cache_sentinel"),Hg=Symbol.iterator,KS=Symbol.for("react.client.reference"),Kt=Array.isArray,B=ep.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,st=QS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,JS=Object.freeze({pending:!1,data:null,method:null,action:null}),ap=[],lp=[],mr=-1,Xr=Se(null),Pi=Se(null),Zr=Se(null),zu=Se(null),fr=Object.prototype.hasOwnProperty,ip=zt.unstable_scheduleCallback,WS=zt.unstable_cancelCallback,eE=zt.unstable_shouldYield,tE=zt.unstable_requestPaint,_s=zt.unstable_now,nE=zt.unstable_getCurrentPriorityLevel,cp=zt.unstable_ImmediatePriority,up=zt.unstable_UserBlockingPriority,Ya=zt.unstable_NormalPriority,sE=zt.unstable_LowPriority,dp=zt.unstable_IdlePriority,rE=zt.log,oE=zt.unstable_setDisableYieldValue,Ga=null,nn=null,ce=null,Bs=!1,bs=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",un=Math.clz32?Math.clz32:Ts,aE=Math.log,lE=Math.LN2,Hu=256,_u=4194304,Wn=2,Ls=8,pr=32,Bu=268435456,Kr=Math.random().toString(36).slice(2),sn="__reactFiber$"+Kr,Dn="__reactProps$"+Kr,Jr="__reactContainer$"+Kr,mp="__reactEvents$"+Kr,iE="__reactListeners$"+Kr,cE="__reactHandles$"+Kr,_g="__reactResources$"+Kr,ki="__reactMarker$"+Kr,Bg=new Set,$o={},fp={},uE={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},dE=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]*$"),Lg={},qg={},zi=0,Fg,Yg,Gg,$g,Qg,Ig,Xg;jt.__reactDisabledLog=!0;var pp,Zg,hp=!1,bp=new(typeof WeakMap=="function"?WeakMap:Map),Gn=null,qs=!1,mE=/[\n"\\]/g,Kg=!1,Jg=!1,Wg=!1,ey=!1,ty=!1,ny=!1,sy=["value","defaultValue"],ry=!1,oy=/["'&<>\n\t]|^\s|\s$/,fE="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(" "),ay="applet caption html table td th marquee object template foreignObject desc title".split(" "),pE=ay.concat(["button"]),hE="dd dt li option optgroup p rp rt".split(" "),ly={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Lu={},vp={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"]},iy=/([A-Z])/g,cy=/^ms-/,bE=/^(?:webkit|moz|o)[A-Z]/,vE=/^-ms-/,xE=/-(.)/g,uy=/;\s*$/,$a={},xp={},dy=!1,my=!1,fy=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(" ")),qu="http://www.w3.org/1998/Math/MathML",Qa="http://www.w3.org/2000/svg",gE=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"]]),Fu={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"},py={"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},Ia={},yE=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]*$"),NE=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]*$"),hy=!1,dn={},by=/^on./,wE=/^on[^A-Z]/,SE=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]*$"),EE=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]*$"),jE=/^[\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,Hi=null,Xa=null,Za=null,gp=!1,Fs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yp=!1;if(Fs)try{var _i={};Object.defineProperty(_i,"passive",{get:function(){yp=!0}}),window.addEventListener("test",_i,_i),window.removeEventListener("test",_i,_i)}catch{yp=!1}var Wr=null,Np=null,Yu=null,Qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gu=wn(Qo),Bi=qe({},Qo,{view:0,detail:0}),DE=wn(Bi),wp,Sp,Li,$u=qe({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:im,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!==Li&&(Li&&e.type==="mousemove"?(wp=e.screenX-Li.screenX,Sp=e.screenY-Li.screenY):Sp=wp=0,Li=e),wp)},movementY:function(e){return"movementY"in e?e.movementY:Sp}}),vy=wn($u),TE=qe({},$u,{dataTransfer:0}),UE=wn(TE),CE=qe({},Bi,{relatedTarget:0}),Ep=wn(CE),RE=qe({},Qo,{animationName:0,elapsedTime:0,pseudoElement:0}),AE=wn(RE),VE=qe({},Qo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ME=wn(VE),OE=qe({},Qo,{data:0}),xy=wn(OE),PE=xy,kE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zE={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"},HE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},_E=qe({},Bi,{key:function(e){if(e.key){var t=kE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:im,charCode:function(e){return e.type==="keypress"?Bc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BE=wn(_E),LE=qe({},$u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gy=wn(LE),qE=qe({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:im}),FE=wn(qE),YE=qe({},Qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),GE=wn(YE),$E=qe({},$u,{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}),QE=wn($E),IE=qe({},Qo,{newState:0,oldState:0}),XE=wn(IE),ZE=[9,13,27,32],yy=229,jp=Fs&&"CompositionEvent"in window,qi=null;Fs&&"documentMode"in document&&(qi=document.documentMode);var KE=Fs&&"TextEvent"in window&&!qi,Ny=Fs&&(!jp||qi&&8<qi&&11>=qi),wy=32,Sy=String.fromCharCode(wy),Ey=!1,Ka=!1,JE={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},Fi=null,Yi=null,jy=!1;Fs&&(jy=Uw("input")&&(!document.documentMode||9<document.documentMode));var mn=typeof Object.is=="function"?Object.is:Ow,WE=Fs&&"documentMode"in document&&11>=document.documentMode,Ja=null,Dp=null,Gi=null,Tp=!1,Wa={animationend:Ao("Animation","AnimationEnd"),animationiteration:Ao("Animation","AnimationIteration"),animationstart:Ao("Animation","AnimationStart"),transitionrun:Ao("Transition","TransitionRun"),transitionstart:Ao("Transition","TransitionStart"),transitioncancel:Ao("Transition","TransitionCancel"),transitionend:Ao("Transition","TransitionEnd")},Up={},Dy={};Fs&&(Dy=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);var Ty=Vo("animationend"),Uy=Vo("animationiteration"),Cy=Vo("animationstart"),ej=Vo("transitionrun"),tj=Vo("transitionstart"),nj=Vo("transitioncancel"),Ry=Vo("transitionend"),Ay=new Map,Cp="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(" ");Cp.push("scrollEnd");var Rp=new WeakMap,Qu=1,hr=2,es=[],el=0,Ap=0,eo={};Object.freeze(eo);var ts=null,tl=null,ht=0,sj=1,Jt=2,rn=8,vs=16,Vy=64,My=!1;try{var Oy=Object.preventExtensions({})}catch{My=!0}var nl=[],sl=0,Iu=null,Xu=0,ns=[],ss=0,Io=null,br=1,vr="",fn=null,Ut=null,tt=!1,xr=!1,rs=null,Xo=null,Ys=!1,Vp=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."),Py=0;if(typeof performance=="object"&&typeof performance.now=="function")var rj=performance,ky=function(){return rj.now()};else{var oj=Date;ky=function(){return oj.now()}}var Mp=Se(null),Op=Se(null),zy={},Zu=null,rl=null,ol=!1,aj=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},lj=zt.unstable_scheduleCallback,ij=zt.unstable_NormalPriority,Bt={$$typeof:Hs,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},al=zt.unstable_now,Hy=-0,Ku=-0,Tn=-1.1,Zo=-0,Ju=!1,Wu=!1,$i=null,Pp=0,Ko=0,ll=null,_y=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&kw(e,t),_y!==null&&_y(e,t)};var Jo=Se(null),xs={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Qi=[],Ii=[],Xi=[],Zi=[],Ki=[],Ji=[],Wo=new Set;xs.recordUnsafeLifecycleWarnings=function(e,t){Wo.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Qi.push(e),e.mode&rn&&typeof t.UNSAFE_componentWillMount=="function"&&Ii.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Xi.push(e),e.mode&rn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Zi.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ki.push(e),e.mode&rn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Ji.push(e))},xs.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Qi.length&&(Qi.forEach(function(m){e.add(K(m)||"Component"),Wo.add(m.type)}),Qi=[]);var t=new Set;0<Ii.length&&(Ii.forEach(function(m){t.add(K(m)||"Component"),Wo.add(m.type)}),Ii=[]);var n=new Set;0<Xi.length&&(Xi.forEach(function(m){n.add(K(m)||"Component"),Wo.add(m.type)}),Xi=[]);var s=new Set;0<Zi.length&&(Zi.forEach(function(m){s.add(K(m)||"Component"),Wo.add(m.type)}),Zi=[]);var r=new Set;0<Ki.length&&(Ki.forEach(function(m){r.add(K(m)||"Component"),Wo.add(m.type)}),Ki=[]);var o=new Set;if(0<Ji.length&&(Ji.forEach(function(m){o.add(K(m)||"Component"),Wo.add(m.type)}),Ji=[]),0<t.size){var u=f(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.
|
|
226
|
+
|
|
227
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
228
|
+
|
|
229
|
+
Please update the following components: %s`,u)}0<s.size&&(u=f(s),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.
|
|
230
|
+
|
|
231
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
232
|
+
* 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
|
|
233
|
+
|
|
234
|
+
Please update the following components: %s`,u)),0<o.size&&(u=f(o),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.
|
|
235
|
+
|
|
236
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
237
|
+
|
|
238
|
+
Please update the following components: %s`,u)),0<e.size&&(u=f(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
239
|
+
|
|
240
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
241
|
+
* 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.
|
|
242
|
+
|
|
243
|
+
Please update the following components: %s`,u)),0<n.size&&(u=f(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
244
|
+
|
|
245
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
246
|
+
* 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
|
|
247
|
+
* 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.
|
|
248
|
+
|
|
249
|
+
Please update the following components: %s`,u)),0<r.size&&(u=f(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
250
|
+
|
|
251
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
252
|
+
* 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.
|
|
253
|
+
|
|
254
|
+
Please update the following components: %s`,u))};var ed=new Map,By=new Set;xs.recordLegacyContextWarning=function(e,t){for(var n=null,s=e;s!==null;)s.mode&rn&&(n=s),s=s.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."):!By.has(e.type)&&(s=ed.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(s===void 0&&(s=[],ed.set(n,s)),s.push(e))},xs.flushLegacyContextWarning=function(){ed.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(r){n.add(K(r)||"Component"),By.add(r.type)});var s=f(n);De(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
255
|
+
|
|
256
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
257
|
+
|
|
258
|
+
Please update the following components: %s
|
|
259
|
+
|
|
260
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,s)})}})},xs.discardPendingWarnings=function(){Qi=[],Ii=[],Xi=[],Zi=[],Ki=[],Ji=[],ed=new Map};var Wi=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`."),Ly=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."),td=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."),kp={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.')}},ec=null,nd=!1,os=0,as=1,pn=2,Wt=4,Lt=8,qy=0,Fy=1,Yy=2,zp=3,to=!1,Gy=!1,Hp=null,_p=!1,il=Se(null),sd=Se(0),cl,$y=new Set,Qy=new Set,Bp=new Set,Iy=new Set,no=0,Me=null,mt=null,Ht=null,rd=!1,ul=!1,ea=!1,od=0,tc=0,gr=null,cj=0,uj=25,_=null,ls=null,yr=-1,nc=!1,ad={readContext:wt,use:qr,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt},Lp=null,Xy=null,qp=null,Zy=null,Gs=null,gs=null,ld=null;Lp={readContext:function(e){return wt(e)},use:qr,useCallback:function(e,t){return _="useCallback",Xe(),Ca(t),Qm(e,t)},useContext:function(e){return _="useContext",Xe(),wt(e)},useEffect:function(e,t){return _="useEffect",Xe(),Ca(t),au(e,t)},useImperativeHandle:function(e,t,n){return _="useImperativeHandle",Xe(),Ca(n),$m(e,t,n)},useInsertionEffect:function(e,t){_="useInsertionEffect",Xe(),Ca(t),qo(4,pn,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",Xe(),Ca(t),Gm(e,t)},useMemo:function(e,t){_="useMemo",Xe(),Ca(t);var n=B.H;B.H=Gs;try{return Im(e,t)}finally{B.H=n}},useReducer:function(e,t,n){_="useReducer",Xe();var s=B.H;B.H=Gs;try{return zm(e,t,n)}finally{B.H=s}},useRef:function(e){return _="useRef",Xe(),Ym(e)},useState:function(e){_="useState",Xe();var t=B.H;B.H=Gs;try{return Lm(e)}finally{B.H=t}},useDebugValue:function(){_="useDebugValue",Xe()},useDeferredValue:function(e,t){return _="useDeferredValue",Xe(),Xm(e,t)},useTransition:function(){return _="useTransition",Xe(),Jm()},useSyncExternalStore:function(e,t,n){return _="useSyncExternalStore",Xe(),_m(e,t,n)},useId:function(){return _="useId",Xe(),Wm()},useFormState:function(e,t){return _="useFormState",Xe(),tu(),Aa(e,t)},useActionState:function(e,t){return _="useActionState",Xe(),Aa(e,t)},useOptimistic:function(e){return _="useOptimistic",Xe(),qm(e)},useHostTransitionStatus:Fo,useMemoCache:Lo,useCacheRefresh:function(){return _="useCacheRefresh",Xe(),ef()}},Xy={readContext:function(e){return wt(e)},use:qr,useCallback:function(e,t){return _="useCallback",te(),Qm(e,t)},useContext:function(e){return _="useContext",te(),wt(e)},useEffect:function(e,t){return _="useEffect",te(),au(e,t)},useImperativeHandle:function(e,t,n){return _="useImperativeHandle",te(),$m(e,t,n)},useInsertionEffect:function(e,t){_="useInsertionEffect",te(),qo(4,pn,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",te(),Gm(e,t)},useMemo:function(e,t){_="useMemo",te();var n=B.H;B.H=Gs;try{return Im(e,t)}finally{B.H=n}},useReducer:function(e,t,n){_="useReducer",te();var s=B.H;B.H=Gs;try{return zm(e,t,n)}finally{B.H=s}},useRef:function(e){return _="useRef",te(),Ym(e)},useState:function(e){_="useState",te();var t=B.H;B.H=Gs;try{return Lm(e)}finally{B.H=t}},useDebugValue:function(){_="useDebugValue",te()},useDeferredValue:function(e,t){return _="useDeferredValue",te(),Xm(e,t)},useTransition:function(){return _="useTransition",te(),Jm()},useSyncExternalStore:function(e,t,n){return _="useSyncExternalStore",te(),_m(e,t,n)},useId:function(){return _="useId",te(),Wm()},useActionState:function(e,t){return _="useActionState",te(),Aa(e,t)},useFormState:function(e,t){return _="useFormState",te(),tu(),Aa(e,t)},useOptimistic:function(e){return _="useOptimistic",te(),qm(e)},useHostTransitionStatus:Fo,useMemoCache:Lo,useCacheRefresh:function(){return _="useCacheRefresh",te(),ef()}},qp={readContext:function(e){return wt(e)},use:qr,useCallback:function(e,t){return _="useCallback",te(),iu(e,t)},useContext:function(e){return _="useContext",te(),wt(e)},useEffect:function(e,t){_="useEffect",te(),jn(2048,Lt,e,t)},useImperativeHandle:function(e,t,n){return _="useImperativeHandle",te(),lu(e,t,n)},useInsertionEffect:function(e,t){return _="useInsertionEffect",te(),jn(4,pn,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",te(),jn(4,Wt,e,t)},useMemo:function(e,t){_="useMemo",te();var n=B.H;B.H=gs;try{return cu(e,t)}finally{B.H=n}},useReducer:function(e,t,n){_="useReducer",te();var s=B.H;B.H=gs;try{return Ra(e,t,n)}finally{B.H=s}},useRef:function(){return _="useRef",te(),ct().memoizedState},useState:function(){_="useState",te();var e=B.H;B.H=gs;try{return Ra(hs)}finally{B.H=e}},useDebugValue:function(){_="useDebugValue",te()},useDeferredValue:function(e,t){return _="useDeferredValue",te(),Tv(e,t)},useTransition:function(){return _="useTransition",te(),Mv()},useSyncExternalStore:function(e,t,n){return _="useSyncExternalStore",te(),nu(e,t,n)},useId:function(){return _="useId",te(),ct().memoizedState},useFormState:function(e){return _="useFormState",te(),tu(),su(e)},useActionState:function(e){return _="useActionState",te(),su(e)},useOptimistic:function(e,t){return _="useOptimistic",te(),vv(e,t)},useHostTransitionStatus:Fo,useMemoCache:Lo,useCacheRefresh:function(){return _="useCacheRefresh",te(),ct().memoizedState}},Zy={readContext:function(e){return wt(e)},use:qr,useCallback:function(e,t){return _="useCallback",te(),iu(e,t)},useContext:function(e){return _="useContext",te(),wt(e)},useEffect:function(e,t){_="useEffect",te(),jn(2048,Lt,e,t)},useImperativeHandle:function(e,t,n){return _="useImperativeHandle",te(),lu(e,t,n)},useInsertionEffect:function(e,t){return _="useInsertionEffect",te(),jn(4,pn,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",te(),jn(4,Wt,e,t)},useMemo:function(e,t){_="useMemo",te();var n=B.H;B.H=ld;try{return cu(e,t)}finally{B.H=n}},useReducer:function(e,t,n){_="useReducer",te();var s=B.H;B.H=ld;try{return vi(e,t,n)}finally{B.H=s}},useRef:function(){return _="useRef",te(),ct().memoizedState},useState:function(){_="useState",te();var e=B.H;B.H=ld;try{return vi(hs)}finally{B.H=e}},useDebugValue:function(){_="useDebugValue",te()},useDeferredValue:function(e,t){return _="useDeferredValue",te(),Uv(e,t)},useTransition:function(){return _="useTransition",te(),Ov()},useSyncExternalStore:function(e,t,n){return _="useSyncExternalStore",te(),nu(e,t,n)},useId:function(){return _="useId",te(),ct().memoizedState},useFormState:function(e){return _="useFormState",te(),tu(),ru(e)},useActionState:function(e){return _="useActionState",te(),ru(e)},useOptimistic:function(e,t){return _="useOptimistic",te(),gv(e,t)},useHostTransitionStatus:Fo,useMemoCache:Lo,useCacheRefresh:function(){return _="useCacheRefresh",te(),ct().memoizedState}},Gs={readContext:function(e){return U(),wt(e)},use:function(e){return y(),qr(e)},useCallback:function(e,t){return _="useCallback",y(),Xe(),Qm(e,t)},useContext:function(e){return _="useContext",y(),Xe(),wt(e)},useEffect:function(e,t){return _="useEffect",y(),Xe(),au(e,t)},useImperativeHandle:function(e,t,n){return _="useImperativeHandle",y(),Xe(),$m(e,t,n)},useInsertionEffect:function(e,t){_="useInsertionEffect",y(),Xe(),qo(4,pn,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",y(),Xe(),Gm(e,t)},useMemo:function(e,t){_="useMemo",y(),Xe();var n=B.H;B.H=Gs;try{return Im(e,t)}finally{B.H=n}},useReducer:function(e,t,n){_="useReducer",y(),Xe();var s=B.H;B.H=Gs;try{return zm(e,t,n)}finally{B.H=s}},useRef:function(e){return _="useRef",y(),Xe(),Ym(e)},useState:function(e){_="useState",y(),Xe();var t=B.H;B.H=Gs;try{return Lm(e)}finally{B.H=t}},useDebugValue:function(){_="useDebugValue",y(),Xe()},useDeferredValue:function(e,t){return _="useDeferredValue",y(),Xe(),Xm(e,t)},useTransition:function(){return _="useTransition",y(),Xe(),Jm()},useSyncExternalStore:function(e,t,n){return _="useSyncExternalStore",y(),Xe(),_m(e,t,n)},useId:function(){return _="useId",y(),Xe(),Wm()},useFormState:function(e,t){return _="useFormState",y(),Xe(),Aa(e,t)},useActionState:function(e,t){return _="useActionState",y(),Xe(),Aa(e,t)},useOptimistic:function(e){return _="useOptimistic",y(),Xe(),qm(e)},useMemoCache:function(e){return y(),Lo(e)},useHostTransitionStatus:Fo,useCacheRefresh:function(){return _="useCacheRefresh",Xe(),ef()}},gs={readContext:function(e){return U(),wt(e)},use:function(e){return y(),qr(e)},useCallback:function(e,t){return _="useCallback",y(),te(),iu(e,t)},useContext:function(e){return _="useContext",y(),te(),wt(e)},useEffect:function(e,t){_="useEffect",y(),te(),jn(2048,Lt,e,t)},useImperativeHandle:function(e,t,n){return _="useImperativeHandle",y(),te(),lu(e,t,n)},useInsertionEffect:function(e,t){return _="useInsertionEffect",y(),te(),jn(4,pn,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",y(),te(),jn(4,Wt,e,t)},useMemo:function(e,t){_="useMemo",y(),te();var n=B.H;B.H=gs;try{return cu(e,t)}finally{B.H=n}},useReducer:function(e,t,n){_="useReducer",y(),te();var s=B.H;B.H=gs;try{return Ra(e,t,n)}finally{B.H=s}},useRef:function(){return _="useRef",y(),te(),ct().memoizedState},useState:function(){_="useState",y(),te();var e=B.H;B.H=gs;try{return Ra(hs)}finally{B.H=e}},useDebugValue:function(){_="useDebugValue",y(),te()},useDeferredValue:function(e,t){return _="useDeferredValue",y(),te(),Tv(e,t)},useTransition:function(){return _="useTransition",y(),te(),Mv()},useSyncExternalStore:function(e,t,n){return _="useSyncExternalStore",y(),te(),nu(e,t,n)},useId:function(){return _="useId",y(),te(),ct().memoizedState},useFormState:function(e){return _="useFormState",y(),te(),su(e)},useActionState:function(e){return _="useActionState",y(),te(),su(e)},useOptimistic:function(e,t){return _="useOptimistic",y(),te(),vv(e,t)},useMemoCache:function(e){return y(),Lo(e)},useHostTransitionStatus:Fo,useCacheRefresh:function(){return _="useCacheRefresh",te(),ct().memoizedState}},ld={readContext:function(e){return U(),wt(e)},use:function(e){return y(),qr(e)},useCallback:function(e,t){return _="useCallback",y(),te(),iu(e,t)},useContext:function(e){return _="useContext",y(),te(),wt(e)},useEffect:function(e,t){_="useEffect",y(),te(),jn(2048,Lt,e,t)},useImperativeHandle:function(e,t,n){return _="useImperativeHandle",y(),te(),lu(e,t,n)},useInsertionEffect:function(e,t){return _="useInsertionEffect",y(),te(),jn(4,pn,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",y(),te(),jn(4,Wt,e,t)},useMemo:function(e,t){_="useMemo",y(),te();var n=B.H;B.H=gs;try{return cu(e,t)}finally{B.H=n}},useReducer:function(e,t,n){_="useReducer",y(),te();var s=B.H;B.H=gs;try{return vi(e,t,n)}finally{B.H=s}},useRef:function(){return _="useRef",y(),te(),ct().memoizedState},useState:function(){_="useState",y(),te();var e=B.H;B.H=gs;try{return vi(hs)}finally{B.H=e}},useDebugValue:function(){_="useDebugValue",y(),te()},useDeferredValue:function(e,t){return _="useDeferredValue",y(),te(),Uv(e,t)},useTransition:function(){return _="useTransition",y(),te(),Ov()},useSyncExternalStore:function(e,t,n){return _="useSyncExternalStore",y(),te(),nu(e,t,n)},useId:function(){return _="useId",y(),te(),ct().memoizedState},useFormState:function(e){return _="useFormState",y(),te(),ru(e)},useActionState:function(e){return _="useActionState",y(),te(),ru(e)},useOptimistic:function(e,t){return _="useOptimistic",y(),te(),gv(e,t)},useMemoCache:function(e){return y(),Lo(e)},useHostTransitionStatus:Fo,useCacheRefresh:function(){return _="useCacheRefresh",te(),ct().memoizedState}};var Ky={"react-stack-bottom-frame":function(e,t,n){var s=qs;qs=!0;try{return e(t,n)}finally{qs=s}}},Fp=Ky["react-stack-bottom-frame"].bind(Ky),Jy={"react-stack-bottom-frame":function(e){var t=qs;qs=!0;try{return e.render()}finally{qs=t}}},Wy=Jy["react-stack-bottom-frame"].bind(Jy),e0={"react-stack-bottom-frame":function(e,t){try{t.componentDidMount()}catch(n){ut(e,e.return,n)}}},Yp=e0["react-stack-bottom-frame"].bind(e0),t0={"react-stack-bottom-frame":function(e,t,n,s,r){try{t.componentDidUpdate(n,s,r)}catch(o){ut(e,e.return,o)}}},n0=t0["react-stack-bottom-frame"].bind(t0),s0={"react-stack-bottom-frame":function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},dj=s0["react-stack-bottom-frame"].bind(s0),r0={"react-stack-bottom-frame":function(e,t,n){try{n.componentWillUnmount()}catch(s){ut(e,t,s)}}},o0=r0["react-stack-bottom-frame"].bind(r0),a0={"react-stack-bottom-frame":function(e){e.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},mj=a0["react-stack-bottom-frame"].bind(a0),l0={"react-stack-bottom-frame":function(e,t,n){try{n()}catch(s){ut(e,t,s)}}},fj=l0["react-stack-bottom-frame"].bind(l0),i0={"react-stack-bottom-frame":function(e){var t=e._init;return t(e._payload)}},so=i0["react-stack-bottom-frame"].bind(i0),dl=null,sc=0,Le=null,Gp,c0=Gp=!1,u0={},d0={},m0={};j=function(e,t,n){if(n!==null&&typeof n=="object"&&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 s=K(e),r=s||"null";if(!u0[r]){u0[r]=!0,n=n._owner,e=e._debugOwner;var o="";e&&typeof e.tag=="number"&&(r=K(e))&&(o=`
|
|
261
|
+
|
|
262
|
+
Check the render method of \``+r+"`."),o||s&&(o=`
|
|
263
|
+
|
|
264
|
+
Check the top-level render call using <`+s+">.");var u="";n!=null&&e!==n&&(s=null,typeof n.tag=="number"?s=K(n):typeof n.name=="string"&&(s=n.name),s&&(u=" It was passed a child from "+s+".")),De(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.',o,u)})}}};var ml=Hv(!0),f0=Hv(!1),is=Se(null),$s=null,fl=1,rc=2,qt=Se(0),p0={},h0=new Set,b0=new Set,v0=new Set,x0=new Set,g0=new Set,y0=new Set,N0=new Set,w0=new Set,S0=new Set,E0=new Set;Object.freeze(p0);var $p={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Fn(e),r=Br(s);r.payload=t,n!=null&&(nf(n),r.callback=n),t=Lr(e,r,s),t!==null&&(Mt(t,e,s),fi(t,e,s)),tn(e,s)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Fn(e),r=Br(s);r.tag=Fy,r.payload=t,n!=null&&(nf(n),r.callback=n),t=Lr(e,r,s),t!==null&&(Mt(t,e,s),fi(t,e,s)),tn(e,s)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fn(e),s=Br(n);s.tag=Yy,t!=null&&(nf(t),s.callback=t),t=Lr(e,s,n),t!==null&&(Mt(t,e,n),fi(t,e,n)),ce!==null&&typeof ce.markForceUpdateScheduled=="function"&&ce.markForceUpdateScheduled(e,n)}},Qp=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!==null&&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)},pl=null,Ip=null,j0=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."),$t=!1,D0={},T0={},U0={},C0={},hl=!1,R0={},Xp={},Zp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},A0=!1,V0=null;V0=new Set;var Nr=!1,Ot=!1,Kp=!1,M0=typeof WeakSet=="function"?WeakSet:Set,Qt=null,bl=null,vl=null,_t=null,Un=!1,ys=null,oc=8192,pj={getCacheForType:function(e){var t=wt(Bt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return Gn}};if(typeof Symbol=="function"&&Symbol.for){var ac=Symbol.for;ac("selector.component"),ac("selector.has_pseudo_class"),ac("selector.role"),ac("selector.test_id"),ac("selector.text")}var hj=[],bj=typeof WeakMap=="function"?WeakMap:Map,$n=0,hn=2,Ns=4,wr=0,lc=1,xl=2,Jp=3,ta=4,id=6,O0=5,rt=$n,ft=null,$e=null,Ze=0,Cn=0,ic=1,na=2,cc=3,P0=4,Wp=5,gl=6,uc=7,eh=8,sa=9,lt=Cn,Qn=null,ro=!1,yl=!1,th=!1,Qs=0,Ct=wr,oo=0,ao=0,nh=0,In=0,ra=0,dc=null,bn=null,cd=!1,sh=0,k0=300,ud=1/0,z0=500,mc=null,lo=null,vj=0,xj=1,gj=2,oa=0,H0=1,_0=2,B0=3,yj=4,rh=5,en=0,io=null,Nl=null,co=0,oh=0,ah=null,L0=null,Nj=50,fc=0,lh=null,ih=!1,dd=!1,wj=50,aa=0,pc=null,wl=!1,md=null,q0=!1,F0=new Set,Sj={},fd=null,Sl=null,ch=!1,uh=!1,pd=!1,dh=!1,la=0,mh={};(function(){for(var e=0;e<Cp.length;e++){var t=Cp[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),ps(n,"on"+t)}ps(Ty,"onAnimationEnd"),ps(Uy,"onAnimationIteration"),ps(Cy,"onAnimationStart"),ps("dblclick","onDoubleClick"),ps("focusin","onFocus"),ps("focusout","onBlur"),ps(ej,"onTransitionRun"),ps(tj,"onTransitionStart"),ps(nj,"onTransitionCancel"),ps(Ry,"onTransitionEnd")})(),le("onMouseEnter",["mouseout","mouseover"]),le("onMouseLeave",["mouseout","mouseover"]),le("onPointerEnter",["pointerout","pointerover"]),le("onPointerLeave",["pointerout","pointerover"]),ee("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ee("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ee("onBeforeInput",["compositionend","keypress","textInput","paste"]),ee("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ee("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ee("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hc="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(" "),fh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hc)),hd="_reactListening"+Math.random().toString(36).slice(2),Y0=!1,G0=!1,bd=!1,$0=!1,vd=!1,xd=!1,Q0=!1,gd={},Ej=/\r\n?/g,jj=/\u0000|\uFFFD/g,ia="http://www.w3.org/1999/xlink",ph="http://www.w3.org/XML/1998/namespace",Dj="javascript:throw new Error('React form unexpectedly submitted.')",Tj="suppressHydrationWarning",yd="$",Nd="/$",Sr="$?",bc="$!",Uj=1,Cj=2,Rj=4,hh="F!",I0="F",X0="complete",Aj="style",Er=0,El=1,wd=2,bh=null,vh=null,Z0={dialog:!0,webview:!0},xh=null,K0=typeof setTimeout=="function"?setTimeout:void 0,Vj=typeof clearTimeout=="function"?clearTimeout:void 0,ca=-1,J0=typeof Promise=="function"?Promise:void 0,Mj=typeof queueMicrotask=="function"?queueMicrotask:typeof J0<"u"?function(e){return J0.resolve(null).then(e).catch(xS)}:K0,gh=null,ua=0,vc=1,W0=2,eN=3,cs=4,us=new Map,tN=new Set,jr=st.d;st.d={f:function(){var e=jr.f(),t=ka();return e||t},r:function(e){var t=yn(e);t!==null&&t.tag===5&&t.type==="form"?Vv(t):jr.r(e)},D:function(e){jr.D(e),Ng("dns-prefetch",e,null)},C:function(e,t){jr.C(e,t),Ng("preconnect",e,t)},L:function(e,t,n){jr.L(e,t,n);var s=jl;if(s&&e&&t){var r='link[rel="preload"][as="'+Zn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Zn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Zn(n.imageSizes)+'"]')):r+='[href="'+Zn(e)+'"]';var o=r;switch(t){case"style":o=Ba(e);break;case"script":o=La(e)}us.has(o)||(e=qe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),us.set(o,e),s.querySelector(r)!==null||t==="style"&&s.querySelector(Ri(o))||t==="script"&&s.querySelector(Ai(o))||(t=s.createElement("link"),Zt(t,"link",e),R(t),s.head.appendChild(t)))}},m:function(e,t){jr.m(e,t);var n=jl;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Zn(s)+'"][href="'+Zn(e)+'"]',o=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=La(e)}if(!us.has(o)&&(e=qe({rel:"modulepreload",href:e},t),us.set(o,e),n.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ai(o)))return}s=n.createElement("link"),Zt(s,"link",e),R(s),n.head.appendChild(s)}}},X:function(e,t){jr.X(e,t);var n=jl;if(n&&e){var s=h(n).hoistableScripts,r=La(e),o=s.get(r);o||(o=n.querySelector(Ai(r)),o||(e=qe({src:e,async:!0},t),(t=us.get(r))&&$f(e,t),o=n.createElement("script"),R(o),Zt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},s.set(r,o))}},S:function(e,t,n){jr.S(e,t,n);var s=jl;if(s&&e){var r=h(s).hoistableStyles,o=Ba(e);t=t||"default";var u=r.get(o);if(!u){var m={loading:ua,preload:null};if(u=s.querySelector(Ri(o)))m.loading=vc|cs;else{e=qe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=us.get(o))&&Gf(e,n);var b=u=s.createElement("link");R(b),Zt(b,"link",e),b._p=new Promise(function(x,P){b.onload=x,b.onerror=P}),b.addEventListener("load",function(){m.loading|=vc}),b.addEventListener("error",function(){m.loading|=W0}),m.loading|=cs,Ru(u,t,s)}u={type:"stylesheet",instance:u,count:1,state:m},r.set(o,u)}}},M:function(e,t){jr.M(e,t);var n=jl;if(n&&e){var s=h(n).hoistableScripts,r=La(e),o=s.get(r);o||(o=n.querySelector(Ai(r)),o||(e=qe({src:e,async:!0,type:"module"},t),(t=us.get(r))&&$f(e,t),o=n.createElement("script"),R(o),Zt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},s.set(r,o))}}};var jl=typeof document>"u"?null:document,Sd=null,xc=null,yh=null,Ed=null,da=JS,gc={$$typeof:Hs,Provider:null,Consumer:null,_currentValue:da,_currentValue2:da,_threadCount:0},nN="%c%s%c ",sN="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",rN="",jd=" ",Oj=Function.prototype.bind,oN=!1,aN=null,lN=null,iN=null,cN=null,uN=null,dN=null,mN=null,fN=null,pN=null;aN=function(e,t,n,s){t=i(e,t),t!==null&&(n=a(t.memoizedState,n,0,s),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=Sn(e,2),n!==null&&Mt(n,e,2))},lN=function(e,t,n){t=i(e,t),t!==null&&(n=p(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=Sn(e,2),n!==null&&Mt(n,e,2))},iN=function(e,t,n,s){t=i(e,t),t!==null&&(n=c(t.memoizedState,n,s),t.memoizedState=n,t.baseState=n,e.memoizedProps=qe({},e.memoizedProps),n=Sn(e,2),n!==null&&Mt(n,e,2))},cN=function(e,t,n){e.pendingProps=a(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sn(e,2),t!==null&&Mt(t,e,2)},uN=function(e,t){e.pendingProps=p(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sn(e,2),t!==null&&Mt(t,e,2)},dN=function(e,t,n){e.pendingProps=c(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sn(e,2),t!==null&&Mt(t,e,2)},mN=function(e){var t=Sn(e,2);t!==null&&Mt(t,e,2)},fN=function(e){N=e},pN=function(e){v=e};var Dd=!0,Td=null,Nh=!1,uo=null,mo=null,fo=null,yc=new Map,Nc=new Map,po=[],Pj="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(" "),Ud=null;if(Ou.prototype.render=Wf.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()."):k(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."):typeof n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var s=t.current,r=Fn(s);If(s,r,n,t,null,null)},Ou.prototype.unmount=Wf.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;(rt&(hn|Ns))!==$n&&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."),If(e.current,2,null,e,null,null),ka(),t[Jr]=null}},Ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=kr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<po.length&&t!==0&&t<po[n].priority;n++);po.splice(n,0,e),n===0&&Og(e)}},function(){var e=ep.version;if(e!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
265
|
+
- react: `+(e+`
|
|
266
|
+
- react-dom: 19.1.0
|
|
267
|
+
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"),st.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=de(t),e=e!==null?ue(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};return e.overrideHookState=aN,e.overrideHookStateDeletePath=lN,e.overrideHookStateRenamePath=iN,e.overrideProps=cN,e.overridePropsDeletePath=uN,e.overridePropsRenamePath=dN,e.scheduleUpdate=mN,e.setErrorHandler=fN,e.setSuspenseHandler=pN,e.scheduleRefresh=I,e.scheduleRoot=A,e.setRefreshHandler=X,e.getCurrentFiber=LS,e.getLaneLabelMap=qS,e.injectProfilingHooks=Ge,ze(e)}()&&Fs&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var hN=window.location.protocol;/^(https?|file):$/.test(hN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(hN==="file:"?`
|
|
268
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}wc.createRoot=function(e,t){if(!k(e))throw Error("Target container is not a DOM element.");zg(e);var n=!1,s="",r=qv,o=Fv,u=Yv,m=null;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ir&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
269
|
+
|
|
270
|
+
let root = createRoot(domContainer);
|
|
271
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(m=t.unstable_transitionCallbacks)),t=Ug(e,1,!1,null,null,n,s,r,o,u,m,null),e[Jr]=t.current,Pf(e),new Wf(t)},wc.hydrateRoot=function(e,t,n){if(!k(e))throw Error("Target container is not a DOM element.");zg(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,r="",o=qv,u=Fv,m=Yv,b=null,x=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(b=n.unstable_transitionCallbacks),n.formState!==void 0&&(x=n.formState)),t=Ug(e,1,!0,t,n??null,s,r,o,u,m,b,x),t.context=Cg(null),n=t.current,s=Fn(n),s=Co(s),r=Br(s),r.callback=null,Lr(n,r,s),n=s,t.current.lanes=n,cn(t,n),ks(t),e[Jr]=t.current,Pf(e),new Ou(t)},wc.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),wc}var DN;function Gj(){return DN||(DN=1,jh.exports=Yj()),jh.exports}var $j=Gj(),Ql=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sa=typeof window>"u"||"Deno"in globalThis;function gn(){}function Qj(i,a){return typeof i=="function"?i(a):i}function Oh(i){return typeof i=="number"&&i>=0&&i!==1/0}function f1(i,a){return Math.max(i+(a||0)-Date.now(),0)}function To(i,a){return typeof i=="function"?i(a):i}function Es(i,a){return typeof i=="function"?i(a):i}function TN(i,a){const{type:c="all",exact:d,fetchStatus:p,predicate:v,queryKey:N,stale:j}=i;if(N){if(d){if(a.queryHash!==tb(N,a.options))return!1}else if(!Uc(a.queryKey,N))return!1}if(c!=="all"){const y=a.isActive();if(c==="active"&&!y||c==="inactive"&&y)return!1}return!(typeof j=="boolean"&&a.isStale()!==j||p&&p!==a.state.fetchStatus||v&&!v(a))}function UN(i,a){const{exact:c,status:d,predicate:p,mutationKey:v}=i;if(v){if(!a.options.mutationKey)return!1;if(c){if(Ea(a.options.mutationKey)!==Ea(v))return!1}else if(!Uc(a.options.mutationKey,v))return!1}return!(d&&a.state.status!==d||p&&!p(a))}function tb(i,a){return((a==null?void 0:a.queryKeyHashFn)||Ea)(i)}function Ea(i){return JSON.stringify(i,(a,c)=>kh(c)?Object.keys(c).sort().reduce((d,p)=>(d[p]=c[p],d),{}):c)}function Uc(i,a){return i===a?!0:typeof i!=typeof a?!1:i&&a&&typeof i=="object"&&typeof a=="object"?Object.keys(a).every(c=>Uc(i[c],a[c])):!1}function Ph(i,a){if(i===a)return i;const c=CN(i)&&CN(a);if(c||kh(i)&&kh(a)){const d=c?i:Object.keys(i),p=d.length,v=c?a:Object.keys(a),N=v.length,j=c?[]:{},y=new Set(d);let U=0;for(let M=0;M<N;M++){const f=c?M:v[M];(!c&&y.has(f)||c)&&i[f]===void 0&&a[f]===void 0?(j[f]=void 0,U++):(j[f]=Ph(i[f],a[f]),j[f]===i[f]&&i[f]!==void 0&&U++)}return p===N&&U===p?i:j}return a}function Ld(i,a){if(!a||Object.keys(i).length!==Object.keys(a).length)return!1;for(const c in i)if(i[c]!==a[c])return!1;return!0}function CN(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function kh(i){if(!RN(i))return!1;const a=i.constructor;if(a===void 0)return!0;const c=a.prototype;return!(!RN(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function RN(i){return Object.prototype.toString.call(i)==="[object Object]"}function Ij(i){return new Promise(a=>{setTimeout(a,i)})}function zh(i,a,c){if(typeof c.structuralSharing=="function")return c.structuralSharing(i,a);if(c.structuralSharing!==!1){try{return Ph(i,a)}catch(d){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. [${c.queryHash}]: ${d}`),d}return Ph(i,a)}return a}function Xj(i,a,c=0){const d=[...i,a];return c&&d.length>c?d.slice(1):d}function Zj(i,a,c=0){const d=[a,...i];return c&&d.length>c?d.slice(0,-1):d}var qd=Symbol();function p1(i,a){return i.queryFn===qd&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${i.queryHash}'`),!i.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!i.queryFn||i.queryFn===qd?()=>Promise.reject(new Error(`Missing queryFn: '${i.queryHash}'`)):i.queryFn}function h1(i,a){return typeof i=="function"?i(...a):!!i}var pa,vo,Ml,e1,Kj=(e1=class extends Ql{constructor(){super();Re(this,pa);Re(this,vo);Re(this,Ml);me(this,Ml,a=>{if(!Sa&&window.addEventListener){const c=()=>a();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){D(this,vo)||this.setEventListener(D(this,Ml))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,vo))==null||a.call(this),me(this,vo,void 0))}setEventListener(a){var c;me(this,Ml,a),(c=D(this,vo))==null||c.call(this),me(this,vo,a(d=>{typeof d=="boolean"?this.setFocused(d):this.onFocus()}))}setFocused(a){D(this,pa)!==a&&(me(this,pa,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(c=>{c(a)})}isFocused(){var a;return typeof D(this,pa)=="boolean"?D(this,pa):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},pa=new WeakMap,vo=new WeakMap,Ml=new WeakMap,e1),nb=new Kj,Ol,xo,Pl,t1,Jj=(t1=class extends Ql{constructor(){super();Re(this,Ol,!0);Re(this,xo);Re(this,Pl);me(this,Pl,a=>{if(!Sa&&window.addEventListener){const c=()=>a(!0),d=()=>a(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",d,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",d)}}})}onSubscribe(){D(this,xo)||this.setEventListener(D(this,Pl))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,xo))==null||a.call(this),me(this,xo,void 0))}setEventListener(a){var c;me(this,Pl,a),(c=D(this,xo))==null||c.call(this),me(this,xo,a(this.setOnline.bind(this)))}setOnline(a){D(this,Ol)!==a&&(me(this,Ol,a),this.listeners.forEach(d=>{d(a)}))}isOnline(){return D(this,Ol)}},Ol=new WeakMap,xo=new WeakMap,Pl=new WeakMap,t1),Fd=new Jj;function Hh(){let i,a;const c=new Promise((p,v)=>{i=p,a=v});c.status="pending",c.catch(()=>{});function d(p){Object.assign(c,p),delete c.resolve,delete c.reject}return c.resolve=p=>{d({status:"fulfilled",value:p}),i(p)},c.reject=p=>{d({status:"rejected",reason:p}),a(p)},c}function Wj(i){return Math.min(1e3*2**i,3e4)}function b1(i){return(i??"online")==="online"?Fd.isOnline():!0}var v1=class extends Error{constructor(i){super("CancelledError"),this.revert=i==null?void 0:i.revert,this.silent=i==null?void 0:i.silent}};function Ch(i){return i instanceof v1}function x1(i){let a=!1,c=0,d=!1,p;const v=Hh(),N=X=>{var k;d||(g(new v1(X)),(k=i.abort)==null||k.call(i))},j=()=>{a=!0},y=()=>{a=!1},U=()=>nb.isFocused()&&(i.networkMode==="always"||Fd.isOnline())&&i.canRun(),M=()=>b1(i.networkMode)&&i.canRun(),f=X=>{var k;d||(d=!0,(k=i.onSuccess)==null||k.call(i,X),p==null||p(),v.resolve(X))},g=X=>{var k;d||(d=!0,(k=i.onError)==null||k.call(i,X),p==null||p(),v.reject(X))},A=()=>new Promise(X=>{var k;p=$=>{(d||U())&&X($)},(k=i.onPause)==null||k.call(i)}).then(()=>{var X;p=void 0,d||(X=i.onContinue)==null||X.call(i)}),I=()=>{if(d)return;let X;const k=c===0?i.initialPromise:void 0;try{X=k??i.fn()}catch($){X=Promise.reject($)}Promise.resolve(X).then(f).catch($=>{var we;if(d)return;const ye=i.retry??(Sa?0:3),se=i.retryDelay??Wj,de=typeof se=="function"?se(c,$):se,ue=ye===!0||typeof ye=="number"&&c<ye||typeof ye=="function"&&ye(c,$);if(a||!ue){g($);return}c++,(we=i.onFail)==null||we.call(i,c,$),Ij(de).then(()=>U()?void 0:A()).then(()=>{a?g($):I()})})};return{promise:v,cancel:N,continue:()=>(p==null||p(),v),cancelRetry:j,continueRetry:y,canStart:M,start:()=>(M()?I():A().then(I),v)}}var eD=i=>setTimeout(i,0);function tD(){let i=[],a=0,c=j=>{j()},d=j=>{j()},p=eD;const v=j=>{a?i.push(j):p(()=>{c(j)})},N=()=>{const j=i;i=[],j.length&&p(()=>{d(()=>{j.forEach(y=>{c(y)})})})};return{batch:j=>{let y;a++;try{y=j()}finally{a--,a||N()}return y},batchCalls:j=>(...y)=>{v(()=>{j(...y)})},schedule:v,setNotifyFunction:j=>{c=j},setBatchNotifyFunction:j=>{d=j},setScheduler:j=>{p=j}}}var Yt=tD(),ha,n1,g1=(n1=class{constructor(){Re(this,ha)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oh(this.gcTime)&&me(this,ha,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(i){this.gcTime=Math.max(this.gcTime||0,i??(Sa?1/0:5*60*1e3))}clearGcTimeout(){D(this,ha)&&(clearTimeout(D(this,ha)),me(this,ha,void 0))}},ha=new WeakMap,n1),kl,zl,ds,ba,an,Rc,va,ws,Ur,s1,nD=(s1=class extends g1{constructor(a){super();Re(this,ws);Re(this,kl);Re(this,zl);Re(this,ds);Re(this,ba);Re(this,an);Re(this,Rc);Re(this,va);me(this,va,!1),me(this,Rc,a.defaultOptions),this.setOptions(a.options),this.observers=[],me(this,ba,a.client),me(this,ds,D(this,ba).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,me(this,kl,sD(this.options)),this.state=a.state??D(this,kl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=D(this,an))==null?void 0:a.promise}setOptions(a){this.options={...D(this,Rc),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,ds).remove(this)}setData(a,c){const d=zh(this.state.data,a,this.options);return Fe(this,ws,Ur).call(this,{data:d,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),d}setState(a,c){Fe(this,ws,Ur).call(this,{type:"setState",state:a,setStateOptions:c})}cancel(a){var d,p;const c=(d=D(this,an))==null?void 0:d.promise;return(p=D(this,an))==null||p.cancel(a),c?c.then(gn).catch(gn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,kl))}isActive(){return this.observers.some(a=>Es(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>To(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!f1(this.state.dataUpdatedAt,a)}onFocus(){var c;const a=this.observers.find(d=>d.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(c=D(this,an))==null||c.continue()}onOnline(){var c;const a=this.observers.find(d=>d.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(c=D(this,an))==null||c.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),D(this,ds).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(c=>c!==a),this.observers.length||(D(this,an)&&(D(this,va)?D(this,an).cancel({revert:!0}):D(this,an).cancelRetry()),this.scheduleGc()),D(this,ds).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,ws,Ur).call(this,{type:"invalidate"})}fetch(a,c){var U,M,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(D(this,an))return D(this,an).continueRetry(),D(this,an).promise}if(a&&this.setOptions(a),!this.options.queryFn){const g=this.observers.find(A=>A.options.queryFn);g&&this.setOptions(g.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']");const d=new AbortController,p=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(me(this,va,!0),d.signal)})},v=()=>{const g=p1(this.options,c),I=(()=>{const X={client:D(this,ba),queryKey:this.queryKey,meta:this.meta};return p(X),X})();return me(this,va,!1),this.options.persister?this.options.persister(g,I,this):g(I)},j=(()=>{const g={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:D(this,ba),state:this.state,fetchFn:v};return p(g),g})();(U=this.options.behavior)==null||U.onFetch(j,this),me(this,zl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((M=j.fetchOptions)==null?void 0:M.meta))&&Fe(this,ws,Ur).call(this,{type:"fetch",meta:(f=j.fetchOptions)==null?void 0:f.meta});const y=g=>{var A,I,X,k;Ch(g)&&g.silent||Fe(this,ws,Ur).call(this,{type:"error",error:g}),Ch(g)||((I=(A=D(this,ds).config).onError)==null||I.call(A,g,this),(k=(X=D(this,ds).config).onSettled)==null||k.call(X,this.state.data,g,this)),this.scheduleGc()};return me(this,an,x1({initialPromise:c==null?void 0:c.initialPromise,fn:j.fetchFn,abort:d.abort.bind(d),onSuccess:g=>{var A,I,X,k;if(g===void 0){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}`),y(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch($){y($);return}(I=(A=D(this,ds).config).onSuccess)==null||I.call(A,g,this),(k=(X=D(this,ds).config).onSettled)==null||k.call(X,g,this.state.error,this),this.scheduleGc()},onError:y,onFail:(g,A)=>{Fe(this,ws,Ur).call(this,{type:"failed",failureCount:g,error:A})},onPause:()=>{Fe(this,ws,Ur).call(this,{type:"pause"})},onContinue:()=>{Fe(this,ws,Ur).call(this,{type:"continue"})},retry:j.options.retry,retryDelay:j.options.retryDelay,networkMode:j.options.networkMode,canRun:()=>!0})),D(this,an).start()}},kl=new WeakMap,zl=new WeakMap,ds=new WeakMap,ba=new WeakMap,an=new WeakMap,Rc=new WeakMap,va=new WeakMap,ws=new WeakSet,Ur=function(a){const c=d=>{switch(a.type){case"failed":return{...d,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...d,fetchStatus:"paused"};case"continue":return{...d,fetchStatus:"fetching"};case"fetch":return{...d,...y1(d.data,this.options),fetchMeta:a.meta??null};case"success":return{...d,data:a.data,dataUpdateCount:d.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const p=a.error;return Ch(p)&&p.revert&&D(this,zl)?{...D(this,zl),fetchStatus:"idle"}:{...d,error:p,errorUpdateCount:d.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:d.fetchFailureCount+1,fetchFailureReason:p,fetchStatus:"idle",status:"error"};case"invalidate":return{...d,isInvalidated:!0};case"setState":return{...d,...a.state}}};this.state=c(this.state),Yt.batch(()=>{this.observers.forEach(d=>{d.onQueryUpdate()}),D(this,ds).notify({query:this,type:"updated",action:a})})},s1);function y1(i,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:b1(a.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function sD(i){const a=typeof i.initialData=="function"?i.initialData():i.initialData,c=a!==void 0,d=c?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:c?d??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Xs,r1,rD=(r1=class extends Ql{constructor(a={}){super();Re(this,Xs);this.config=a,me(this,Xs,new Map)}build(a,c,d){const p=c.queryKey,v=c.queryHash??tb(p,c);let N=this.get(v);return N||(N=new nD({client:a,queryKey:p,queryHash:v,options:a.defaultQueryOptions(c),state:d,defaultOptions:a.getQueryDefaults(p)}),this.add(N)),N}add(a){D(this,Xs).has(a.queryHash)||(D(this,Xs).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const c=D(this,Xs).get(a.queryHash);c&&(a.destroy(),c===a&&D(this,Xs).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Yt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return D(this,Xs).get(a)}getAll(){return[...D(this,Xs).values()]}find(a){const c={exact:!0,...a};return this.getAll().find(d=>TN(c,d))}findAll(a={}){const c=this.getAll();return Object.keys(a).length>0?c.filter(d=>TN(a,d)):c}notify(a){Yt.batch(()=>{this.listeners.forEach(c=>{c(a)})})}onFocus(){Yt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Yt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Xs=new WeakMap,r1),Zs,vn,xa,Ks,bo,o1,oD=(o1=class extends g1{constructor(a){super();Re(this,Ks);Re(this,Zs);Re(this,vn);Re(this,xa);this.mutationId=a.mutationId,me(this,vn,a.mutationCache),me(this,Zs,[]),this.state=a.state||N1(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){D(this,Zs).includes(a)||(D(this,Zs).push(a),this.clearGcTimeout(),D(this,vn).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){me(this,Zs,D(this,Zs).filter(c=>c!==a)),this.scheduleGc(),D(this,vn).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){D(this,Zs).length||(this.state.status==="pending"?this.scheduleGc():D(this,vn).remove(this))}continue(){var a;return((a=D(this,xa))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var v,N,j,y,U,M,f,g,A,I,X,k,$,ye,se,de,ue,we,Ue,W;const c=()=>{Fe(this,Ks,bo).call(this,{type:"continue"})};me(this,xa,x1({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(K,Se)=>{Fe(this,Ks,bo).call(this,{type:"failed",failureCount:K,error:Se})},onPause:()=>{Fe(this,Ks,bo).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,vn).canRun(this)}));const d=this.state.status==="pending",p=!D(this,xa).canStart();try{if(d)c();else{Fe(this,Ks,bo).call(this,{type:"pending",variables:a,isPaused:p}),await((N=(v=D(this,vn).config).onMutate)==null?void 0:N.call(v,a,this));const Se=await((y=(j=this.options).onMutate)==null?void 0:y.call(j,a));Se!==this.state.context&&Fe(this,Ks,bo).call(this,{type:"pending",context:Se,variables:a,isPaused:p})}const K=await D(this,xa).start();return await((M=(U=D(this,vn).config).onSuccess)==null?void 0:M.call(U,K,a,this.state.context,this)),await((g=(f=this.options).onSuccess)==null?void 0:g.call(f,K,a,this.state.context)),await((I=(A=D(this,vn).config).onSettled)==null?void 0:I.call(A,K,null,this.state.variables,this.state.context,this)),await((k=(X=this.options).onSettled)==null?void 0:k.call(X,K,null,a,this.state.context)),Fe(this,Ks,bo).call(this,{type:"success",data:K}),K}catch(K){try{throw await((ye=($=D(this,vn).config).onError)==null?void 0:ye.call($,K,a,this.state.context,this)),await((de=(se=this.options).onError)==null?void 0:de.call(se,K,a,this.state.context)),await((we=(ue=D(this,vn).config).onSettled)==null?void 0:we.call(ue,void 0,K,this.state.variables,this.state.context,this)),await((W=(Ue=this.options).onSettled)==null?void 0:W.call(Ue,void 0,K,a,this.state.context)),K}finally{Fe(this,Ks,bo).call(this,{type:"error",error:K})}}finally{D(this,vn).runNext(this)}}},Zs=new WeakMap,vn=new WeakMap,xa=new WeakMap,Ks=new WeakSet,bo=function(a){const c=d=>{switch(a.type){case"failed":return{...d,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...d,isPaused:!0};case"continue":return{...d,isPaused:!1};case"pending":return{...d,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...d,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...d,data:void 0,error:a.error,failureCount:d.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=c(this.state),Yt.batch(()=>{D(this,Zs).forEach(d=>{d.onMutationUpdate(a)}),D(this,vn).notify({mutation:this,type:"updated",action:a})})},o1);function N1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cr,Ss,Ac,a1,aD=(a1=class extends Ql{constructor(a={}){super();Re(this,Cr);Re(this,Ss);Re(this,Ac);this.config=a,me(this,Cr,new Set),me(this,Ss,new Map),me(this,Ac,0)}build(a,c,d){const p=new oD({mutationCache:this,mutationId:++Cd(this,Ac)._,options:a.defaultMutationOptions(c),state:d});return this.add(p),p}add(a){D(this,Cr).add(a);const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c);d?d.push(a):D(this,Ss).set(c,[a])}this.notify({type:"added",mutation:a})}remove(a){if(D(this,Cr).delete(a)){const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c);if(d)if(d.length>1){const p=d.indexOf(a);p!==-1&&d.splice(p,1)}else d[0]===a&&D(this,Ss).delete(c)}}this.notify({type:"removed",mutation:a})}canRun(a){const c=Ad(a);if(typeof c=="string"){const d=D(this,Ss).get(c),p=d==null?void 0:d.find(v=>v.state.status==="pending");return!p||p===a}else return!0}runNext(a){var d;const c=Ad(a);if(typeof c=="string"){const p=(d=D(this,Ss).get(c))==null?void 0:d.find(v=>v!==a&&v.state.isPaused);return(p==null?void 0:p.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Yt.batch(()=>{D(this,Cr).forEach(a=>{this.notify({type:"removed",mutation:a})}),D(this,Cr).clear(),D(this,Ss).clear()})}getAll(){return Array.from(D(this,Cr))}find(a){const c={exact:!0,...a};return this.getAll().find(d=>UN(c,d))}findAll(a={}){return this.getAll().filter(c=>UN(a,c))}notify(a){Yt.batch(()=>{this.listeners.forEach(c=>{c(a)})})}resumePausedMutations(){const a=this.getAll().filter(c=>c.state.isPaused);return Yt.batch(()=>Promise.all(a.map(c=>c.continue().catch(gn))))}},Cr=new WeakMap,Ss=new WeakMap,Ac=new WeakMap,a1);function Ad(i){var a;return(a=i.options.scope)==null?void 0:a.id}function AN(i){return{onFetch:(a,c)=>{var M,f,g,A,I;const d=a.options,p=(g=(f=(M=a.fetchOptions)==null?void 0:M.meta)==null?void 0:f.fetchMore)==null?void 0:g.direction,v=((A=a.state.data)==null?void 0:A.pages)||[],N=((I=a.state.data)==null?void 0:I.pageParams)||[];let j={pages:[],pageParams:[]},y=0;const U=async()=>{let X=!1;const k=se=>{Object.defineProperty(se,"signal",{enumerable:!0,get:()=>(a.signal.aborted?X=!0:a.signal.addEventListener("abort",()=>{X=!0}),a.signal)})},$=p1(a.options,a.fetchOptions),ye=async(se,de,ue)=>{if(X)return Promise.reject();if(de==null&&se.pages.length)return Promise.resolve(se);const Ue=(()=>{const ae={client:a.client,queryKey:a.queryKey,pageParam:de,direction:ue?"backward":"forward",meta:a.options.meta};return k(ae),ae})(),W=await $(Ue),{maxPages:K}=a.options,Se=ue?Zj:Xj;return{pages:Se(se.pages,W,K),pageParams:Se(se.pageParams,de,K)}};if(p&&v.length){const se=p==="backward",de=se?lD:VN,ue={pages:v,pageParams:N},we=de(d,ue);j=await ye(ue,we,se)}else{const se=i??v.length;do{const de=y===0?N[0]??d.initialPageParam:VN(d,j);if(y>0&&de==null)break;j=await ye(j,de),y++}while(y<se)}return j};a.options.persister?a.fetchFn=()=>{var X,k;return(k=(X=a.options).persister)==null?void 0:k.call(X,U,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},c)}:a.fetchFn=U}}}function VN(i,{pages:a,pageParams:c}){const d=a.length-1;return a.length>0?i.getNextPageParam(a[d],a,c[d],c):void 0}function lD(i,{pages:a,pageParams:c}){var d;return a.length>0?(d=i.getPreviousPageParam)==null?void 0:d.call(i,a[0],a,c[0],c):void 0}var Rt,go,yo,Hl,_l,No,Bl,Ll,l1,iD=(l1=class{constructor(i={}){Re(this,Rt);Re(this,go);Re(this,yo);Re(this,Hl);Re(this,_l);Re(this,No);Re(this,Bl);Re(this,Ll);me(this,Rt,i.queryCache||new rD),me(this,go,i.mutationCache||new aD),me(this,yo,i.defaultOptions||{}),me(this,Hl,new Map),me(this,_l,new Map),me(this,No,0)}mount(){Cd(this,No)._++,D(this,No)===1&&(me(this,Bl,nb.subscribe(async i=>{i&&(await this.resumePausedMutations(),D(this,Rt).onFocus())})),me(this,Ll,Fd.subscribe(async i=>{i&&(await this.resumePausedMutations(),D(this,Rt).onOnline())})))}unmount(){var i,a;Cd(this,No)._--,D(this,No)===0&&((i=D(this,Bl))==null||i.call(this),me(this,Bl,void 0),(a=D(this,Ll))==null||a.call(this),me(this,Ll,void 0))}isFetching(i){return D(this,Rt).findAll({...i,fetchStatus:"fetching"}).length}isMutating(i){return D(this,go).findAll({...i,status:"pending"}).length}getQueryData(i){var c;const a=this.defaultQueryOptions({queryKey:i});return(c=D(this,Rt).get(a.queryHash))==null?void 0:c.state.data}ensureQueryData(i){const a=this.defaultQueryOptions(i),c=D(this,Rt).build(this,a),d=c.state.data;return d===void 0?this.fetchQuery(i):(i.revalidateIfStale&&c.isStaleByTime(To(a.staleTime,c))&&this.prefetchQuery(a),Promise.resolve(d))}getQueriesData(i){return D(this,Rt).findAll(i).map(({queryKey:a,state:c})=>{const d=c.data;return[a,d]})}setQueryData(i,a,c){const d=this.defaultQueryOptions({queryKey:i}),p=D(this,Rt).get(d.queryHash),v=p==null?void 0:p.state.data,N=Qj(a,v);if(N!==void 0)return D(this,Rt).build(this,d).setData(N,{...c,manual:!0})}setQueriesData(i,a,c){return Yt.batch(()=>D(this,Rt).findAll(i).map(({queryKey:d})=>[d,this.setQueryData(d,a,c)]))}getQueryState(i){var c;const a=this.defaultQueryOptions({queryKey:i});return(c=D(this,Rt).get(a.queryHash))==null?void 0:c.state}removeQueries(i){const a=D(this,Rt);Yt.batch(()=>{a.findAll(i).forEach(c=>{a.remove(c)})})}resetQueries(i,a){const c=D(this,Rt);return Yt.batch(()=>(c.findAll(i).forEach(d=>{d.reset()}),this.refetchQueries({type:"active",...i},a)))}cancelQueries(i,a={}){const c={revert:!0,...a},d=Yt.batch(()=>D(this,Rt).findAll(i).map(p=>p.cancel(c)));return Promise.all(d).then(gn).catch(gn)}invalidateQueries(i,a={}){return Yt.batch(()=>(D(this,Rt).findAll(i).forEach(c=>{c.invalidate()}),(i==null?void 0:i.refetchType)==="none"?Promise.resolve():this.refetchQueries({...i,type:(i==null?void 0:i.refetchType)??(i==null?void 0:i.type)??"active"},a)))}refetchQueries(i,a={}){const c={...a,cancelRefetch:a.cancelRefetch??!0},d=Yt.batch(()=>D(this,Rt).findAll(i).filter(p=>!p.isDisabled()&&!p.isStatic()).map(p=>{let v=p.fetch(void 0,c);return c.throwOnError||(v=v.catch(gn)),p.state.fetchStatus==="paused"?Promise.resolve():v}));return Promise.all(d).then(gn)}fetchQuery(i){const a=this.defaultQueryOptions(i);a.retry===void 0&&(a.retry=!1);const c=D(this,Rt).build(this,a);return c.isStaleByTime(To(a.staleTime,c))?c.fetch(a):Promise.resolve(c.state.data)}prefetchQuery(i){return this.fetchQuery(i).then(gn).catch(gn)}fetchInfiniteQuery(i){return i.behavior=AN(i.pages),this.fetchQuery(i)}prefetchInfiniteQuery(i){return this.fetchInfiniteQuery(i).then(gn).catch(gn)}ensureInfiniteQueryData(i){return i.behavior=AN(i.pages),this.ensureQueryData(i)}resumePausedMutations(){return Fd.isOnline()?D(this,go).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Rt)}getMutationCache(){return D(this,go)}getDefaultOptions(){return D(this,yo)}setDefaultOptions(i){me(this,yo,i)}setQueryDefaults(i,a){D(this,Hl).set(Ea(i),{queryKey:i,defaultOptions:a})}getQueryDefaults(i){const a=[...D(this,Hl).values()],c={};return a.forEach(d=>{Uc(i,d.queryKey)&&Object.assign(c,d.defaultOptions)}),c}setMutationDefaults(i,a){D(this,_l).set(Ea(i),{mutationKey:i,defaultOptions:a})}getMutationDefaults(i){const a=[...D(this,_l).values()],c={};return a.forEach(d=>{Uc(i,d.mutationKey)&&Object.assign(c,d.defaultOptions)}),c}defaultQueryOptions(i){if(i._defaulted)return i;const a={...D(this,yo).queries,...this.getQueryDefaults(i.queryKey),...i,_defaulted:!0};return a.queryHash||(a.queryHash=tb(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===qd&&(a.enabled=!1),a}defaultMutationOptions(i){return i!=null&&i._defaulted?i:{...D(this,yo).mutations,...(i==null?void 0:i.mutationKey)&&this.getMutationDefaults(i.mutationKey),...i,_defaulted:!0}}clear(){D(this,Rt).clear(),D(this,go).clear()}},Rt=new WeakMap,go=new WeakMap,yo=new WeakMap,Hl=new WeakMap,_l=new WeakMap,No=new WeakMap,Bl=new WeakMap,Ll=new WeakMap,l1),Rn,et,Vc,xn,ga,ql,wo,So,Mc,Fl,Yl,ya,Na,Eo,Gl,it,Tc,_h,Bh,Lh,qh,Fh,Yh,Gh,w1,i1,cD=(i1=class extends Ql{constructor(a,c){super();Re(this,it);Re(this,Rn);Re(this,et);Re(this,Vc);Re(this,xn);Re(this,ga);Re(this,ql);Re(this,wo);Re(this,So);Re(this,Mc);Re(this,Fl);Re(this,Yl);Re(this,ya);Re(this,Na);Re(this,Eo);Re(this,Gl,new Set);this.options=c,me(this,Rn,a),me(this,So,null),me(this,wo,Hh()),this.options.experimental_prefetchInRender||D(this,wo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,et).addObserver(this),MN(D(this,et),this.options)?Fe(this,it,Tc).call(this):this.updateResult(),Fe(this,it,qh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $h(D(this,et),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $h(D(this,et),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,it,Fh).call(this),Fe(this,it,Yh).call(this),D(this,et).removeObserver(this)}setOptions(a){const c=this.options,d=D(this,et);if(this.options=D(this,Rn).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Es(this.options.enabled,D(this,et))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,it,Gh).call(this),D(this,et).setOptions(this.options),c._defaulted&&!Ld(this.options,c)&&D(this,Rn).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,et),observer:this});const p=this.hasListeners();p&&ON(D(this,et),d,this.options,c)&&Fe(this,it,Tc).call(this),this.updateResult(),p&&(D(this,et)!==d||Es(this.options.enabled,D(this,et))!==Es(c.enabled,D(this,et))||To(this.options.staleTime,D(this,et))!==To(c.staleTime,D(this,et)))&&Fe(this,it,_h).call(this);const v=Fe(this,it,Bh).call(this);p&&(D(this,et)!==d||Es(this.options.enabled,D(this,et))!==Es(c.enabled,D(this,et))||v!==D(this,Eo))&&Fe(this,it,Lh).call(this,v)}getOptimisticResult(a){const c=D(this,Rn).getQueryCache().build(D(this,Rn),a),d=this.createResult(c,a);return dD(this,d)&&(me(this,xn,d),me(this,ql,this.options),me(this,ga,D(this,et).state)),d}getCurrentResult(){return D(this,xn)}trackResult(a,c){return new Proxy(a,{get:(d,p)=>(this.trackProp(p),c==null||c(p),Reflect.get(d,p))})}trackProp(a){D(this,Gl).add(a)}getCurrentQuery(){return D(this,et)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const c=D(this,Rn).defaultQueryOptions(a),d=D(this,Rn).getQueryCache().build(D(this,Rn),c);return d.fetch().then(()=>this.createResult(d,c))}fetch(a){return Fe(this,it,Tc).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,xn)))}createResult(a,c){var K;const d=D(this,et),p=this.options,v=D(this,xn),N=D(this,ga),j=D(this,ql),U=a!==d?a.state:D(this,Vc),{state:M}=a;let f={...M},g=!1,A;if(c._optimisticResults){const Se=this.hasListeners(),ae=!Se&&MN(a,c),Q=Se&&ON(a,d,c,p);(ae||Q)&&(f={...f,...y1(M.data,a.options)}),c._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:I,errorUpdatedAt:X,status:k}=f;A=f.data;let $=!1;if(c.placeholderData!==void 0&&A===void 0&&k==="pending"){let Se;v!=null&&v.isPlaceholderData&&c.placeholderData===(j==null?void 0:j.placeholderData)?(Se=v.data,$=!0):Se=typeof c.placeholderData=="function"?c.placeholderData((K=D(this,Yl))==null?void 0:K.state.data,D(this,Yl)):c.placeholderData,Se!==void 0&&(k="success",A=zh(v==null?void 0:v.data,Se,c),g=!0)}if(c.select&&A!==void 0&&!$)if(v&&A===(N==null?void 0:N.data)&&c.select===D(this,Mc))A=D(this,Fl);else try{me(this,Mc,c.select),A=c.select(A),A=zh(v==null?void 0:v.data,A,c),me(this,Fl,A),me(this,So,null)}catch(Se){me(this,So,Se)}D(this,So)&&(I=D(this,So),A=D(this,Fl),X=Date.now(),k="error");const ye=f.fetchStatus==="fetching",se=k==="pending",de=k==="error",ue=se&&ye,we=A!==void 0,W={status:k,fetchStatus:f.fetchStatus,isPending:se,isSuccess:k==="success",isError:de,isInitialLoading:ue,isLoading:ue,data:A,dataUpdatedAt:f.dataUpdatedAt,error:I,errorUpdatedAt:X,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>U.dataUpdateCount||f.errorUpdateCount>U.errorUpdateCount,isFetching:ye,isRefetching:ye&&!se,isLoadingError:de&&!we,isPaused:f.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:de&&we,isStale:sb(a,c),refetch:this.refetch,promise:D(this,wo)};if(this.options.experimental_prefetchInRender){const Se=H=>{W.status==="error"?H.reject(W.error):W.data!==void 0&&H.resolve(W.data)},ae=()=>{const H=me(this,wo,W.promise=Hh());Se(H)},Q=D(this,wo);switch(Q.status){case"pending":a.queryHash===d.queryHash&&Se(Q);break;case"fulfilled":(W.status==="error"||W.data!==Q.value)&&ae();break;case"rejected":(W.status!=="error"||W.error!==Q.reason)&&ae();break}}return W}updateResult(){const a=D(this,xn),c=this.createResult(D(this,et),this.options);if(me(this,ga,D(this,et).state),me(this,ql,this.options),D(this,ga).data!==void 0&&me(this,Yl,D(this,et)),Ld(c,a))return;me(this,xn,c);const d=()=>{if(!a)return!0;const{notifyOnChangeProps:p}=this.options,v=typeof p=="function"?p():p;if(v==="all"||!v&&!D(this,Gl).size)return!0;const N=new Set(v??D(this,Gl));return this.options.throwOnError&&N.add("error"),Object.keys(D(this,xn)).some(j=>{const y=j;return D(this,xn)[y]!==a[y]&&N.has(y)})};Fe(this,it,w1).call(this,{listeners:d()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,it,qh).call(this)}},Rn=new WeakMap,et=new WeakMap,Vc=new WeakMap,xn=new WeakMap,ga=new WeakMap,ql=new WeakMap,wo=new WeakMap,So=new WeakMap,Mc=new WeakMap,Fl=new WeakMap,Yl=new WeakMap,ya=new WeakMap,Na=new WeakMap,Eo=new WeakMap,Gl=new WeakMap,it=new WeakSet,Tc=function(a){Fe(this,it,Gh).call(this);let c=D(this,et).fetch(this.options,a);return a!=null&&a.throwOnError||(c=c.catch(gn)),c},_h=function(){Fe(this,it,Fh).call(this);const a=To(this.options.staleTime,D(this,et));if(Sa||D(this,xn).isStale||!Oh(a))return;const d=f1(D(this,xn).dataUpdatedAt,a)+1;me(this,ya,setTimeout(()=>{D(this,xn).isStale||this.updateResult()},d))},Bh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,et)):this.options.refetchInterval)??!1},Lh=function(a){Fe(this,it,Yh).call(this),me(this,Eo,a),!(Sa||Es(this.options.enabled,D(this,et))===!1||!Oh(D(this,Eo))||D(this,Eo)===0)&&me(this,Na,setInterval(()=>{(this.options.refetchIntervalInBackground||nb.isFocused())&&Fe(this,it,Tc).call(this)},D(this,Eo)))},qh=function(){Fe(this,it,_h).call(this),Fe(this,it,Lh).call(this,Fe(this,it,Bh).call(this))},Fh=function(){D(this,ya)&&(clearTimeout(D(this,ya)),me(this,ya,void 0))},Yh=function(){D(this,Na)&&(clearInterval(D(this,Na)),me(this,Na,void 0))},Gh=function(){const a=D(this,Rn).getQueryCache().build(D(this,Rn),this.options);if(a===D(this,et))return;const c=D(this,et);me(this,et,a),me(this,Vc,a.state),this.hasListeners()&&(c==null||c.removeObserver(this),a.addObserver(this))},w1=function(a){Yt.batch(()=>{a.listeners&&this.listeners.forEach(c=>{c(D(this,xn))}),D(this,Rn).getQueryCache().notify({query:D(this,et),type:"observerResultsUpdated"})})},i1);function uD(i,a){return Es(a.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&a.retryOnMount===!1)}function MN(i,a){return uD(i,a)||i.state.data!==void 0&&$h(i,a,a.refetchOnMount)}function $h(i,a,c){if(Es(a.enabled,i)!==!1&&To(a.staleTime,i)!=="static"){const d=typeof c=="function"?c(i):c;return d==="always"||d!==!1&&sb(i,a)}return!1}function ON(i,a,c,d){return(i!==a||Es(d.enabled,i)===!1)&&(!c.suspense||i.state.status!=="error")&&sb(i,c)}function sb(i,a){return Es(a.enabled,i)!==!1&&i.isStaleByTime(To(a.staleTime,i))}function dD(i,a){return!Ld(i.getCurrentResult(),a)}var jo,Do,An,Rr,Or,zd,Qh,c1,mD=(c1=class extends Ql{constructor(c,d){super();Re(this,Or);Re(this,jo);Re(this,Do);Re(this,An);Re(this,Rr);me(this,jo,c),this.setOptions(d),this.bindMethods(),Fe(this,Or,zd).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(c){var p;const d=this.options;this.options=D(this,jo).defaultMutationOptions(c),Ld(this.options,d)||D(this,jo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,An),observer:this}),d!=null&&d.mutationKey&&this.options.mutationKey&&Ea(d.mutationKey)!==Ea(this.options.mutationKey)?this.reset():((p=D(this,An))==null?void 0:p.state.status)==="pending"&&D(this,An).setOptions(this.options)}onUnsubscribe(){var c;this.hasListeners()||(c=D(this,An))==null||c.removeObserver(this)}onMutationUpdate(c){Fe(this,Or,zd).call(this),Fe(this,Or,Qh).call(this,c)}getCurrentResult(){return D(this,Do)}reset(){var c;(c=D(this,An))==null||c.removeObserver(this),me(this,An,void 0),Fe(this,Or,zd).call(this),Fe(this,Or,Qh).call(this)}mutate(c,d){var p;return me(this,Rr,d),(p=D(this,An))==null||p.removeObserver(this),me(this,An,D(this,jo).getMutationCache().build(D(this,jo),this.options)),D(this,An).addObserver(this),D(this,An).execute(c)}},jo=new WeakMap,Do=new WeakMap,An=new WeakMap,Rr=new WeakMap,Or=new WeakSet,zd=function(){var d;const c=((d=D(this,An))==null?void 0:d.state)??N1();me(this,Do,{...c,isPending:c.status==="pending",isSuccess:c.status==="success",isError:c.status==="error",isIdle:c.status==="idle",mutate:this.mutate,reset:this.reset})},Qh=function(c){Yt.batch(()=>{var d,p,v,N,j,y,U,M;if(D(this,Rr)&&this.hasListeners()){const f=D(this,Do).variables,g=D(this,Do).context;(c==null?void 0:c.type)==="success"?((p=(d=D(this,Rr)).onSuccess)==null||p.call(d,c.data,f,g),(N=(v=D(this,Rr)).onSettled)==null||N.call(v,c.data,null,f,g)):(c==null?void 0:c.type)==="error"&&((y=(j=D(this,Rr)).onError)==null||y.call(j,c.error,f,g),(M=(U=D(this,Rr)).onSettled)==null||M.call(U,void 0,c.error,f,g))}this.listeners.forEach(f=>{f(D(this,Do))})})},c1),Rh={exports:{}},Sc={},PN;function fD(){if(PN)return Sc;PN=1;/**
|
|
272
|
+
* @license React
|
|
273
|
+
* react-jsx-runtime.development.js
|
|
274
|
+
*
|
|
275
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the MIT license found in the
|
|
278
|
+
* LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/return function(){function i(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===Se?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case X:return"Fragment";case $:return"Profiler";case k:return"StrictMode";case ue:return"Suspense";case we:return"SuspenseList";case K:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case I:return"Portal";case se:return(w.displayName||"Context")+".Provider";case ye:return(w._context.displayName||"Context")+".Consumer";case de:var q=w.render;return w=w.displayName,w||(w=q.displayName||q.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case Ue:return q=w.displayName||null,q!==null?q:i(w.type)||"Memo";case W:q=w._payload,w=w._init;try{return i(w(q))}catch{}}return null}function a(w){return""+w}function c(w){try{a(w);var q=!1}catch{q=!0}if(q){q=console;var Z=q.error,ne=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return Z.call(q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),a(w)}}function d(w){if(w===X)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===W)return"<...>";try{var q=i(w);return q?"<"+q+">":"<...>"}catch{return"<...>"}}function p(){var w=ae.A;return w===null?null:w.getOwner()}function v(){return Error("react-stack-top-frame")}function N(w){if(Q.call(w,"key")){var q=Object.getOwnPropertyDescriptor(w,"key").get;if(q&&q.isReactWarning)return!1}return w.key!==void 0}function j(w,q){function Z(){pe||(pe=!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)",q))}Z.isReactWarning=!0,Object.defineProperty(w,"key",{get:Z,configurable:!0})}function y(){var w=i(this.type);return z[w]||(z[w]=!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.")),w=this.props.ref,w!==void 0?w:null}function U(w,q,Z,ne,Ee,ze,he,Ge){return Z=ze.ref,w={$$typeof:A,type:w,key:q,props:ze,_owner:Ee},(Z!==void 0?Z:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:y}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ge}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function M(w,q,Z,ne,Ee,ze,he,Ge){var Ce=q.children;if(Ce!==void 0)if(ne)if(H(Ce)){for(ne=0;ne<Ce.length;ne++)f(Ce[ne]);Object.freeze&&Object.freeze(Ce)}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 f(Ce);if(Q.call(q,"key")){Ce=i(w);var Ie=Object.keys(q).filter(function(Tt){return Tt!=="key"});ne=0<Ie.length?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}",J[Ce+ne]||(Ie=0<Ie.length?"{"+Ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
280
|
+
let props = %s;
|
|
281
|
+
<%s {...props} />
|
|
282
|
+
React keys must be passed directly to JSX without using spread:
|
|
283
|
+
let props = %s;
|
|
284
|
+
<%s key={someKey} {...props} />`,ne,Ce,Ie,Ce),J[Ce+ne]=!0)}if(Ce=null,Z!==void 0&&(c(Z),Ce=""+Z),N(q)&&(c(q.key),Ce=""+q.key),"key"in q){Z={};for(var Ve in q)Ve!=="key"&&(Z[Ve]=q[Ve])}else Z=q;return Ce&&j(Z,typeof w=="function"?w.displayName||w.name||"Unknown":w),U(w,Ce,ze,Ee,p(),Z,he,Ge)}function f(w){typeof w=="object"&&w!==null&&w.$$typeof===A&&w._store&&(w._store.validated=1)}var g=Oc(),A=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),ye=Symbol.for("react.consumer"),se=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Se=Symbol.for("react.client.reference"),ae=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,H=Array.isArray,fe=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(w){return w()}};var pe,z={},C=g["react-stack-bottom-frame"].bind(g,v)(),V=fe(d(v)),J={};Sc.Fragment=X,Sc.jsx=function(w,q,Z,ne,Ee){var ze=1e4>ae.recentlyCreatedOwnerStacks++;return M(w,q,Z,!1,ne,Ee,ze?Error("react-stack-top-frame"):C,ze?fe(d(w)):V)},Sc.jsxs=function(w,q,Z,ne,Ee){var ze=1e4>ae.recentlyCreatedOwnerStacks++;return M(w,q,Z,!0,ne,Ee,ze?Error("react-stack-top-frame"):C,ze?fe(d(w)):V)}}(),Sc}var kN;function pD(){return kN||(kN=1,Rh.exports=fD()),Rh.exports}var Dt=pD(),S1=G.createContext(void 0),Il=i=>{const a=G.useContext(S1);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},zN=({client:i,children:a})=>(G.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),Dt.jsx(S1.Provider,{value:i,children:a})),E1=G.createContext(!1),hD=()=>G.useContext(E1);E1.Provider;function bD(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var vD=G.createContext(bD()),xD=()=>G.useContext(vD),gD=(i,a)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(a.isReset()||(i.retryOnMount=!1))},yD=i=>{G.useEffect(()=>{i.clearReset()},[i])},ND=({result:i,errorResetBoundary:a,throwOnError:c,query:d,suspense:p})=>i.isError&&!a.isReset()&&!i.isFetching&&d&&(p&&i.data===void 0||h1(c,[i.error,d])),wD=i=>{if(i.suspense){const a=d=>d==="static"?d:Math.max(d??1e3,1e3),c=i.staleTime;i.staleTime=typeof c=="function"?(...d)=>a(c(...d)):a(c),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3))}},SD=(i,a)=>i.isLoading&&i.isFetching&&!a,ED=(i,a)=>(i==null?void 0:i.suspense)&&a.isPending,HN=(i,a,c)=>a.fetchOptimistic(i).catch(()=>{c.clearReset()});function jD(i,a,c){var f,g,A,I,X;if(typeof i!="object"||Array.isArray(i))throw new 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');const d=hD(),p=xD(),v=Il(),N=v.defaultQueryOptions(i);(g=(f=v.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||g.call(f,N),N.queryFn||console.error(`[${N.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`),N._optimisticResults=d?"isRestoring":"optimistic",wD(N),gD(N,p),yD(p);const j=!v.getQueryCache().get(N.queryHash),[y]=G.useState(()=>new a(v,N)),U=y.getOptimisticResult(N),M=!d&&i.subscribed!==!1;if(G.useSyncExternalStore(G.useCallback(k=>{const $=M?y.subscribe(Yt.batchCalls(k)):gn;return y.updateResult(),$},[y,M]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),G.useEffect(()=>{y.setOptions(N)},[N,y]),ED(N,U))throw HN(N,y,p);if(ND({result:U,errorResetBoundary:p,throwOnError:N.throwOnError,query:v.getQueryCache().get(N.queryHash),suspense:N.suspense}))throw U.error;if((I=(A=v.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||I.call(A,N,U),N.experimental_prefetchInRender&&!Sa&&SD(U,d)){const k=j?HN(N,y,p):(X=v.getQueryCache().get(N.queryHash))==null?void 0:X.promise;k==null||k.catch(gn).finally(()=>{y.updateResult()})}return N.notifyOnChangeProps?U:y.trackResult(U)}function Ws(i,a){return jD(i,cD)}function fa(i,a){const c=Il(),[d]=G.useState(()=>new mD(c,i));G.useEffect(()=>{d.setOptions(i)},[d,i]);const p=G.useSyncExternalStore(G.useCallback(N=>d.subscribe(Yt.batchCalls(N)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),v=G.useCallback((N,j)=>{d.mutate(N,j).catch(gn)},[d]);if(p.error&&h1(d.options.throwOnError,[p.error]))throw p.error;return{...p,mutate:v,mutateAsync:p.mutate}}function j1(i){var a,c,d="";if(typeof i=="string"||typeof i=="number")d+=i;else if(typeof i=="object")if(Array.isArray(i)){var p=i.length;for(a=0;a<p;a++)i[a]&&(c=j1(i[a]))&&(d&&(d+=" "),d+=c)}else for(c in i)i[c]&&(d&&(d+=" "),d+=c);return d}function D1(){for(var i,a,c=0,d="",p=arguments.length;c<p;c++)(i=arguments[c])&&(a=j1(i))&&(d&&(d+=" "),d+=a);return d}const rb="-",DD=i=>{const a=UD(i),{conflictingClassGroups:c,conflictingClassGroupModifiers:d}=i;return{getClassGroupId:N=>{const j=N.split(rb);return j[0]===""&&j.length!==1&&j.shift(),T1(j,a)||TD(N)},getConflictingClassGroupIds:(N,j)=>{const y=c[N]||[];return j&&d[N]?[...y,...d[N]]:y}}},T1=(i,a)=>{var N;if(i.length===0)return a.classGroupId;const c=i[0],d=a.nextPart.get(c),p=d?T1(i.slice(1),d):void 0;if(p)return p;if(a.validators.length===0)return;const v=i.join(rb);return(N=a.validators.find(({validator:j})=>j(v)))==null?void 0:N.classGroupId},_N=/^\[(.+)\]$/,TD=i=>{if(_N.test(i)){const a=_N.exec(i)[1],c=a==null?void 0:a.substring(0,a.indexOf(":"));if(c)return"arbitrary.."+c}},UD=i=>{const{theme:a,classGroups:c}=i,d={nextPart:new Map,validators:[]};for(const p in c)Ih(c[p],d,p,a);return d},Ih=(i,a,c,d)=>{i.forEach(p=>{if(typeof p=="string"){const v=p===""?a:BN(a,p);v.classGroupId=c;return}if(typeof p=="function"){if(CD(p)){Ih(p(d),a,c,d);return}a.validators.push({validator:p,classGroupId:c});return}Object.entries(p).forEach(([v,N])=>{Ih(N,BN(a,v),c,d)})})},BN=(i,a)=>{let c=i;return a.split(rb).forEach(d=>{c.nextPart.has(d)||c.nextPart.set(d,{nextPart:new Map,validators:[]}),c=c.nextPart.get(d)}),c},CD=i=>i.isThemeGetter,RD=i=>{if(i<1)return{get:()=>{},set:()=>{}};let a=0,c=new Map,d=new Map;const p=(v,N)=>{c.set(v,N),a++,a>i&&(a=0,d=c,c=new Map)};return{get(v){let N=c.get(v);if(N!==void 0)return N;if((N=d.get(v))!==void 0)return p(v,N),N},set(v,N){c.has(v)?c.set(v,N):p(v,N)}}},Xh="!",Zh=":",AD=Zh.length,VD=i=>{const{prefix:a,experimentalParseClassName:c}=i;let d=p=>{const v=[];let N=0,j=0,y=0,U;for(let I=0;I<p.length;I++){let X=p[I];if(N===0&&j===0){if(X===Zh){v.push(p.slice(y,I)),y=I+AD;continue}if(X==="/"){U=I;continue}}X==="["?N++:X==="]"?N--:X==="("?j++:X===")"&&j--}const M=v.length===0?p:p.substring(y),f=MD(M),g=f!==M,A=U&&U>y?U-y:void 0;return{modifiers:v,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:A}};if(a){const p=a+Zh,v=d;d=N=>N.startsWith(p)?v(N.substring(p.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:N,maybePostfixModifierPosition:void 0}}if(c){const p=d;d=v=>c({className:v,parseClassName:p})}return d},MD=i=>i.endsWith(Xh)?i.substring(0,i.length-1):i.startsWith(Xh)?i.substring(1):i,OD=i=>{const a=Object.fromEntries(i.orderSensitiveModifiers.map(d=>[d,!0]));return d=>{if(d.length<=1)return d;const p=[];let v=[];return d.forEach(N=>{N[0]==="["||a[N]?(p.push(...v.sort(),N),v=[]):v.push(N)}),p.push(...v.sort()),p}},PD=i=>({cache:RD(i.cacheSize),parseClassName:VD(i),sortModifiers:OD(i),...DD(i)}),kD=/\s+/,zD=(i,a)=>{const{parseClassName:c,getClassGroupId:d,getConflictingClassGroupIds:p,sortModifiers:v}=a,N=[],j=i.trim().split(kD);let y="";for(let U=j.length-1;U>=0;U-=1){const M=j[U],{isExternal:f,modifiers:g,hasImportantModifier:A,baseClassName:I,maybePostfixModifierPosition:X}=c(M);if(f){y=M+(y.length>0?" "+y:y);continue}let k=!!X,$=d(k?I.substring(0,X):I);if(!$){if(!k){y=M+(y.length>0?" "+y:y);continue}if($=d(I),!$){y=M+(y.length>0?" "+y:y);continue}k=!1}const ye=v(g).join(":"),se=A?ye+Xh:ye,de=se+$;if(N.includes(de))continue;N.push(de);const ue=p($,k);for(let we=0;we<ue.length;++we){const Ue=ue[we];N.push(se+Ue)}y=M+(y.length>0?" "+y:y)}return y};function HD(){let i=0,a,c,d="";for(;i<arguments.length;)(a=arguments[i++])&&(c=U1(a))&&(d&&(d+=" "),d+=c);return d}const U1=i=>{if(typeof i=="string")return i;let a,c="";for(let d=0;d<i.length;d++)i[d]&&(a=U1(i[d]))&&(c&&(c+=" "),c+=a);return c};function _D(i,...a){let c,d,p,v=N;function N(y){const U=a.reduce((M,f)=>f(M),i());return c=PD(U),d=c.cache.get,p=c.cache.set,v=j,j(y)}function j(y){const U=d(y);if(U)return U;const M=zD(y,c);return p(y,M),M}return function(){return v(HD.apply(null,arguments))}}const Ft=i=>{const a=c=>c[i]||[];return a.isThemeGetter=!0,a},C1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BD=/^\d+\/\d+$/,LD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,FD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,YD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dl=i=>BD.test(i),Qe=i=>!!i&&!Number.isNaN(Number(i)),ho=i=>!!i&&Number.isInteger(Number(i)),Ah=i=>i.endsWith("%")&&Qe(i.slice(0,-1)),Tr=i=>LD.test(i),$D=()=>!0,QD=i=>qD.test(i)&&!FD.test(i),A1=()=>!1,ID=i=>YD.test(i),XD=i=>GD.test(i),ZD=i=>!xe(i)&&!ge(i),KD=i=>Xl(i,O1,A1),xe=i=>C1.test(i),ma=i=>Xl(i,P1,QD),Vh=i=>Xl(i,nT,Qe),LN=i=>Xl(i,V1,A1),JD=i=>Xl(i,M1,XD),Vd=i=>Xl(i,k1,ID),ge=i=>R1.test(i),Ec=i=>Zl(i,P1),WD=i=>Zl(i,sT),qN=i=>Zl(i,V1),eT=i=>Zl(i,O1),tT=i=>Zl(i,M1),Md=i=>Zl(i,k1,!0),Xl=(i,a,c)=>{const d=C1.exec(i);return d?d[1]?a(d[1]):c(d[2]):!1},Zl=(i,a,c=!1)=>{const d=R1.exec(i);return d?d[1]?a(d[1]):c:!1},V1=i=>i==="position"||i==="percentage",M1=i=>i==="image"||i==="url",O1=i=>i==="length"||i==="size"||i==="bg-size",P1=i=>i==="length",nT=i=>i==="number",sT=i=>i==="family-name",k1=i=>i==="shadow",rT=()=>{const i=Ft("color"),a=Ft("font"),c=Ft("text"),d=Ft("font-weight"),p=Ft("tracking"),v=Ft("leading"),N=Ft("breakpoint"),j=Ft("container"),y=Ft("spacing"),U=Ft("radius"),M=Ft("shadow"),f=Ft("inset-shadow"),g=Ft("text-shadow"),A=Ft("drop-shadow"),I=Ft("blur"),X=Ft("perspective"),k=Ft("aspect"),$=Ft("ease"),ye=Ft("animate"),se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ue=()=>[...de(),ge,xe],we=()=>["auto","hidden","clip","visible","scroll"],Ue=()=>["auto","contain","none"],W=()=>[ge,xe,y],K=()=>[Dl,"full","auto",...W()],Se=()=>[ho,"none","subgrid",ge,xe],ae=()=>["auto",{span:["full",ho,ge,xe]},ho,ge,xe],Q=()=>[ho,"auto",ge,xe],H=()=>["auto","min","max","fr",ge,xe],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...W()],C=()=>[Dl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...W()],V=()=>[i,ge,xe],J=()=>[...de(),qN,LN,{position:[ge,xe]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",eT,KD,{size:[ge,xe]}],Z=()=>[Ah,Ec,ma],ne=()=>["","none","full",U,ge,xe],Ee=()=>["",Qe,Ec,ma],ze=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ge=()=>[Qe,Ah,qN,LN],Ce=()=>["","none",I,ge,xe],Ie=()=>["none",Qe,ge,xe],Ve=()=>["none",Qe,ge,xe],Tt=()=>[Qe,ge,xe],Nt=()=>[Dl,"full",...W()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tr],breakpoint:[Tr],color:[$D],container:[Tr],"drop-shadow":[Tr],ease:["in","out","in-out"],font:[ZD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tr],shadow:[Tr],spacing:["px",Qe],text:[Tr],"text-shadow":[Tr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dl,xe,ge,k]}],container:["container"],columns:[{columns:[Qe,xe,ge,j]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ue()}],overflow:[{overflow:we()}],"overflow-x":[{"overflow-x":we()}],"overflow-y":[{"overflow-y":we()}],overscroll:[{overscroll:Ue()}],"overscroll-x":[{"overscroll-x":Ue()}],"overscroll-y":[{"overscroll-y":Ue()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{start:K()}],end:[{end:K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[ho,"auto",ge,xe]}],basis:[{basis:[Dl,"full","auto",j,...W()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,Dl,"auto","initial","none",xe]}],grow:[{grow:["",Qe,ge,xe]}],shrink:[{shrink:["",Qe,ge,xe]}],order:[{order:[ho,"first","last","none",ge,xe]}],"grid-cols":[{"grid-cols":Se()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":Se()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:W()}],"gap-x":[{"gap-x":W()}],"gap-y":[{"gap-y":W()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:W()}],px:[{px:W()}],py:[{py:W()}],ps:[{ps:W()}],pe:[{pe:W()}],pt:[{pt:W()}],pr:[{pr:W()}],pb:[{pb:W()}],pl:[{pl:W()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":W()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":W()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[j,"screen",...C()]}],"min-w":[{"min-w":[j,"screen","none",...C()]}],"max-w":[{"max-w":[j,"screen","none","prose",{screen:[N]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",c,Ec,ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[d,ge,Vh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ah,xe]}],"font-family":[{font:[WD,xe,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[p,ge,xe]}],"line-clamp":[{"line-clamp":[Qe,"none",ge,Vh]}],leading:[{leading:[v,...W()]}],"list-image":[{"list-image":["none",ge,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",ge,ma]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Qe,"auto",ge,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ho,ge,xe],radial:["",ge,xe],conic:[ho,ge,xe]},tT,JD]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:Ee()}],"border-w-x":[{"border-x":Ee()}],"border-w-y":[{"border-y":Ee()}],"border-w-s":[{"border-s":Ee()}],"border-w-e":[{"border-e":Ee()}],"border-w-t":[{"border-t":Ee()}],"border-w-r":[{"border-r":Ee()}],"border-w-b":[{"border-b":Ee()}],"border-w-l":[{"border-l":Ee()}],"divide-x":[{"divide-x":Ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ze(),"hidden","none"]}],"divide-style":[{divide:[...ze(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...ze(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,ge,xe]}],"outline-w":[{outline:["",Qe,Ec,ma]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",M,Md,Vd]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",f,Md,Vd]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Qe,ma]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":Ee()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",g,Md,Vd]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Qe,ge,xe]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ge()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":Ge()}],"mask-image-t-to-pos":[{"mask-t-to":Ge()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":Ge()}],"mask-image-r-to-pos":[{"mask-r-to":Ge()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":Ge()}],"mask-image-b-to-pos":[{"mask-b-to":Ge()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":Ge()}],"mask-image-l-to-pos":[{"mask-l-to":Ge()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":Ge()}],"mask-image-x-to-pos":[{"mask-x-to":Ge()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":Ge()}],"mask-image-y-to-pos":[{"mask-y-to":Ge()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[ge,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ge()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":de()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ge()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,xe]}],filter:[{filter:["","none",ge,xe]}],blur:[{blur:Ce()}],brightness:[{brightness:[Qe,ge,xe]}],contrast:[{contrast:[Qe,ge,xe]}],"drop-shadow":[{"drop-shadow":["","none",A,Md,Vd]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Qe,ge,xe]}],"hue-rotate":[{"hue-rotate":[Qe,ge,xe]}],invert:[{invert:["",Qe,ge,xe]}],saturate:[{saturate:[Qe,ge,xe]}],sepia:[{sepia:["",Qe,ge,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,xe]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,ge,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,ge,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,ge,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,ge,xe]}],"backdrop-invert":[{"backdrop-invert":["",Qe,ge,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,ge,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,ge,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,ge,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":W()}],"border-spacing-x":[{"border-spacing-x":W()}],"border-spacing-y":[{"border-spacing-y":W()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",ge,xe]}],ease:[{ease:["linear","initial",$,ge,xe]}],delay:[{delay:[Qe,ge,xe]}],animate:[{animate:["none",ye,ge,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[X,ge,xe]}],"perspective-origin":[{"perspective-origin":ue()}],rotate:[{rotate:Ie()}],"rotate-x":[{"rotate-x":Ie()}],"rotate-y":[{"rotate-y":Ie()}],"rotate-z":[{"rotate-z":Ie()}],scale:[{scale:Ve()}],"scale-x":[{"scale-x":Ve()}],"scale-y":[{"scale-y":Ve()}],"scale-z":[{"scale-z":Ve()}],"scale-3d":["scale-3d"],skew:[{skew:Tt()}],"skew-x":[{"skew-x":Tt()}],"skew-y":[{"skew-y":Tt()}],transform:[{transform:[ge,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ue()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Nt()}],"translate-x":[{"translate-x":Nt()}],"translate-y":[{"translate-y":Nt()}],"translate-z":[{"translate-z":Nt()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,xe]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Qe,Ec,ma,Vh]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},oT=_D(rT);function Mn(...i){return oT(D1(i))}function nt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card",className:Mn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:7,columnNumber:5},this)}function gt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-header",className:Mn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:20,columnNumber:5},this)}function yt({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-title",className:Mn("leading-none font-semibold",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:33,columnNumber:5},this)}function at({className:i,...a}){return l.jsxDEV("div",{"data-slot":"card-content",className:Mn("px-6",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/card.tsx",lineNumber:66,columnNumber:5},this)}function FN(i,a){if(typeof i=="function")return i(a);i!=null&&(i.current=a)}function z1(...i){return a=>{let c=!1;const d=i.map(p=>{const v=FN(p,a);return!c&&typeof v=="function"&&(c=!0),v});if(c)return()=>{for(let p=0;p<d.length;p++){const v=d[p];typeof v=="function"?v():FN(i[p],null)}}}}function Yd(...i){return G.useCallback(z1(...i),i)}function Gd(i){const a=aT(i),c=G.forwardRef((d,p)=>{const{children:v,...N}=d,j=G.Children.toArray(v),y=j.find(iT);if(y){const U=y.props.children,M=j.map(f=>f===y?G.Children.count(U)>1?G.Children.only(null):G.isValidElement(U)?U.props.children:null:f);return Dt.jsx(a,{...N,ref:p,children:G.isValidElement(U)?G.cloneElement(U,void 0,M):null})}return Dt.jsx(a,{...N,ref:p,children:v})});return c.displayName=`${i}.Slot`,c}var H1=Gd("Slot");function aT(i){const a=G.forwardRef((c,d)=>{const{children:p,...v}=c;if(G.isValidElement(p)){const N=uT(p),j=cT(v,p.props);return p.type!==G.Fragment&&(j.ref=d?z1(d,N):N),G.cloneElement(p,j)}return G.Children.count(p)>1?G.Children.only(null):null});return a.displayName=`${i}.SlotClone`,a}var lT=Symbol("radix.slottable");function iT(i){return G.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===lT}function cT(i,a){const c={...a};for(const d in a){const p=i[d],v=a[d];/^on[A-Z]/.test(d)?p&&v?c[d]=(...j)=>{const y=v(...j);return p(...j),y}:p&&(c[d]=p):d==="style"?c[d]={...p,...v}:d==="className"&&(c[d]=[p,v].filter(Boolean).join(" "))}return{...i,...c}}function uT(i){var d,p;let a=(d=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:d.get,c=a&&"isReactWarning"in a&&a.isReactWarning;return c?i.ref:(a=(p=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:p.get,c=a&&"isReactWarning"in a&&a.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}const YN=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,GN=D1,ob=(i,a)=>c=>{var d;if((a==null?void 0:a.variants)==null)return GN(i,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:p,defaultVariants:v}=a,N=Object.keys(p).map(U=>{const M=c==null?void 0:c[U],f=v==null?void 0:v[U];if(M===null)return null;const g=YN(M)||YN(f);return p[U][g]}),j=c&&Object.entries(c).reduce((U,M)=>{let[f,g]=M;return g===void 0||(U[f]=g),U},{}),y=a==null||(d=a.compoundVariants)===null||d===void 0?void 0:d.reduce((U,M)=>{let{class:f,className:g,...A}=M;return Object.entries(A).every(I=>{let[X,k]=I;return Array.isArray(k)?k.includes({...v,...j}[X]):{...v,...j}[X]===k})?[...U,f,g]:U},[]);return GN(i,N,y,c==null?void 0:c.class,c==null?void 0:c.className)},dT=ob("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Te({className:i,variant:a,size:c,asChild:d=!1,...p}){const v=d?H1:"button";return l.jsxDEV(v,{"data-slot":"button",className:Mn(dT({variant:a,size:c,className:i})),...p},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/button.tsx",lineNumber:51,columnNumber:5},this)}const mT=ob("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function vt({className:i,variant:a,asChild:c=!1,...d}){const p=c?H1:"span";return l.jsxDEV(p,{"data-slot":"badge",className:Mn(mT({variant:a}),i),...d},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}/**
|
|
285
|
+
* @license lucide-react v0.513.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const fT=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pT=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,c,d)=>d?d.toUpperCase():c.toLowerCase()),$N=i=>{const a=pT(i);return a.charAt(0).toUpperCase()+a.slice(1)},_1=(...i)=>i.filter((a,c,d)=>!!a&&a.trim()!==""&&d.indexOf(a)===c).join(" ").trim(),hT=i=>{for(const a in i)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
290
|
+
* @license lucide-react v0.513.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/var bT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
295
|
+
* @license lucide-react v0.513.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const vT=G.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:p="",children:v,iconNode:N,...j},y)=>G.createElement("svg",{ref:y,...bT,width:a,height:a,stroke:i,strokeWidth:d?Number(c)*24/Number(a):c,className:_1("lucide",p),...!v&&!hT(j)&&{"aria-hidden":"true"},...j},[...N.map(([U,M])=>G.createElement(U,M)),...Array.isArray(v)?v:[v]]));/**
|
|
300
|
+
* @license lucide-react v0.513.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const Ye=(i,a)=>{const c=G.forwardRef(({className:d,...p},v)=>G.createElement(vT,{ref:v,iconNode:a,className:_1(`lucide-${fT($N(i))}`,`lucide-${i}`,d),...p}));return c.displayName=$N(i),c};/**
|
|
305
|
+
* @license lucide-react v0.513.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const xT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Od=Ye("arrow-right",xT);/**
|
|
310
|
+
* @license lucide-react v0.513.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const gT=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],yT=Ye("book-open",gT);/**
|
|
315
|
+
* @license lucide-react v0.513.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const NT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],B1=Ye("chevron-down",NT);/**
|
|
320
|
+
* @license lucide-react v0.513.0 - ISC
|
|
321
|
+
*
|
|
322
|
+
* This source code is licensed under the ISC license.
|
|
323
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
+
*/const wT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],L1=Ye("chevron-right",wT);/**
|
|
325
|
+
* @license lucide-react v0.513.0 - ISC
|
|
326
|
+
*
|
|
327
|
+
* This source code is licensed under the ISC license.
|
|
328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
+
*/const ST=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Hd=Ye("circle-alert",ST);/**
|
|
330
|
+
* @license lucide-react v0.513.0 - ISC
|
|
331
|
+
*
|
|
332
|
+
* This source code is licensed under the ISC license.
|
|
333
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
+
*/const ET=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Js=Ye("circle-check-big",ET);/**
|
|
335
|
+
* @license lucide-react v0.513.0 - ISC
|
|
336
|
+
*
|
|
337
|
+
* This source code is licensed under the ISC license.
|
|
338
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
+
*/const jT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],DT=Ye("circle-check",jT);/**
|
|
340
|
+
* @license lucide-react v0.513.0 - ISC
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the ISC license.
|
|
343
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/const TT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],UT=Ye("circle-help",TT);/**
|
|
345
|
+
* @license lucide-react v0.513.0 - ISC
|
|
346
|
+
*
|
|
347
|
+
* This source code is licensed under the ISC license.
|
|
348
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
+
*/const CT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],q1=Ye("circle",CT);/**
|
|
350
|
+
* @license lucide-react v0.513.0 - ISC
|
|
351
|
+
*
|
|
352
|
+
* This source code is licensed under the ISC license.
|
|
353
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
354
|
+
*/const RT=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],AT=Ye("code",RT);/**
|
|
355
|
+
* @license lucide-react v0.513.0 - ISC
|
|
356
|
+
*
|
|
357
|
+
* This source code is licensed under the ISC license.
|
|
358
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
359
|
+
*/const VT=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],MT=Ye("command",VT);/**
|
|
360
|
+
* @license lucide-react v0.513.0 - ISC
|
|
361
|
+
*
|
|
362
|
+
* This source code is licensed under the ISC license.
|
|
363
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
+
*/const OT=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Cc=Ye("copy",OT);/**
|
|
365
|
+
* @license lucide-react v0.513.0 - ISC
|
|
366
|
+
*
|
|
367
|
+
* This source code is licensed under the ISC license.
|
|
368
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
369
|
+
*/const PT=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],$d=Ye("download",PT);/**
|
|
370
|
+
* @license lucide-react v0.513.0 - ISC
|
|
371
|
+
*
|
|
372
|
+
* This source code is licensed under the ISC license.
|
|
373
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
374
|
+
*/const kT=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],zT=Ye("external-link",kT);/**
|
|
375
|
+
* @license lucide-react v0.513.0 - ISC
|
|
376
|
+
*
|
|
377
|
+
* This source code is licensed under the ISC license.
|
|
378
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
379
|
+
*/const HT=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ul=Ye("eye-off",HT);/**
|
|
380
|
+
* @license lucide-react v0.513.0 - ISC
|
|
381
|
+
*
|
|
382
|
+
* This source code is licensed under the ISC license.
|
|
383
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
384
|
+
*/const _T=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Cl=Ye("eye",_T);/**
|
|
385
|
+
* @license lucide-react v0.513.0 - ISC
|
|
386
|
+
*
|
|
387
|
+
* This source code is licensed under the ISC license.
|
|
388
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
389
|
+
*/const BT=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Al=Ye("file-text",BT);/**
|
|
390
|
+
* @license lucide-react v0.513.0 - ISC
|
|
391
|
+
*
|
|
392
|
+
* This source code is licensed under the ISC license.
|
|
393
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
394
|
+
*/const LT=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Tl=Ye("file",LT);/**
|
|
395
|
+
* @license lucide-react v0.513.0 - ISC
|
|
396
|
+
*
|
|
397
|
+
* This source code is licensed under the ISC license.
|
|
398
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
399
|
+
*/const qT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],_d=Ye("folder-open",qT);/**
|
|
400
|
+
* @license lucide-react v0.513.0 - ISC
|
|
401
|
+
*
|
|
402
|
+
* This source code is licensed under the ISC license.
|
|
403
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
404
|
+
*/const FT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],F1=Ye("folder",FT);/**
|
|
405
|
+
* @license lucide-react v0.513.0 - ISC
|
|
406
|
+
*
|
|
407
|
+
* This source code is licensed under the ISC license.
|
|
408
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
409
|
+
*/const YT=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],GT=Ye("hash",YT);/**
|
|
410
|
+
* @license lucide-react v0.513.0 - ISC
|
|
411
|
+
*
|
|
412
|
+
* This source code is licensed under the ISC license.
|
|
413
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
414
|
+
*/const $T=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Kh=Ye("info",$T);/**
|
|
415
|
+
* @license lucide-react v0.513.0 - ISC
|
|
416
|
+
*
|
|
417
|
+
* This source code is licensed under the ISC license.
|
|
418
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
419
|
+
*/const QT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],jc=Ye("loader-circle",QT);/**
|
|
420
|
+
* @license lucide-react v0.513.0 - ISC
|
|
421
|
+
*
|
|
422
|
+
* This source code is licensed under the ISC license.
|
|
423
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
424
|
+
*/const IT=[["path",{d:"M5 12h14",key:"1ays0h"}]],XT=Ye("minus",IT);/**
|
|
425
|
+
* @license lucide-react v0.513.0 - ISC
|
|
426
|
+
*
|
|
427
|
+
* This source code is licensed under the ISC license.
|
|
428
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
429
|
+
*/const ZT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Jh=Ye("monitor",ZT);/**
|
|
430
|
+
* @license lucide-react v0.513.0 - ISC
|
|
431
|
+
*
|
|
432
|
+
* This source code is licensed under the ISC license.
|
|
433
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
434
|
+
*/const KT=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],JT=Ye("pen-line",KT);/**
|
|
435
|
+
* @license lucide-react v0.513.0 - ISC
|
|
436
|
+
*
|
|
437
|
+
* This source code is licensed under the ISC license.
|
|
438
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
439
|
+
*/const WT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Y1=Ye("play",WT);/**
|
|
440
|
+
* @license lucide-react v0.513.0 - ISC
|
|
441
|
+
*
|
|
442
|
+
* This source code is licensed under the ISC license.
|
|
443
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
444
|
+
*/const eU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Vl=Ye("plus",eU);/**
|
|
445
|
+
* @license lucide-react v0.513.0 - ISC
|
|
446
|
+
*
|
|
447
|
+
* This source code is licensed under the ISC license.
|
|
448
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
449
|
+
*/const tU=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Qd=Ye("refresh-cw",tU);/**
|
|
450
|
+
* @license lucide-react v0.513.0 - ISC
|
|
451
|
+
*
|
|
452
|
+
* This source code is licensed under the ISC license.
|
|
453
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
454
|
+
*/const nU=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],sU=Ye("rotate-ccw",nU);/**
|
|
455
|
+
* @license lucide-react v0.513.0 - ISC
|
|
456
|
+
*
|
|
457
|
+
* This source code is licensed under the ISC license.
|
|
458
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
459
|
+
*/const rU=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],QN=Ye("save",rU);/**
|
|
460
|
+
* @license lucide-react v0.513.0 - ISC
|
|
461
|
+
*
|
|
462
|
+
* This source code is licensed under the ISC license.
|
|
463
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
464
|
+
*/const oU=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],aU=Ye("search",oU);/**
|
|
465
|
+
* @license lucide-react v0.513.0 - ISC
|
|
466
|
+
*
|
|
467
|
+
* This source code is licensed under the ISC license.
|
|
468
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
469
|
+
*/const lU=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$l=Ye("settings",lU);/**
|
|
470
|
+
* @license lucide-react v0.513.0 - ISC
|
|
471
|
+
*
|
|
472
|
+
* This source code is licensed under the ISC license.
|
|
473
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
474
|
+
*/const iU=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],wa=Ye("sparkles",iU);/**
|
|
475
|
+
* @license lucide-react v0.513.0 - ISC
|
|
476
|
+
*
|
|
477
|
+
* This source code is licensed under the ISC license.
|
|
478
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
479
|
+
*/const cU=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],G1=Ye("terminal",cU);/**
|
|
480
|
+
* @license lucide-react v0.513.0 - ISC
|
|
481
|
+
*
|
|
482
|
+
* This source code is licensed under the ISC license.
|
|
483
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
484
|
+
*/const uU=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],dU=Ye("test-tube",uU);/**
|
|
485
|
+
* @license lucide-react v0.513.0 - ISC
|
|
486
|
+
*
|
|
487
|
+
* This source code is licensed under the ISC license.
|
|
488
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
489
|
+
*/const mU=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Bd=Ye("trash-2",mU);/**
|
|
490
|
+
* @license lucide-react v0.513.0 - ISC
|
|
491
|
+
*
|
|
492
|
+
* This source code is licensed under the ISC license.
|
|
493
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
494
|
+
*/const fU=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Id=Ye("triangle-alert",fU);/**
|
|
495
|
+
* @license lucide-react v0.513.0 - ISC
|
|
496
|
+
*
|
|
497
|
+
* This source code is licensed under the ISC license.
|
|
498
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
499
|
+
*/const pU=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$1=Ye("x",pU);/**
|
|
500
|
+
* @license lucide-react v0.513.0 - ISC
|
|
501
|
+
*
|
|
502
|
+
* This source code is licensed under the ISC license.
|
|
503
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
+
*/const hU=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],IN=Ye("zap",hU);var bU=m1();const vU=u1(bU);function xU(i){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css",a.appendChild(c),c.styleSheet?c.styleSheet.cssText=i:c.appendChild(document.createTextNode(i))}const gU=i=>{switch(i){case"success":return wU;case"info":return EU;case"warning":return SU;case"error":return jU;default:return null}},yU=Array(12).fill(0),NU=({visible:i,className:a})=>re.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":i},re.createElement("div",{className:"sonner-spinner"},yU.map((c,d)=>re.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${d}`})))),wU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),SU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),EU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),jU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},re.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),DU=re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},re.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),re.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),TU=()=>{const[i,a]=re.useState(document.hidden);return re.useEffect(()=>{const c=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",c),()=>window.removeEventListener("visibilitychange",c)},[]),i};let Wh=1;class UU{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const c=this.subscribers.indexOf(a);this.subscribers.splice(c,1)}),this.publish=a=>{this.subscribers.forEach(c=>c(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var c;const{message:d,...p}=a,v=typeof(a==null?void 0:a.id)=="number"||((c=a.id)==null?void 0:c.length)>0?a.id:Wh++,N=this.toasts.find(y=>y.id===v),j=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(v)&&this.dismissedToasts.delete(v),N?this.toasts=this.toasts.map(y=>y.id===v?(this.publish({...y,...a,id:v,title:d}),{...y,...a,id:v,dismissible:j,title:d}):y):this.addToast({title:d,...p,dismissible:j,id:v}),v},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(c=>c({id:a,dismiss:!0})))):this.toasts.forEach(c=>{this.subscribers.forEach(d=>d({id:c.id,dismiss:!0}))}),a),this.message=(a,c)=>this.create({...c,message:a}),this.error=(a,c)=>this.create({...c,message:a,type:"error"}),this.success=(a,c)=>this.create({...c,type:"success",message:a}),this.info=(a,c)=>this.create({...c,type:"info",message:a}),this.warning=(a,c)=>this.create({...c,type:"warning",message:a}),this.loading=(a,c)=>this.create({...c,type:"loading",message:a}),this.promise=(a,c)=>{if(!c)return;let d;c.loading!==void 0&&(d=this.create({...c,promise:a,type:"loading",message:c.loading,description:typeof c.description!="function"?c.description:void 0}));const p=Promise.resolve(a instanceof Function?a():a);let v=d!==void 0,N;const j=p.then(async U=>{if(N=["resolve",U],re.isValidElement(U))v=!1,this.create({id:d,type:"default",message:U});else if(RU(U)&&!U.ok){v=!1;const f=typeof c.error=="function"?await c.error(`HTTP error! status: ${U.status}`):c.error,g=typeof c.description=="function"?await c.description(`HTTP error! status: ${U.status}`):c.description,I=typeof f=="object"&&!re.isValidElement(f)?f:{message:f};this.create({id:d,type:"error",description:g,...I})}else if(U instanceof Error){v=!1;const f=typeof c.error=="function"?await c.error(U):c.error,g=typeof c.description=="function"?await c.description(U):c.description,I=typeof f=="object"&&!re.isValidElement(f)?f:{message:f};this.create({id:d,type:"error",description:g,...I})}else if(c.success!==void 0){v=!1;const f=typeof c.success=="function"?await c.success(U):c.success,g=typeof c.description=="function"?await c.description(U):c.description,I=typeof f=="object"&&!re.isValidElement(f)?f:{message:f};this.create({id:d,type:"success",description:g,...I})}}).catch(async U=>{if(N=["reject",U],c.error!==void 0){v=!1;const M=typeof c.error=="function"?await c.error(U):c.error,f=typeof c.description=="function"?await c.description(U):c.description,A=typeof M=="object"&&!re.isValidElement(M)?M:{message:M};this.create({id:d,type:"error",description:f,...A})}}).finally(()=>{v&&(this.dismiss(d),d=void 0),c.finally==null||c.finally.call(c)}),y=()=>new Promise((U,M)=>j.then(()=>N[0]==="reject"?M(N[1]):U(N[1])).catch(M));return typeof d!="string"&&typeof d!="number"?{unwrap:y}:Object.assign(d,{unwrap:y})},this.custom=(a,c)=>{const d=(c==null?void 0:c.id)||Wh++;return this.create({jsx:a(d),id:d,...c}),d},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Vn=new UU,CU=(i,a)=>{const c=(a==null?void 0:a.id)||Wh++;return Vn.addToast({title:i,...a,id:c}),c},RU=i=>i&&typeof i=="object"&&"ok"in i&&typeof i.ok=="boolean"&&"status"in i&&typeof i.status=="number",AU=CU,VU=()=>Vn.toasts,MU=()=>Vn.getActiveToasts(),ot=Object.assign(AU,{success:Vn.success,info:Vn.info,warning:Vn.warning,error:Vn.error,custom:Vn.custom,message:Vn.message,promise:Vn.promise,dismiss:Vn.dismiss,loading:Vn.loading},{getHistory:VU,getToasts:MU});xU("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Pd(i){return i.label!==void 0}const OU=3,PU="24px",kU="16px",XN=4e3,zU=356,HU=14,_U=45,BU=200;function Is(...i){return i.filter(Boolean).join(" ")}function LU(i){const[a,c]=i.split("-"),d=[];return a&&d.push(a),c&&d.push(c),d}const qU=i=>{var a,c,d,p,v,N,j,y,U;const{invert:M,toast:f,unstyled:g,interacting:A,setHeights:I,visibleToasts:X,heights:k,index:$,toasts:ye,expanded:se,removeToast:de,defaultRichColors:ue,closeButton:we,style:Ue,cancelButtonStyle:W,actionButtonStyle:K,className:Se="",descriptionClassName:ae="",duration:Q,position:H,gap:fe,expandByDefault:pe,classNames:z,icons:C,closeButtonAriaLabel:V="Close toast"}=i,[J,w]=re.useState(null),[q,Z]=re.useState(null),[ne,Ee]=re.useState(!1),[ze,he]=re.useState(!1),[Ge,Ce]=re.useState(!1),[Ie,Ve]=re.useState(!1),[Tt,Nt]=re.useState(!1),[tn,Ts]=re.useState(0),[Us,Et]=re.useState(0),ln=re.useRef(f.duration||Q||XN),ms=re.useRef(null),On=re.useRef(null),Be=$===0,er=$+1<=X,kt=f.type,cn=f.dismissible!==!1,ja=f.className||"",Uo=f.descriptionClassName||"",tr=re.useMemo(()=>k.findIndex(ie=>ie.toastId===f.id)||0,[k,f.id]),Co=re.useMemo(()=>{var ie;return(ie=f.closeButton)!=null?ie:we},[f.closeButton,we]),Pr=re.useMemo(()=>f.duration||Q||XN,[f.duration,Q]),nr=re.useRef(0),Pn=re.useRef(0),kr=re.useRef(0),kn=re.useRef(null),[Cs,zn]=H.split("-"),yn=re.useMemo(()=>k.reduce((ie,je,We)=>We>=tr?ie:ie+je.height,0),[k,tr]),fs=TU(),h=f.invert||M,R=kt==="loading";Pn.current=re.useMemo(()=>tr*fe+yn,[tr,yn]),re.useEffect(()=>{ln.current=Pr},[Pr]),re.useEffect(()=>{Ee(!0)},[]),re.useEffect(()=>{const ie=On.current;if(ie){const je=ie.getBoundingClientRect().height;return Et(je),I(We=>[{toastId:f.id,height:je,position:f.position},...We]),()=>I(We=>We.filter(jt=>jt.toastId!==f.id))}},[I,f.id]),re.useLayoutEffect(()=>{if(!ne)return;const ie=On.current,je=ie.style.height;ie.style.height="auto";const We=ie.getBoundingClientRect().height;ie.style.height=je,Et(We),I(jt=>jt.find(At=>At.toastId===f.id)?jt.map(At=>At.toastId===f.id?{...At,height:We}:At):[{toastId:f.id,height:We,position:f.position},...jt])},[ne,f.title,f.description,I,f.id,f.jsx,f.action,f.cancel]);const ee=re.useCallback(()=>{he(!0),Ts(Pn.current),I(ie=>ie.filter(je=>je.toastId!==f.id)),setTimeout(()=>{de(f)},BU)},[f,de,I,Pn]);re.useEffect(()=>{if(f.promise&&kt==="loading"||f.duration===1/0||f.type==="loading")return;let ie;return se||A||fs?(()=>{if(kr.current<nr.current){const jt=new Date().getTime()-nr.current;ln.current=ln.current-jt}kr.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(nr.current=new Date().getTime(),ie=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),ee()},ln.current))})(),()=>clearTimeout(ie)},[se,A,f,kt,fs,ee]),re.useEffect(()=>{f.delete&&(ee(),f.onDismiss==null||f.onDismiss.call(f,f))},[ee,f.delete]);function le(){var ie;if(C!=null&&C.loading){var je;return re.createElement("div",{className:Is(z==null?void 0:z.loader,f==null||(je=f.classNames)==null?void 0:je.loader,"sonner-loader"),"data-visible":kt==="loading"},C.loading)}return re.createElement(NU,{className:Is(z==null?void 0:z.loader,f==null||(ie=f.classNames)==null?void 0:ie.loader),visible:kt==="loading"})}const Ne=f.icon||(C==null?void 0:C[kt])||gU(kt);var He,Oe;return re.createElement("li",{tabIndex:0,ref:On,className:Is(Se,ja,z==null?void 0:z.toast,f==null||(a=f.classNames)==null?void 0:a.toast,z==null?void 0:z.default,z==null?void 0:z[kt],f==null||(c=f.classNames)==null?void 0:c[kt]),"data-sonner-toast":"","data-rich-colors":(He=f.richColors)!=null?He:ue,"data-styled":!(f.jsx||f.unstyled||g),"data-mounted":ne,"data-promise":!!f.promise,"data-swiped":Tt,"data-removed":ze,"data-visible":er,"data-y-position":Cs,"data-x-position":zn,"data-index":$,"data-front":Be,"data-swiping":Ge,"data-dismissible":cn,"data-type":kt,"data-invert":h,"data-swipe-out":Ie,"data-swipe-direction":q,"data-expanded":!!(se||pe&&ne),style:{"--index":$,"--toasts-before":$,"--z-index":ye.length-$,"--offset":`${ze?tn:Pn.current}px`,"--initial-height":pe?"auto":`${Us}px`,...Ue,...f.style},onDragEnd:()=>{Ce(!1),w(null),kn.current=null},onPointerDown:ie=>{R||!cn||(ms.current=new Date,Ts(Pn.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(Ce(!0),kn.current={x:ie.clientX,y:ie.clientY}))},onPointerUp:()=>{var ie,je,We;if(Ie||!cn)return;kn.current=null;const jt=Number(((ie=On.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),zr=Number(((je=On.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),At=new Date().getTime()-((We=ms.current)==null?void 0:We.getTime()),xt=J==="x"?jt:zr,Hr=Math.abs(xt)/At;if(Math.abs(xt)>=_U||Hr>.11){Ts(Pn.current),f.onDismiss==null||f.onDismiss.call(f,f),Z(J==="x"?jt>0?"right":"left":zr>0?"down":"up"),ee(),Ve(!0);return}else{var Nn,Hn;(Nn=On.current)==null||Nn.style.setProperty("--swipe-amount-x","0px"),(Hn=On.current)==null||Hn.style.setProperty("--swipe-amount-y","0px")}Nt(!1),Ce(!1),w(null)},onPointerMove:ie=>{var je,We,jt;if(!kn.current||!cn||((je=window.getSelection())==null?void 0:je.toString().length)>0)return;const At=ie.clientY-kn.current.y,xt=ie.clientX-kn.current.x;var Hr;const Nn=(Hr=i.swipeDirections)!=null?Hr:LU(H);!J&&(Math.abs(xt)>1||Math.abs(At)>1)&&w(Math.abs(xt)>Math.abs(At)?"x":"y");let Hn={x:0,y:0};const Jl=Rs=>1/(1.5+Math.abs(Rs)/20);if(J==="y"){if(Nn.includes("top")||Nn.includes("bottom"))if(Nn.includes("top")&&At<0||Nn.includes("bottom")&&At>0)Hn.y=At;else{const Rs=At*Jl(At);Hn.y=Math.abs(Rs)<Math.abs(At)?Rs:At}}else if(J==="x"&&(Nn.includes("left")||Nn.includes("right")))if(Nn.includes("left")&&xt<0||Nn.includes("right")&&xt>0)Hn.x=xt;else{const Rs=xt*Jl(xt);Hn.x=Math.abs(Rs)<Math.abs(xt)?Rs:xt}(Math.abs(Hn.x)>0||Math.abs(Hn.y)>0)&&Nt(!0),(We=On.current)==null||We.style.setProperty("--swipe-amount-x",`${Hn.x}px`),(jt=On.current)==null||jt.style.setProperty("--swipe-amount-y",`${Hn.y}px`)}},Co&&!f.jsx&&kt!=="loading"?re.createElement("button",{"aria-label":V,"data-disabled":R,"data-close-button":!0,onClick:R||!cn?()=>{}:()=>{ee(),f.onDismiss==null||f.onDismiss.call(f,f)},className:Is(z==null?void 0:z.closeButton,f==null||(d=f.classNames)==null?void 0:d.closeButton)},(Oe=C==null?void 0:C.close)!=null?Oe:DU):null,(kt||f.icon||f.promise)&&f.icon!==null&&((C==null?void 0:C[kt])!==null||f.icon)?re.createElement("div",{"data-icon":"",className:Is(z==null?void 0:z.icon,f==null||(p=f.classNames)==null?void 0:p.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||le():null,f.type!=="loading"?Ne:null):null,re.createElement("div",{"data-content":"",className:Is(z==null?void 0:z.content,f==null||(v=f.classNames)==null?void 0:v.content)},re.createElement("div",{"data-title":"",className:Is(z==null?void 0:z.title,f==null||(N=f.classNames)==null?void 0:N.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?re.createElement("div",{"data-description":"",className:Is(ae,Uo,z==null?void 0:z.description,f==null||(j=f.classNames)==null?void 0:j.description)},typeof f.description=="function"?f.description():f.description):null),re.isValidElement(f.cancel)?f.cancel:f.cancel&&Pd(f.cancel)?re.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||W,onClick:ie=>{Pd(f.cancel)&&cn&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ie),ee())},className:Is(z==null?void 0:z.cancelButton,f==null||(y=f.classNames)==null?void 0:y.cancelButton)},f.cancel.label):null,re.isValidElement(f.action)?f.action:f.action&&Pd(f.action)?re.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||K,onClick:ie=>{Pd(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ie),!ie.defaultPrevented&&ee())},className:Is(z==null?void 0:z.actionButton,f==null||(U=f.classNames)==null?void 0:U.actionButton)},f.action.label):null)};function ZN(){if(typeof window>"u"||typeof document>"u")return"ltr";const i=document.documentElement.getAttribute("dir");return i==="auto"||!i?window.getComputedStyle(document.documentElement).direction:i}function FU(i,a){const c={};return[i,a].forEach((d,p)=>{const v=p===1,N=v?"--mobile-offset":"--offset",j=v?kU:PU;function y(U){["top","right","bottom","left"].forEach(M=>{c[`${N}-${M}`]=typeof U=="number"?`${U}px`:U})}typeof d=="number"||typeof d=="string"?y(d):typeof d=="object"?["top","right","bottom","left"].forEach(U=>{d[U]===void 0?c[`${N}-${U}`]=j:c[`${N}-${U}`]=typeof d[U]=="number"?`${d[U]}px`:d[U]}):y(j)}),c}const YU=re.forwardRef(function(a,c){const{invert:d,position:p="bottom-right",hotkey:v=["altKey","KeyT"],expand:N,closeButton:j,className:y,offset:U,mobileOffset:M,theme:f="light",richColors:g,duration:A,style:I,visibleToasts:X=OU,toastOptions:k,dir:$=ZN(),gap:ye=HU,icons:se,containerAriaLabel:de="Notifications"}=a,[ue,we]=re.useState([]),Ue=re.useMemo(()=>Array.from(new Set([p].concat(ue.filter(q=>q.position).map(q=>q.position)))),[ue,p]),[W,K]=re.useState([]),[Se,ae]=re.useState(!1),[Q,H]=re.useState(!1),[fe,pe]=re.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=re.useRef(null),C=v.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=re.useRef(null),J=re.useRef(!1),w=re.useCallback(q=>{we(Z=>{var ne;return(ne=Z.find(Ee=>Ee.id===q.id))!=null&&ne.delete||Vn.dismiss(q.id),Z.filter(({id:Ee})=>Ee!==q.id)})},[]);return re.useEffect(()=>Vn.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{we(Z=>Z.map(ne=>ne.id===q.id?{...ne,delete:!0}:ne))});return}setTimeout(()=>{vU.flushSync(()=>{we(Z=>{const ne=Z.findIndex(Ee=>Ee.id===q.id);return ne!==-1?[...Z.slice(0,ne),{...Z[ne],...q},...Z.slice(ne+1)]:[q,...Z]})})})}),[ue]),re.useEffect(()=>{if(f!=="system"){pe(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?pe("dark"):pe("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:Z})=>{pe(Z?"dark":"light")})}catch{q.addListener(({matches:ne})=>{try{pe(ne?"dark":"light")}catch(Ee){console.error(Ee)}})}},[f]),re.useEffect(()=>{ue.length<=1&&ae(!1)},[ue]),re.useEffect(()=>{const q=Z=>{var ne;if(v.every(he=>Z[he]||Z.code===he)){var ze;ae(!0),(ze=z.current)==null||ze.focus()}Z.code==="Escape"&&(document.activeElement===z.current||(ne=z.current)!=null&&ne.contains(document.activeElement))&&ae(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[v]),re.useEffect(()=>{if(z.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,J.current=!1)}},[z.current]),re.createElement("section",{ref:c,"aria-label":`${de} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Ue.map((q,Z)=>{var ne;const[Ee,ze]=q.split("-");return ue.length?re.createElement("ol",{key:q,dir:$==="auto"?ZN():$,tabIndex:-1,ref:z,className:y,"data-sonner-toaster":!0,"data-sonner-theme":fe,"data-y-position":Ee,"data-x-position":ze,style:{"--front-toast-height":`${((ne=W[0])==null?void 0:ne.height)||0}px`,"--width":`${zU}px`,"--gap":`${ye}px`,...I,...FU(U,M)},onBlur:he=>{J.current&&!he.currentTarget.contains(he.relatedTarget)&&(J.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||J.current||(J.current=!0,V.current=he.relatedTarget)},onMouseEnter:()=>ae(!0),onMouseMove:()=>ae(!0),onMouseLeave:()=>{Q||ae(!1)},onDragEnd:()=>ae(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},ue.filter(he=>!he.position&&Z===0||he.position===q).map((he,Ge)=>{var Ce,Ie;return re.createElement(qU,{key:he.id,icons:se,index:Ge,toast:he,defaultRichColors:g,duration:(Ce=k==null?void 0:k.duration)!=null?Ce:A,className:k==null?void 0:k.className,descriptionClassName:k==null?void 0:k.descriptionClassName,invert:d,visibleToasts:X,closeButton:(Ie=k==null?void 0:k.closeButton)!=null?Ie:j,interacting:Q,position:q,style:k==null?void 0:k.style,unstyled:k==null?void 0:k.unstyled,classNames:k==null?void 0:k.classNames,cancelButtonStyle:k==null?void 0:k.cancelButtonStyle,actionButtonStyle:k==null?void 0:k.actionButtonStyle,closeButtonAriaLabel:k==null?void 0:k.closeButtonAriaLabel,removeToast:w,toasts:ue.filter(Ve=>Ve.position==he.position),heights:W.filter(Ve=>Ve.position==he.position),setHeights:K,expandByDefault:N,gap:ye,expanded:Se,swipeDirections:a.swipeDirections})})):null}))}),GU=async()=>{const i=await fetch("http://localhost:3333/api/bundles");if(!i.ok)throw new Error("Failed to fetch bundles");return i.json()},$U=async i=>{const a=await fetch(`http://localhost:3333/api/bundle-categories/${i}`);if(!a.ok)throw new Error("Failed to fetch bundle categories");return a.json()},QU=async()=>{const i=await fetch("http://localhost:3333/api/files");if(!i.ok)throw new Error("Failed to fetch files");return(await i.json()).map(c=>c.path)};function IU(){const i=Il(),[a,c]=G.useState([]),[d,p]=G.useState(!0),[v,N]=G.useState(new Set),[j,y]=G.useState({}),[U,M]=G.useState(new Set),[f,g]=G.useState([]),[A,I]=G.useState(new Set),[X,k]=G.useState(new Set),[$,ye]=G.useState(new Set),se=async()=>{console.log("Manual refetch called");try{const C=await GU();return console.log("Fresh bundles received:",C),c(C),{data:C}}catch(C){return console.error("Failed to fetch bundles:",C),{data:[]}}};G.useState(()=>{se().then(()=>p(!1));const C=setInterval(se,5e3);return()=>clearInterval(C)});const de=async C=>{const V=new Set(v);if(V.has(C))V.delete(C);else if(V.add(C),!j[C])try{const J=await $U(C);y(w=>({...w,[C]:J}))}catch(J){console.error("Failed to fetch bundle categories:",J),ot.error("Failed to load file categories")}N(V)},ue=C=>{switch(C){case"components":return l.jsxDEV(AT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:105,columnNumber:33},this);case"hooks":return l.jsxDEV(GT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:106,columnNumber:28},this);case"utilities":return l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:107,columnNumber:32},this);case"configuration":return l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:108,columnNumber:36},this);case"styles":return l.jsxDEV(F1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:109,columnNumber:29},this);case"types":return l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:110,columnNumber:28},this);case"tests":return l.jsxDEV(dU,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:111,columnNumber:28},this);case"documentation":return l.jsxDEV(yT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:112,columnNumber:36},this);default:return l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:113,columnNumber:23},this)}},we=C=>{switch(C){case"components":return"bg-blue-100 text-blue-800 border-blue-200";case"hooks":return"bg-purple-100 text-purple-800 border-purple-200";case"utilities":return"bg-green-100 text-green-800 border-green-200";case"configuration":return"bg-orange-100 text-orange-800 border-orange-200";case"styles":return"bg-pink-100 text-pink-800 border-pink-200";case"types":return"bg-indigo-100 text-indigo-800 border-indigo-200";case"tests":return"bg-yellow-100 text-yellow-800 border-yellow-200";case"documentation":return"bg-gray-100 text-gray-800 border-gray-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},Ue=async C=>{const V=new Set(U);if(V.has(C))V.delete(C);else if(V.add(C),f.length===0)try{const J=await QU();g(J)}catch(J){console.error("Failed to fetch files:",J),ot.error("Failed to load file list")}M(V)},W=(C,V)=>V.files.includes(C),K=(C,V)=>!a||!Array.isArray(a)?[]:a.filter(J=>J.name!==V&&J.files.includes(C)).map(J=>J.name),Se=async(C,V)=>{try{if(Q(`remove-${V}-${C}`,"loading"),console.log(`Removing ${C} from ${V}`),V==="master"){Q(`remove-${V}-${C}`,"error"),ot.error("Cannot modify master bundle files");return}const J=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:C,bundleName:V,forceHide:!0})});if(!J.ok){const q=await J.text();throw console.error("API Error:",q),new Error(`Failed to remove file: ${q}`)}const w=await J.json();console.log("Remove API Response:",w),i.invalidateQueries({queryKey:["bundles"]}),i.invalidateQueries({queryKey:["hidden-files"]}),await se(),Q(`remove-${V}-${C}`,"success"),ot.success(`Hidden ${C} from ${V} bundle`)}catch(J){console.error("Failed to remove file:",J),Q(`remove-${V}-${C}`,"error"),ot.error(`Failed to remove file: ${J instanceof Error?J.message:"Unknown error"}`)}},ae=async(C,V)=>{try{if(Q(`add-${V}-${C}`,"loading"),console.log(`Adding ${C} to ${V}`),V==="master"){Q(`add-${V}-${C}`,"error"),ot.error("Cannot modify master bundle files");return}const J=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:C,bundleName:V,forceHide:!1})});if(!J.ok){const q=await J.text();throw console.error("API Error:",q),new Error(`Failed to add file: ${q}`)}const w=await J.json();console.log("Add API Response:",w),i.invalidateQueries({queryKey:["bundles"]}),await se(),Q(`add-${V}-${C}`,"success"),ot.success(`Added ${C}`)}catch(J){console.error("Failed to add file:",J),Q(`add-${V}-${C}`,"error"),ot.error(`Failed to add file: ${J instanceof Error?J.message:"Unknown error"}`)}},Q=(C,V)=>{I(J=>{const w=new Set(J);return V==="loading"?w.add(C):w.delete(C),w}),k(J=>{const w=new Set(J);return V==="success"?(w.add(C),setTimeout(()=>k(q=>{const Z=new Set(q);return Z.delete(C),Z}),2e3)):w.delete(C),w}),ye(J=>{const w=new Set(J);return V==="error"?(w.add(C),setTimeout(()=>ye(q=>{const Z=new Set(q);return Z.delete(C),Z}),3e3)):w.delete(C),w})},H=async C=>{const V=`copy-${C}`;Q(V,"loading");try{const J=await fetch(`http://localhost:3333/api/bundles/${C}`);if(!J.ok)throw new Error("Failed to fetch bundle content");const w=await J.text();await navigator.clipboard.writeText(w),Q(V,"success"),ot.success(`Bundle "${C}" copied to clipboard!`)}catch(J){Q(V,"error"),ot.error(`Failed to copy bundle: ${J instanceof Error?J.message:"Unknown error"}`)}},fe=async C=>{const V=`download-${C}`;Q(V,"loading");try{const J=await fetch(`http://localhost:3333/api/bundles/${C}`);if(!J.ok)throw new Error("Failed to fetch bundle content");const w=await J.text(),q=new Blob([w],{type:"application/xml"}),Z=URL.createObjectURL(q),ne=document.createElement("a");ne.href=Z,ne.download=`${C}-bundle.xml`,ne.click(),URL.revokeObjectURL(Z),Q(V,"success"),ot.success(`Bundle "${C}" downloaded!`)}catch(J){Q(V,"error"),ot.error(`Failed to download bundle: ${J instanceof Error?J.message:"Unknown error"}`)}},pe=async C=>{const V=`regen-${C}`;Q(V,"loading");try{if(!(await fetch(`http://localhost:3333/api/regenerate/${C}`,{method:"POST"})).ok)throw new Error("Failed to regenerate bundle");await se(),Q(V,"success"),ot.success(`Bundle "${C}" regenerated successfully!`)}catch(J){Q(V,"error"),ot.error(`Failed to regenerate bundle: ${J instanceof Error?J.message:"Unknown error"}`)}};if(d)return l.jsxDEV("div",{children:"Loading bundles..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:363,columnNumber:25},this);if(!a)return l.jsxDEV("div",{children:"No bundles found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:364,columnNumber:24},this);const z=async()=>{console.log("Manual refresh triggered"),i.removeQueries({queryKey:["bundles"]});const C=await se();console.log("Fresh bundles data:",C.data)};return l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("h2",{className:"text-lg font-semibold",children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:376,columnNumber:9},this),l.jsxDEV(Te,{onClick:z,variant:"outline",size:"sm",children:[l.jsxDEV(Qd,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:378,columnNumber:11},this),"Force Refresh"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:377,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:375,columnNumber:7},this),a&&Array.isArray(a)?a.map(C=>{const V=`copy-${C.name}`,J=`download-${C.name}`,w=`regen-${C.name}`,q=A.has(V),Z=A.has(J),ne=A.has(w),Ee=X.has(V),ze=X.has(J),he=X.has(w),Ge=$.has(V),Ce=$.has(J),Ie=$.has(w);return l.jsxDEV(nt,{className:C.changed?"border-yellow-500":"",children:[l.jsxDEV(gt,{children:l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV(yt,{className:"flex items-center gap-2",children:[C.name,l.jsxDEV(vt,{variant:C.changed?"destructive":"secondary",children:C.changed?"CHANGED":"SYNCED"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:402,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:400,columnNumber:17},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>Ue(C.name),disabled:C.name==="master",className:U.has(C.name)?"bg-blue-50 border-blue-200 text-blue-700":"",children:[U.has(C.name)?l.jsxDEV($1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:415,columnNumber:23},this):l.jsxDEV(JT,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:417,columnNumber:23},this),C.name==="master"?"Read Only":U.has(C.name)?"Cancel":"Edit Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:407,columnNumber:19},this),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>pe(C.name),disabled:ne,className:`transition-all duration-200 ${he?"border-green-500 bg-green-50 text-green-700":Ie?"border-red-500 bg-red-50 text-red-700":ne?"opacity-75":""}`,children:[ne?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:432,columnNumber:23},this):he?l.jsxDEV(Js,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:434,columnNumber:23},this):Ie?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:436,columnNumber:23},this):l.jsxDEV(Qd,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:438,columnNumber:23},this),"Regenerate"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:421,columnNumber:19},this),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>H(C.name),disabled:q,className:`transition-all duration-200 ${Ee?"border-green-500 bg-green-50 text-green-700":Ge?"border-red-500 bg-red-50 text-red-700":q?"opacity-75":""}`,children:[q?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:453,columnNumber:23},this):Ee?l.jsxDEV(Js,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:455,columnNumber:23},this):Ge?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:457,columnNumber:23},this):l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:459,columnNumber:23},this),"Copy XML"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:442,columnNumber:19},this),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>fe(C.name),disabled:Z,className:`transition-all duration-200 ${ze?"border-green-500 bg-green-50 text-green-700":Ce?"border-red-500 bg-red-50 text-red-700":Z?"opacity-75":""}`,children:[Z?l.jsxDEV(jc,{className:"w-4 h-4 animate-spin mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:474,columnNumber:23},this):ze?l.jsxDEV(Js,{className:"w-4 h-4 mr-1 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:476,columnNumber:23},this):Ce?l.jsxDEV(Hd,{className:"w-4 h-4 mr-1 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:478,columnNumber:23},this):l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:480,columnNumber:23},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:463,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:406,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:399,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:398,columnNumber:13},this),l.jsxDEV(at,{children:[l.jsxDEV("div",{className:"text-sm text-muted-foreground mb-3",children:[C.fileCount," files • ",(C.size/1024).toFixed(1),"kb",C.lastGenerated&&` • Generated ${new Date(C.lastGenerated).toLocaleTimeString()}`]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:488,columnNumber:15},this),l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV(Te,{variant:"ghost",size:"sm",onClick:()=>de(C.name),className:"p-0 h-auto font-normal",children:[v.has(C.name)?l.jsxDEV(B1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:503,columnNumber:21},this):l.jsxDEV(L1,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:505,columnNumber:21},this),"View Files (",C.files.length,")"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:496,columnNumber:17},this),v.has(C.name)&&l.jsxDEV("div",{className:"ml-5 space-y-3",children:j[C.name]?l.jsxDEV(l.Fragment,{children:[l.jsxDEV("div",{className:"text-sm text-muted-foreground italic",children:j[C.name].purpose},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:515,columnNumber:25},this),j[C.name].entryPoints.length>0&&l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"bg-red-50 text-red-700 border-red-200",children:[l.jsxDEV(Al,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:524,columnNumber:33},this),"Entry Points"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:523,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["(",j[C.name].entryPoints.length,")"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:527,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:522,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1",children:j[C.name].entryPoints.map(Ve=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:Ve},Ve,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:533,columnNumber:33},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:531,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:521,columnNumber:27},this),Object.entries(j[C.name].filesByType).map(([Ve,Tt])=>l.jsxDEV("div",{className:"space-y-2",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:we(Ve),children:[ue(Ve),l.jsxDEV("span",{className:"ml-1 capitalize",children:Ve},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:547,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:545,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["(",Tt.length," files)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:549,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:544,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1 max-h-32 overflow-y-auto",children:U.has(C.name)?Tt.map(Nt=>{const tn=K(Nt,C.name),Ts=`remove-${C.name}-${Nt}`,Us=A.has(Ts);return l.jsxDEV("div",{className:"flex items-center gap-2 text-sm",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>Se(Nt,C.name),disabled:Us,className:"h-6 w-6 p-0 border-red-200 hover:bg-red-50 hover:border-red-300",children:Us?l.jsxDEV(jc,{className:"w-3 h-3 animate-spin"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:570,columnNumber:43},this):l.jsxDEV(XT,{className:"w-3 h-3 text-red-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:572,columnNumber:43},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:562,columnNumber:39},this),l.jsxDEV("span",{className:"font-mono flex-1 text-foreground",children:Nt},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:575,columnNumber:39},this),tn.length>0&&l.jsxDEV(vt,{variant:"outline",className:"text-xs bg-yellow-50 text-yellow-700",children:["Also in: ",tn.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:579,columnNumber:41},this)]},Nt,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:561,columnNumber:37},this)}):Tt.map(Nt=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:Nt},Nt,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:589,columnNumber:35},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:553,columnNumber:29},this)]},Ve,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:543,columnNumber:27},this)),U.has(C.name)&&l.jsxDEV("div",{className:"space-y-2 mt-6 pt-4 border-t border-gray-200",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"bg-gray-50 text-gray-700 border-gray-300",children:[l.jsxDEV(Vl,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:603,columnNumber:33},this),"Available Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:602,columnNumber:31},this),l.jsxDEV("span",{className:"text-xs text-muted-foreground",children:"(Click + to add to bundle)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:606,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:601,columnNumber:29},this),l.jsxDEV("div",{className:"pl-4 space-y-1 max-h-40 overflow-y-auto",children:f.filter(Ve=>!W(Ve,C)).map(Ve=>{const Tt=K(Ve,C.name),Nt=`add-${C.name}-${Ve}`,tn=A.has(Nt);return l.jsxDEV("div",{className:"flex items-center gap-2 text-sm",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>ae(Ve,C.name),disabled:tn,className:"h-6 w-6 p-0 border-green-200 hover:bg-green-50 hover:border-green-300",children:tn?l.jsxDEV(jc,{className:"w-3 h-3 animate-spin"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:627,columnNumber:43},this):l.jsxDEV(Vl,{className:"w-3 h-3 text-green-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:629,columnNumber:43},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:619,columnNumber:39},this),l.jsxDEV("span",{className:"font-mono flex-1 text-muted-foreground",children:Ve},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:632,columnNumber:39},this),Tt.length>0&&l.jsxDEV(vt,{variant:"outline",className:"text-xs bg-yellow-50 text-yellow-700",children:["In: ",Tt.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:636,columnNumber:41},this)]},Ve,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:618,columnNumber:37},this)})},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:610,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:600,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:513,columnNumber:23},this):l.jsxDEV("div",{className:"space-y-1 max-h-40 overflow-y-auto",children:C.files.map(Ve=>l.jsxDEV("div",{className:"text-sm font-mono text-muted-foreground",children:Ve},Ve,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:652,columnNumber:27},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:650,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:511,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:495,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:487,columnNumber:13},this)]},C.name,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:397,columnNumber:11},this)}):l.jsxDEV("div",{children:"No bundles available"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:664,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/BundleList.tsx",lineNumber:374,columnNumber:5},this)}const XU=async()=>{const i=await fetch("http://localhost:3333/api/bundles");if(!i.ok)throw new Error("Failed to fetch bundles");return i.json()},KN=i=>{const a={name:"",path:"",type:"directory",children:[]},c=new Set,d=new Map;i.forEach(v=>{v.files.forEach(N=>{c.add(N),d.has(N)||d.set(N,[]),d.get(N).push(v.name)})}),c.forEach(v=>{const N=v.split("/");let j=a;N.forEach((y,U)=>{const M=U===N.length-1,f=N.slice(0,U+1).join("/");j.children||(j.children=[]);let g=j.children.find(A=>A.name===y);g||(g={name:y,path:f,type:M?"file":"directory",children:M?void 0:[],bundles:M?d.get(v):void 0},j.children.push(g)),M||(j=g)})});const p=v=>{v.children&&(v.children.sort((N,j)=>N.type!==j.type?N.type==="directory"?-1:1:N.name.localeCompare(j.name)),v.children.forEach(p))};return p(a),a},ZU=i=>{if(i===0)return"0 B";const a=1024,c=["B","KB","MB","GB"],d=Math.floor(Math.log(i)/Math.log(a));return parseFloat((i/Math.pow(a,d)).toFixed(1))+" "+c[d]};function Q1({node:i,level:a,expandedDirs:c,onToggleDir:d}){const p=c.has(i.path),v=a*16;if(i.type==="directory")return l.jsxDEV("div",{children:[l.jsxDEV("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded cursor-pointer",style:{paddingLeft:`${v+8}px`},onClick:()=>d(i.path),children:[p?l.jsxDEV(B1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:119,columnNumber:13},this):l.jsxDEV(L1,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:121,columnNumber:13},this),p?l.jsxDEV(_d,{className:"w-4 h-4 text-blue-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:124,columnNumber:13},this):l.jsxDEV(F1,{className:"w-4 h-4 text-blue-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:126,columnNumber:13},this),l.jsxDEV("span",{className:"text-sm font-medium",children:i.name},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:128,columnNumber:11},this),i.children&&l.jsxDEV("span",{className:"text-xs text-muted-foreground ml-auto",children:[i.children.length," items"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:130,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:113,columnNumber:9},this),p&&i.children&&l.jsxDEV("div",{children:i.children.map(j=>l.jsxDEV(Q1,{node:j,level:a+1,expandedDirs:c,onToggleDir:d},j.path,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:139,columnNumber:15},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:112,columnNumber:7},this);const N=j=>{var M;const y=(M=j.split(".").pop())==null?void 0:M.toLowerCase(),U="w-4 h-4";switch(y){case"js":case"ts":case"jsx":case"tsx":return l.jsxDEV(Tl,{className:`${U} text-yellow-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:163,columnNumber:16},this);case"json":return l.jsxDEV(Tl,{className:`${U} text-green-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:165,columnNumber:16},this);case"md":return l.jsxDEV(Tl,{className:`${U} text-blue-400`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:167,columnNumber:16},this);case"css":case"scss":return l.jsxDEV(Tl,{className:`${U} text-pink-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:170,columnNumber:16},this);case"html":return l.jsxDEV(Tl,{className:`${U} text-orange-500`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:172,columnNumber:16},this);default:return l.jsxDEV(Tl,{className:`${U} text-muted-foreground`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:174,columnNumber:16},this)}};return l.jsxDEV("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded",style:{paddingLeft:`${v+24}px`},children:[N(i.name),l.jsxDEV("span",{className:"text-sm font-mono",children:i.name},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:184,columnNumber:7},this),i.bundles&&i.bundles.length>0&&l.jsxDEV("div",{className:"flex gap-1 ml-2",children:i.bundles.map(j=>l.jsxDEV(vt,{variant:"outline",className:"text-xs px-1 py-0",children:j},j,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:189,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:187,columnNumber:9},this),i.size&&l.jsxDEV("span",{className:"text-xs text-muted-foreground ml-auto",children:ZU(i.size)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:201,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:179,columnNumber:5},this)}function KU(){const[i,a]=G.useState(new Set([""])),{data:c,isLoading:d}=Ws({queryKey:["bundles"],queryFn:XU,refetchInterval:5e3}),p=U=>{const M=new Set(i);M.has(U)?M.delete(U):M.add(U),a(M)},v=()=>{if(!c)return;const U=KN(c),M=new Set,f=g=>{var A;g.type==="directory"&&(M.add(g.path),(A=g.children)==null||A.forEach(f))};f(U),a(M)},N=()=>{a(new Set([""]))};if(d)return l.jsxDEV("div",{children:"Loading file tree..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:250,columnNumber:25},this);if(!c)return l.jsxDEV("div",{children:"No bundles found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:251,columnNumber:24},this);const j=KN(c),y=c.reduce((U,M)=>U+M.files.length,0);return l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:v,children:"Expand All"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:261,columnNumber:11},this),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:N,children:"Collapse All"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:264,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:260,columnNumber:9},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:[y," files tracked"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:269,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:259,columnNumber:7},this),l.jsxDEV(nt,{className:"p-4",children:l.jsxDEV("div",{className:"space-y-1 max-h-96 overflow-y-auto",children:j.children&&j.children.length>0?j.children.map(U=>l.jsxDEV(Q1,{node:U,level:0,expandedDirs:i,onToggleDir:p},U.path,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:279,columnNumber:15},this)):l.jsxDEV("div",{className:"text-center text-muted-foreground py-8",children:"No files found"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:288,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:276,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:275,columnNumber:7},this),l.jsxDEV(nt,{className:"p-4",children:[l.jsxDEV("h3",{className:"text-sm font-medium mb-2",children:"Bundle Legend"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:297,columnNumber:9},this),l.jsxDEV("div",{className:"flex flex-wrap gap-2",children:c.map(U=>l.jsxDEV(vt,{variant:"outline",children:[U.name," (",U.files.length,")"]},U.name,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:300,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:298,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:296,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/FileTree.tsx",lineNumber:257,columnNumber:5},this)}function Rl({className:i,type:a,...c}){return l.jsxDEV("input",{type:a,"data-slot":"input",className:Mn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...c},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/input.tsx",lineNumber:7,columnNumber:5},this)}function Mr(i,a,{checkForDefaultPrevented:c=!0}={}){return function(p){if(i==null||i(p),c===!1||!p.defaultPrevented)return a==null?void 0:a(p)}}function ab(i,a=[]){let c=[];function d(v,N){const j=G.createContext(N),y=c.length;c=[...c,N];const U=f=>{var $;const{scope:g,children:A,...I}=f,X=(($=g==null?void 0:g[i])==null?void 0:$[y])||j,k=G.useMemo(()=>I,Object.values(I));return Dt.jsx(X.Provider,{value:k,children:A})};U.displayName=v+"Provider";function M(f,g){var X;const A=((X=g==null?void 0:g[i])==null?void 0:X[y])||j,I=G.useContext(A);if(I)return I;if(N!==void 0)return N;throw new Error(`\`${f}\` must be used within \`${v}\``)}return[U,M]}const p=()=>{const v=c.map(N=>G.createContext(N));return function(j){const y=(j==null?void 0:j[i])||v;return G.useMemo(()=>({[`__scope${i}`]:{...j,[i]:y}}),[j,y])}};return p.scopeName=i,[d,JU(p,...a)]}function JU(...i){const a=i[0];if(i.length===1)return a;const c=()=>{const d=i.map(p=>({useScope:p(),scopeName:p.scopeName}));return function(v){const N=d.reduce((j,{useScope:y,scopeName:U})=>{const f=y(v)[`__scope${U}`];return{...j,...f}},{});return G.useMemo(()=>({[`__scope${a.scopeName}`]:N}),[N])}};return c.scopeName=a.scopeName,c}function WU(i){const a=i+"CollectionProvider",[c,d]=ab(a),[p,v]=c(a,{collectionRef:{current:null},itemMap:new Map}),N=X=>{const{scope:k,children:$}=X,ye=re.useRef(null),se=re.useRef(new Map).current;return Dt.jsx(p,{scope:k,itemMap:se,collectionRef:ye,children:$})};N.displayName=a;const j=i+"CollectionSlot",y=Gd(j),U=re.forwardRef((X,k)=>{const{scope:$,children:ye}=X,se=v(j,$),de=Yd(k,se.collectionRef);return Dt.jsx(y,{ref:de,children:ye})});U.displayName=j;const M=i+"CollectionItemSlot",f="data-radix-collection-item",g=Gd(M),A=re.forwardRef((X,k)=>{const{scope:$,children:ye,...se}=X,de=re.useRef(null),ue=Yd(k,de),we=v(M,$);return re.useEffect(()=>(we.itemMap.set(de,{ref:de,...se}),()=>void we.itemMap.delete(de))),Dt.jsx(g,{[f]:"",ref:ue,children:ye})});A.displayName=M;function I(X){const k=v(i+"CollectionConsumer",X);return re.useCallback(()=>{const ye=k.collectionRef.current;if(!ye)return[];const se=Array.from(ye.querySelectorAll(`[${f}]`));return Array.from(k.itemMap.values()).sort((we,Ue)=>se.indexOf(we.ref.current)-se.indexOf(Ue.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:N,Slot:U,ItemSlot:A},I,d]}var Xd=globalThis!=null&&globalThis.document?G.useLayoutEffect:()=>{},e3=d1[" useId ".trim().toString()]||(()=>{}),t3=0;function I1(i){const[a,c]=G.useState(e3());return Xd(()=>{c(d=>d??String(t3++))},[i]),i||(a?`radix-${a}`:"")}var n3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kl=n3.reduce((i,a)=>{const c=Gd(`Primitive.${a}`),d=G.forwardRef((p,v)=>{const{asChild:N,...j}=p,y=N?c:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Dt.jsx(y,{...j,ref:v})});return d.displayName=`Primitive.${a}`,{...i,[a]:d}},{});function s3(i){const a=G.useRef(i);return G.useEffect(()=>{a.current=i}),G.useMemo(()=>(...c)=>{var d;return(d=a.current)==null?void 0:d.call(a,...c)},[])}var r3=d1[" useInsertionEffect ".trim().toString()]||Xd;function X1({prop:i,defaultProp:a,onChange:c=()=>{},caller:d}){const[p,v,N]=o3({defaultProp:a,onChange:c}),j=i!==void 0,y=j?i:p;{const M=G.useRef(i!==void 0);G.useEffect(()=>{const f=M.current;f!==j&&console.warn(`${d} is changing from ${f?"controlled":"uncontrolled"} to ${j?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),M.current=j},[j,d])}const U=G.useCallback(M=>{var f;if(j){const g=a3(M)?M(i):M;g!==i&&((f=N.current)==null||f.call(N,g))}else v(M)},[j,i,v,N]);return[y,U]}function o3({defaultProp:i,onChange:a}){const[c,d]=G.useState(i),p=G.useRef(c),v=G.useRef(a);return r3(()=>{v.current=a},[a]),G.useEffect(()=>{var N;p.current!==c&&((N=v.current)==null||N.call(v,c),p.current=c)},[c,p]),[c,d,v]}function a3(i){return typeof i=="function"}var l3=G.createContext(void 0);function Z1(i){const a=G.useContext(l3);return i||a||"ltr"}var Mh="rovingFocusGroup.onEntryFocus",i3={bubbles:!1,cancelable:!0},Pc="RovingFocusGroup",[eb,K1,c3]=WU(Pc),[u3,J1]=ab(Pc,[c3]),[d3,m3]=u3(Pc),W1=G.forwardRef((i,a)=>Dt.jsx(eb.Provider,{scope:i.__scopeRovingFocusGroup,children:Dt.jsx(eb.Slot,{scope:i.__scopeRovingFocusGroup,children:Dt.jsx(f3,{...i,ref:a})})}));W1.displayName=Pc;var f3=G.forwardRef((i,a)=>{const{__scopeRovingFocusGroup:c,orientation:d,loop:p=!1,dir:v,currentTabStopId:N,defaultCurrentTabStopId:j,onCurrentTabStopIdChange:y,onEntryFocus:U,preventScrollOnEntryFocus:M=!1,...f}=i,g=G.useRef(null),A=Yd(a,g),I=Z1(v),[X,k]=X1({prop:N,defaultProp:j??null,onChange:y,caller:Pc}),[$,ye]=G.useState(!1),se=s3(U),de=K1(c),ue=G.useRef(!1),[we,Ue]=G.useState(0);return G.useEffect(()=>{const W=g.current;if(W)return W.addEventListener(Mh,se),()=>W.removeEventListener(Mh,se)},[se]),Dt.jsx(d3,{scope:c,orientation:d,dir:I,loop:p,currentTabStopId:X,onItemFocus:G.useCallback(W=>k(W),[k]),onItemShiftTab:G.useCallback(()=>ye(!0),[]),onFocusableItemAdd:G.useCallback(()=>Ue(W=>W+1),[]),onFocusableItemRemove:G.useCallback(()=>Ue(W=>W-1),[]),children:Dt.jsx(Kl.div,{tabIndex:$||we===0?-1:0,"data-orientation":d,...f,ref:A,style:{outline:"none",...i.style},onMouseDown:Mr(i.onMouseDown,()=>{ue.current=!0}),onFocus:Mr(i.onFocus,W=>{const K=!ue.current;if(W.target===W.currentTarget&&K&&!$){const Se=new CustomEvent(Mh,i3);if(W.currentTarget.dispatchEvent(Se),!Se.defaultPrevented){const ae=de().filter(z=>z.focusable),Q=ae.find(z=>z.active),H=ae.find(z=>z.id===X),pe=[Q,H,...ae].filter(Boolean).map(z=>z.ref.current);nw(pe,M)}}ue.current=!1}),onBlur:Mr(i.onBlur,()=>ye(!1))})})}),ew="RovingFocusGroupItem",tw=G.forwardRef((i,a)=>{const{__scopeRovingFocusGroup:c,focusable:d=!0,active:p=!1,tabStopId:v,children:N,...j}=i,y=I1(),U=v||y,M=m3(ew,c),f=M.currentTabStopId===U,g=K1(c),{onFocusableItemAdd:A,onFocusableItemRemove:I,currentTabStopId:X}=M;return G.useEffect(()=>{if(d)return A(),()=>I()},[d,A,I]),Dt.jsx(eb.ItemSlot,{scope:c,id:U,focusable:d,active:p,children:Dt.jsx(Kl.span,{tabIndex:f?0:-1,"data-orientation":M.orientation,...j,ref:a,onMouseDown:Mr(i.onMouseDown,k=>{d?M.onItemFocus(U):k.preventDefault()}),onFocus:Mr(i.onFocus,()=>M.onItemFocus(U)),onKeyDown:Mr(i.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){M.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const $=b3(k,M.orientation,M.dir);if($!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let se=g().filter(de=>de.focusable).map(de=>de.ref.current);if($==="last")se.reverse();else if($==="prev"||$==="next"){$==="prev"&&se.reverse();const de=se.indexOf(k.currentTarget);se=M.loop?v3(se,de+1):se.slice(de+1)}setTimeout(()=>nw(se))}}),children:typeof N=="function"?N({isCurrentTabStop:f,hasTabStop:X!=null}):N})})});tw.displayName=ew;var p3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function h3(i,a){return a!=="rtl"?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}function b3(i,a,c){const d=h3(i.key,c);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(d))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(d)))return p3[d]}function nw(i,a=!1){const c=document.activeElement;for(const d of i)if(d===c||(d.focus({preventScroll:a}),document.activeElement!==c))return}function v3(i,a){return i.map((c,d)=>i[(a+d)%i.length])}var x3=W1,g3=tw;function y3(i,a){return G.useReducer((c,d)=>a[c][d]??c,i)}var sw=i=>{const{present:a,children:c}=i,d=N3(a),p=typeof c=="function"?c({present:d.isPresent}):G.Children.only(c),v=Yd(d.ref,w3(p));return typeof c=="function"||d.isPresent?G.cloneElement(p,{ref:v}):null};sw.displayName="Presence";function N3(i){const[a,c]=G.useState(),d=G.useRef(null),p=G.useRef(i),v=G.useRef("none"),N=i?"mounted":"unmounted",[j,y]=y3(N,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return G.useEffect(()=>{const U=kd(d.current);v.current=j==="mounted"?U:"none"},[j]),Xd(()=>{const U=d.current,M=p.current;if(M!==i){const g=v.current,A=kd(U);i?y("MOUNT"):A==="none"||(U==null?void 0:U.display)==="none"?y("UNMOUNT"):y(M&&g!==A?"ANIMATION_OUT":"UNMOUNT"),p.current=i}},[i,y]),Xd(()=>{if(a){let U;const M=a.ownerDocument.defaultView??window,f=A=>{const X=kd(d.current).includes(A.animationName);if(A.target===a&&X&&(y("ANIMATION_END"),!p.current)){const k=a.style.animationFillMode;a.style.animationFillMode="forwards",U=M.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=k)})}},g=A=>{A.target===a&&(v.current=kd(d.current))};return a.addEventListener("animationstart",g),a.addEventListener("animationcancel",f),a.addEventListener("animationend",f),()=>{M.clearTimeout(U),a.removeEventListener("animationstart",g),a.removeEventListener("animationcancel",f),a.removeEventListener("animationend",f)}}else y("ANIMATION_END")},[a,y]),{isPresent:["mounted","unmountSuspended"].includes(j),ref:G.useCallback(U=>{d.current=U?getComputedStyle(U):null,c(U)},[])}}function kd(i){return(i==null?void 0:i.animationName)||"none"}function w3(i){var d,p;let a=(d=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:d.get,c=a&&"isReactWarning"in a&&a.isReactWarning;return c?i.ref:(a=(p=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:p.get,c=a&&"isReactWarning"in a&&a.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}var Zd="Tabs",[S3,sC]=ab(Zd,[J1]),rw=J1(),[E3,lb]=S3(Zd),ow=G.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,onValueChange:p,defaultValue:v,orientation:N="horizontal",dir:j,activationMode:y="automatic",...U}=i,M=Z1(j),[f,g]=X1({prop:d,onChange:p,defaultProp:v??"",caller:Zd});return Dt.jsx(E3,{scope:c,baseId:I1(),value:f,onValueChange:g,orientation:N,dir:M,activationMode:y,children:Dt.jsx(Kl.div,{dir:M,"data-orientation":N,...U,ref:a})})});ow.displayName=Zd;var aw="TabsList",lw=G.forwardRef((i,a)=>{const{__scopeTabs:c,loop:d=!0,...p}=i,v=lb(aw,c),N=rw(c);return Dt.jsx(x3,{asChild:!0,...N,orientation:v.orientation,dir:v.dir,loop:d,children:Dt.jsx(Kl.div,{role:"tablist","aria-orientation":v.orientation,...p,ref:a})})});lw.displayName=aw;var iw="TabsTrigger",cw=G.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,disabled:p=!1,...v}=i,N=lb(iw,c),j=rw(c),y=mw(N.baseId,d),U=fw(N.baseId,d),M=d===N.value;return Dt.jsx(g3,{asChild:!0,...j,focusable:!p,active:M,children:Dt.jsx(Kl.button,{type:"button",role:"tab","aria-selected":M,"aria-controls":U,"data-state":M?"active":"inactive","data-disabled":p?"":void 0,disabled:p,id:y,...v,ref:a,onMouseDown:Mr(i.onMouseDown,f=>{!p&&f.button===0&&f.ctrlKey===!1?N.onValueChange(d):f.preventDefault()}),onKeyDown:Mr(i.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&N.onValueChange(d)}),onFocus:Mr(i.onFocus,()=>{const f=N.activationMode!=="manual";!M&&!p&&f&&N.onValueChange(d)})})})});cw.displayName=iw;var uw="TabsContent",dw=G.forwardRef((i,a)=>{const{__scopeTabs:c,value:d,forceMount:p,children:v,...N}=i,j=lb(uw,c),y=mw(j.baseId,d),U=fw(j.baseId,d),M=d===j.value,f=G.useRef(M);return G.useEffect(()=>{const g=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(g)},[]),Dt.jsx(sw,{present:p||M,children:({present:g})=>Dt.jsx(Kl.div,{"data-state":M?"active":"inactive","data-orientation":j.orientation,role:"tabpanel","aria-labelledby":y,hidden:!g,id:U,tabIndex:0,...N,ref:a,style:{...i.style,animationDuration:f.current?"0s":void 0},children:g&&v})})});dw.displayName=uw;function mw(i,a){return`${i}-trigger-${a}`}function fw(i,a){return`${i}-content-${a}`}var j3=ow,D3=lw,T3=cw,U3=dw;function Kd({className:i,...a}){return l.jsxDEV(j3,{"data-slot":"tabs",className:Mn("flex flex-col gap-2",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:11,columnNumber:5},this)}function Jd({className:i,...a}){return l.jsxDEV(D3,{"data-slot":"tabs-list",className:Mn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:24,columnNumber:5},this)}function js({className:i,...a}){return l.jsxDEV(T3,{"data-slot":"tabs-trigger",className:Mn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:40,columnNumber:5},this)}function Ds({className:i,...a}){return l.jsxDEV(U3,{"data-slot":"tabs-content",className:Mn("flex-1 outline-none",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/tabs.tsx",lineNumber:56,columnNumber:5},this)}const C3=async()=>{const i=await fetch("http://localhost:3333/api/config");if(!i.ok)throw new Error("Failed to fetch config");return i.json()},R3=async i=>{if(!(await fetch("http://localhost:3333/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).ok)throw new Error("Failed to save config")},A3=async()=>{const i=await fetch("http://localhost:3333/api/files");if(!i.ok)throw new Error("Failed to fetch files");return i.json()},V3=async i=>{const a=await fetch("http://localhost:3333/api/test-pattern",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pattern:i})});if(!a.ok)throw new Error("Failed to test pattern");return a.json()};function M3(){const i=Il(),[a,c]=G.useState(null),[d,p]=G.useState(!1),[v,N]=G.useState("name"),[j,y]=G.useState(""),[U,M]=G.useState(new Set),[f,g]=G.useState([]),[A,I]=G.useState(""),[X,k]=G.useState([]),{data:$,isLoading:ye}=Ws({queryKey:["config"],queryFn:C3}),{data:se,isLoading:de}=Ws({queryKey:["project-files"],queryFn:A3}),ue=fa({mutationFn:R3,onSuccess:()=>{i.invalidateQueries({queryKey:["config"]}),i.invalidateQueries({queryKey:["bundles"]}),c(null),p(!1),y(""),M(new Set),g([]),N("name"),ot.success("Bundle configuration saved!")},onError:Q=>{ot.error(`Failed to save: ${Q.message}`)}}),we=Q=>{const H=[],fe=new Set;return Q.forEach(pe=>{const z=pe.split("/").slice(0,-1).join("/");z&&fe.add(z)}),fe.forEach(pe=>{Q.filter(C=>C.startsWith(pe+"/")).length>1&&H.push(`${pe}/**/*`)}),Q.forEach(pe=>{H.some(C=>new RegExp(C.replace(/\*\*/g,".*").replace(/\*/g,"[^/]*")).test(pe))||H.push(pe)}),H.length>0?H:Q},Ue=()=>{if(!$||!j.trim())return;const Q=f.length>0?f:Array.from(U),H={...$,bundles:{...$.bundles,[j]:Q}};ue.mutate(H)},W=Q=>{if(!$)return;const{[Q]:H,...fe}=$.bundles,pe={...$,bundles:fe};ue.mutate(pe)},K=(Q,H)=>{if(!$)return;const fe={...$,bundles:{...$.bundles,[Q]:H}};ue.mutate(fe)},Se=async()=>{if(A.trim())try{const Q=await V3(A);k(Q)}catch{ot.error("Failed to test pattern")}},ae=Q=>{const H=new Set(U);if(H.has(Q)?H.delete(Q):H.add(Q),M(H),H.size>0){const fe=we(Array.from(H));g(fe)}else g([])};return ye||de?l.jsxDEV("div",{className:"p-4",children:"Loading..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:199,columnNumber:12},this):l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center justify-between",children:["Bundle Configuration",l.jsxDEV(Te,{onClick:()=>p(!0),size:"sm",children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:211,columnNumber:13},this),"Create Bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:207,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:205,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:204,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-6",children:[d&&l.jsxDEV(nt,{className:"border-2 border-blue-200 bg-blue-50/50",children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"text-lg",children:"Create New Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:221,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:220,columnNumber:13},this),l.jsxDEV(at,{children:l.jsxDEV(Kd,{value:v,onValueChange:Q=>N(Q),children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-3",children:[l.jsxDEV(js,{value:"name",children:"1. Name"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:226,columnNumber:19},this),l.jsxDEV(js,{value:"files",disabled:!j.trim(),children:"2. Select Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:227,columnNumber:19},this),l.jsxDEV(js,{value:"patterns",disabled:U.size===0,children:"3. Review"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:228,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:225,columnNumber:17},this),l.jsxDEV(Ds,{value:"name",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Bundle Name"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:233,columnNumber:21},this),l.jsxDEV(Rl,{placeholder:"e.g., frontend, api, components",value:j,onChange:Q=>y(Q.target.value)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:234,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:232,columnNumber:19},this),l.jsxDEV(Te,{onClick:()=>N("files"),disabled:!j.trim(),children:"Next: Select Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:240,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:231,columnNumber:17},this),l.jsxDEV(Ds,{value:"files",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[l.jsxDEV("label",{className:"text-sm font-medium",children:['Select Files for "',j,'"']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:251,columnNumber:23},this),l.jsxDEV(vt,{variant:"outline",children:[U.size," selected"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:252,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:250,columnNumber:21},this),l.jsxDEV("div",{className:"max-h-64 overflow-y-auto border rounded-lg p-3 space-y-1",children:se==null?void 0:se.map(Q=>l.jsxDEV("div",{className:"flex items-center gap-2 p-2 hover:bg-gray-50 rounded cursor-pointer",onClick:()=>ae(Q.path),children:[U.has(Q.path)?l.jsxDEV(DT,{className:"w-4 h-4 text-blue-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:263,columnNumber:29},this):l.jsxDEV(q1,{className:"w-4 h-4 text-gray-400"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:265,columnNumber:29},this),l.jsxDEV("span",{className:"text-sm font-mono flex-1",children:Q.path},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:267,columnNumber:27},this),l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:Q.type},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:268,columnNumber:27},this)]},Q.path,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:257,columnNumber:25},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:255,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:249,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"outline",onClick:()=>N("name"),children:"Back"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:275,columnNumber:21},this),l.jsxDEV(Te,{onClick:()=>N("patterns"),disabled:U.size===0,children:"Next: Review Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:278,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:274,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:248,columnNumber:17},this),l.jsxDEV(Ds,{value:"patterns",className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Generated Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:289,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-2 mt-2",children:[f.map((Q,H)=>l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{value:Q,onChange:fe=>{const pe=[...f];pe[H]=fe.target.value,g(pe)},className:"font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:293,columnNumber:27},this),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>{const fe=f.filter((pe,z)=>z!==H);g(fe)},children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:310,columnNumber:29},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:302,columnNumber:27},this)]},H,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:292,columnNumber:25},this)),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>g([...f,"**/*"]),children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:319,columnNumber:25},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:314,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:290,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:288,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"outline",onClick:()=>N("files"),children:"Back"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:326,columnNumber:21},this),l.jsxDEV(Te,{variant:"outline",onClick:()=>p(!1),children:"Cancel"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:329,columnNumber:21},this),l.jsxDEV(Te,{onClick:Ue,disabled:ue.isPending,children:"Create Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:332,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:325,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:287,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:224,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:223,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:219,columnNumber:11},this),l.jsxDEV("div",{className:"space-y-4",children:$&&Object.entries($.bundles).map(([Q,H])=>l.jsxDEV("div",{className:"border rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[l.jsxDEV("h3",{className:"font-medium",children:Q},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:347,columnNumber:17},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>c(a===Q?null:Q),children:a===Q?"Done":"Edit"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:349,columnNumber:19},this),Q!=="master"&&l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>W(Q),children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:362,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:357,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:348,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:346,columnNumber:15},this),a===Q?l.jsxDEV("div",{className:"space-y-2",children:[H.map((fe,pe)=>l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{value:fe,onChange:z=>{const C=[...H];C[pe]=z.target.value,K(Q,C)},placeholder:"e.g., src/**/*.ts",className:"font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:372,columnNumber:23},this),H.length>1&&l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>{const z=H.filter((C,V)=>V!==pe);K(Q,z)},children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:391,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:383,columnNumber:25},this)]},pe,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:371,columnNumber:21},this)),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>K(Q,[...H,"**/*"]),children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:401,columnNumber:21},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:396,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:369,columnNumber:17},this):l.jsxDEV("div",{className:"flex flex-wrap gap-1",children:H.map((fe,pe)=>l.jsxDEV(vt,{variant:"secondary",className:"font-mono text-xs",children:fe},pe,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:408,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:406,columnNumber:17},this)]},Q,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:345,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:343,columnNumber:9},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Test a Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:421,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:420,columnNumber:11},this),l.jsxDEV(at,{className:"space-y-3",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{placeholder:"e.g., src/**/*.ts",value:A,onChange:Q=>I(Q.target.value),className:"font-mono"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:425,columnNumber:15},this),l.jsxDEV(Te,{onClick:Se,children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:432,columnNumber:17},this),"Test"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:431,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:424,columnNumber:13},this),X.length>0&&l.jsxDEV("div",{className:"mt-3",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground mb-2",children:["Found ",X.length," files:"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:439,columnNumber:17},this),l.jsxDEV("div",{className:"max-h-32 overflow-y-auto text-xs space-y-1 bg-muted/50 p-2 rounded font-mono",children:[X.slice(0,20).map((Q,H)=>l.jsxDEV("div",{children:Q},H,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:444,columnNumber:21},this)),X.length>20&&l.jsxDEV("div",{className:"text-muted-foreground",children:["... and ",X.length-20," more files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:447,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:442,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:438,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:423,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:419,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:216,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/EnhancedBundleConfig.tsx",lineNumber:203,columnNumber:5},this)}function JN({className:i,...a}){return l.jsxDEV("textarea",{"data-slot":"textarea",className:Mn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/textarea.tsx",lineNumber:7,columnNumber:5},this)}const O3=ob("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function Ar({className:i,variant:a,...c}){return l.jsxDEV("div",{"data-slot":"alert",role:"alert",className:Mn(O3({variant:a}),i),...c},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function Vr({className:i,...a}){return l.jsxDEV("div",{"data-slot":"alert-description",className:Mn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",i),...a},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/ui/alert.tsx",lineNumber:55,columnNumber:5},this)}const P3=async()=>{const i=await fetch("http://localhost:3333/api/cursor-rules");if(!i.ok)throw new Error("Failed to fetch cursor rules");return i.text()},k3=async i=>{if(!(await fetch("http://localhost:3333/api/cursor-rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})})).ok)throw new Error("Failed to save cursor rules")},z3=async()=>{const i=await fetch("http://localhost:3333/api/claude-md");if(!i.ok)throw new Error("Failed to fetch CLAUDE.md");return i.text()},H3=async i=>{if(!(await fetch("http://localhost:3333/api/claude-md",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})})).ok)throw new Error("Failed to save CLAUDE.md")};function _3(){const i=Il(),[a,c]=G.useState(""),[d,p]=G.useState(""),[v,N]=G.useState("cursor"),{data:j,isLoading:y}=Ws({queryKey:["cursor-rules"],queryFn:P3}),U=fa({mutationFn:k3,onSuccess:()=>{i.invalidateQueries({queryKey:["cursor-rules"]}),ot.success(".cursorrules saved successfully!")},onError:$=>{ot.error(`Failed to save .cursorrules: ${$.message}`)}}),{data:M,isLoading:f}=Ws({queryKey:["claude-md"],queryFn:z3}),g=fa({mutationFn:H3,onSuccess:()=>{i.invalidateQueries({queryKey:["claude-md"]}),ot.success("CLAUDE.md saved successfully!")},onError:$=>{ot.error(`Failed to save CLAUDE.md: ${$.message}`)}});G.useEffect(()=>{j&&!a&&c(j)},[j]),G.useEffect(()=>{M&&!d&&p(M)},[M]);const A=()=>{U.mutate(a)},I=()=>{g.mutate(d)},X=($,ye)=>{navigator.clipboard.writeText($),ot.success(`${ye} copied to clipboard!`)},k=($,ye)=>{const se=new Blob([$],{type:"text/plain"}),de=URL.createObjectURL(se),ue=document.createElement("a");ue.href=de,ue.download=ye,document.body.appendChild(ue),ue.click(),document.body.removeChild(ue),URL.revokeObjectURL(de),ot.success(`${ye} downloaded!`)};return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:126,columnNumber:11},this),"AI Rules & Context"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:125,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:124,columnNumber:7},this),l.jsxDEV(at,{children:[l.jsxDEV(Ar,{className:"mb-4",children:[l.jsxDEV(Kh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:132,columnNumber:11},this),l.jsxDEV(Vr,{children:["Configure AI context files for better assistance. ",l.jsxDEV("strong",{children:".cursorrules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:134,columnNumber:63},this)," works with Cursor, while ",l.jsxDEV("strong",{children:"CLAUDE.md"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:135,columnNumber:19},this)," provides project context for Claude."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:133,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:131,columnNumber:9},this),l.jsxDEV(Kd,{value:v,onValueChange:$=>N($),className:"space-y-4",children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-2",children:[l.jsxDEV(js,{value:"cursor",className:"flex items-center gap-2",children:[l.jsxDEV(Al,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:142,columnNumber:15},this),".cursorrules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:141,columnNumber:13},this),l.jsxDEV(js,{value:"claude",className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:146,columnNumber:15},this),"CLAUDE.md"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:145,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:140,columnNumber:11},this),l.jsxDEV(Ds,{value:"cursor",className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h3",{className:"font-medium",children:"Cursor AI Assistant Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:154,columnNumber:17},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Configure how Cursor's AI understands your project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:155,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:153,columnNumber:15},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>X(a,".cursorrules"),children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:165,columnNumber:19},this),"Copy"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:160,columnNumber:17},this),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>k(a,".cursorrules"),children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:173,columnNumber:19},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:168,columnNumber:17},this),l.jsxDEV(Te,{onClick:A,disabled:U.isPending,size:"sm",children:[l.jsxDEV(QN,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:181,columnNumber:19},this),"Save"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:176,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:159,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:152,columnNumber:13},this),y?l.jsxDEV("div",{className:"flex items-center justify-center p-8",children:[l.jsxDEV(Qd,{className:"w-6 h-6 animate-spin mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:189,columnNumber:17},this),"Loading..."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:188,columnNumber:15},this):l.jsxDEV(JN,{value:a,onChange:$=>c($.target.value),placeholder:"Enter your Cursor AI rules here...",className:"min-h-[300px] font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:193,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:151,columnNumber:11},this),l.jsxDEV(Ds,{value:"claude",className:"space-y-4",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h3",{className:"font-medium",children:"Claude Project Context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:205,columnNumber:17},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Markdown file explaining your project structure and guidelines"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:206,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:204,columnNumber:15},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>X(d,"CLAUDE.md"),children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:216,columnNumber:19},this),"Copy"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:211,columnNumber:17},this),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>k(d,"CLAUDE.md"),children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:224,columnNumber:19},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:219,columnNumber:17},this),l.jsxDEV(Te,{onClick:I,disabled:g.isPending,size:"sm",children:[l.jsxDEV(QN,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:232,columnNumber:19},this),"Save"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:227,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:210,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:203,columnNumber:13},this),f?l.jsxDEV("div",{className:"flex items-center justify-center p-8",children:[l.jsxDEV(Qd,{className:"w-6 h-6 animate-spin mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:240,columnNumber:17},this),"Loading..."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:239,columnNumber:15},this):l.jsxDEV(JN,{value:d,onChange:$=>p($.target.value),placeholder:"Enter your Claude project context here...",className:"min-h-[300px] font-mono text-sm"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:244,columnNumber:15},this),l.jsxDEV(Ar,{children:[l.jsxDEV(Kh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:253,columnNumber:15},this),l.jsxDEV(Vr,{children:"This file helps Claude understand your project. Include project structure, coding conventions, key concepts, and any important context."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:254,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:252,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:202,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:130,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/AIRulesManager.tsx",lineNumber:123,columnNumber:5},this)}const B3=async(i=null)=>{const a=i?`http://localhost:3333/api/files-with-visibility?bundle=${i}`:"http://localhost:3333/api/files-with-visibility",c=await fetch(a);if(!c.ok)throw new Error("Failed to fetch files");return c.json()},L3=async()=>{const i=await fetch("http://localhost:3333/api/ignore-patterns");if(!i.ok)throw new Error("Failed to fetch ignore patterns");return i.json()},q3=async()=>{const i=await fetch("http://localhost:3333/api/bundle-visibility-stats");if(!i.ok)throw new Error("Failed to fetch bundle stats");return i.json()},F3=async({filePath:i,bundleName:a=null,forceHide:c=null})=>{const d=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"toggle",filePath:i,bundleName:a,forceHide:c})});if(!d.ok)throw new Error("Failed to toggle file visibility");return d.json()},Y3=async({filePaths:i,bundleName:a=null,forceHide:c})=>{const d=await fetch("http://localhost:3333/api/hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"bulk-toggle",filePaths:i,bundleName:a,forceHide:c})});if(!d.ok)throw new Error("Failed to bulk toggle visibility");return d.json()},G3=async({action:i,pattern:a})=>{const c=await fetch("http://localhost:3333/api/ignore-patterns",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:i,pattern:a})});if(!c.ok)throw new Error("Failed to manage ignore pattern");return c.json()},$3=async({scope:i,bundleName:a=null})=>{const c=await fetch("http://localhost:3333/api/reset-hidden-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scope:i,bundleName:a})});if(!c.ok)throw new Error("Failed to reset hidden files");return c.json()};function Q3(){const i=Il(),[a,c]=G.useState(null),[d,p]=G.useState(""),[v,N]=G.useState(!1),[j,y]=G.useState("all"),[U,M]=G.useState(""),[f,g]=G.useState([]),{data:A=[],isLoading:I}=Ws({queryKey:["files-with-visibility",a],queryFn:()=>B3(a),refetchInterval:5e3}),{data:X={system:[],user:[],file:[]},isLoading:k}=Ws({queryKey:["ignore-patterns"],queryFn:L3,refetchInterval:1e4}),{data:$={},isLoading:ye}=Ws({queryKey:["bundle-visibility-stats"],queryFn:q3,refetchInterval:5e3}),se=fa({mutationFn:F3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("File visibility updated")},onError:H=>ot.error(`Failed to update file visibility: ${H.message}`)}),de=fa({mutationFn:Y3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),g([]),ot.success("Bulk visibility update completed")},onError:H=>ot.error(`Failed to bulk update visibility: ${H.message}`)}),ue=fa({mutationFn:G3,onSuccess:()=>{i.invalidateQueries({queryKey:["ignore-patterns"]}),i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("Ignore pattern updated")},onError:H=>ot.error(`Failed to update ignore pattern: ${H.message}`)}),we=fa({mutationFn:$3,onSuccess:()=>{i.invalidateQueries({queryKey:["files-with-visibility"]}),i.invalidateQueries({queryKey:["bundle-visibility-stats"]}),i.invalidateQueries({queryKey:["bundles"]}),ot.success("Hidden files reset successfully")},onError:H=>ot.error(`Failed to reset hidden files: ${H.message}`)}),Ue=A.filter(H=>{const fe=H.path.toLowerCase().includes(d.toLowerCase()),pe=j==="all"||j==="hidden"&&!H.visible||j==="visible"&&H.visible,z=v||H.visible;return fe&&pe&&z}),W=H=>{se.mutate({filePath:H,bundleName:a})},K=H=>{de.mutate({filePaths:f,bundleName:a,forceHide:H})},Se=()=>{U.trim()&&(ue.mutate({action:"add",pattern:U.trim()}),M(""))},ae=(H,fe=!1)=>{const pe=fe?"toggle-system":"remove";ue.mutate({action:pe,pattern:H})},Q=[...(X.system||[]).map(H=>({...H,source:"system"})),...(X.user||[]).map(H=>({...H,source:"user"})),...(X.file||[]).map(H=>({...H,source:"file"}))];return l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV("div",{children:[l.jsxDEV("h2",{className:"text-lg font-semibold",children:"File Visibility & Ignore Management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:259,columnNumber:11},this),l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Control which files appear in bundles and manage ignore patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:260,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:258,columnNumber:9},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",className:"flex items-center gap-1",children:[l.jsxDEV(Cl,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:266,columnNumber:13},this),Ue.filter(H=>H.visible).length," visible"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:265,columnNumber:11},this),l.jsxDEV(vt,{variant:"outline",className:"flex items-center gap-1",children:[l.jsxDEV(Ul,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:270,columnNumber:13},this),Ue.filter(H=>!H.visible).length," hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:269,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:264,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:257,columnNumber:7},this),l.jsxDEV(Kd,{defaultValue:"files",className:"space-y-6",children:[l.jsxDEV(Jd,{children:[l.jsxDEV(js,{value:"files",children:"File Visibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:278,columnNumber:11},this),l.jsxDEV(js,{value:"patterns",children:"Ignore Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:279,columnNumber:11},this),l.jsxDEV(js,{value:"bundles",children:"Bundle Overview"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:280,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:277,columnNumber:9},this),l.jsxDEV(Ds,{value:"files",className:"space-y-4",children:[l.jsxDEV(nt,{children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV("div",{className:"flex items-center gap-4 mb-4",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("label",{className:"text-sm font-medium",children:"Bundle:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:290,columnNumber:19},this),l.jsxDEV("select",{value:a||"",onChange:H=>c(H.target.value||null),className:"px-3 py-2 border rounded-md text-sm",children:[l.jsxDEV("option",{value:"",children:"All Bundles (Global)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:296,columnNumber:21},this),Object.keys($).map(H=>l.jsxDEV("option",{value:H,children:H},H,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:298,columnNumber:23},this))]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:291,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:289,columnNumber:17},this),a&&l.jsxDEV(vt,{variant:"secondary",children:["Bundle-specific visibility for ",a]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:304,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:288,columnNumber:15},this),l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV("div",{className:"flex-1",children:l.jsxDEV("div",{className:"relative",children:[l.jsxDEV(aU,{className:"absolute left-2 top-2.5 h-4 w-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:313,columnNumber:21},this),l.jsxDEV(Rl,{placeholder:"Search files...",value:d,onChange:H=>p(H.target.value),className:"pl-8"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:314,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:312,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:311,columnNumber:17},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>N(!v),className:v?"bg-blue-50 border-blue-200":"",children:[v?l.jsxDEV(Cl,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:330,columnNumber:35},this):l.jsxDEV(Ul,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:330,columnNumber:65},this),v?"Hide Hidden":"Show Hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:324,columnNumber:19},this),l.jsxDEV("select",{value:j,onChange:H=>y(H.target.value),className:"px-3 py-2 border rounded-md text-sm",children:[l.jsxDEV("option",{value:"all",children:"All Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:339,columnNumber:21},this),l.jsxDEV("option",{value:"visible",children:"Visible Only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:340,columnNumber:21},this),l.jsxDEV("option",{value:"hidden",children:"Hidden Only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:341,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:334,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:323,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:310,columnNumber:15},this),f.length>0&&l.jsxDEV("div",{className:"flex items-center gap-2 p-3 bg-blue-50 rounded-md border border-blue-200 mt-4",children:[l.jsxDEV(Kh,{className:"w-4 h-4 text-blue-600"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:349,columnNumber:19},this),l.jsxDEV("span",{className:"text-sm text-blue-800",children:[f.length," files selected"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:350,columnNumber:19},this),l.jsxDEV("div",{className:"flex gap-2 ml-auto",children:[l.jsxDEV(Te,{size:"sm",onClick:()=>K(!1),children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:355,columnNumber:23},this),"Show All"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:354,columnNumber:21},this),l.jsxDEV(Te,{size:"sm",variant:"outline",onClick:()=>K(!0),children:[l.jsxDEV(Ul,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:359,columnNumber:23},this),"Hide All"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:358,columnNumber:21},this),l.jsxDEV(Te,{size:"sm",variant:"ghost",onClick:()=>g([]),children:"Cancel"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:362,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:353,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:348,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:287,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:286,columnNumber:11},this),l.jsxDEV(nt,{children:l.jsxDEV(at,{className:"pt-6",children:[I?l.jsxDEV("div",{className:"text-center py-8",children:"Loading files..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:379,columnNumber:17},this):l.jsxDEV("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:Ue.map(H=>l.jsxDEV("div",{className:`flex items-center gap-3 p-2 rounded-md border transition-colors ${H.visible?"hover:bg-gray-50":"opacity-60 bg-gray-50"}`,children:[l.jsxDEV("input",{type:"checkbox",checked:f.includes(H.path),onChange:fe=>{fe.target.checked?g([...f,H.path]):g(f.filter(pe=>pe!==H.path))},className:"rounded"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:388,columnNumber:23},this),l.jsxDEV(Al,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:401,columnNumber:23},this),l.jsxDEV("div",{className:"flex-1 min-w-0",children:[l.jsxDEV("div",{className:"font-mono text-sm truncate",children:H.path},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:404,columnNumber:25},this),l.jsxDEV("div",{className:"flex items-center gap-2 mt-1",children:[H.inBundles.map(fe=>l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:fe},fe,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:407,columnNumber:29},this)),H.globallyHidden&&l.jsxDEV(vt,{variant:"destructive",className:"text-xs",children:"Globally Hidden"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:412,columnNumber:29},this),H.bundleHidden&&a&&l.jsxDEV(vt,{variant:"secondary",className:"text-xs",children:["Hidden in ",a]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:417,columnNumber:29},this),H.matchesIgnorePattern&&l.jsxDEV(vt,{variant:"outline",className:"text-xs text-gray-500",children:"Ignored"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:422,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:405,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:403,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs text-muted-foreground",children:[(H.size/1024).toFixed(1),"kb"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:429,columnNumber:23},this),l.jsxDEV(Te,{size:"sm",variant:"ghost",onClick:()=>W(H.path),disabled:se.isPending,className:"flex-shrink-0",children:H.visible?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Ul,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:442,columnNumber:29},this),"Hide"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:441,columnNumber:27},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:447,columnNumber:29},this),"Show"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:446,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:433,columnNumber:23},this)]},H.path,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:383,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:381,columnNumber:17},this),Ue.length===0&&!I&&l.jsxDEV("div",{className:"text-center py-8 text-muted-foreground",children:"No files match your current filters"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:458,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:377,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:376,columnNumber:11},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(sU,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:469,columnNumber:17},this),"Reset Options"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:468,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:467,columnNumber:13},this),l.jsxDEV(at,{className:"space-y-3",children:l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>we.mutate({scope:"global"}),disabled:we.isPending,children:"Reset Global Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:475,columnNumber:17},this),a&&l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>we.mutate({scope:"bundle",bundleName:a}),disabled:we.isPending,children:["Reset ",a," Bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:485,columnNumber:19},this),l.jsxDEV(Te,{variant:"outline",size:"sm",onClick:()=>we.mutate({scope:"all"}),disabled:we.isPending,className:"text-red-600 border-red-200 hover:bg-red-50",children:"Reset All Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:495,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:474,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:473,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:466,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:284,columnNumber:9},this),l.jsxDEV(Ds,{value:"patterns",className:"space-y-4",children:[l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Add Ignore Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:514,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:513,columnNumber:13},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Rl,{placeholder:"Enter glob pattern (e.g., *.log, src/debug/**)",value:U,onChange:H=>M(H.target.value),className:"flex-1",onKeyDown:H=>H.key==="Enter"&&Se()},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:518,columnNumber:17},this),l.jsxDEV(Te,{onClick:Se,disabled:!U.trim()||ue.isPending,children:[l.jsxDEV(Vl,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:529,columnNumber:19},this),"Add Pattern"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:525,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:517,columnNumber:15},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:["Examples: ",l.jsxDEV("code",{children:"*.log"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:27},this),", ",l.jsxDEV("code",{children:"node_modules/**"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:47},this),", ",l.jsxDEV("code",{children:"src/debug.ts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:77},this),", ",l.jsxDEV("code",{children:"**/*.test.*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:535,columnNumber:104},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:534,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:516,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:512,columnNumber:11},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Current Ignore Patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:543,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:542,columnNumber:13},this),l.jsxDEV(at,{children:k?l.jsxDEV("div",{className:"text-center py-4",children:"Loading patterns..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:547,columnNumber:17},this):l.jsxDEV("div",{className:"space-y-3",children:Q.map((H,fe)=>l.jsxDEV("div",{className:`flex items-center gap-3 p-3 rounded-md border ${H.active?"":"opacity-60 bg-gray-50"}`,children:[l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:"font-mono text-sm",children:H.pattern},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:557,columnNumber:25},this),l.jsxDEV("div",{className:"flex items-center gap-2 mt-1",children:[l.jsxDEV(vt,{variant:H.source==="system"?"secondary":H.source==="user"?"default":"outline",className:"text-xs",children:H.source==="system"?"System Default":H.source==="user"?"User Added":"File Pattern"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:559,columnNumber:27},this),H.active?l.jsxDEV(vt,{variant:"outline",className:"text-xs text-green-700",children:[l.jsxDEV(Js,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:569,columnNumber:31},this),"Active"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:568,columnNumber:29},this):l.jsxDEV(vt,{variant:"outline",className:"text-xs text-gray-500",children:[l.jsxDEV(Hd,{className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:574,columnNumber:31},this),"Disabled"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:573,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:558,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:556,columnNumber:23},this),l.jsxDEV("div",{className:"flex gap-2",children:H.source==="system"?l.jsxDEV(Te,{size:"sm",variant:"ghost",onClick:()=>ae(H.pattern,!0),disabled:ue.isPending,children:H.active?"Disable":"Enable"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:583,columnNumber:27},this):l.jsxDEV(Te,{size:"sm",variant:"ghost",onClick:()=>ae(H.pattern,!1),disabled:ue.isPending,children:l.jsxDEV(Bd,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:598,columnNumber:29},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:592,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:581,columnNumber:23},this)]},fe,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:551,columnNumber:21},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:549,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:545,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:541,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:510,columnNumber:9},this),l.jsxDEV(Ds,{value:"bundles",className:"space-y-4",children:ye?l.jsxDEV("div",{className:"text-center py-8",children:"Loading bundle statistics..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:613,columnNumber:13},this):l.jsxDEV("div",{className:"grid gap-4",children:Object.entries($).map(([H,fe])=>l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV("div",{className:"flex justify-between items-center",children:[l.jsxDEV(yt,{children:H},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:620,columnNumber:23},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV(vt,{variant:"outline",children:[fe.visible," / ",fe.total," visible"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:622,columnNumber:25},this),fe.hidden>0&&l.jsxDEV(vt,{variant:"secondary",children:[fe.hidden," hidden"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:626,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:621,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:619,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:618,columnNumber:19},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:l.jsxDEV("div",{className:"bg-blue-600 h-2 rounded-full",style:{width:`${fe.total>0?fe.visible/fe.total*100:0}%`}},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:637,columnNumber:27},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:636,columnNumber:25},this),l.jsxDEV(Te,{size:"sm",variant:"outline",onClick:()=>c(H),children:[l.jsxDEV($l,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:649,columnNumber:27},this),"Manage Files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:644,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:635,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:l.jsxDEV("div",{children:["Patterns: ",fe.patterns.join(", ")]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:655,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:654,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:634,columnNumber:21},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:633,columnNumber:19},this)]},H,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:617,columnNumber:17},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:615,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:611,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:276,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/HiddenFilesManager.tsx",lineNumber:255,columnNumber:5},this)}const pw=async()=>{try{const[i,a,c]=await Promise.all([fetch("http://localhost:3333/api/config"),fetch("http://localhost:3333/api/bundles"),fetch("http://localhost:3333/api/cursor-rules")]),d=i.ok,p=a.ok?await a.json():[],v=c.ok;return{hasConfig:d,hasIgnoreFile:!0,bundleCount:p.length||0,hasCursorRules:v,isFirstTime:!d||p.length===0}}catch{return{hasConfig:!1,hasIgnoreFile:!1,bundleCount:0,hasCursorRules:!1,isFirstTime:!0}}};function I3({onStartSetup:i}){const{data:a,isLoading:c}=Ws({queryKey:["setup-status"],queryFn:pw,refetchInterval:5e3});return c||!(a!=null&&a.isFirstTime)?null:l.jsxDEV(Ar,{className:"mb-6 border-blue-200 bg-blue-50",children:[l.jsxDEV($l,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:64,columnNumber:7},this),l.jsxDEV(Vr,{className:"flex items-center justify-between",children:[l.jsxDEV("div",{children:[l.jsxDEV("strong",{children:"Welcome to cntx-ui!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:67,columnNumber:11},this)," This looks like your first time. The web interface is already running - let's help you get set up properly."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:66,columnNumber:9},this),l.jsxDEV(Te,{onClick:i,size:"sm",children:"Start Setup Guide"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:65,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:63,columnNumber:5},this)}function X3({onOpenFullSetup:i}){const{data:a,isLoading:c}=Ws({queryKey:["setup-status"],queryFn:pw,refetchInterval:1e4});if(c)return l.jsxDEV("div",{children:"Checking setup status..."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:90,columnNumber:12},this);const d=[{label:"Configuration file exists",passed:(a==null?void 0:a.hasConfig)||!1,description:".cntx/config.json with bundle definitions"},{label:"Ignore patterns configured",passed:(a==null?void 0:a.hasIgnoreFile)||!1,description:".cntxignore file to exclude unnecessary files"},{label:"Bundles generated",passed:((a==null?void 0:a.bundleCount)||0)>0,description:`${(a==null?void 0:a.bundleCount)||0} bundles currently configured`},{label:"Cursor rules created",passed:(a==null?void 0:a.hasCursorRules)||!1,description:".cursorrules file for AI assistant context"}],p=d.every(v=>v.passed);return l.jsxDEV(nt,{className:p?"":"border-yellow-200",children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV($l,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:122,columnNumber:11},this),"Setup Status",p?l.jsxDEV(Js,{className:"w-5 h-5 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:125,columnNumber:13},this):l.jsxDEV(Id,{className:"w-5 h-5 text-yellow-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:127,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:120,columnNumber:7},this),l.jsxDEV(at,{children:[l.jsxDEV("div",{className:"space-y-3",children:d.map((v,N)=>l.jsxDEV("div",{className:"flex items-start gap-3",children:[l.jsxDEV("div",{className:"flex-shrink-0 mt-0.5",children:v.passed?l.jsxDEV(Js,{className:"w-4 h-4 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:137,columnNumber:19},this):l.jsxDEV(Id,{className:"w-4 h-4 text-yellow-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:139,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:135,columnNumber:15},this),l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:`font-medium ${v.passed?"text-green-700":"text-yellow-700"}`,children:v.label},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:143,columnNumber:17},this),l.jsxDEV("div",{className:"text-sm text-gray-600",children:v.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:146,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:142,columnNumber:15},this)]},N,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:134,columnNumber:13},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:132,columnNumber:9},this),!p&&l.jsxDEV("div",{className:"mt-4 pt-4 border-t",children:l.jsxDEV(Te,{onClick:i,variant:"outline",className:"w-full",children:[l.jsxDEV(Y1,{className:"w-4 h-4 mr-2"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:155,columnNumber:15},this),"Complete Setup Guide"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:154,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:153,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:119,columnNumber:5},this)}function Z3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Jh,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:171,columnNumber:11},this),"How to Use cntx-ui"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:170,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:169,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV(Ar,{className:"border-blue-200 bg-blue-50",children:[l.jsxDEV(G1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:177,columnNumber:11},this),l.jsxDEV(Vr,{children:[l.jsxDEV("strong",{children:"You're already running!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:179,columnNumber:13},this)," The web interface provides full functionality. CLI commands are available for automation and advanced workflows."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:178,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:176,columnNumber:9},this),l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2 flex items-center gap-2",children:[l.jsxDEV(Jh,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:187,columnNumber:15},this),"Web Interface (Recommended)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:186,columnNumber:13},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-2",children:[l.jsxDEV("p",{children:"Perfect for interactive use and project management:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:191,columnNumber:15},this),l.jsxDEV("div",{className:"ml-4 space-y-1",children:[l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Bundle Management:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:193,columnNumber:24},this)," View, create, and manage bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:193,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Configuration:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:194,columnNumber:24},this)," Edit bundle patterns visually"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:194,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Hidden Files:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:195,columnNumber:24},this)," Control file visibility per bundle"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:195,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Cursor Rules:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:196,columnNumber:24},this)," Manage AI assistant context"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:196,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Real-time Updates:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:197,columnNumber:24},this)," See changes immediately"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:197,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:192,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:185,columnNumber:11},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2 flex items-center gap-2",children:[l.jsxDEV(MT,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:204,columnNumber:15},this),"Command Line Interface"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:203,columnNumber:13},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-2",children:[l.jsxDEV("p",{children:"Great for automation, scripts, and CI/CD:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:208,columnNumber:15},this),l.jsxDEV("div",{className:"ml-4 space-y-1",children:[l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Quick bundle generation:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:24},this)," ",l.jsxDEV("code",{className:"bg-gray-100 px-1 rounded",children:"cntx-ui bundle master"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:66},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:210,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Status checking:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:24},this)," ",l.jsxDEV("code",{className:"bg-gray-100 px-1 rounded",children:"cntx-ui status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:58},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:211,columnNumber:17},this),l.jsxDEV("div",{children:["• ",l.jsxDEV("strong",{children:"Scripting workflows:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:212,columnNumber:24},this)," Integrate with build processes"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:212,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:209,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:207,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:202,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:184,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:175,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:168,columnNumber:5},this)}function K3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(G1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:228,columnNumber:11},this),"CLI Reference"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:227,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:226,columnNumber:7},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"space-y-3 text-sm font-mono",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui watch"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:235,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Start server (already running)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:236,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:234,columnNumber:11},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:239,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Check configuration status"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:240,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:238,columnNumber:11},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("code",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:"cntx-ui bundle [name]"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:243,columnNumber:13},this),l.jsxDEV("span",{className:"text-gray-600 text-xs",children:"Generate specific bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:244,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:242,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:233,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:232,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:225,columnNumber:5},this)}function J3(){return l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Al,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:258,columnNumber:11},this),"Common Workflows"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:257,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:256,columnNumber:7},this),l.jsxDEV(at,{className:"space-y-4",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"🎯 For AI Development"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:264,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Create focused bundles (api, ui, core)"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:266,columnNumber:13},this),l.jsxDEV("div",{children:"2. Hide debug/temp files from bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:267,columnNumber:13},this),l.jsxDEV("div",{children:"3. Copy bundle XML for AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:268,columnNumber:13},this),l.jsxDEV("div",{children:"4. Use Cursor Rules for project context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:269,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:265,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:263,columnNumber:9},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"📁 For Project Organization"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:274,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Configure ignore patterns for unwanted files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:276,columnNumber:13},this),l.jsxDEV("div",{children:"2. Create bundles by feature or responsibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:277,columnNumber:13},this),l.jsxDEV("div",{children:"3. Use hidden files to trim bundle scope"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:278,columnNumber:13},this),l.jsxDEV("div",{children:"4. Monitor bundle sizes and file counts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:279,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:275,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:273,columnNumber:9},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"🤖 For CI/CD Integration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:284,columnNumber:11},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"1. Use CLI commands in build scripts"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:286,columnNumber:13},this),l.jsxDEV("div",{children:"2. Generate bundles for automated testing"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:287,columnNumber:13},this),l.jsxDEV("div",{children:"3. Export project context for deployment"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:288,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:285,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:283,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:262,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupComponents.tsx",lineNumber:255,columnNumber:5},this)}function W3(){const[i,a]=G.useState(0),[c,d]=G.useState([{id:"welcome",title:"Welcome to cntx-ui",description:"Organize your code into focused bundles for AI assistance",completed:!1,required:!0},{id:"bundles",title:"Create Your First Bundles",description:"Set up focused file collections and learn the basics",completed:!1,required:!0},{id:"ai-analysis",title:"AI Bundle Analysis (Optional)",description:"Let AI analyze your code and suggest optimal bundles",completed:!1,required:!1},{id:"mcp-integration",title:"MCP Integration (Enhanced)",description:"Set up seamless AI integration with Claude Desktop",completed:!1,required:!1},{id:"workflows",title:"Choose Your Workflow",description:"Manual copy/paste or seamless MCP integration",completed:!1,required:!1}]),[p,v]=G.useState(!1),[N,j]=G.useState(!1),y=async()=>{const A=`Analyze this codebase bundle and suggest an optimal bundle configuration for cntx-ui.
|
|
505
|
+
|
|
506
|
+
Based on the file structure and content, recommend 3-6 meaningful bundles with glob patterns that group related files logically.
|
|
507
|
+
|
|
508
|
+
Consider these common bundle types:
|
|
509
|
+
- Frontend/UI components and pages
|
|
510
|
+
- Backend API routes and controllers
|
|
511
|
+
- Configuration files
|
|
512
|
+
- Documentation
|
|
513
|
+
- Tests
|
|
514
|
+
- Utilities/helpers
|
|
515
|
+
- Styles/assets
|
|
516
|
+
|
|
517
|
+
Return ONLY a JSON configuration in this exact format:
|
|
518
|
+
{
|
|
519
|
+
"bundles": {
|
|
520
|
+
"master": ["**/*"],
|
|
521
|
+
"frontend": ["src/components/**/*", "src/pages/**/*", "src/hooks/**/*"],
|
|
522
|
+
"api": ["src/api/**/*", "routes/**/*", "controllers/**/*"],
|
|
523
|
+
"config": ["*.config.*", "package.json", "tsconfig.json"],
|
|
524
|
+
"docs": ["README.md", "docs/**/*", "*.md"],
|
|
525
|
+
"tests": ["**/*.test.*", "**/*.spec.*", "__tests__/**/*"]
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
Please analyze the following master bundle and suggest appropriate bundles:
|
|
530
|
+
|
|
531
|
+
[PASTE YOUR MASTER BUNDLE XML CONTENT HERE]`;try{await navigator.clipboard.writeText(A),v(!0),setTimeout(()=>v(!1),3e3)}catch(I){console.error("Failed to copy AI prompt:",I)}},U=async()=>{try{const A=await fetch("http://localhost:3333/api/bundles/master");if(!A.ok)throw new Error("Failed to fetch master bundle");const I=await A.text();await navigator.clipboard.writeText(I),j(!0),setTimeout(()=>j(!1),3e3)}catch(A){console.error("Failed to copy master bundle:",A)}},M=async()=>{try{const A=await fetch("http://localhost:3333/api/bundles/master");if(!A.ok)throw new Error("Failed to fetch master bundle");const I=await A.text(),X=new Blob([I],{type:"application/xml"}),k=URL.createObjectURL(X),$=document.createElement("a");$.href=k,$.download="master-bundle.xml",$.click(),URL.revokeObjectURL(k)}catch(A){console.error("Failed to download master bundle:",A)}},f=A=>{d(I=>I.map(X=>X.id===A?{...X,completed:!0}:X))},g=({step:A,isActive:I})=>l.jsxDEV("div",{className:`flex items-center gap-3 p-3 rounded-lg transition-colors ${I?"bg-blue-50 border border-blue-200":"hover:bg-gray-50"}`,children:[l.jsxDEV("div",{className:"flex-shrink-0",children:A.completed?l.jsxDEV(Js,{className:"w-6 h-6 text-green-500"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:142,columnNumber:11},this):l.jsxDEV(q1,{className:`w-6 h-6 ${I?"text-blue-500":"text-gray-300"}`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:144,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:140,columnNumber:7},this),l.jsxDEV("div",{className:"flex-1",children:[l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("h3",{className:`font-medium ${I?"text-blue-900":"text-gray-900"}`,children:A.title},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:149,columnNumber:11},this),A.required&&l.jsxDEV(vt,{variant:"outline",className:"text-xs",children:"Required"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:153,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:148,columnNumber:9},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:A.description},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:156,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:147,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:138,columnNumber:5},this);return l.jsxDEV("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100",children:l.jsxDEV("div",{className:"container mx-auto px-4 py-8",children:[l.jsxDEV("div",{className:"text-center mb-8",children:[l.jsxDEV("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Welcome to cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:166,columnNumber:11},this),l.jsxDEV("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"You're already up and running! Let's explore what you can do with the web interface."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:167,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:165,columnNumber:9},this),l.jsxDEV("div",{className:"grid lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:[l.jsxDEV("div",{className:"lg:col-span-1",children:l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV($l,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:178,columnNumber:19},this),"Quick Tour"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:177,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:176,columnNumber:15},this),l.jsxDEV(at,{className:"space-y-2",children:c.map((A,I)=>l.jsxDEV("div",{onClick:()=>a(I),className:"cursor-pointer",children:l.jsxDEV(g,{step:A,isActive:i===I},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:189,columnNumber:21},this)},A.id,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:184,columnNumber:19},this))},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:182,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:175,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:174,columnNumber:11},this),l.jsxDEV("div",{className:"lg:col-span-2 space-y-6",children:[i===0&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:203,columnNumber:21},this),"Welcome to cntx-ui"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:202,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:201,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV(Ar,{className:"border-green-200 bg-green-50",children:[l.jsxDEV(Js,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:209,columnNumber:21},this),l.jsxDEV(Vr,{children:[l.jsxDEV("strong",{children:"You're all set!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:211,columnNumber:23},this)," cntx-ui is running and ready to organize your code for AI assistance. Start with basic bundle management, then optionally enhance with seamless AI integration."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:210,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:208,columnNumber:19},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"What is cntx-ui?"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:217,columnNumber:21},this),l.jsxDEV("p",{className:"text-sm text-blue-800 mb-3",children:"cntx-ui organizes your codebase into focused bundles for AI development. Create meaningful file collections, copy them to AI tools, or use advanced MCP integration for seamless workflows."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:218,columnNumber:21},this),l.jsxDEV("div",{className:"grid grid-cols-2 gap-2 text-sm text-blue-800",children:[l.jsxDEV("div",{children:"• Bundle files by purpose or feature"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:223,columnNumber:23},this),l.jsxDEV("div",{children:"• Hide irrelevant files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:224,columnNumber:23},this),l.jsxDEV("div",{children:"• Copy bundles to any AI tool"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:225,columnNumber:23},this),l.jsxDEV("div",{children:"• Optional seamless AI integration"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:226,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:222,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:216,columnNumber:19},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV(nt,{className:"border-blue-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(Jh,{className:"w-8 h-8 text-blue-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:233,columnNumber:25},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Core Experience"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:234,columnNumber:25},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:"Organize bundles in the web interface, copy XML to Claude, ChatGPT, or any AI tool."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:235,columnNumber:25},this),l.jsxDEV(vt,{variant:"outline",className:"mt-2",children:"Works everywhere"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:238,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:232,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:231,columnNumber:21},this),l.jsxDEV(nt,{className:"border-purple-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(IN,{className:"w-8 h-8 text-purple-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:244,columnNumber:25},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Enhanced Experience"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:245,columnNumber:25},this),l.jsxDEV("p",{className:"text-sm text-gray-600",children:"Optional MCP server integration for seamless access in Claude Desktop and other MCP clients."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:246,columnNumber:25},this),l.jsxDEV(vt,{variant:"outline",className:"mt-2",children:"Progressive enhancement"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:249,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:243,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:242,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:230,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Te,{variant:"outline",disabled:!0,children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:255,columnNumber:21},this),l.jsxDEV(Te,{onClick:()=>{f("welcome"),a(1)},children:["Create Your First Bundles ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:257,columnNumber:49},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:256,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:254,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:207,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:200,columnNumber:15},this),i===1&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(_d,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:269,columnNumber:21},this),"Create Your First Bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:268,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:267,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:`cntx-ui starts with a "master" bundle containing all your files. Let's explore the basics and learn how to create focused bundles for better AI assistance.`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:275,columnNumber:21},this),l.jsxDEV(Ar,{className:"border-blue-200 bg-blue-50",children:[l.jsxDEV(_d,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:281,columnNumber:23},this),l.jsxDEV(Vr,{children:[l.jsxDEV("strong",{children:"✅ You're ready to go!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:283,columnNumber:25},this)," cntx-ui has already created a master bundle with all your project files. Now let's organize them into meaningful collections."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:282,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:280,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:274,columnNumber:19},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-3",children:"Here's the workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:290,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-blue-800 space-y-2 list-decimal list-inside",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy the AI analysis prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:292,columnNumber:27},this)," (button below)"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:292,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Bundles tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:293,columnNumber:27},this),' → Copy the "master" bundle XML']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:293,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Open Claude/ChatGPT"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:294,columnNumber:27},this)," → Paste the prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:294,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Paste your master bundle XML"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:295,columnNumber:27},this)," after the prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:295,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"AI returns perfect bundle JSON"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:296,columnNumber:27},this)," tailored to your code!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:296,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:297,columnNumber:27},this)," → Paste the JSON → Apply!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:297,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:291,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:289,columnNumber:19},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Step 1: Copy AI Prompt & Master Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:302,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("div",{className:"bg-slate-900 rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[l.jsxDEV("span",{className:"text-green-400 text-sm",children:"🤖 Smart Bundle Analysis Prompt"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:306,columnNumber:27},this),l.jsxDEV(Te,{variant:"ghost",size:"sm",onClick:y,className:"text-gray-400 hover:text-white",children:p?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Js,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:315,columnNumber:33},this),"Copied!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:314,columnNumber:31},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:320,columnNumber:33},this),"Copy Prompt"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:319,columnNumber:31},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:307,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:305,columnNumber:25},this),l.jsxDEV("div",{className:"text-gray-300 text-sm",children:"Intelligent prompt that guides AI to analyze your code structure"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:326,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:304,columnNumber:23},this),l.jsxDEV("div",{className:"bg-slate-900 rounded-lg p-4",children:[l.jsxDEV("div",{className:"flex items-center justify-between mb-2",children:[l.jsxDEV("span",{className:"text-blue-400 text-sm",children:"📦 Master Bundle XML"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:333,columnNumber:27},this),l.jsxDEV("div",{className:"flex gap-2",children:[l.jsxDEV(Te,{variant:"ghost",size:"sm",onClick:U,className:"text-gray-400 hover:text-white",children:N?l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Js,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:343,columnNumber:35},this),"Copied!"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:342,columnNumber:33},this):l.jsxDEV(l.Fragment,{children:[l.jsxDEV(Cc,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:348,columnNumber:35},this),"Copy XML"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:347,columnNumber:33},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:335,columnNumber:29},this),l.jsxDEV(Te,{variant:"ghost",size:"sm",onClick:M,className:"text-gray-400 hover:text-white",children:[l.jsxDEV($d,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:359,columnNumber:31},this),"Download"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:353,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:334,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:332,columnNumber:25},this),l.jsxDEV("div",{className:"text-gray-300 text-sm",children:"Your complete codebase bundle for AI analysis"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:364,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:331,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:303,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:301,columnNumber:19},this),l.jsxDEV("div",{className:"bg-purple-50 p-4 rounded-lg border border-purple-200",children:[l.jsxDEV("h4",{className:"font-medium text-purple-900 mb-2",children:"🚀 Complete AI Workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:372,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy the prompt above"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:374,columnNumber:27},this)," → Paste into Claude/ChatGPT"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:374,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Copy/download master bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:375,columnNumber:27},this)," → Add to your AI conversation"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:375,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"AI analyzes your code"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:376,columnNumber:27},this)," → Returns perfect bundle configuration"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:376,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Go to Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:377,columnNumber:27},this)," → Paste AI's JSON → Apply configuration"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:377,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"🎉 Optimized bundles ready!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:378,columnNumber:27},this)," → Tailored to your project structure"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:378,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:373,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:371,columnNumber:19},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"What AI Analyzes:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:384,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm space-y-1",children:[l.jsxDEV("div",{children:["🗂️ ",l.jsxDEV("strong",{children:"File organization patterns"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:386,columnNumber:34},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:386,columnNumber:25},this),l.jsxDEV("div",{children:["🔗 ",l.jsxDEV("strong",{children:"Import/dependency relationships"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:387,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:387,columnNumber:25},this),l.jsxDEV("div",{children:["⚙️ ",l.jsxDEV("strong",{children:"Technology stack detection"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:388,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:388,columnNumber:25},this),l.jsxDEV("div",{children:["📁 ",l.jsxDEV("strong",{children:"Logical grouping opportunities"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:389,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:389,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:385,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:383,columnNumber:21},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"AI Suggests Bundles Like:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:394,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm space-y-1",children:[l.jsxDEV("div",{children:["🎨 ",l.jsxDEV("strong",{children:"frontend"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:396,columnNumber:33},this)," - Components, pages, styles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:396,columnNumber:25},this),l.jsxDEV("div",{children:["🔌 ",l.jsxDEV("strong",{children:"api"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:397,columnNumber:33},this)," - Routes, controllers, models"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:397,columnNumber:25},this),l.jsxDEV("div",{children:["🧪 ",l.jsxDEV("strong",{children:"tests"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:398,columnNumber:33},this)," - All test files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:398,columnNumber:25},this),l.jsxDEV("div",{children:["⚙️ ",l.jsxDEV("strong",{children:"config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:399,columnNumber:33},this)," - Configuration files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:399,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:395,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:393,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:382,columnNumber:19},this),l.jsxDEV(Ar,{children:[l.jsxDEV(Id,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:405,columnNumber:21},this),l.jsxDEV(Vr,{children:[l.jsxDEV("strong",{children:"Why this works so well:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:407,columnNumber:23},this)," AI understands code patterns and can see relationships between files that aren't obvious. It creates bundles that actually make sense for your specific project."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:406,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:404,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Te,{variant:"outline",onClick:()=>a(0),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:413,columnNumber:21},this),l.jsxDEV(Te,{onClick:()=>{f("ai-analysis"),a(2)},children:["Continue to Bundle Management ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:415,columnNumber:53},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:414,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:412,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:273,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:266,columnNumber:15},this),i===2&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(_d,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:427,columnNumber:21},this),"Create & Manage Your Bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:426,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:425,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Whether you used AI suggestions or want to create bundles manually, here's how to manage your bundle collection."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:433,columnNumber:21},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg mb-4",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"If you used AI analysis:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:439,columnNumber:23},this),l.jsxDEV("ol",{className:"text-sm text-green-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to the ",l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:441,columnNumber:39},this)," tab above"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:441,columnNumber:25},this),l.jsxDEV("li",{children:["Scroll to ",l.jsxDEV("strong",{children:'"Paste Bundle Configuration"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:442,columnNumber:39},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:442,columnNumber:25},this),l.jsxDEV("li",{children:"Paste the AI-generated JSON"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:443,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Apply Configuration"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:444,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:444,columnNumber:25},this),l.jsxDEV("li",{children:"🎉 Your optimized bundles are ready!"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:445,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:440,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:438,columnNumber:21},this),l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg mb-4",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"To create bundles manually:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:450,columnNumber:23},this),l.jsxDEV("ol",{className:"text-sm text-blue-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to the ",l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:452,columnNumber:39},this)," tab above"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:452,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Add New Bundle"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:453,columnNumber:35},this)," at the bottom"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:453,columnNumber:25},this),l.jsxDEV("li",{children:'Name it something meaningful (e.g., "frontend", "api", "core")'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:454,columnNumber:25},this),l.jsxDEV("li",{children:["Add patterns like ",l.jsxDEV("code",{className:"bg-blue-100 px-1 rounded",children:"src/components/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:455,columnNumber:47},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:455,columnNumber:25},this),l.jsxDEV("li",{children:["Click ",l.jsxDEV("strong",{children:'"Create Bundle"'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:456,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:456,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:451,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:449,columnNumber:21},this),l.jsxDEV(Ar,{children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:461,columnNumber:23},this),l.jsxDEV(Vr,{children:[l.jsxDEV("strong",{children:"Pro tip:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:463,columnNumber:25},this),' You can test patterns before adding them! Use the "Pattern Tester" in the Config tab to see which files match.']},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:462,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:460,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:432,columnNumber:19},this),l.jsxDEV("div",{className:"space-y-3",children:[l.jsxDEV("h4",{className:"font-medium",children:"Popular Manual Bundle Examples:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:470,columnNumber:21},this),l.jsxDEV("div",{className:"grid gap-3",children:[l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"Frontend Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:473,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"src/components/**/* • src/pages/**/* • *.css"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:474,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:472,columnNumber:23},this),l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"API Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:477,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"src/api/**/* • src/routes/**/* • src/models/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:478,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:476,columnNumber:23},this),l.jsxDEV("div",{className:"bg-gray-50 p-3 rounded-md",children:[l.jsxDEV("div",{className:"font-medium text-sm",children:"Tests Bundle"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:481,columnNumber:25},this),l.jsxDEV("code",{className:"text-xs text-gray-600",children:"**/*.test.* • **/*.spec.* • __tests__/**/*"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:482,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:480,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:471,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:469,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Te,{variant:"outline",onClick:()=>a(1),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:488,columnNumber:21},this),l.jsxDEV(Te,{onClick:()=>{f("bundles"),a(3)},children:["Continue to Optimization ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:490,columnNumber:48},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:489,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:487,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:431,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:424,columnNumber:15},this),i===3&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(IN,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:502,columnNumber:21},this),"Optimize for AI Development"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:501,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:500,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{children:[l.jsxDEV("p",{className:"text-gray-600 mb-4",children:"Now let's make your bundles perfect for AI assistants by controlling what they see."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:508,columnNumber:21},this),l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4",children:[l.jsxDEV(nt,{className:"border-purple-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(Cl,{className:"w-8 h-8 text-purple-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:515,columnNumber:27},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Hidden Files Tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:516,columnNumber:27},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"• Hide debug files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:518,columnNumber:29},this),l.jsxDEV("div",{children:"• Remove temp/generated files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:519,columnNumber:29},this),l.jsxDEV("div",{children:"• Create clean, focused bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:520,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:517,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:514,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:513,columnNumber:23},this),l.jsxDEV(nt,{className:"border-green-200",children:l.jsxDEV(at,{className:"pt-6",children:[l.jsxDEV(wa,{className:"w-8 h-8 text-green-600 mb-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:527,columnNumber:27},this),l.jsxDEV("h3",{className:"font-medium mb-2",children:"Cursor Rules Tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:528,columnNumber:27},this),l.jsxDEV("div",{className:"text-sm text-gray-600 space-y-1",children:[l.jsxDEV("div",{children:"• Set coding standards"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:530,columnNumber:29},this),l.jsxDEV("div",{children:"• Define project context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:531,columnNumber:29},this),l.jsxDEV("div",{children:"• Guide AI assistant behavior"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:532,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:529,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:526,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:525,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:512,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:507,columnNumber:19},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"Try this workflow:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:540,columnNumber:21},this),l.jsxDEV("ol",{className:"text-sm text-green-800 space-y-1 list-decimal list-inside",children:[l.jsxDEV("li",{children:["Go to ",l.jsxDEV("strong",{children:"Hidden Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:542,columnNumber:33},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:542,columnNumber:23},this),l.jsxDEV("li",{children:'Search for "debug" or "test" files'},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:543,columnNumber:23},this),l.jsxDEV("li",{children:"Hide them from your main bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:544,columnNumber:23},this),l.jsxDEV("li",{children:["Go to ",l.jsxDEV("strong",{children:"Cursor Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:545,columnNumber:33},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:545,columnNumber:23},this),l.jsxDEV("li",{children:"Choose a template that matches your project"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:546,columnNumber:23},this),l.jsxDEV("li",{children:"Customize the rules for your team's preferences"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:547,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:541,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:539,columnNumber:19},this),l.jsxDEV(Ar,{children:[l.jsxDEV(Id,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:552,columnNumber:21},this),l.jsxDEV(Vr,{children:[l.jsxDEV("strong",{children:"Why this matters:"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:554,columnNumber:23},this)," Clean bundles = better AI responses. Removing noise helps AI focus on what's actually important in your code."]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:553,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:551,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Te,{variant:"outline",onClick:()=>a(2),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:560,columnNumber:21},this),l.jsxDEV(Te,{onClick:()=>{f("optimization"),a(4)},children:["Continue ",l.jsxDEV(Od,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:562,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:561,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:559,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:506,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:499,columnNumber:15},this),i===4&&l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Y1,{className:"w-5 h-5"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:574,columnNumber:21},this),"Common Workflows & Next Steps"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:573,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:572,columnNumber:17},this),l.jsxDEV(at,{className:"space-y-6",children:[l.jsxDEV("div",{className:"grid gap-4",children:[l.jsxDEV("div",{className:"bg-blue-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-blue-900 mb-2",children:"🤖 Using with AI Assistants"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:581,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-blue-800 space-y-1",children:[l.jsxDEV("div",{children:"1. Create a focused bundle for your current task"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:583,columnNumber:25},this),l.jsxDEV("div",{children:["2. Copy the XML from the ",l.jsxDEV("strong",{children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:584,columnNumber:55},this)," tab"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:584,columnNumber:25},this),l.jsxDEV("div",{children:"3. Paste into Claude, ChatGPT, or other AI tools"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:585,columnNumber:25},this),l.jsxDEV("div",{children:"4. Get more accurate, context-aware responses"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:586,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:582,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:580,columnNumber:21},this),l.jsxDEV("div",{className:"bg-purple-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-purple-900 mb-2",children:"📁 Organizing Large Projects"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:591,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-purple-800 space-y-1",children:[l.jsxDEV("div",{children:"1. Create bundles by feature or team responsibility"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:593,columnNumber:25},this),l.jsxDEV("div",{children:"2. Use hidden files to exclude work-in-progress code"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:594,columnNumber:25},this),l.jsxDEV("div",{children:"3. Monitor bundle sizes in the web interface"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:595,columnNumber:25},this),l.jsxDEV("div",{children:"4. Share specific bundles with team members"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:596,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:592,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:590,columnNumber:21},this),l.jsxDEV("div",{className:"bg-green-50 p-4 rounded-lg",children:[l.jsxDEV("h4",{className:"font-medium text-green-900 mb-2",children:"⚡ Advanced Tips"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:601,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-green-800 space-y-1",children:[l.jsxDEV("div",{children:"• Bundle-specific hiding: Hide files from specific bundles only"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:603,columnNumber:25},this),l.jsxDEV("div",{children:"• Pattern testing: Use the pattern tester in Config tab"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:604,columnNumber:25},this),l.jsxDEV("div",{children:"• Real-time updates: Changes appear immediately"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:605,columnNumber:25},this),l.jsxDEV("div",{children:"• CLI integration: Use commands for automation"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:606,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:602,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:600,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:579,columnNumber:19},this),l.jsxDEV("div",{className:"bg-yellow-50 p-4 rounded-lg border border-yellow-200",children:[l.jsxDEV("h4",{className:"font-medium text-yellow-900 mb-2",children:"🎯 Quick Start Checklist"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:612,columnNumber:21},this),l.jsxDEV("div",{className:"text-sm text-yellow-800 space-y-1",children:[l.jsxDEV("div",{children:"✅ Create 2-3 focused bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:614,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Hide debug/temp files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:615,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Set up cursor rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:616,columnNumber:23},this),l.jsxDEV("div",{children:"✅ Copy a bundle and try it with an AI assistant"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:617,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:613,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:611,columnNumber:19},this),l.jsxDEV("div",{className:"flex justify-between",children:[l.jsxDEV(Te,{variant:"outline",onClick:()=>a(3),children:"Previous"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:622,columnNumber:21},this),l.jsxDEV(Te,{onClick:()=>f("workflows"),className:"bg-green-600 hover:bg-green-700",children:["Get Started! ",l.jsxDEV(zT,{className:"w-4 h-4 ml-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:624,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:623,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:621,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:578,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:571,columnNumber:15},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Quick Reference"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:634,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:633,columnNumber:15},this),l.jsxDEV(at,{children:l.jsxDEV("div",{className:"grid md:grid-cols-2 gap-4 text-sm",children:[l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Web Interface Tabs"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:639,columnNumber:21},this),l.jsxDEV("ul",{className:"space-y-1 text-gray-600",children:[l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:641,columnNumber:27},this)," - View and copy bundle content"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:641,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:642,columnNumber:27},this)," - Browse your project files"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:642,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Config"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:643,columnNumber:27},this)," - Create and edit bundles"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:643,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Hidden"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:644,columnNumber:27},this)," - Control file visibility"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:644,columnNumber:23},this),l.jsxDEV("li",{children:[l.jsxDEV("strong",{children:"Cursor"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:645,columnNumber:27},this)," - Manage AI assistant rules"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:645,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:640,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:638,columnNumber:19},this),l.jsxDEV("div",{children:[l.jsxDEV("h4",{className:"font-medium mb-2",children:"Key Features"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:649,columnNumber:21},this),l.jsxDEV("ul",{className:"space-y-1 text-gray-600",children:[l.jsxDEV("li",{children:"Real-time file watching and updates"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:651,columnNumber:23},this),l.jsxDEV("li",{children:"Bundle-specific file hiding"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:652,columnNumber:23},this),l.jsxDEV("li",{children:"Pattern testing and validation"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:653,columnNumber:23},this),l.jsxDEV("li",{children:"AI assistant context management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:654,columnNumber:23},this),l.jsxDEV("li",{children:"XML export for AI tools"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:655,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:650,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:648,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:637,columnNumber:17},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:636,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:632,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:197,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:172,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:163,columnNumber:7},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/components/SetupScreen.tsx",lineNumber:162,columnNumber:5},this)}const WN=new iD;function eC(){const[i,a]=G.useState("connecting"),[c,d]=G.useState(!1),[p,v]=G.useState(!1);return G.useEffect(()=>{const N=new WebSocket("ws://localhost:3333");return N.onopen=()=>a("connected"),N.onclose=()=>a("disconnected"),()=>N.close()},[]),c?l.jsxDEV(zN,{client:WN,children:l.jsxDEV("div",{className:"relative",children:[l.jsxDEV(Te,{variant:"ghost",size:"sm",onClick:()=>d(!1),className:"absolute top-4 right-4 z-10",children:l.jsxDEV($1,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:45,columnNumber:13},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:39,columnNumber:11},this),l.jsxDEV(W3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:47,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:38,columnNumber:9},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:37,columnNumber:7},this):l.jsxDEV(zN,{client:WN,children:l.jsxDEV("div",{className:"min-h-screen bg-background text-foreground",children:[l.jsxDEV("header",{className:"border-b",children:l.jsxDEV("div",{className:"container mx-auto px-4 py-4 flex justify-between items-center",children:[l.jsxDEV("h1",{className:"text-2xl font-bold",children:"cntx-ui"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:58,columnNumber:13},this),l.jsxDEV("div",{className:"flex items-center gap-4",children:[l.jsxDEV(Te,{variant:"ghost",size:"sm",onClick:()=>v(!p),children:[l.jsxDEV(UT,{className:"w-4 h-4 mr-1"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:65,columnNumber:17},this),"Help"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:60,columnNumber:15},this),l.jsxDEV("div",{className:"flex items-center gap-2",children:[l.jsxDEV("div",{className:`w-2 h-2 rounded-full ${i==="connected"?"bg-green-500":i==="connecting"?"bg-yellow-500":"bg-red-500"}`},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:69,columnNumber:17},this),l.jsxDEV("span",{className:"text-sm text-muted-foreground",children:i==="connected"?"Connected • Watching files":i==="connecting"?"Connecting...":"Disconnected"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:72,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:68,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:59,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:57,columnNumber:11},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:56,columnNumber:9},this),l.jsxDEV("main",{className:"container mx-auto px-4 py-6",children:[l.jsxDEV(I3,{onStartSetup:()=>d(!0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:83,columnNumber:11},this),l.jsxDEV("div",{className:"flex flex-col lg:flex-row gap-6",children:[l.jsxDEV(YU,{position:"top-right"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:87,columnNumber:13},this),l.jsxDEV("div",{className:"flex-1 min-w-0",children:l.jsxDEV(Kd,{defaultValue:"bundles",className:"space-y-6",children:[l.jsxDEV(Jd,{className:"grid w-full grid-cols-3",children:[l.jsxDEV(js,{value:"bundles",children:"Bundles & Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:93,columnNumber:19},this),l.jsxDEV(js,{value:"settings",className:"flex items-center gap-1",children:[l.jsxDEV(Ul,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:95,columnNumber:21},this),l.jsxDEV("span",{children:"Settings"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:96,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:94,columnNumber:19},this),l.jsxDEV(js,{value:"cursor",className:"flex items-center gap-1",children:[l.jsxDEV(wa,{className:"w-3 h-3"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:99,columnNumber:21},this),l.jsxDEV("span",{children:"AI Rules"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:100,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:98,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:92,columnNumber:17},this),l.jsxDEV(Ds,{value:"bundles",children:l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Bundle Management"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:108,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:107,columnNumber:23},this),l.jsxDEV(at,{children:l.jsxDEV(IU,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:111,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:110,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:106,columnNumber:21},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Project Files"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:117,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:116,columnNumber:23},this),l.jsxDEV(at,{children:l.jsxDEV(KU,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:120,columnNumber:25},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:119,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:115,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:105,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:104,columnNumber:17},this),l.jsxDEV(Ds,{value:"settings",children:l.jsxDEV("div",{className:"space-y-6",children:[l.jsxDEV(Q3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:128,columnNumber:21},this),l.jsxDEV(M3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:129,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:127,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:126,columnNumber:17},this),l.jsxDEV(Ds,{value:"cursor",children:l.jsxDEV(_3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:134,columnNumber:19},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:133,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:91,columnNumber:15},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:90,columnNumber:13},this),l.jsxDEV("div",{className:"w-full lg:w-80 xl:w-96 flex-shrink-0 space-y-6",children:[l.jsxDEV(X3,{onOpenFullSetup:()=>d(!0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:142,columnNumber:15},this),p&&l.jsxDEV("div",{className:"space-y-4",children:[l.jsxDEV(Z3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:147,columnNumber:19},this),l.jsxDEV(J3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:148,columnNumber:19},this),l.jsxDEV(K3,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:149,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(Ul,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:155,columnNumber:25},this),"File Visibility"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:154,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:153,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-2",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Control which files appear in your bundles without changing ignore patterns."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:160,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs space-y-1",children:[l.jsxDEV("div",{children:"• Hide debug/temp files from AI context"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:164,columnNumber:25},this),l.jsxDEV("div",{children:"• Create focused bundles for specific tasks"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:165,columnNumber:25},this),l.jsxDEV("div",{children:"• Bundle-specific or global hiding"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:166,columnNumber:25},this),l.jsxDEV("div",{children:"• Easy restore when needed"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:167,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:163,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:159,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:152,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{className:"flex items-center gap-2",children:[l.jsxDEV(wa,{className:"w-4 h-4"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:176,columnNumber:25},this),"AI Assistant"]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:175,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:174,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-2",children:[l.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Cursor rules help AI assistants understand your project context and coding preferences."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:181,columnNumber:23},this),l.jsxDEV("div",{className:"text-xs space-y-1",children:[l.jsxDEV("div",{children:"• Project structure & bundles"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:185,columnNumber:25},this),l.jsxDEV("div",{children:"• Coding standards & style"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:186,columnNumber:25},this),l.jsxDEV("div",{children:"• Framework preferences"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:187,columnNumber:25},this),l.jsxDEV("div",{children:"• Team conventions"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:188,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:184,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:180,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:173,columnNumber:19},this),l.jsxDEV(nt,{children:[l.jsxDEV(gt,{children:l.jsxDEV(yt,{children:"Need More Help?"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:195,columnNumber:23},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:194,columnNumber:21},this),l.jsxDEV(at,{className:"space-y-3",children:[l.jsxDEV(Te,{variant:"outline",onClick:()=>d(!0),className:"w-full",children:"Open Setup Guide"},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:198,columnNumber:23},this),l.jsxDEV("div",{className:"text-sm text-muted-foreground",children:"For detailed setup instructions and troubleshooting."},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:205,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:197,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:193,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:146,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:140,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:81,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:55,columnNumber:7},this)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/App.tsx",lineNumber:54,columnNumber:5},this)}$j.createRoot(document.getElementById("root")).render(l.jsxDEV(G.StrictMode,{children:l.jsxDEV(eC,{},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/main.tsx",lineNumber:8,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/pro/Projects/cntx-v2/web/src/main.tsx",lineNumber:7,columnNumber:3},void 0));
|